.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-intro-hint {
  position: fixed;
  top: var(--nfc-intro-hint-top, 76px);
  left: var(--nfc-intro-hint-left, max(18px, calc((100vw - 1160px) / 2 + 112px)));
  z-index: 24;
  width: min(270px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border: 1px solid rgba(122, 78, 57, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 253, 249, 0.94), rgba(244, 232, 220, 0.86)),
    rgba(255, 255, 255, 0.84);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 16px 34px rgba(54, 31, 19, 0.16);
  cursor: pointer;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.nfc-intro-hint::before {
  content: "";
  position: absolute;
  top: -8px;
  left: var(--nfc-intro-hint-arrow-left, 28px);
  width: 14px;
  height: 14px;
  border-left: 1px solid rgba(122, 78, 57, 0.2);
  border-top: 1px solid rgba(122, 78, 57, 0.2);
  background: rgba(255, 253, 249, 0.94);
  transform: rotate(45deg);
}

.nfc-intro-hint p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: inherit;
}

.nfc-intro-hint-dismiss {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(122, 78, 57, 0.16);
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.62);
  color: inherit;
  font: 600 1rem/1 var(--font-sans);
  cursor: pointer;
}

.nfc-intro-hint-dismiss:hover,
.nfc-intro-hint-dismiss:focus-visible {
  border-color: rgba(122, 78, 57, 0.38);
  outline: none;
}

@media (max-width: 720px) {
  .nfc-intro-hint {
    width: min(280px, calc(100vw - 32px));
  }
}

.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,
.nfc-shell > .nfc-reporting-split {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  min-width: 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.nfc-admin-shell-overlay-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-voucher-btn {
  border-color: rgba(0, 60, 22, 0.28);
  background: linear-gradient(160deg, rgba(247, 244, 234, 0.98), rgba(223, 229, 211, 0.94));
  color: #173222;
  box-shadow:
    0 8px 18px rgba(16, 34, 23, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.nfc-voucher-btn:hover {
  border-color: rgba(0, 60, 22, 0.42);
  background: linear-gradient(160deg, rgba(255, 252, 244, 0.98), rgba(214, 225, 205, 0.96));
  color: #003c16;
}

.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-dashboard-activity-card {
  gap: 12px;
}

.nfc-dashboard-activity-list {
  display: grid;
  gap: 8px;
}

.nfc-dashboard-activity-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(122, 78, 57, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.62);
}

.nfc-dashboard-activity-item strong {
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
}

.nfc-dashboard-activity-target,
.nfc-dashboard-activity-url {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.nfc-dashboard-activity-meta {
  display: grid;
  gap: 3px;
  justify-items: end;
  color: var(--ink-soft);
  font-size: 0.74rem;
  text-align: right;
  white-space: nowrap;
}

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

.nfc-reporting-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 16px 0;
  padding: 12px;
  border: 1px solid rgba(122, 78, 57, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
}

.nfc-reporting-filter-bar label {
  display: grid;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.nfc-refresh-text-btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.nfc-refresh-text-btn img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.nfc-reporting-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(122, 78, 57, 0.14);
  border-radius: 12px;
  min-height: 104px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.68);
}

.nfc-reporting-stat strong {
  min-width: 1.25em;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1;
  color: var(--ink);
}

.nfc-reporting-stat span {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.nfc-reporting-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.nfc-reporting-split > .surface-card,
.nfc-reporting-details,
.nfc-reporting-overview-head {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.nfc-reporting-list {
  display: grid;
  gap: 9px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nfc-reporting-chart {
  min-height: 0;
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.nfc-reporting-chart.is-horizontal {
  min-height: 0;
}

.nfc-reporting-chart.is-line {
  min-height: 0;
}

.nfc-reporting-chart.is-line .nfc-reporting-svg {
  max-height: 230px;
}

.nfc-reporting-action-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 14px;
}

.nfc-reporting-action-chip {
  appearance: none;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--chip-color, var(--accent)) 35%, transparent);
  border-radius: 999px;
  justify-content: center;
  min-width: auto;
  min-height: 0;
  padding: 7px 10px;
  color: var(--chip-color, var(--accent));
  background: rgba(255, 255, 255, 0.68);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.nfc-reporting-action-chip span {
  min-width: 0;
  overflow-wrap: normal;
  text-align: center;
  white-space: nowrap;
}

.nfc-reporting-action-chip strong {
  display: inline-grid;
  min-width: 1.45em;
  height: 1.45em;
  place-items: center;
  border-radius: 999px;
  color: var(--chip-color, var(--accent));
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.72em;
  font-weight: 900;
}

.nfc-reporting-action-chip[data-active="true"] {
  color: #fff;
  background: var(--chip-color, var(--accent));
  box-shadow: 0 8px 18px rgba(65, 42, 33, 0.12);
}

.nfc-reporting-action-chip.compact {
  padding: 6px 9px;
  font-size: 0.68rem;
}

.nfc-reporting-action-chip.compact strong {
  display: none;
}

.nfc-reporting-details {
  display: block;
  overflow: hidden;
}

.nfc-reporting-details summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  min-width: 0;
}

.nfc-reporting-details summary::-webkit-details-marker {
  display: none;
}

.nfc-reporting-details summary:focus {
  outline: none;
}

.nfc-reporting-details summary:focus-visible {
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(122, 78, 57, 0.14);
}

.nfc-reporting-details summary span {
  min-width: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.nfc-reporting-details summary small {
  flex: 0 0 auto;
  border: 1px solid rgba(122, 78, 57, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  font-weight: 800;
}

.nfc-reporting-details summary small::before {
  content: "Collapse";
}

.nfc-reporting-details:not([open]) summary small::before {
  content: "Open";
}

.nfc-reporting-details:not([open]) summary {
  margin-bottom: 0;
}

.nfc-reporting-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.nfc-reporting-svg line {
  stroke: rgba(65, 42, 33, 0.18);
  stroke-width: 1.5;
}

.nfc-reporting-svg polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nfc-reporting-svg circle {
  fill: #fff;
  stroke: var(--accent);
  stroke-width: 4;
}

.nfc-reporting-svg text {
  fill: var(--ink-soft);
  font-family: inherit;
  font-size: 18px;
}

.nfc-reporting-svg .nfc-reporting-value-label {
  fill: var(--ink);
  font-size: 20px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.86);
  stroke-linejoin: round;
  stroke-width: 5px;
}

.nfc-reporting-stack-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 210px;
  padding: 10px 2px 0;
}

.nfc-reporting-stack {
  display: grid;
  grid-template-rows: auto minmax(140px, 1fr) auto;
  gap: 7px;
  min-width: 0;
}

.nfc-reporting-bar-total {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.nfc-reporting-stack-bar {
  position: relative;
  min-height: 140px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(122, 78, 57, 0.12);
}

.nfc-reporting-stack-bar > span {
  position: absolute;
  left: 0;
  width: 100%;
}

.nfc-reporting-stack-bar i,
.nfc-reporting-legend i {
  font-size: 0;
}

.nfc-reporting-stack strong {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.nfc-reporting-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.nfc-reporting-legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.nfc-reporting-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.nfc-reporting-horizontal-row {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  min-width: 0;
}

.nfc-reporting-horizontal-row > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 0.82rem;
}

.nfc-reporting-horizontal-row strong,
.nfc-reporting-horizontal-row span {
  overflow-wrap: anywhere;
}

.nfc-reporting-horizontal-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 0 0 1px rgba(122, 78, 57, 0.12);
  min-width: 0;
}

.nfc-reporting-horizontal-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.nfc-reporting-activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid rgba(122, 78, 57, 0.12);
  padding: 12px 0;
}

.nfc-reporting-activity-row:last-child {
  border-bottom: 0;
}

.nfc-reporting-activity-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.nfc-reporting-activity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.nfc-reporting-brand-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 9px;
  color: #fff;
  background: var(--brand-pill-color, var(--accent));
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.nfc-reporting-brand-pill.small {
  padding: 5px 7px;
  font-size: 0.62rem;
}

.nfc-reporting-activity-target {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.nfc-reporting-compact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(122, 78, 57, 0.1);
  padding: 9px 0;
}

.nfc-reporting-compact-row:last-child {
  border-bottom: 0;
}

.nfc-reporting-compact-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.nfc-reporting-compact-title {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.nfc-reporting-compact-title strong {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.nfc-reporting-compact-meta {
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.2;
}

.nfc-reporting-compact-count {
  display: inline-grid;
  min-width: 2.15em;
  height: 2.15em;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--compact-count-color, var(--accent)) 28%, transparent);
  border-radius: 999px;
  color: var(--compact-count-color, var(--accent));
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 900;
}

.nfc-reporting-activity-client {
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.25;
}

.nfc-reporting-activity-row time {
  display: grid;
  gap: 2px;
  justify-items: end;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.nfc-reporting-activity-row time small {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
}

.nfc-reporting-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(122, 78, 57, 0.12);
}

.nfc-reporting-pagination > span {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.nfc-reporting-pagination > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nfc-reporting-page-btn {
  appearance: none;
  min-width: 34px;
  min-height: 32px;
  border: 1px solid rgba(122, 78, 57, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.nfc-reporting-page-btn[data-active="true"] {
  color: #fff;
  background: var(--accent);
}

.nfc-reporting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(122, 78, 57, 0.12);
  padding: 8px 0;
}

.nfc-reporting-row:last-child {
  border-bottom: 0;
}

.nfc-reporting-row strong,
.nfc-reporting-row span {
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .nfc-dashboard-activity-item,
  .nfc-reporting-split {
    grid-template-columns: 1fr;
  }

  .nfc-dashboard-activity-meta {
    justify-items: start;
    text-align: left;
    white-space: normal;
  }

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

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

  .nfc-reporting-filter-bar .btn {
    width: 100%;
  }

  .nfc-reporting-stack-chart {
    overflow-x: auto;
    grid-auto-flow: column;
    grid-auto-columns: minmax(58px, 1fr);
    grid-template-columns: none;
    padding-bottom: 6px;
  }

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

  .nfc-reporting-activity-row time {
    justify-items: start;
    text-align: left;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .nfc-reporting-grid {
    grid-template-columns: 1fr;
  }

  .nfc-reporting-stat {
    min-height: 82px;
  }
}

.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-badge-after-hours {
  border-color: rgba(23, 50, 34, 0.55);
  color: #fff8ed;
  background: #173222;
  font-weight: 800;
}

.nfc-badge-dashboard {
  border-color: rgba(14, 116, 144, 0.28);
  color: #0f5f73;
  background: rgba(14, 116, 144, 0.09);
}

.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-queue-access-card {
  border-color: rgba(69, 112, 76, 0.3);
  background: rgba(239, 250, 239, 0.58);
}

.nfc-queue-access-card.is-blocked {
  border-color: rgba(131, 43, 34, 0.32);
  background: rgba(255, 241, 238, 0.72);
}

.nfc-queue-access-card .nfc-actions {
  justify-content: flex-start;
}

#edit-client-form[data-active-brand]:not([data-active-brand="hairlab"]) .nfc-hairlab-admin-only {
  display: none !important;
}

body[data-admin-brand="arc"] #edit-client-form,
#edit-client-form[data-active-brand="arc"] {
  --brand-accent: #143f91;
  --brand-accent-soft: rgba(20, 63, 145, 0.1);
  --brand-accent-line: rgba(20, 63, 145, 0.34);
}

body[data-admin-brand="nile-reed"] #edit-client-form,
#edit-client-form[data-active-brand="nile-reed"] {
  --brand-accent: #711c32;
  --brand-accent-soft: rgba(113, 28, 50, 0.1);
  --brand-accent-line: rgba(113, 28, 50, 0.34);
}

body[data-admin-brand="barber-commons"] #edit-client-form,
#edit-client-form[data-active-brand="barber-commons"] {
  --brand-accent: #174d33;
  --brand-accent-soft: rgba(23, 77, 51, 0.11);
  --brand-accent-line: rgba(23, 77, 51, 0.34);
}

#edit-client-form[data-active-brand]:not([data-active-brand="hairlab"]) .nfc-brand-admin-switch-panel,
#edit-client-form[data-active-brand]:not([data-active-brand="hairlab"]) .nfc-brand-reusable-section,
#edit-client-form[data-active-brand]:not([data-active-brand="hairlab"]) .nfc-brand-hair-regeneration-section {
  border-color: var(--brand-accent-line);
  background: linear-gradient(135deg, var(--brand-accent-soft), rgba(255, 255, 255, 0.7));
}

#edit-client-form[data-active-brand]:not([data-active-brand="hairlab"]) .nfc-brand-admin-switch-panel h3,
#edit-client-form[data-active-brand]:not([data-active-brand="hairlab"]) .nfc-brand-reusable-section > .nfc-service-config-head h3,
#edit-client-form[data-active-brand]:not([data-active-brand="hairlab"]) .nfc-brand-hair-regeneration-section > .nfc-service-config-head h3 {
  color: var(--brand-accent);
}

#edit-client-form[data-active-brand]:not([data-active-brand="hairlab"]) .nfc-brand-reusable-section .nfc-service-option.is-selected,
#edit-client-form[data-active-brand]:not([data-active-brand="hairlab"]) .nfc-brand-reusable-section .nfc-service-option:has(input:checked),
#edit-client-form[data-active-brand]:not([data-active-brand="hairlab"]) .nfc-brand-hair-regeneration-section .nfc-exo-grow-toggle-card,
#edit-client-form[data-active-brand]:not([data-active-brand="hairlab"]) .nfc-brand-hair-regeneration-section .nfc-hair-regen-diagram-trigger {
  border-color: var(--brand-accent-line);
  background: var(--brand-accent-soft);
}

.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-next-step-catalogue-tools {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(150px, 1fr));
  gap: 10px;
  border: 1px solid rgba(165, 136, 116, 0.24);
  border-radius: 14px;
  padding: 12px;
  background: rgba(250, 247, 244, 0.88);
}

.nfc-next-step-catalogue-tools label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.nfc-next-step-catalogue-tools .nfc-input {
  min-height: 44px;
}

.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-booking-history-notes {
  margin-top: 10px;
  border-top: 1px solid rgba(165, 136, 116, 0.2);
  padding-top: 10px;
}

.nfc-booking-history-notes summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

.nfc-booking-history-notes p {
  margin: 6px 0 0;
  white-space: pre-wrap;
}

.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;
  display: grid;
  gap: 8px;
}

.nfc-product-catalog-search {
  display: grid;
  gap: 4px;
}

.nfc-product-catalog-title {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

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

.nfc-product-catalog-filter {
  min-width: 0;
}

.nfc-product-catalog-count {
  margin: -2px 0 0;
}

.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;
}

/* Shared admin navigation and live connection monitor */
.nfc-admin-shell-ready .nfc-admin-topbar {
  width: min(1160px, calc(100% - 24px));
  box-sizing: border-box;
  flex-direction: row;
  align-items: center;
  margin-bottom: 8px;
}

.nfc-admin-shell-ready .nfc-admin-topbar > .nfc-admin-inline-links {
  display: none;
}

.nfc-admin-menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(122, 81, 63, 0.22);
  border-radius: 50%;
  display: grid;
  place-content: center;
  gap: 4px;
  padding: 0;
  color: #5b3d31;
  background: linear-gradient(135deg, rgba(255, 252, 248, 0.98), rgba(244, 230, 219, 0.9));
  box-shadow: 0 4px 14px rgba(65, 43, 32, 0.1);
  cursor: pointer;
}

.nfc-admin-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nfc-admin-menu-toggle:hover,
.nfc-admin-menu-toggle:focus-visible,
.nfc-admin-shell-close:hover,
.nfc-admin-shell-close:focus-visible {
  outline: none;
  border-color: rgba(122, 81, 63, 0.5);
  box-shadow: 0 0 0 3px rgba(122, 81, 63, 0.12);
}

.nfc-connection-shell {
  width: min(1160px, calc(100% - 24px));
  margin: 0 auto 14px;
  position: sticky;
  top: 80px;
  z-index: 19;
}

.nfc-connection-status-banner {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 13px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(32, 52, 38, 0.1);
}

.nfc-connection-status-banner[data-tone="good"] {
  color: #164f34;
  border-color: rgba(31, 115, 72, 0.24);
  background: rgba(228, 245, 234, 0.96);
}

.nfc-connection-status-banner[data-tone="bad"] {
  color: #8c2e27;
  border-color: rgba(167, 57, 48, 0.28);
  background: rgba(253, 231, 228, 0.97);
}

.nfc-connection-status-banner[data-tone="loading"] {
  color: #6b584f;
  border-color: rgba(122, 81, 63, 0.18);
  background: rgba(250, 245, 239, 0.96);
}

.nfc-connection-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 13%, transparent);
}

.nfc-connection-status-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nfc-connection-status-chevron {
  font-size: 1rem;
  line-height: 1;
}

.nfc-admin-shell-backdrop {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(32, 23, 18, 0.28);
  backdrop-filter: blur(9px);
}

.nfc-admin-menu-drawer,
.nfc-connection-status-drawer {
  position: fixed;
  z-index: 200;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  background: rgba(255, 252, 248, 0.99);
  box-shadow: 0 22px 60px rgba(38, 24, 18, 0.28);
  transition: transform 180ms ease;
}

.nfc-admin-menu-drawer {
  inset: 0 auto 0 0;
  width: min(390px, calc(100vw - 24px));
  height: 100dvh;
  padding: 22px;
  border-radius: 0 24px 24px 0;
  transform: translateX(-102%);
  overflow-y: auto;
}

.nfc-admin-menu-drawer.is-open {
  transform: translateX(0);
}

.nfc-connection-status-drawer {
  inset: 0 0 auto 0;
  width: 100%;
  max-height: min(76dvh, 720px);
  padding: 20px max(18px, calc((100vw - 760px) / 2));
  border-radius: 0 0 26px 26px;
  transform: translateY(-102%);
  overflow-y: auto;
}

.nfc-connection-status-drawer.is-open {
  transform: translateY(0);
}

.nfc-admin-shell-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.nfc-admin-shell-drawer-head h2 {
  margin: 2px 0 0;
  color: #3f2c25;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.nfc-admin-shell-kicker {
  margin: 0;
  color: #816352;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nfc-admin-shell-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(122, 81, 63, 0.2);
  border-radius: 50%;
  background: #fff;
  color: #5b3d31;
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.nfc-admin-menu-links {
  position: static;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  display: grid;
  gap: 8px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.nfc-admin-menu-links::before,
.nfc-admin-menu-links::after {
  display: none;
}

.nfc-admin-menu-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(122, 81, 63, 0.15);
  border-radius: 14px;
  color: #4f392f;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
}

.nfc-admin-menu-links a.is-active {
  color: #fff;
  border-color: #76503f;
  background: #76503f;
}

.nfc-connection-status-meta {
  margin: -8px 0 14px;
  color: #786358;
  font-size: 0.82rem;
}

.nfc-connection-status-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.nfc-connection-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(122, 81, 63, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.nfc-connection-status-row[data-tone="bad"] {
  border-color: rgba(167, 57, 48, 0.28);
  background: rgba(253, 236, 233, 0.86);
}

.nfc-connection-status-copy strong {
  color: #3f2c25;
  font-size: 0.9rem;
}

.nfc-connection-status-copy p {
  margin: 4px 0 0;
  color: #746158;
  font-size: 0.76rem;
  line-height: 1.35;
}

.nfc-connection-status-pill {
  padding: 5px 8px;
  border-radius: 999px;
  color: #1d603f;
  background: #e3f2e8;
  font-size: 0.69rem;
  font-weight: 900;
  white-space: nowrap;
}

.nfc-connection-status-row[data-tone="bad"] .nfc-connection-status-pill {
  color: #922f28;
  background: #f7d8d4;
}

.nfc-connection-refresh {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border: 1px solid rgba(122, 81, 63, 0.28);
  border-radius: 999px;
  color: #5b3d31;
  background: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.is-portal-locked > .nfc-connection-shell {
  filter: blur(14px) saturate(112%);
  transform: scale(0.985);
  opacity: 0.58;
  pointer-events: none;
}

@media (max-width: 820px) {
  .nfc-admin-shell-ready .nfc-admin-topbar {
    position: sticky;
    top: 6px;
    padding: 9px 11px;
  }

  .nfc-admin-shell-ready .nfc-admin-topbar .brand-logo {
    height: 36px;
  }

  .nfc-connection-shell {
    top: 65px;
    margin-bottom: 10px;
  }

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

  .nfc-connection-status-drawer {
    max-height: 82dvh;
    padding: 18px 14px;
  }

  .nfc-connection-status-row {
    align-items: start;
  }
}

.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-page.nfc-voucher-open {
  overflow: hidden;
}

.client-voucher-overlay {
  position: fixed;
  inset: 0;
  z-index: 132;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 10%, rgba(209, 176, 111, 0.18), transparent 26rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(247, 244, 234, 0.52)),
    rgba(12, 39, 24, 0.36);
  backdrop-filter: blur(18px) saturate(142%);
  -webkit-backdrop-filter: blur(18px) saturate(142%);
}

.client-voucher-animation-stage {
  position: relative;
  grid-area: 1 / 1;
  width: 100%;
  min-height: min(82vh, 720px);
  display: grid;
  place-items: center;
  opacity: 1;
  pointer-events: none;
  transition: opacity 520ms ease;
}

.client-voucher-animation-stage.is-fading {
  opacity: 0;
}

.client-voucher-walk-animation {
  width: min(420px, 82vw);
  aspect-ratio: 1;
  filter: drop-shadow(0 24px 44px rgba(0, 24, 9, 0.22));
}

.client-voucher-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;
}

.client-voucher-modal {
  position: relative;
  grid-area: 1 / 1;
  z-index: 1;
  width: min(calc(100% - 24px), 640px);
  max-height: calc(100vh - 48px);
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(23, 50, 34, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(247, 244, 234, 0.72)),
    rgba(255, 255, 255, 0.78);
  color: #173222;
  box-shadow:
    0 30px 80px rgba(16, 34, 23, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
  transition:
    opacity 520ms ease,
    transform 520ms ease;
  overflow-x: hidden;
  overflow-y: auto;
}

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

.client-voucher-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 50, 34, 0.12);
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.7);
  color: #173222;
  font: 600 1.45rem/1 var(--font-sans);
  cursor: pointer;
}

.client-voucher-head {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding-right: 28px;
}

.client-voucher-logo {
  display: block;
  width: 100%;
  max-width: 190px;
  border: 1px solid rgba(23, 50, 34, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  background: #003c16;
}

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

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

.client-voucher-copy .nfc-kicker {
  color: rgba(23, 50, 34, 0.72);
  text-transform: none;
}

.client-voucher-copy h2 {
  color: #173222;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

.client-voucher-copy p {
  color: rgba(23, 50, 34, 0.76);
  font-size: 0.92rem;
  line-height: 1.45;
}

.client-voucher-modal-animation {
  width: min(190px, 48vw);
  aspect-ratio: 1;
  justify-self: center;
  margin: -8px 0 -20px;
}

.client-voucher-brand-directions {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 58px;
  margin: 4px 0;
  border-block: 1px solid rgba(23, 50, 34, 0.12);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.client-voucher-brand-directions .bb-store-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  min-width: 100%;
  padding: 10px 0;
  animation: bb-store-drift 24s linear infinite;
}

.client-voucher-brand-directions .bb-store-direction {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: clamp(104px, 16vw, 146px);
  height: 40px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: #173222;
  box-shadow:
    0 9px 20px rgba(16, 34, 23, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.client-voucher-brand-directions .bb-store-direction img {
  display: block;
  max-width: 100%;
  max-height: 24px;
  object-fit: contain;
}

.client-voucher-brand-directions .bb-store-direction:nth-child(1),
.client-voucher-brand-directions .bb-store-direction:nth-child(5) {
  background: #5b2f20;
}

.client-voucher-brand-directions .bb-store-direction:nth-child(2),
.client-voucher-brand-directions .bb-store-direction:nth-child(6) {
  background: #711c32;
}

.client-voucher-brand-directions .bb-store-direction:nth-child(3),
.client-voucher-brand-directions .bb-store-direction:nth-child(7) {
  background: #143f91;
}

.client-voucher-brand-directions .bb-store-direction:nth-child(4),
.client-voucher-brand-directions .bb-store-direction:nth-child(8) {
  background: #103f2a;
}

@keyframes bb-store-drift {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 6px));
  }
}

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

.client-voucher-detail-recipient,
.client-voucher-detail-message {
  grid-column: 1 / -1;
}

.client-voucher-detail {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(23, 50, 34, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.54);
}

.client-voucher-detail span {
  color: rgba(23, 50, 34, 0.7);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.client-voucher-detail strong {
  color: #173222;
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.client-voucher-modal .btn.primary {
  background: #173222;
  color: #fff8ed;
  border-color: rgba(23, 50, 34, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .client-voucher-brand-directions .bb-store-track {
    animation: none;
    transform: translateX(0);
  }
}

@media (max-width: 700px) {
  .client-voucher-modal {
    width: min(calc(100% - 18px), 420px);
    gap: 10px;
    padding: 16px 14px;
  }

  .client-voucher-head,
  .client-voucher-detail-list {
    grid-template-columns: 1fr;
  }

  .client-voucher-logo {
    width: min(200px, 100%);
    justify-self: center;
  }

  .client-voucher-copy {
    text-align: center;
    justify-items: center;
  }

  .client-voucher-copy h2 {
    font-size: 1.28rem;
  }

  .client-voucher-copy p {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .client-voucher-modal-animation {
    width: min(124px, 34vw);
    margin: -8px 0 -16px;
  }

  .client-voucher-brand-directions {
    min-height: 44px;
    margin: 0;
  }

  .client-voucher-brand-directions .bb-store-direction {
    width: 106px;
    height: 34px;
    padding: 6px 10px;
  }

  .client-voucher-brand-directions .bb-store-direction img {
    max-height: 19px;
  }

  .client-voucher-detail {
    padding: 9px 11px;
  }

  .client-voucher-detail strong {
    font-size: 0.94rem;
  }
}

.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-client-events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.nfc-client-event-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 12px;
  min-height: 100%;
  border: 1px solid rgba(255, 106, 0, 0.28);
  border-left: 6px solid #173222;
  border-radius: 12px;
  padding: 0;
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 0 18px rgba(255, 106, 0, 0.18),
    0 10px 24px rgba(63, 38, 25, 0.05);
  overflow: hidden;
}

.nfc-client-event-summary {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 11px;
  cursor: pointer;
  list-style: none;
  padding: 18px 18px 16px;
}

.nfc-client-event-summary::-webkit-details-marker {
  display: none;
}

.nfc-client-event-summary::after {
  content: "Open invite";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 34px;
  min-width: 104px;
  border: 1px solid rgba(122, 81, 63, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.94);
  color: #173222;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(16, 24, 50, 0.08);
}

.nfc-client-event-card[open] .nfc-client-event-summary::after {
  content: "Close invite";
}

.nfc-client-event-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.nfc-client-event-brand-pill,
.nfc-client-event-status,
.nfc-client-event-date {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 10px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
}

.nfc-client-event-brand-pill {
  background: rgba(122, 81, 63, 0.14);
  color: var(--accent-deep);
}

.nfc-client-event-card[data-event-brand="nile-reed"] .nfc-client-event-brand-pill {
  background: rgba(113, 28, 50, 0.15);
  color: #711c32;
}

.nfc-client-event-card[data-event-brand="nile-reed"] {
  border-left-color: #711c32;
}

.nfc-client-event-card[data-event-brand="arc"] .nfc-client-event-brand-pill {
  background: rgba(20, 63, 145, 0.15);
  color: #143f91;
}

.nfc-client-event-card[data-event-brand="arc"] {
  border-left-color: #143f91;
}

.nfc-client-event-card[data-event-brand="barber-commons"] .nfc-client-event-brand-pill {
  background: rgba(23, 77, 51, 0.15);
  color: #174d33;
}

.nfc-client-event-card[data-event-brand="barber-commons"] {
  border-left-color: #174d33;
}

.nfc-client-event-card[data-event-brand="beauty-blvd"] .nfc-client-event-brand-pill {
  background: rgba(23, 50, 34, 0.15);
  color: #173222;
}

.nfc-client-event-card[data-event-brand="beauty-blvd"] {
  border-left-color: #173222;
}

.nfc-client-event-date {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
}

.nfc-client-event-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.nfc-client-event-invite-title {
  color: var(--ink);
  font-size: clamp(1.55rem, 6vw, 2.25rem);
  line-height: 1;
}

.nfc-client-event-title {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.3;
}

.nfc-client-event-details {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  border-top: 1px solid rgba(122, 81, 63, 0.12);
  padding: 16px 18px 18px;
}

.nfc-client-event-description {
  max-width: 68ch;
  margin: 0;
  white-space: pre-line;
  color: #283047;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.58;
  overflow-wrap: break-word;
}

body[data-client-brand="arc"] .surface-card .nfc-client-event-card,
body[data-client-brand="nile-reed"] .surface-card .nfc-client-event-card,
body[data-client-brand="barber-commons"] .surface-card .nfc-client-event-card {
  background: rgba(255, 255, 255, 0.84);
}

body[data-client-brand="arc"] .surface-card .nfc-client-event-card :is(.nfc-client-event-invite-title, .nfc-client-event-title, .nfc-client-event-description, .nfc-meta),
body[data-client-brand="nile-reed"] .surface-card .nfc-client-event-card :is(.nfc-client-event-invite-title, .nfc-client-event-title, .nfc-client-event-description, .nfc-meta),
body[data-client-brand="barber-commons"] .surface-card .nfc-client-event-card :is(.nfc-client-event-invite-title, .nfc-client-event-title, .nfc-client-event-description, .nfc-meta) {
  color: #11172c;
}

body[data-client-brand="arc"] .surface-card .nfc-client-event-summary::after,
body[data-client-brand="nile-reed"] .surface-card .nfc-client-event-summary::after,
body[data-client-brand="barber-commons"] .surface-card .nfc-client-event-summary::after {
  color: #173222;
}

body[data-client-brand="arc"] .surface-card .nfc-client-event-card .nfc-client-event-title,
body[data-client-brand="nile-reed"] .surface-card .nfc-client-event-card .nfc-client-event-title,
body[data-client-brand="barber-commons"] .surface-card .nfc-client-event-card .nfc-client-event-title,
body[data-client-brand="arc"] .surface-card .nfc-client-event-card .nfc-client-event-description,
body[data-client-brand="nile-reed"] .surface-card .nfc-client-event-card .nfc-client-event-description,
body[data-client-brand="barber-commons"] .surface-card .nfc-client-event-card .nfc-client-event-description {
  color: #283047;
}

.nfc-client-event-status {
  border: 1px solid rgba(46, 112, 70, 0.2);
  background: rgba(46, 112, 70, 0.12);
  color: #2e7046;
}

.nfc-client-events-section {
  border-left: 3px solid rgba(122, 81, 63, 0.26);
  padding-left: 14px;
}

.nfc-client-events-body {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.nfc-client-events-body .nfc-client-event-card {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.65fr);
  align-items: start;
  min-height: 0;
  padding: 14px;
}

.nfc-client-event-main,
.nfc-client-event-proof {
  display: grid;
  gap: 7px;
}

.nfc-client-event-main h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-style: normal;
  letter-spacing: 0;
}

.nfc-client-event-main p,
.nfc-client-event-proof p,
.nfc-client-event-proof span {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.4;
}

.nfc-client-event-location a {
  color: var(--accent-deep);
  font-weight: 800;
}

.nfc-client-event-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(122, 81, 63, 0.14);
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 900;
}

.nfc-client-event-card[data-event-brand="nile-reed"] .nfc-client-event-brand {
  background: rgba(113, 28, 50, 0.15);
  color: #711c32;
}

.nfc-client-event-card[data-event-brand="arc"] .nfc-client-event-brand {
  background: rgba(20, 63, 145, 0.15);
  color: #143f91;
}

.nfc-client-event-card[data-event-brand="barber-commons"] .nfc-client-event-brand {
  background: rgba(23, 77, 51, 0.15);
  color: #174d33;
}

.nfc-client-event-card[data-event-brand="beauty-blvd"] .nfc-client-event-brand {
  background: rgba(23, 50, 34, 0.15);
  color: #173222;
}

.nfc-client-event-policy {
  border: 1px solid rgba(122, 81, 63, 0.12);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.5);
}

.nfc-client-event-policy summary {
  cursor: pointer;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 900;
}

.nfc-client-event-policy pre {
  max-height: 260px;
  overflow: auto;
  margin: 10px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink-soft);
  font: 0.78rem/1.45 var(--font-sans);
}

.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-product-recommendations-title-row {
  gap: 12px;
  align-items: center;
}

.nfc-shop-all-products-btn {
  width: auto;
  min-height: 42px;
  padding-inline: 18px;
  font-size: 0.82rem;
  white-space: normal;
  text-align: center;
}

.nfc-product-routine-editor {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(122, 81, 63, 0.18);
  border-radius: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 22px rgba(63, 38, 25, 0.05);
}

.nfc-product-routine-editor h4 {
  margin: 0;
  font-size: 1rem;
}

.nfc-routine-cart-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(122, 81, 63, 0.22);
  border-radius: 12px;
  padding: clamp(16px, 3vw, 22px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(243, 234, 218, 0.74)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 30px rgba(63, 38, 25, 0.08);
}

.nfc-routine-cart-card .nfc-kicker {
  color: var(--accent-deep);
}

.nfc-routine-cart-card h3,
.nfc-routine-cart-card p,
.nfc-shop-all-products-footer h3,
.nfc-shop-all-products-footer p,
.nfc-empty-products-card h3,
.nfc-empty-products-card p {
  margin: 0;
}

.nfc-routine-cart-card > div,
.nfc-shop-all-products-footer > div,
.nfc-empty-products-card > div {
  display: grid;
  gap: 6px;
}

.nfc-routine-cart-card .btn {
  width: auto;
  white-space: nowrap;
  min-height: 54px;
  padding-inline: 28px;
  font-size: 0.98rem;
}

.nfc-selected-products-cart-card {
  border-color: rgba(122, 81, 63, 0.3);
}

.nfc-product-library-update-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  border: 1px solid rgba(95, 95, 95, 0.22);
  border-radius: 12px;
  padding: clamp(16px, 3vw, 22px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(226, 226, 222, 0.8)),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 28px rgba(36, 34, 32, 0.08);
}

.nfc-product-library-update-card > div {
  display: grid;
  gap: 6px;
}

.nfc-product-library-update-card h3,
.nfc-product-library-update-card p {
  margin: 0;
}

.nfc-product-library-update-card .nfc-kicker {
  color: var(--ink-soft);
}

.nfc-product-library-update-card .btn {
  width: auto;
  justify-self: start;
  min-height: 50px;
  padding-inline: 22px;
  white-space: nowrap;
}

.nfc-product-card.is-library-updating {
  border-color: rgba(95, 95, 95, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(231, 231, 226, 0.48)),
    rgba(255, 255, 255, 0.54);
  filter: grayscale(0.42);
  opacity: 0.72;
}

.nfc-product-card.is-library-updating :is(.nfc-product-stylist-details, .nfc-product-priority, .nfc-service-option-chip) {
  filter: grayscale(0.28);
}

.nfc-product-select-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(122, 81, 63, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
}

.nfc-product-select-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent-deep);
}

.nfc-routine-cart-card .btn.is-disabled {
  pointer-events: none;
  opacity: 0.58;
}

.nfc-shop-all-products-footer,
.nfc-empty-products-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(165, 136, 116, 0.18);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.5);
}

.nfc-empty-products-card {
  background: rgba(255, 255, 255, 0.64);
}

.nfc-shop-all-products-footer .btn,
.nfc-empty-products-card .btn {
  width: auto;
  min-height: 42px;
  white-space: normal;
  text-align: center;
}

.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-stylist-details {
  border: 1px solid rgba(165, 136, 116, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.nfc-product-stylist-details summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
}

.nfc-product-stylist-details summary::-webkit-details-marker {
  display: none;
}

.nfc-product-stylist-details summary::after {
  content: '+';
  float: right;
  color: var(--ink-soft);
}

.nfc-product-stylist-details[open] summary::after {
  content: '-';
}

.nfc-product-stylist-details-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.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-brand-switcher {
  width: min(190px, 42vw);
  height: auto;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(122, 81, 63, 0.22);
  border-radius: 10px;
  background: rgba(251, 248, 243, 0.9);
  box-shadow: 0 10px 26px rgba(68, 44, 30, 0.12);
}

.nfc-brand-switcher label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.nfc-brand-switch-select {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(122, 81, 63, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 6px 8px;
}

.nfc-brand-empty-card {
  max-width: 520px;
}

.nfc-store-chooser-open {
  overflow: hidden;
}

.nfc-store-chooser {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  width: auto;
  max-width: none;
  margin: 0;
  padding: clamp(16px, 4vw, 28px);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.62), transparent 28%),
    linear-gradient(145deg, rgba(247, 244, 234, 0.72), rgba(224, 226, 211, 0.58)),
    rgba(16, 34, 23, 0.28);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
}

.nfc-store-chooser-card {
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  display: grid;
  gap: 20px;
  padding: clamp(20px, 5vw, 34px);
  border: 1px solid rgba(23, 50, 34, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 244, 234, 0.66)),
    rgba(255, 255, 255, 0.7);
  color: #173222;
  box-shadow:
    0 28px 70px rgba(16, 34, 23, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.nfc-store-chooser-logo {
  width: min(330px, 88%);
  max-height: 96px;
  object-fit: contain;
  justify-self: center;
  padding: 10px 12px;
  border: 1px solid rgba(23, 50, 34, 0.12);
  border-radius: 10px;
  background: #003c16;
  filter: drop-shadow(0 12px 24px rgba(16, 34, 23, 0.16));
}

.nfc-page .nfc-store-chooser-card .nfc-kicker,
.nfc-page .nfc-store-chooser-card .nfc-next-steps-head h2 {
  color: #173222;
}

.nfc-page .nfc-store-chooser-card .nfc-next-steps-head h2 {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.nfc-store-chooser-card .nfc-next-steps-head {
  align-items: center;
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(23, 50, 34, 0.12);
}

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

.nfc-store-choice {
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 18px;
  background: #173222;
  color: #fff8ed;
  text-align: center;
  text-decoration: none;
  box-shadow:
    0 12px 26px rgba(16, 34, 23, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.nfc-store-choice:hover,
.nfc-store-choice:focus-visible {
  border-color: rgba(255, 255, 255, 0.56);
  box-shadow:
    0 16px 30px rgba(16, 34, 23, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  outline: none;
  transform: translateY(-1px);
}

.nfc-store-choice img {
  width: min(230px, 100%);
  max-height: 46px;
  object-fit: contain;
}

.nfc-store-choice[data-store-brand="hairlab"] img {
  width: min(260px, 100%);
}

.nfc-store-choice[data-store-brand="nile-reed"] img {
  width: min(275px, 100%);
}

.nfc-store-choice[data-store-brand="hairlab"] {
  background: #5b2f20;
}

.nfc-store-choice[data-store-brand="nile-reed"] {
  background: #711c32;
}

.nfc-store-choice[data-store-brand="arc"] {
  background: #143f91;
}

.nfc-store-choice[data-store-brand="barber-commons"] {
  background: #103f2a;
}

@media (max-width: 620px) {
  .nfc-store-chooser {
    padding: 14px;
  }

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

  .nfc-store-choice {
    min-height: 104px;
  }

  .nfc-store-choice img {
    max-height: 48px;
  }
}

html[data-client-brand="arc"] {
  --ink: #101832;
  --ink-soft: #283d74;
  --accent: #143f91;
  --accent-soft: #f36c21;
  --line: rgba(20, 63, 145, 0.24);
  --panel: #f7f9ff;
  --client-brand-primary: #143f91;
  --client-brand-primary-rgb: 20, 63, 145;
  --client-brand-secondary: #f36c21;
  --client-brand-secondary-rgb: 243, 108, 33;
  --client-brand-deep: #071947;
  --client-brand-surface: rgba(248, 250, 255, 0.36);
  --client-brand-surface-strong: rgba(255, 255, 255, 0.58);
  --client-brand-line: rgba(20, 63, 145, 0.26);
  --client-brand-shadow: rgba(3, 15, 45, 0.22);
  --client-brand-on-dark: #ffffff;
  --page-bg-image-desktop: url("/assets/beauty-blvd/arc-bg.jpg");
  --page-bg-image-mobile: url("/assets/beauty-blvd/arc-bg.jpg");
}

html[data-client-brand="nile-reed"] {
  --ink: #281712;
  --ink-soft: #563127;
  --accent: #711c32;
  --accent-soft: #3b241e;
  --line: rgba(113, 28, 50, 0.24);
  --panel: #fff8f4;
  --client-brand-primary: #711c32;
  --client-brand-primary-rgb: 113, 28, 50;
  --client-brand-secondary: #3b241e;
  --client-brand-secondary-rgb: 59, 36, 30;
  --client-brand-deep: #260c14;
  --client-brand-surface: rgba(255, 248, 244, 0.38);
  --client-brand-surface-strong: rgba(255, 251, 248, 0.62);
  --client-brand-line: rgba(113, 28, 50, 0.28);
  --client-brand-shadow: rgba(38, 12, 20, 0.24);
  --client-brand-on-dark: #fff8ed;
  --page-bg-image-desktop: url("/assets/beauty-blvd/nile-reed-bg.png");
  --page-bg-image-mobile: url("/assets/beauty-blvd/nile-reed-bg.png");
}

html[data-client-brand="barber-commons"] {
  --ink: #102117;
  --ink-soft: #294431;
  --accent: #174d33;
  --accent-soft: #b9874c;
  --line: rgba(23, 77, 51, 0.26);
  --panel: #f8fbf6;
  --client-brand-primary: #174d33;
  --client-brand-primary-rgb: 23, 77, 51;
  --client-brand-secondary: #b9874c;
  --client-brand-secondary-rgb: 185, 135, 76;
  --client-brand-deep: #071b11;
  --client-brand-surface: rgba(248, 251, 246, 0.36);
  --client-brand-surface-strong: rgba(255, 253, 247, 0.58);
  --client-brand-line: rgba(23, 77, 51, 0.3);
  --client-brand-shadow: rgba(5, 22, 13, 0.26);
  --client-brand-on-dark: #fff8ea;
  --page-bg-image-desktop: url("/assets/beauty-blvd/barber-commons-bg.png");
  --page-bg-image-mobile: url("/assets/beauty-blvd/barber-commons-bg.png");
}

html[data-client-brand="arc"],
html[data-client-brand="nile-reed"],
html[data-client-brand="barber-commons"] {
  background-color: var(--client-brand-deep);
}

html[data-client-brand="arc"]::before,
html[data-client-brand="nile-reed"]::before,
html[data-client-brand="barber-commons"]::before {
  background-image:
    linear-gradient(180deg, rgba(6, 8, 14, 0.1), rgba(6, 8, 14, 0.32)),
    linear-gradient(90deg, rgba(var(--client-brand-primary-rgb), 0.46), rgba(var(--client-brand-secondary-rgb), 0.16)),
    var(--page-bg-image-desktop);
  background-position: center center;
  background-size: cover;
}

body[data-client-brand="arc"] nav,
body[data-client-brand="nile-reed"] nav,
body[data-client-brand="barber-commons"] nav {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(var(--client-brand-primary-rgb), 0.82), rgba(var(--client-brand-secondary-rgb), 0.54)),
    var(--client-brand-deep);
  box-shadow:
    0 18px 42px var(--client-brand-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

body[data-client-brand="arc"] nav .brand-logo,
body[data-client-brand="nile-reed"] nav .brand-logo,
body[data-client-brand="barber-commons"] nav .brand-logo {
  max-width: min(190px, 46vw);
  height: 38px;
  object-fit: contain;
}

body[data-client-brand="arc"] nav ul li a,
body[data-client-brand="nile-reed"] nav ul li a,
body[data-client-brand="barber-commons"] nav ul li a,
body[data-client-brand="arc"] nav .nfc-intro-trigger,
body[data-client-brand="nile-reed"] nav .nfc-intro-trigger,
body[data-client-brand="barber-commons"] nav .nfc-intro-trigger {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  color: var(--client-brand-on-dark);
}

body[data-client-brand="arc"] .nfc-intro-hint,
body[data-client-brand="nile-reed"] .nfc-intro-hint,
body[data-client-brand="barber-commons"] .nfc-intro-hint {
  border-color: rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(145deg, rgba(var(--client-brand-primary-rgb), 0.92), rgba(var(--client-brand-primary-rgb), 0.74)),
    var(--client-brand-deep);
  color: var(--client-brand-on-dark);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 34px var(--client-brand-shadow);
}

body[data-client-brand="arc"] .nfc-intro-hint::before,
body[data-client-brand="nile-reed"] .nfc-intro-hint::before,
body[data-client-brand="barber-commons"] .nfc-intro-hint::before {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(var(--client-brand-primary-rgb), 0.88);
}

body[data-client-brand="arc"] .nfc-intro-hint-dismiss,
body[data-client-brand="nile-reed"] .nfc-intro-hint-dismiss,
body[data-client-brand="barber-commons"] .nfc-intro-hint-dismiss {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.16);
  color: var(--client-brand-on-dark);
}

body[data-client-brand="arc"] .nfc-book-btn,
body[data-client-brand="arc"] .btn.primary {
  border-color: rgba(243, 108, 33, 0.62);
  background: linear-gradient(135deg, #f36c21, #e25d16);
  color: #ffffff;
}

body[data-client-brand="arc"] .nfc-book-btn:hover,
body[data-client-brand="arc"] .btn.primary:hover {
  border-color: rgba(255, 255, 255, 0.58);
  color: #ffffff;
}

body[data-client-brand="nile-reed"] .nfc-book-btn,
body[data-client-brand="nile-reed"] .btn.primary {
  border-color: rgba(113, 28, 50, 0.6);
  background: linear-gradient(135deg, #711c32, #3b241e);
  color: #fff8ed;
}

body[data-client-brand="barber-commons"] .nfc-book-btn,
body[data-client-brand="barber-commons"] .btn.primary {
  border-color: rgba(185, 135, 76, 0.5);
  background: linear-gradient(135deg, #174d33, #0b2618);
  color: #fff8ea;
}

body[data-client-brand="arc"] .client-voucher-modal .btn.primary,
body[data-client-brand="nile-reed"] .client-voucher-modal .btn.primary,
body[data-client-brand="barber-commons"] .client-voucher-modal .btn.primary,
.client-voucher-modal .btn.primary {
  border-color: rgba(23, 50, 34, 0.22);
  background: #173222;
  color: #fff8ed;
}

body[data-client-brand="arc"] .nfc-hero,
body[data-client-brand="nile-reed"] .nfc-hero,
body[data-client-brand="barber-commons"] .nfc-hero {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(var(--client-brand-primary-rgb), 0.7), rgba(var(--client-brand-secondary-rgb), 0.4)),
    rgba(0, 0, 0, 0.18);
  box-shadow: 0 24px 58px var(--client-brand-shadow);
  backdrop-filter: blur(16px) saturate(138%);
  -webkit-backdrop-filter: blur(16px) saturate(138%);
}

body[data-client-brand="arc"] .nfc-hero h1,
body[data-client-brand="nile-reed"] .nfc-hero h1,
body[data-client-brand="barber-commons"] .nfc-hero h1,
body[data-client-brand="arc"] .nfc-hero p,
body[data-client-brand="nile-reed"] .nfc-hero p,
body[data-client-brand="barber-commons"] .nfc-hero p {
  color: var(--client-brand-on-dark);
}

body[data-client-brand="arc"] .surface-card,
body[data-client-brand="nile-reed"] .surface-card,
body[data-client-brand="barber-commons"] .surface-card {
  --liquid-prism-intensity: 0.12;
  --liquid-pool-opacity: 0.16;
  --liquid-edge-spark: 0.12;
  border-color: var(--client-brand-line);
  background:
    linear-gradient(145deg, var(--client-brand-surface-strong), var(--client-brand-surface)),
    rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 46px var(--client-brand-shadow);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

body[data-client-brand="arc"] .client-voucher-modal.surface-card,
body[data-client-brand="nile-reed"] .client-voucher-modal.surface-card,
body[data-client-brand="barber-commons"] .client-voucher-modal.surface-card {
  border-color: rgba(23, 50, 34, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(247, 244, 234, 0.72)),
    rgba(255, 255, 255, 0.78);
  color: #173222;
  box-shadow:
    0 30px 80px rgba(16, 34, 23, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

body[data-client-brand="arc"] .client-voucher-modal.surface-card :is(h2, p, strong, .nfc-kicker),
body[data-client-brand="nile-reed"] .client-voucher-modal.surface-card :is(h2, p, strong, .nfc-kicker),
body[data-client-brand="barber-commons"] .client-voucher-modal.surface-card :is(h2, p, strong, .nfc-kicker) {
  font-family: var(--font-sans);
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

body[data-client-brand="arc"] .client-voucher-modal.surface-card .client-voucher-copy h2,
body[data-client-brand="nile-reed"] .client-voucher-modal.surface-card .client-voucher-copy h2,
body[data-client-brand="barber-commons"] .client-voucher-modal.surface-card .client-voucher-copy h2,
body[data-client-brand="arc"] .client-voucher-modal.surface-card .client-voucher-detail strong,
body[data-client-brand="nile-reed"] .client-voucher-modal.surface-card .client-voucher-detail strong,
body[data-client-brand="barber-commons"] .client-voucher-modal.surface-card .client-voucher-detail strong {
  color: #173222;
}

body[data-client-brand="arc"] .client-voucher-modal.surface-card .client-voucher-copy p,
body[data-client-brand="nile-reed"] .client-voucher-modal.surface-card .client-voucher-copy p,
body[data-client-brand="barber-commons"] .client-voucher-modal.surface-card .client-voucher-copy p,
body[data-client-brand="arc"] .client-voucher-modal.surface-card .client-voucher-detail span,
body[data-client-brand="nile-reed"] .client-voucher-modal.surface-card .client-voucher-detail span,
body[data-client-brand="barber-commons"] .client-voucher-modal.surface-card .client-voucher-detail span,
body[data-client-brand="arc"] .client-voucher-modal.surface-card .client-voucher-copy .nfc-kicker,
body[data-client-brand="nile-reed"] .client-voucher-modal.surface-card .client-voucher-copy .nfc-kicker,
body[data-client-brand="barber-commons"] .client-voucher-modal.surface-card .client-voucher-copy .nfc-kicker {
  color: rgba(23, 50, 34, 0.74);
}

body[data-client-brand="arc"] .surface-card::before,
body[data-client-brand="nile-reed"] .surface-card::before,
body[data-client-brand="barber-commons"] .surface-card::before {
  opacity: 0.46;
}

body[data-client-brand="arc"] .surface-card::after,
body[data-client-brand="nile-reed"] .surface-card::after,
body[data-client-brand="barber-commons"] .surface-card::after {
  opacity: 0.54;
}

body[data-client-brand="arc"] .nfc-kicker,
body[data-client-brand="nile-reed"] .nfc-kicker,
body[data-client-brand="barber-commons"] .nfc-kicker,
body[data-client-brand="arc"] .nfc-next-step-card h3,
body[data-client-brand="nile-reed"] .nfc-next-step-card h3,
body[data-client-brand="barber-commons"] .nfc-next-step-card h3 {
  color: var(--client-brand-primary);
}

body[data-client-brand="barber-commons"] #client-hair-regeneration .nfc-exo-grow-aftercare-card,
body[data-client-brand="barber-commons"] #client-hair-regeneration .nfc-hair-regen-timeline-card,
body[data-client-brand="barber-commons"] #client-hair-regeneration .nfc-hair-regen-graph-card {
  border-color: rgba(23, 77, 51, 0.34);
  background:
    radial-gradient(circle at 12% 12%, rgba(185, 135, 76, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(255, 253, 247, 0.56), rgba(248, 251, 246, 0.34));
  box-shadow: 0 16px 36px rgba(5, 22, 13, 0.14);
  backdrop-filter: blur(14px) saturate(142%);
  -webkit-backdrop-filter: blur(14px) saturate(142%);
}

body[data-client-brand="arc"] .nfc-brand-switcher,
body[data-client-brand="nile-reed"] .nfc-brand-switcher,
body[data-client-brand="barber-commons"] .nfc-brand-switcher {
  border-color: rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(var(--client-brand-primary-rgb), 0.76), rgba(var(--client-brand-secondary-rgb), 0.46)),
    var(--client-brand-deep);
  box-shadow: 0 16px 34px var(--client-brand-shadow);
  backdrop-filter: blur(12px) saturate(145%);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
}

body[data-client-brand="arc"] .nfc-brand-switcher label,
body[data-client-brand="nile-reed"] .nfc-brand-switcher label,
body[data-client-brand="barber-commons"] .nfc-brand-switcher label {
  color: rgba(255, 255, 255, 0.78);
}

body[data-client-brand="arc"] .nfc-brand-switch-select,
body[data-client-brand="nile-reed"] .nfc-brand-switch-select,
body[data-client-brand="barber-commons"] .nfc-brand-switch-select {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.96);
  color: var(--client-brand-deep);
}

body[data-client-brand="arc"] .nfc-entry-loader,
body[data-client-brand="nile-reed"] .nfc-entry-loader,
body[data-client-brand="barber-commons"] .nfc-entry-loader {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.2) 44%, rgba(var(--client-brand-primary-rgb), 0.14)),
    linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(var(--client-brand-secondary-rgb), 0.1));
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

body[data-client-brand="arc"] .nfc-entry-loader p,
body[data-client-brand="nile-reed"] .nfc-entry-loader p,
body[data-client-brand="barber-commons"] .nfc-entry-loader p {
  color: var(--client-brand-deep);
}

body[data-client-brand="arc"],
body[data-client-brand="barber-commons"] {
  font-family: var(--font-sans);
  font-weight: 300;
}

body[data-client-brand="arc"] h1,
body[data-client-brand="arc"] h2,
body[data-client-brand="arc"] h3,
body[data-client-brand="arc"] h4,
body[data-client-brand="arc"] .nfc-kicker,
body[data-client-brand="arc"] .btn,
body[data-client-brand="arc"] .nfc-book-btn,
body[data-client-brand="arc"] .nfc-brand-switcher label,
body[data-client-brand="arc"] .nfc-brand-switch-select,
body[data-client-brand="barber-commons"] h1,
body[data-client-brand="barber-commons"] h2,
body[data-client-brand="barber-commons"] h3,
body[data-client-brand="barber-commons"] h4,
body[data-client-brand="barber-commons"] .nfc-kicker,
body[data-client-brand="barber-commons"] .btn,
body[data-client-brand="barber-commons"] .nfc-book-btn,
body[data-client-brand="barber-commons"] .nfc-brand-switcher label,
body[data-client-brand="barber-commons"] .nfc-brand-switch-select {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

body[data-client-brand="arc"] .hero h1,
body[data-client-brand="arc"] .hero h2,
body[data-client-brand="barber-commons"] .hero h1,
body[data-client-brand="barber-commons"] .hero h2 {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

body[data-client-brand="arc"] p,
body[data-client-brand="arc"] li,
body[data-client-brand="arc"] .nfc-meta,
body[data-client-brand="arc"] .nfc-status,
body[data-client-brand="barber-commons"] p,
body[data-client-brand="barber-commons"] li,
body[data-client-brand="barber-commons"] .nfc-meta,
body[data-client-brand="barber-commons"] .nfc-status {
  font-family: var(--font-sans);
  font-weight: 300;
}

html[data-client-brand="arc"]::before {
  background-image:
    linear-gradient(180deg, rgba(6, 8, 14, 0.1), rgba(6, 8, 14, 0.32)),
    linear-gradient(90deg, rgba(20, 63, 145, 0.5), rgba(7, 25, 71, 0.2)),
    var(--page-bg-image-desktop);
}

body[data-client-brand="arc"] nav,
body[data-client-brand="arc"] .nfc-hero,
body[data-client-brand="arc"] .nfc-brand-switcher {
  background:
    linear-gradient(135deg, rgba(20, 63, 145, 0.82), rgba(7, 25, 71, 0.68)),
    var(--client-brand-deep);
}

body[data-client-brand="arc"] .surface-card {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(20, 63, 145, 0.72), rgba(7, 25, 71, 0.66)),
    rgba(20, 63, 145, 0.3);
  color: var(--client-brand-on-dark);
}

body[data-client-brand="arc"] .surface-card :is(h1, h2, h3, h4, p, li, .nfc-kicker, .nfc-meta, .nfc-status, .nfc-next-step-card h3) {
  color: var(--client-brand-on-dark);
}

body[data-client-brand="arc"] .nfc-client-card {
  border-color: rgba(20, 63, 145, 0.34);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.62), transparent 34%),
    linear-gradient(145deg, rgba(250, 252, 255, 0.9), rgba(222, 233, 255, 0.78)),
    rgba(255, 255, 255, 0.68);
  color: #101832;
  box-shadow: 0 18px 46px rgba(3, 15, 45, 0.2);
}

body[data-client-brand="arc"] .nfc-client-card :is(h1, h2, h3, h4, p, li, .nfc-meta, .nfc-status) {
  color: #071947;
}

body[data-client-brand="arc"] .nfc-client-card::before {
  opacity: 0.2;
}

body[data-client-brand="arc"] .nfc-client-card::after {
  opacity: 0.24;
}

body[data-client-brand="arc"] .nfc-client-card .nfc-kicker {
  color: #143f91;
}

body[data-client-brand="arc"] .nfc-client-card .nfc-meta,
body[data-client-brand="arc"] .nfc-client-card .nfc-status {
  color: #182a5a;
  font-weight: 400;
}

body[data-client-brand="arc"] .nfc-client-card .nfc-status[data-tone="good"] {
  color: #0f5132;
  font-weight: 600;
}

body[data-client-brand="arc"] .nfc-next-steps {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(20, 63, 145, 0.74), rgba(7, 25, 71, 0.66)),
    rgba(20, 63, 145, 0.32);
}

body[data-client-brand="arc"] :is(#client-hair-profile, #client-product-recommendations, #client-sip-style) {
  border-color: rgba(20, 63, 145, 0.22);
  background:
    radial-gradient(circle at 88% 12%, rgba(243, 108, 33, 0.1), transparent 32%),
    linear-gradient(145deg, rgba(239, 245, 255, 0.64), rgba(188, 207, 248, 0.42)),
    rgba(255, 255, 255, 0.28);
  color: #101832;
}

body[data-client-brand="arc"] :is(#client-hair-profile, #client-product-recommendations, #client-sip-style) :is(h1, h2, h3, h4, p, li, .nfc-meta, .nfc-status) {
  color: #101832;
}

body[data-client-brand="arc"] :is(#client-hair-profile, #client-product-recommendations, #client-sip-style) .nfc-kicker {
  color: #143f91;
}

body[data-client-brand="arc"] :is(#client-maintenance-guidance, #client-hair-regeneration) {
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(145deg, rgba(8, 31, 88, 0.7), rgba(20, 63, 145, 0.56)),
    rgba(7, 25, 71, 0.3);
}

.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;
}

body[data-client-brand="arc"] #client-display-name,
body[data-client-brand="barber-commons"] #client-display-name {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

body[data-client-brand="arc"].nfc-page:not(.nfc-admin-document) .nfc-next-steps-head h2,
body[data-client-brand="arc"].nfc-page:not(.nfc-admin-document) .nfc-next-step-card h3,
body[data-client-brand="arc"].nfc-page:not(.nfc-admin-document) .nfc-client-name-row h2,
body[data-client-brand="barber-commons"].nfc-page:not(.nfc-admin-document) .nfc-next-steps-head h2,
body[data-client-brand="barber-commons"].nfc-page:not(.nfc-admin-document) .nfc-next-step-card h3,
body[data-client-brand="barber-commons"].nfc-page:not(.nfc-admin-document) .nfc-client-name-row h2 {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

body[data-client-brand="arc"].nfc-page:not(.nfc-admin-document) #nfc-client-card #client-display-name,
body[data-client-brand="arc"].nfc-page:not(.nfc-admin-document) #nfc-client-card #client-profile-kicker,
body[data-client-brand="arc"].nfc-page:not(.nfc-admin-document) #nfc-client-card #client-report-title,
body[data-client-brand="arc"].nfc-page:not(.nfc-admin-document) #nfc-client-card #client-report-link-state {
  color: #071947;
}

body[data-client-brand="arc"].nfc-page:not(.nfc-admin-document) #nfc-client-card #client-status-message {
  color: #0f5132;
  font-weight: 600;
}

body[data-client-brand="arc"] .surface-card .nfc-next-step-card {
  border-color: rgba(243, 108, 33, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(247, 239, 230, 0.9)),
    rgba(255, 255, 255, 0.88);
  color: #101832;
  box-shadow: 0 16px 34px rgba(3, 15, 45, 0.18);
}

body[data-client-brand="arc"] .surface-card .nfc-next-step-card :is(h3, p, li, .nfc-meta) {
  color: #101832;
}

body[data-client-brand="arc"] .surface-card .nfc-next-step-card .nfc-kicker {
  color: #143f91;
}

.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-steps-grid[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nfc-next-steps-grid[data-layout="service-flow"] {
  grid-template-columns: 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-next-service-flow-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(122, 81, 63, 0.2);
  border-radius: 12px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 244, 239, 0.88)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 26px rgba(63, 38, 25, 0.08);
}

.nfc-next-service-recommendations {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(122, 81, 63, 0.14);
  padding-top: 14px;
}

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

.nfc-next-service-recommendations-head h3 {
  margin: 0;
  color: #11172c;
  font-size: 1.08rem;
  line-height: 1.2;
}

.nfc-next-service-recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.nfc-next-service-flow-card .nfc-next-step-card {
  min-height: 0;
  border-color: rgba(122, 81, 63, 0.18);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
}

.nfc-service-timing-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(122, 81, 63, 0.18);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(63, 38, 25, 0.05);
}

.nfc-service-timing-panel {
  display: grid;
  gap: 7px;
  border-radius: 10px;
  padding: 15px 16px;
  color: #101832;
  background: rgba(255, 255, 255, 0.9);
}

.nfc-service-timing-panel.is-next {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
}

.nfc-service-timing-panel.is-next {
  border: 1px solid rgba(46, 112, 70, 0.22);
}

.nfc-service-timing-panel.is-past {
  border: 1px solid rgba(99, 72, 57, 0.2);
  background: rgba(251, 247, 243, 0.94);
}

.nfc-service-timing-panel h3,
.nfc-service-timing-panel p {
  margin: 0;
}

.nfc-service-timing-copy {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.nfc-service-timing-panel h3 {
  color: #11172c;
  font-size: 1.08rem;
  line-height: 1.22;
}

.nfc-service-timing-panel .nfc-kicker {
  color: #143f91;
  font-weight: 900;
}

.nfc-service-timing-panel .nfc-meta {
  color: #36405b;
  font-weight: 500;
  line-height: 1.35;
}

.nfc-service-countdown {
  justify-self: end;
  align-self: center;
  min-width: max-content;
  border: 1px solid rgba(20, 63, 145, 0.18);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #101832;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(16, 24, 50, 0.08);
}

body[data-client-brand="arc"] .surface-card .nfc-service-timing-panel :is(h3, p, .nfc-kicker, .nfc-meta),
body[data-client-brand="nile-reed"] .surface-card .nfc-service-timing-panel :is(h3, p, .nfc-kicker, .nfc-meta),
body[data-client-brand="barber-commons"] .surface-card .nfc-service-timing-panel :is(h3, p, .nfc-kicker, .nfc-meta) {
  color: #11172c;
}

body[data-client-brand="arc"] .surface-card .nfc-service-timing-panel .nfc-kicker,
body[data-client-brand="nile-reed"] .surface-card .nfc-service-timing-panel .nfc-kicker,
body[data-client-brand="barber-commons"] .surface-card .nfc-service-timing-panel .nfc-kicker {
  color: var(--client-brand-primary);
}

body[data-client-brand="arc"] .surface-card .nfc-service-timing-panel .nfc-meta,
body[data-client-brand="nile-reed"] .surface-card .nfc-service-timing-panel .nfc-meta,
body[data-client-brand="barber-commons"] .surface-card .nfc-service-timing-panel .nfc-meta {
  color: #36405b;
}

body[data-client-brand="arc"] .surface-card .nfc-service-timing-panel .nfc-service-countdown,
body[data-client-brand="nile-reed"] .surface-card .nfc-service-timing-panel .nfc-service-countdown,
body[data-client-brand="barber-commons"] .surface-card .nfc-service-timing-panel .nfc-service-countdown {
  color: #101832;
}

body[data-client-brand="arc"] .surface-card .nfc-next-service-flow-card,
body[data-client-brand="nile-reed"] .surface-card .nfc-next-service-flow-card,
body[data-client-brand="barber-commons"] .surface-card .nfc-next-service-flow-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 244, 239, 0.88)),
    rgba(255, 255, 255, 0.82);
}

body[data-client-brand="arc"] .surface-card .nfc-next-service-flow-card :is(h3, p, .nfc-kicker, .nfc-meta),
body[data-client-brand="nile-reed"] .surface-card .nfc-next-service-flow-card :is(h3, p, .nfc-kicker, .nfc-meta),
body[data-client-brand="barber-commons"] .surface-card .nfc-next-service-flow-card :is(h3, p, .nfc-kicker, .nfc-meta) {
  color: #11172c;
}

body[data-client-brand="arc"] .surface-card .nfc-next-service-flow-card .nfc-kicker,
body[data-client-brand="nile-reed"] .surface-card .nfc-next-service-flow-card .nfc-kicker,
body[data-client-brand="barber-commons"] .surface-card .nfc-next-service-flow-card .nfc-kicker {
  color: var(--client-brand-primary);
}

body[data-client-brand="arc"] .surface-card .nfc-next-service-flow-card .nfc-meta,
body[data-client-brand="nile-reed"] .surface-card .nfc-next-service-flow-card .nfc-meta,
body[data-client-brand="barber-commons"] .surface-card .nfc-next-service-flow-card .nfc-meta {
  color: #36405b;
}

.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-panel-shortcuts {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nfc-email-campaign-setup-card {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.nfc-email-campaign-setup-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(150px, 0.7fr));
  gap: 12px;
}

.nfc-email-dedupe-toggle {
  margin: 0;
}

.nfc-email-campaign-setup-actions {
  margin-top: 0;
}

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

.nfc-email-saved-campaigns-panel summary {
  color: #5c4034;
  cursor: pointer;
  font-weight: 800;
}

.nfc-email-saved-campaigns-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.nfc-email-saved-campaign-row {
  align-items: center;
  background: rgba(255, 253, 249, 0.9);
  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-saved-campaign-row.is-active {
  border-color: rgba(111, 77, 61, 0.42);
  box-shadow: inset 0 0 0 1px rgba(111, 77, 61, 0.18);
}

.nfc-email-saved-campaign-row strong,
.nfc-email-saved-campaign-row small {
  display: block;
}

.nfc-email-saved-campaign-row small {
  color: #75594c;
  margin-top: 3px;
}

.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-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nfc-email-summary-actions .btn {
  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-tag.is-after-hours {
  background: #173222;
  color: #fff8ed;
  border: 1px solid #173222;
}

.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;
  min-width: 0;
  padding: 14px;
}

.nfc-workbook-product h4,
.nfc-workbook-product p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.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-email-campaign-setup-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-client-events-grid,
  .nfc-client-events-body .nfc-client-event-card,
	  .nfc-next-steps-grid,
  .nfc-next-steps-grid[data-count="2"],
  .nfc-next-steps-grid[data-count="3"],
  .nfc-next-steps-grid[data-count="4"] {
    grid-template-columns: 1fr;
  }

  .nfc-next-step-catalogue-tools {
    grid-template-columns: 1fr;
  }

  .nfc-routine-cart-card,
  .nfc-shop-all-products-footer,
  .nfc-empty-products-card {
    grid-template-columns: 1fr;
  }

  .nfc-routine-cart-card .btn,
  .nfc-shop-all-products-footer .btn,
  .nfc-empty-products-card .btn {
    width: 100%;
    white-space: normal;
  }

  .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-product-recommendations-title-row {
    align-items: stretch;
  }

  .nfc-shop-all-products-btn {
    width: 100%;
  }

  .nfc-workbook-product-grid {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    overflow-x: visible;
    padding-bottom: 4px;
  }

  .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-brand-switcher {
    width: min(150px, 44vw);
    height: auto;
    padding: 7px;
  }

  .nfc-brand-switch-select {
    min-height: 32px;
    font-size: 0.76rem;
  }

  .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);
  }
}

@media (max-width: 900px) {
  html[data-client-brand="arc"]::before,
  html[data-client-brand="nile-reed"]::before,
  html[data-client-brand="barber-commons"]::before {
    background-image:
      linear-gradient(180deg, rgba(6, 8, 14, 0.08), rgba(6, 8, 14, 0.34)),
      linear-gradient(90deg, rgba(var(--client-brand-primary-rgb), 0.44), rgba(var(--client-brand-secondary-rgb), 0.15)),
      var(--page-bg-image-mobile);
    background-position: center center;
    background-size: cover;
  }

  html[data-client-brand="arc"]::before {
    background-image:
      linear-gradient(180deg, rgba(6, 8, 14, 0.08), rgba(6, 8, 14, 0.34)),
      linear-gradient(90deg, rgba(20, 63, 145, 0.48), rgba(7, 25, 71, 0.18)),
      var(--page-bg-image-mobile);
  }
}

.nfc-email-icon-tool[aria-pressed="true"] {
  background: #e3cbb8;
  border-color: #7a513f;
  box-shadow: inset 0 0 0 1px #7a513f;
}

/* The page uses a light font weight. Native `bolder` only reaches 400 from
   that base, so give email emphasis an actual bold weight for editing. */
:is(.nfc-email-rich-editor, .nfc-email-signature-editor) :is(b, strong) {
  font-weight: 700;
}
:is(.nfc-email-rich-editor, .nfc-email-signature-editor) :is(i, em) {
  font-style: italic;
}
:is(.nfc-email-rich-editor, .nfc-email-signature-editor) u {
  text-decoration: underline;
}
