@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Sans+TC:wght@400;500;700;900&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --white: #f7f5f2;
  --paper: #ffffff;
  --ink: #0a0a0a;
  --muted: #5c5c5c;
  --line: rgba(10, 10, 10, 0.12);
  --yellow: #e6b800;
  --yellow-hot: #ffd11a;
  --yellow-soft: rgba(230, 184, 0, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Bebas Neue", "Noto Sans TC", sans-serif;
  --sans: "Outfit", "Noto Sans TC", "PingFang TC", sans-serif;
  --cjk: "Noto Sans TC", "PingFang TC", sans-serif;
  --nav-h: 58px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  min-height: 100%;
}
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  /* Offset for fixed header (keeps chrome visible while scrolling). */
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
body > .nav { flex-shrink: 0; }
body > main {
  flex: 1 0 auto;
  width: 100%;
}
body > .footer { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.atmosphere {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 45% at 80% 8%, rgba(230, 184, 0, 0.08), transparent 55%),
    linear-gradient(180deg, #fff 0%, #f7f5f2 100%);
}
.nen { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.nen-ring {
  position: absolute; border-radius: 50%;
  border: 2px solid rgba(230, 184, 0, 0.2);
  animation: pulse-nen 6s var(--ease) infinite;
}
.nen-ring:nth-child(1) { width: min(70vw, 640px); height: min(70vw, 640px); top: -12%; right: -8%; }
.nen-ring:nth-child(2) {
  width: min(40vw, 320px); height: min(40vw, 320px); bottom: 20%; left: -5%;
  border-color: rgba(10,10,10,0.08); animation-delay: -2.5s;
}
@keyframes pulse-nen {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.draft-badge {
  display: none;
}
/* Full-screen loading popup (marketplace parity) */
.bh-loading-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(10, 10, 10, 0.48);
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s var(--ease);
}
.bh-loading-overlay.is-visible {
  opacity: 1; pointer-events: auto;
}
.bh-loading-card {
  width: min(100%, 18rem);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 28px 24px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 6px 6px 0 var(--yellow);
}
.bh-loading-spinner {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--ink);
  animation: bh-spin 0.7s linear infinite;
}
.bh-loading-label {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
@keyframes bh-spin {
  to { transform: rotate(360deg); }
}

.chat-thread-loading {
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.chat-thread-loading .bh-loading-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--ink);
  animation: bh-spin 0.7s linear infinite;
}

.mission-skeleton {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}
.mission-skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(10,10,10,0.06), rgba(10,10,10,0.12), rgba(10,10,10,0.06));
  background-size: 200% 100%;
  animation: bh-shimmer 1.1s ease-in-out infinite;
}
.mission-skeleton-line + .mission-skeleton-line { margin-top: 10px; }
.mission-skeleton-line.w60 { width: 60%; }
.mission-skeleton-line.w40 { width: 40%; }
.mission-skeleton-line.w80 { width: 80%; }
.detail-skeleton {
  min-height: 16rem;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(10,10,10,0.04), rgba(10,10,10,0.1), rgba(10,10,10,0.04));
  background-size: 200% 100%;
  animation: bh-shimmer 1.1s ease-in-out infinite;
}
@keyframes bh-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.toast {
  position: fixed; top: 72px; right: 16px; z-index: 90;
  padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 8px;
  font-size: 13px; font-weight: 600; box-shadow: 4px 4px 0 var(--yellow);
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--ink);
}
.nav-inner {
  max-width: 72rem; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.nav-brand .logo { width: 32px; height: 32px; object-fit: contain; }
.nav-loading {
  font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0.04em;
}
.lang-select-wrap {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.lang-select-wrap.is-compact .lang-select-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.lang-select {
  font: inherit; font-size: 12px; font-weight: 600;
  color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--ink); border-radius: 6px;
  padding: 6px 8px; cursor: pointer; max-width: 9rem;
}
.lang-select-compact { padding: 5px 8px; }
.nav-lang { display: flex; align-items: center; }
.footer-bottom-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.footer-lang .lang-select-wrap { color: var(--muted); }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--ink);
  width: 40px; height: 36px; cursor: pointer; font-size: 18px;
}
.nav-links {
  list-style: none; display: flex; align-items: center; gap: 16px;
  font-size: 13px; font-weight: 500;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta {
  padding: 8px 14px !important; background: var(--yellow) !important;
  color: var(--ink) !important; font-weight: 700 !important;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.nav-bar-end {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-bar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1;
  white-space: nowrap;
  border-radius: 0;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%) !important;
}
.nav-mobile-only,
.nav-icon-label {
  display: none !important;
}
.nav-account { position: relative; }
.nav-user {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 6px 0 2px; border: none; border-radius: 8px;
  font-size: 12px; font-weight: 600; color: var(--ink) !important;
  background: transparent; cursor: pointer; font-family: inherit;
}
.nav-user:hover, .nav-user.open, .nav-user.active {
  background: var(--yellow-soft);
}
.nav-user-icon {
  width: 28px; height: 28px; border-radius: 6px; background: #0a0a0a;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px; flex-shrink: 0; overflow: hidden;
}
.nav-user-icon .hunter-icon,
.nav-user-icon .hunter-icon-svg { width: 100%; height: 100%; display: block; }
.nav-user-name {
  max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-user-chev {
  width: 12px; height: 12px; margin-left: 4px; opacity: 0.7;
  background: currentColor;
  clip-path: polygon(15% 30%, 50% 75%, 85% 30%);
  flex-shrink: 0;
}
.nav-user.open .nav-user-chev { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 11.5rem;
  display: flex; flex-direction: column;
  background: var(--paper); border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink); padding: 6px;
}
.nav-dropdown[hidden] { display: none !important; }
.nav-dropdown a {
  display: block; padding: 10px 12px; border-radius: 6px;
  color: var(--ink) !important; font-size: 13px; font-weight: 600;
  text-decoration: none;
}
.nav-dropdown a:hover, .nav-dropdown a.active {
  background: var(--yellow-soft);
}
.nav-dropdown-title {
  font-family: var(--display); font-size: 11px; letter-spacing: 0.12em;
  color: var(--yellow); padding: 6px 12px 4px;
}
.nav-dropdown-empty {
  padding: 12px; font-size: 0.85rem; color: var(--muted); margin: 0;
}
.nav-notif-unread {
  font-weight: 700;
  background: color-mix(in srgb, var(--yellow) 18%, transparent);
}
.nav-icon-wrap { position: relative; }
.nav-icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: none; background: transparent;
  color: var(--ink) !important; cursor: pointer; padding: 0;
  text-decoration: none;
}
.nav-icon-btn:hover, .nav-icon-btn.open, .nav-icon-btn.active {
  background: var(--yellow-soft);
}
.nav-icon-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--yellow); color: var(--ink);
  border: 1px solid var(--ink);
  font-size: 10px; font-weight: 700; line-height: 14px; text-align: center;
}
.nav-dropdown-panel { min-width: 14rem; right: 0; }
.nav-dropdown-footer {
  margin-top: 4px; border-top: 1px solid var(--line) !important;
  border-radius: 0 0 6px 6px !important; color: var(--muted) !important;
  font-size: 12px !important;
}
.nav-dropdown-logout {
  border-top: none !important;
  margin-top: 0;
  color: var(--muted) !important;
}
.modal-title-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 12px; padding-right: 36px;
}
.modal-bookmark-btn.is-on,
.detail-bookmark-btn.is-on { color: var(--yellow); }
.detail-title-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 0;
}
.mission-actions {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.detail-bookmark-btn,
.mission-share-btn { flex-shrink: 0; }
.share-menu {
  position: fixed; z-index: 120;
  min-width: 11.5rem;
  display: flex; flex-direction: column;
  background: var(--paper); border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink); padding: 6px;
}
.share-menu-title {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--yellow);
  padding: 6px 12px 4px;
  margin: 0;
}
.share-menu button {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border: none; border-radius: 6px;
  background: transparent; color: var(--ink);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.share-menu button:hover {
  background: var(--yellow-soft);
}

/* Instagram Story share card preview */
.story-share-root {
  position: fixed; inset: 0; z-index: 130;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.story-share-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, 0.62);
  backdrop-filter: blur(8px);
}
.story-share-panel {
  position: relative; z-index: 1;
  width: min(100%, 26rem);
  max-height: min(92vh, 920px);
  overflow: auto;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 22px 20px 24px;
}
.story-share-title {
  font-size: 1.25rem; font-weight: 700; margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.story-share-hint {
  font-size: 0.88rem; color: var(--muted); line-height: 1.5; margin: 0 0 16px;
}
.story-share-preview {
  border: 2px solid var(--ink);
  background: #0a0a0a;
  aspect-ratio: 9 / 16;
  max-height: 52vh;
  margin: 0 auto 18px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.story-share-preview img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.story-share-actions {
  display: flex; flex-direction: column; gap: 10px;
}
.story-share-actions .btn { width: 100%; }
.bookmark-row {
  display: flex; gap: 8px; align-items: stretch;
}
.bookmark-row .mission { flex: 1; }
.bookmark-toggle {
  flex-shrink: 0; width: 42px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--paper); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.bookmark-toggle:hover { background: var(--yellow-soft); border-color: var(--ink); }
.bookmark-toggle.is-on { color: var(--yellow); border-color: var(--ink); background: var(--yellow-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--yellow); color: var(--ink);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-primary:hover { background: var(--yellow-hot); }
.btn-rect { clip-path: none; border-radius: 8px; }
.btn-ghost {
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: none;
}
.btn-ghost:hover { background: var(--yellow-soft); border-color: var(--ink); }
.btn-link {
  background: none; color: var(--ink); padding: 0; font-weight: 500;
  text-decoration: underline; text-underline-offset: 4px;
}
.btn-link:hover { color: var(--yellow); transform: none; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* Layout */
.wrap { max-width: 72rem; margin: 0 auto; padding: 32px 24px 56px; }
.wrap-sm { max-width: 28rem; margin: 0 auto; padding: 40px 24px 64px; }
.wrap-md { max-width: 40rem; margin: 0 auto; padding: 32px 24px 56px; }
.page-eyebrow {
  font-family: var(--display); font-size: 12px; letter-spacing: 0.18em;
  color: var(--yellow); margin-bottom: 6px;
}
.page-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.page-sub { font-size: 0.95rem; color: var(--muted); max-width: 40rem; margin-bottom: 24px; }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 6px; font-size: 11px; font-weight: 600;
  color: var(--muted); background: var(--paper);
}
.tag-ink { border-color: var(--ink); color: var(--ink); background: var(--yellow-soft); }

/* Hero */
.hero { border-bottom: 2px solid var(--ink); background: var(--paper); overflow: hidden; }
.hero-inner {
  max-width: 72rem; margin: 0 auto; padding: 48px 24px 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 12px;
  animation: brand-in 0.85s var(--ease) both;
}
.hero-cjk {
  font-family: var(--cjk); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px;
}
.hero h1 {
  font-weight: 700; font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 20px;
}
.hero h1 .line2 { display: block; }
.hero .subhead {
  font-size: 1.05rem; line-height: 1.6; color: var(--muted);
  max-width: 28rem; margin-bottom: 28px;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 24px; }
.payment-note { font-size: 0.8rem; line-height: 1.5; color: var(--muted); max-width: 32rem; }

/* Pure intro landing — one composition, first viewport */
.page-landing .footer { margin-top: 0; }
.page-landing .footer-top { padding-top: 28px; padding-bottom: 28px; }
.hero-landing {
  min-height: calc(100vh - var(--nav-h) - env(safe-area-inset-top, 0px));
  min-height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--ink);
}
.hero-landing .hero-inner {
  width: 100%;
  padding-top: 40px;
  padding-bottom: 48px;
}
.hero-landing .hero-copy {
  animation: brand-in 0.85s var(--ease) both;
}
.hero-landing .license-stage {
  animation: license-enter 1.1s var(--ease) 0.12s both;
}
@keyframes brand-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes license-enter {
  from { opacity: 0; transform: translateY(24px) rotate(-5deg) scale(0.94); }
  to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.license-stage {
  position: relative; display: flex; align-items: center; justify-content: flex-end; min-height: 340px;
}
.license-glow {
  position: absolute; width: 90%; height: 70%; right: 0;
  background: radial-gradient(ellipse, rgba(230,184,0,0.35), transparent 65%);
  filter: blur(16px);
  animation: glow-breathe 4s ease-in-out infinite;
}
.hunter-license {
  position: relative; width: min(100%, 340px); aspect-ratio: 1.58/1;
  background: #0a0a0a; border-radius: 18px; padding: 14px;
  box-shadow: 0 0 0 3px var(--yellow), 8px 12px 0 rgba(10,10,10,0.12);
  transform: rotate(-3deg);
  transition: transform 0.45s var(--ease);
}
.hunter-license:hover { transform: rotate(0deg) scale(1.02); }
.hunter-license::before {
  content: ""; position: absolute; inset: 8px;
  border: 2px solid rgba(255,255,255,0.35); border-radius: 12px; pointer-events: none;
}
.license-inner {
  position: relative; height: 100%; display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 10px; padding: 8px; color: #fff;
}
.license-photo {
  border: 2px solid rgba(255,255,255,0.4); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.license-photo .logo { width: 72%; object-fit: contain; }
.license-photo .stamp {
  position: absolute; bottom: 6px; right: 6px; font-family: var(--display);
  font-size: 11px; color: var(--yellow-hot); border: 1.5px solid var(--yellow);
  padding: 2px 6px; transform: rotate(-8deg); background: rgba(10,10,10,0.55);
}
.license-meta {
  display: flex; flex-direction: column; justify-content: space-between; font-size: 10px;
  min-width: 0;
}
.license-meta .assoc { font-family: var(--display); font-size: 13px; letter-spacing: 0.14em; }
.license-meta .assoc span {
  display: block; font-size: 9px; opacity: 0.65; margin-top: 2px; letter-spacing: 0.2em;
}
.license-meta .name-block { min-width: 0; }
.license-meta strong {
  display: block; font-family: var(--cjk); font-size: 16px; font-weight: 900;
  line-height: 1.2;
}
.license-meta em {
  font-style: normal; font-family: var(--display); font-size: 12px; color: var(--yellow-hot);
}
.license-meta .uni-line {
  margin: 4px 0 0;
  color: var(--yellow-hot);
  font-family: var(--cjk);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}
.license-meta .stars,
.rating-stars {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 6px;
}
.license-meta .stars i,
.rating-stars i {
  width: 10px; height: 10px; background: var(--yellow);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  display: inline-block;
}
.license-meta .stars i.hollow,
.rating-stars i.hollow {
  width: 11px;
  height: 11px;
  background: transparent;
  clip-path: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6b800' stroke-width='2'%3E%3Cpath d='M12 2l2.9 6.9L22 9.2l-5 4.9 1.2 7L12 17.8 5.8 21.1 7 14.1 2 9.2l7.1-0.3L12 2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.rating-stars .rating-meta {
  font-size: 0.8rem; color: var(--muted); margin-left: 2px;
}
.license-meta .rating-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}
.profile-hero .rating-stars,
.bio-header .rating-stars { margin-top: 4px; margin-bottom: 4px; }
.profile-hero .rating-stars i,
.bio-header .rating-stars i {
  width: 12px; height: 12px;
}
.profile-hero .rating-stars i.hollow,
.bio-header .rating-stars i.hollow {
  width: 13px; height: 13px;
}
.review-list { display: flex; flex-direction: column; gap: 12px; }
.review-card {
  border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px;
  background: var(--paper);
}
.review-card-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 6px;
}
.review-card-name { font-weight: 700; font-size: 0.9rem; }
.review-card .rating-stars { margin: 0; }
.review-card-body { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.license-meta .id-row {
  font-family: var(--display); font-size: 11px; letter-spacing: 0.16em; opacity: 0.75;
}
.license-name-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0 4px;
}
.license-name-fields input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--cjk);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 8px;
  outline: none;
}
.license-name-fields input::placeholder { color: rgba(255, 255, 255, 0.4); font-weight: 500; }
.license-name-fields input:focus { border-color: var(--yellow); background: rgba(230, 184, 0, 0.12); }
/* Onboarding license confirm */
.license-confirm {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.license-confirm .license-stage {
  justify-content: center; min-height: 0; width: 100%;
}
.license-confirm .hunter-license {
  width: min(100%, 360px); transform: rotate(-2deg);
}
.license-confirm .hunter-license:hover { transform: rotate(0deg) scale(1.02); }
.license-photo.icon-face {
  line-height: 1;
  cursor: pointer;
  background: #0a0a0a;
  padding: 8px;
  overflow: hidden;
}
.license-photo.icon-face:focus-visible {
  outline: 2px solid var(--yellow); outline-offset: 2px;
}
.license-photo .icon-glyph,
.license-photo .hunter-icon {
  display: flex; width: 100%; height: 100%;
  align-items: center; justify-content: center;
}
.hunter-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.hunter-icon-svg {
  width: 100%; height: 100%; display: block;
}
.icon-picker {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  max-width: 360px;
}
.icon-picker button {
  width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 8px;
  background: #0a0a0a; cursor: pointer; line-height: 1; padding: 6px;
}
.icon-picker button:hover { border-color: var(--ink); box-shadow: 0 0 0 2px var(--yellow-soft); }
.icon-picker button.active {
  border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink), 0 0 0 2px var(--yellow);
}

/* Flow strip */
.flow-strip {
  max-width: 72rem; margin: 0 auto; padding: 28px 24px;
  border-bottom: 1px solid var(--line);
}
.flow-strip ol {
  list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.flow-strip li {
  border: 1px solid var(--line); border-radius: 8px; padding: 14px;
  background: var(--paper); font-size: 13px;
}
.flow-strip strong { display: block; font-size: 12px; letter-spacing: 0.04em; margin-bottom: 4px; }
.flow-strip span { color: var(--muted); font-size: 12px; }

/* Cards / lists */
.panel {
  border: 2px solid var(--ink); background: var(--paper); overflow: hidden;
}
.panel-soft { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.filter-bar {
  margin-bottom: 16px; padding: 16px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--paper);
}
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-search, .filter-select, .field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  background: #fff; outline: none; width: 100%;
}
.filter-search, .filter-select { width: auto; height: 42px; font-size: 13px; font-weight: 500; }
.filter-search { flex: 1 1 12rem; min-width: 12rem; max-width: 20rem; }
.filter-search:focus, .filter-select:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.field textarea { min-height: 110px; resize: vertical; }

.mission-list { display: flex; flex-direction: column; }
.mission {
  display: block; width: 100%; text-align: left; border: none;
  border-bottom: 1px solid var(--line); background: var(--paper); padding: 14px 16px;
  cursor: pointer; color: inherit;
}
.mission:hover, .mission.selected { background: var(--yellow-soft); }
.mission-top {
  display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px;
}
.mission-title { font-weight: 700; font-size: 0.95rem; }
.mission-reward { font-weight: 700; white-space: nowrap; }
.mission-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.mission-loc, .mission-poster { font-size: 12px; color: var(--muted); }
.mission-poster { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.mission-poster-icon {
  width: 22px; height: 22px; padding: 2px; border-radius: 5px;
}
.mission-poster .dot {
  width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700;
}

.board-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 26rem; }
.list-pane { border-right: 1px solid var(--line); max-height: 70vh; overflow: auto; background: var(--white); }
.detail-pane { padding: 20px 22px; }
.detail-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem;
}
.detail-row dt { color: var(--muted); }
.detail-row dd { font-weight: 600; text-align: right; }

.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 8px;
}
.cat-chip, .area-chip {
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  padding: 14px 12px; text-align: left; font-size: 13px; font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}
.cat-chip:hover, .area-chip:hover, .cat-chip.active {
  border-color: var(--ink); background: var(--yellow-soft);
}
.cat-chip span, .area-chip span {
  display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 4px;
}

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Match license-step page width (wrap), not the narrower wrap-md form column */
.onboarding-choice {
  width: 100%;
  max-width: none;
}
.onboarding-choice-grid { gap: 16px; }
.onboarding-choice-grid .choice {
  padding: 22px 20px; min-height: 8rem;
  text-decoration: none; color: inherit;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.onboarding-choice-grid .choice strong { font-size: 1.05rem; }
.onboarding-choice-grid .choice span { font-size: 0.9rem; }
.onboarding-choice-grid .choice:hover {
  border-color: var(--ink);
  background: var(--yellow-soft);
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--ink);
}
.onboarding-choice-grid .choice:active {
  transform: translateY(0);
  box-shadow: 1px 1px 0 var(--ink);
}
.choice {
  border: 1px solid var(--line); border-radius: 8px; padding: 14px; cursor: pointer;
  background: var(--paper); text-align: left;
}
.choice.active { border-color: var(--ink); background: var(--yellow-soft); }
.choice strong { display: block; margin-bottom: 4px; }
.choice span { font-size: 0.8rem; color: var(--muted); }

.wizard {
  border: 2px solid var(--ink); background: var(--paper);
  display: grid; grid-template-columns: 200px 1fr; min-height: 26rem;
}
.wizard-nav { border-right: 2px solid var(--ink); padding: 20px 16px; background: var(--white); }
.wizard-nav p {
  font-family: var(--display); font-size: 11px; letter-spacing: 0.14em;
  color: var(--yellow); margin-bottom: 14px;
}
.wizard-nav ol { list-style: none; }
.wizard-nav li {
  padding: 10px; font-size: 13px; font-weight: 600; color: var(--muted);
  border-radius: 8px; margin-bottom: 4px;
}
.wizard-nav li.active { color: var(--ink); background: var(--yellow-soft); border: 1px solid var(--ink); }
.wizard-body { padding: 24px 28px; }
.wizard-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.check-row {
  display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--muted);
}
.check-row input { margin-top: 3px; }
.check-row.check-row-ink { color: var(--ink); font-weight: 600; }

/* Post flow — date / time of day (mirrors production wizard) */
.date-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.date-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(10, 10, 10, 0.2); border-radius: 8px;
  background: var(--paper); color: var(--ink);
  padding: 10px 16px; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.date-pill:hover { border-color: var(--ink); background: var(--yellow-soft); }
.date-pill.active {
  border-color: var(--ink); background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
}
.date-pill .chev {
  width: 12px; height: 12px; opacity: 0.7;
  background: currentColor;
  clip-path: polygon(20% 35%, 50% 70%, 80% 35%);
}
.date-picker-row { margin-top: 10px; }
.date-picker-row input[type="date"] {
  max-width: 16rem;
}
.time-of-day-box {
  margin-top: 4px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
}
.time-slot-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px;
}
@media (min-width: 640px) {
  .time-slot-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}
.time-slot {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 1px solid rgba(10, 10, 10, 0.12); border-radius: 12px;
  background: var(--canvas); padding: 14px 8px; cursor: pointer;
  font-family: inherit; color: var(--ink);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.time-slot:hover { border-color: var(--ink); background: var(--yellow-soft); }
.time-slot.active {
  border-color: var(--ink); background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
}
.time-slot .slot-icon {
  width: 22px; height: 22px; margin-bottom: 6px; color: var(--muted);
}
.time-slot.active .slot-icon { color: var(--ink); }
.time-slot .slot-label { font-size: 0.8rem; font-weight: 700; }
.time-slot .slot-hint { font-size: 0.7rem; color: var(--muted); margin-top: 2px; }
.time-slot.active .slot-hint { color: rgba(10, 10, 10, 0.65); }
.field-error { color: #b91c1c; font-size: 0.85rem; margin-top: 6px; }

.auth-card {
  border: 2px solid var(--ink); background: var(--paper); padding: 28px;
}
.auth-card h1 { font-size: 1.35rem; margin-bottom: 8px; }
.auth-card .lead { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }
.steps-progress {
  font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 16px;
}
.interest-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-grid label {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
  font-size: 13px; cursor: pointer;
}
.interest-grid input { display: none; }
.interest-grid label:has(input:checked) {
  border-color: var(--ink); background: var(--yellow-soft); font-weight: 600;
}

.profile-hero {
  border: 2px solid var(--ink); padding: 24px; background: var(--paper);
  display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px;
}
.avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem;
  flex-shrink: 0;
}
.avatar.avatar-icon {
  border-radius: 8px; padding: 6px; overflow: hidden;
}
.chat-layout {
  display: grid; grid-template-columns: 240px 1fr; border: 2px solid var(--ink); min-height: 28rem;
}
.chat-sidebar { border-right: 1px solid var(--line); background: var(--white); overflow: auto; }
.chat-thread { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble {
  max-width: 80%; padding: 10px 12px; border-radius: 8px; font-size: 0.9rem;
  border: 1px solid var(--line); background: var(--paper);
}
.chat-bubble.mine { align-self: flex-end; background: var(--yellow-soft); border-color: var(--ink); }
.chat-compose {
  margin-top: auto; display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line);
}
.chat-compose input { flex: 1; }
.chat-thread-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 4px;
}
.chat-hire-bar { display: flex; align-items: center; gap: 8px; }
.chat-bubble.chat-offer {
  border: 2px solid var(--ink);
  background: var(--paper);
  max-width: 90%;
}
.chat-bubble.chat-offer.mine { background: var(--yellow-soft); }
.chat-offer-eyebrow {
  font-family: var(--display); font-size: 11px; letter-spacing: 0.12em;
  color: var(--yellow); margin-bottom: 4px;
}
.chat-offer-amount {
  font-family: var(--display); font-size: 1.6rem; font-weight: 700;
  letter-spacing: 0.02em; line-height: 1.1; margin-bottom: 6px;
}
.chat-offer-body { font-size: 0.88rem; color: var(--muted); margin: 0 0 8px; }
.chat-offer-status { font-size: 0.8rem; font-weight: 600; margin-bottom: 10px; }
.chat-offer-accept { margin-top: 2px; }
.chat-bubble.chat-system {
  align-self: center; max-width: 92%;
  background: transparent; border-style: dashed;
  color: var(--muted); font-size: 0.82rem; text-align: center;
}
.hire-offer-panel { width: min(24rem, 100%); }
.review-stars-input { display: flex; gap: 6px; margin-top: 6px; }
.review-star-btn {
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--muted);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
}
.review-star-btn.active { background: var(--yellow); color: var(--ink); }
.poster-manage-panel { width: min(28rem, 100%); }
.poster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.poster-actions .btn { flex: 1 1 8rem; justify-content: center; }
.applicants-block { margin-bottom: 18px; }
.applicant-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.applicant-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1.5px solid var(--line);
  background: var(--paper);
}
.applicant-row-body { flex: 1; min-width: 0; }
.applicant-row-name {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.applicant-row-meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.applicant-row-msg {
  margin: 6px 0 4px;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.applicant-row .btn { flex-shrink: 0; align-self: center; }
.applicant-row-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  flex-shrink: 0;
}
.applicant-row-actions .btn { align-self: stretch; }
.modal-status-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1.5px solid var(--ink);
  background: var(--yellow-soft);
  font-weight: 600;
  font-size: 0.9rem;
}
.chat-next-steps {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 0.85rem;
  color: var(--muted);
}
.chat-next-steps ul {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.55;
}
.chat-offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.complete-pick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 40vh;
  overflow: auto;
}
.complete-pick {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  cursor: pointer;
  background: var(--paper);
}
.complete-pick:has(input:checked) {
  border-color: var(--ink);
  background: var(--yellow-soft);
}
.complete-pick input { margin-top: 3px; accent-color: var(--ink); }
.complete-pick strong { display: block; font-size: 0.95rem; }
.complete-pick-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.star-picker {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.star-pick {
  appearance: none;
  border: 0;
  background: transparent;
  color: #d0d0d0;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.star-pick.on,
.star-pick:hover { color: var(--ink); }

/* Mission detail modal */
.modal-root[hidden] { display: none !important; }
.modal-root {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, 0.45);
  animation: modal-fade 0.2s var(--ease) both;
}
.modal-panel {
  position: relative; z-index: 1;
  width: min(36rem, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 24px 22px 28px;
  animation: modal-pop 0.28s var(--ease) both;
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); cursor: pointer;
  font-size: 1.25rem; line-height: 1; color: var(--ink);
}
.modal-close:hover { background: var(--yellow-soft); border-color: var(--ink); }
.modal-banner {
  margin: -4px 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  background: var(--yellow-soft);
  font-size: 0.85rem; font-weight: 600;
}
@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* Mobile chat opens as a bottom sheet popup (list stays on the page). */
.chat-modal-root {
  align-items: flex-end;
  padding: 0;
}
.chat-modal-panel {
  width: 100%;
  max-height: min(92vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-bottom: none;
  box-shadow: 0 -8px 32px rgba(10, 10, 10, 0.18);
}
.chat-modal-panel .chat-thread {
  display: flex !important;
  flex: 1;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
.chat-modal-panel #bubbles {
  min-height: 12rem;
}

.empty {
  padding: 28px; text-align: center; color: var(--muted); font-size: 0.9rem;
  border: 1.5px dashed var(--line); border-radius: 8px;
}

.footer { margin-top: 40px; border-top: 2px solid var(--ink); background: var(--paper); }
.footer-top {
  max-width: 72rem; margin: 0 auto; padding: 40px 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px;
}
.footer-note h3 {
  font-size: 1rem; font-weight: 600; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.footer-note .logo { width: 28px; height: 28px; object-fit: contain; }
.footer-note p { font-size: 0.88rem; color: var(--muted); max-width: 28rem; }
.footer-cols { display: flex; gap: 48px; }
.footer-cols ul { list-style: none; font-size: 0.88rem; }
.footer-cols li + li { margin-top: 10px; }
.footer-cols a:hover { text-decoration: underline; color: var(--yellow); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 24px 48px; }
.footer-bottom-inner {
  max-width: 72rem; margin: 0 auto; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; font-size: 0.8rem; color: var(--muted);
}

/* Account pages — left vertical tabs (fixed shell so tabs don't resize the box) */
.account-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  border: 2px solid var(--ink);
  background: var(--paper);
  height: min(70vh, 40rem);
  min-height: 36rem;
  max-height: min(70vh, 40rem);
  overflow: hidden;
}
.account-nav {
  border-right: 2px solid var(--ink);
  padding: 20px 14px;
  background: var(--white);
  overflow: auto;
}
.account-nav-label {
  font-family: var(--display); font-size: 11px; letter-spacing: 0.14em;
  color: var(--yellow); margin-bottom: 14px;
}
.account-nav nav { display: flex; flex-direction: column; gap: 4px; }
.account-nav a {
  display: block; padding: 11px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent; /* keep size stable when active */
  box-sizing: border-box;
}
.account-nav a:hover { color: var(--ink); background: var(--yellow-soft); }
.account-nav a.active {
  color: var(--ink); background: var(--yellow-soft); border-color: var(--ink);
}
.account-main {
  padding: 24px 28px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}
.account-main .page-title { margin-bottom: 8px; }
.account-main .page-sub { margin-bottom: 20px; }
.account-filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 4px 0 16px;
}
.account-filters .filter-search { flex: 1 1 10rem; min-width: 8rem; }
.account-filters .filter-select { flex: 0 1 auto; }
.account-main .auth-card {
  border: none; padding: 0; background: transparent;
}
.account-main .panel {
  /* list wells scroll inside the fixed shell */
  border: none;
}
.bio-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 8px;
}
.bio-header .page-title { margin-bottom: 0; }
.bio-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.bio-section.bio-license {
  margin-top: 12px; padding-top: 0; border-top: none;
  display: flex; justify-content: center;
}
.bio-section-title {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.bio-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.4rem; height: 1.4rem; padding: 0 6px;
  border-radius: 999px; background: var(--yellow-soft);
  border: 1px solid var(--line); font-size: 0.75rem; color: var(--ink);
}
.bio-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px;
}
.bio-fact dt {
  font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-bottom: 2px;
}
.bio-fact dd {
  font-size: 0.95rem; font-weight: 600; color: var(--ink);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.bio-text {
  font-size: 0.95rem; line-height: 1.55; color: var(--ink); margin: 0;
}
.bio-muted { font-size: 0.9rem; color: var(--muted); }
.bio-missions .panel { margin-top: 4px; }
.profile-license-stage {
  justify-content: center; min-height: 0; width: 100%;
}
.profile-license-stage .hunter-license {
  width: min(100%, 340px);
  transform: rotate(-2deg);
}
.profile-license-stage .hunter-license:hover { transform: rotate(0deg) scale(1.02); }
.hunter-license--enlargeable {
  cursor: zoom-in;
}
.hunter-license--enlargeable:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 6px;
}
.profile-license-stage .license-photo.icon-face {
  pointer-events: none; cursor: inherit;
}

/* Profile hunter card enlarge lightbox */
.license-lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}
.license-lightbox.is-open { opacity: 1; }
.license-lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.license-lightbox-panel {
  position: relative; z-index: 1;
  width: min(92vw, 480px);
  transform: scale(0.86) rotate(-3deg);
  opacity: 0;
  transition: transform 0.38s var(--ease), opacity 0.28s var(--ease);
}
.license-lightbox.is-open .license-lightbox-panel {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}
.license-lightbox-stage { width: 100%; }
.license-lightbox .hunter-license--enlarged {
  width: 100%;
  max-width: none;
  transform: none;
  cursor: default;
  box-shadow: 0 0 0 3px var(--yellow), 16px 24px 0 rgba(10, 10, 10, 0.18);
}
.license-lightbox .hunter-license--enlarged:hover { transform: none; }
.license-lightbox .license-meta .assoc { font-size: 16px; }
.license-lightbox .license-meta strong { font-size: 20px; }
.license-lightbox .license-meta em { font-size: 14px; }
.license-lightbox .license-meta .uni-line { font-size: 13px; }
.license-lightbox .license-meta .id-row { font-size: 13px; }
.license-lightbox .rating-stars i { width: 12px; height: 12px; }
.license-lightbox .rating-stars i.hollow { width: 13px; height: 13px; }
.license-lightbox .rating-meta { font-size: 12px; color: rgba(255,255,255,0.75); }
.license-lightbox .modal-close {
  position: absolute; top: -12px; right: -12px; z-index: 2;
}
@media (max-width: 560px) {
  .bio-facts { grid-template-columns: 1fr; }
}

.faq details {
  border-bottom: 1px solid var(--line); padding: 14px 0;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-landing { min-height: auto; }
  .hero-landing .hero-inner { padding-top: 28px; padding-bottom: 36px; gap: 24px; }
  .license-stage { justify-content: center; order: -1; min-height: 260px; }
  .board-split, .wizard, .chat-layout, .account-layout, .flow-strip ol { grid-template-columns: 1fr; }
  .account-layout {
    height: auto;
    min-height: 32rem;
    max-height: none;
  }
  .account-nav { border-right: none; border-bottom: 2px solid var(--ink); }
  .account-nav nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .list-pane { max-height: none; border-right: none; border-bottom: none; }
  .detail-pane {
    display: none !important;
  }
  .chat-thread {
    display: none !important;
  }
  .wizard-nav { border-right: none; border-bottom: 2px solid var(--ink); }
  .wizard-nav ol { display: flex; flex-wrap: wrap; gap: 4px; }
  .choice-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }

  /* Mobile only: logo | post | menu — other links in a tidy column dropdown */
  .nav-inner {
    position: relative;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px;
  }
  .nav-brand {
    flex: 1;
    min-width: 0;
  }
  .nav-bar-end {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .nav-bar-cta {
    height: 32px;
    padding: 0 11px !important;
    font-size: 12px !important;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    font-size: 16px;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
    background: var(--paper);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links > li {
    width: 100%;
  }
  .nav-links > li > a:not(.nav-cta):not(.nav-icon-btn) {
    display: block;
    padding: 12px 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
  }
  .nav-lang {
    display: none !important;
  }
  .nav-desktop-cta {
    display: none !important;
  }
  .nav-mobile-only {
    display: flex !important;
  }
  .nav-account {
    display: none !important;
  }
  .nav-account .nav-user {
    display: none !important;
  }
  .nav-account .nav-user-chev,
  .nav-account > .nav-dropdown {
    display: none !important;
  }
  .nav-account-links {
    flex-direction: column;
    gap: 2px;
    margin: 0 0 8px;
  }
  .nav-account-links a {
    display: block;
    padding: 11px 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink) !important;
    text-decoration: none;
    border-radius: 6px;
  }
  .nav-account-links a:hover,
  .nav-account-links a.active {
    background: var(--yellow-soft);
  }
  .nav-icon-wrap {
    display: block;
    position: relative;
    padding: 0;
  }
  .nav-icon-wrap > .nav-icon-btn {
    width: 100%;
    height: auto;
    min-height: 44px;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 4px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
  }
  .nav-icon-label {
    display: inline !important;
  }
  .nav-icon-wrap > .nav-icon-btn .nav-icon-badge {
    position: static;
    margin-left: auto;
  }
  .nav-icon-wrap > .nav-dropdown {
    position: static;
    width: 100%;
    margin: 4px 0 8px;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
