/* Bio editor, split-pane editor + live preview */

.bio-editor {
  display: grid;
  grid-template-columns: minmax(0, 460px) 1fr;
  gap: 0;
  min-height: calc(100vh - 76px);
}

.bio-controls {
  border-right: 1px solid var(--bd);
  padding: 32px 28px 80px;
  overflow-y: auto;
  max-height: calc(100vh - 76px);
  background: var(--bg2);
}

.bio-ed-head { margin-bottom: 28px; }

/* Sections (collapsible) */
.bio-section {
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 18px;
  margin-bottom: 14px;
  overflow: hidden;
}
.bio-section-title {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px;
  font-family: var(--display);  font-weight: 600;
  font-size: 1.1rem; color: var(--t1);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.bio-section-title::-webkit-details-marker { display: none; }
.bio-section-title::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--t3);
  border-bottom: 1.5px solid var(--t3);
  transform: rotate(45deg);
  transition: transform 0.24s var(--ease);
}
.bio-section[open] > .bio-section-title::after { transform: rotate(-135deg); }
.bio-section-body { padding: 0 18px 18px; }
.bio-section-count {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--t3); font-weight: 400;
  letter-spacing: 0.05em;
  background: var(--bg2);
  border: 1px solid var(--bd);
  padding: 2px 8px; border-radius: 100px;
}

.bio-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.bio-handle-row {
  display: flex; align-items: center;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 4px 10px 4px 14px;
  position: relative;
}
.bio-handle-prefix {
  font-family: var(--mono); font-size: 0.78rem; color: var(--t3);
  white-space: nowrap;
}
.bio-handle-row input {
  flex: 1; background: transparent; border: none;
  padding: 10px 6px;
  font-family: var(--mono); font-size: 0.86rem; color: var(--t1);
}
.bio-handle-row input:focus { outline: none; }
.bio-handle-status {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.06em; color: var(--t4);
}
.bio-handle-status.ok { color: var(--green, #059669); }
.bio-handle-status.bad { color: var(--red, #e11d48); }

/* Avatar */
.bio-avatar-upload {
  display: flex; gap: 14px; align-items: center;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 12px;
}
.bio-avatar-preview {
  width: 56px; height: 56px;
  border-radius: 100px;
  background: var(--bg2);
  border: 1px solid var(--bd);
  display: flex; align-items: center; justify-content: center;
  color: var(--t4);
  flex-shrink: 0;
  background-size: cover; background-position: center;
}
.bio-avatar-preview svg { width: 24px; height: 24px; }

.bio-mini-btn {
  background: var(--t1); color: var(--bg2);
  padding: 7px 14px; border-radius: 100px;
  border: none; cursor: pointer;
  font-family: var(--font); font-size: 0.8rem; font-weight: 500;
  transition: all 0.2s var(--ease);
  margin-right: 6px;
}
.dark .bio-mini-btn { background: var(--bg2); color: var(--t1); }
.bio-mini-btn:hover { transform: translateY(-1px); }
.bio-mini-btn-ghost {
  background: transparent; color: var(--t3);
  padding: 7px 14px; border-radius: 100px;
  border: 1px solid var(--bd);
  cursor: pointer;
  font-family: var(--font); font-size: 0.8rem; font-weight: 500;
  transition: all 0.2s var(--ease);
}
.bio-mini-btn-ghost:hover { color: var(--t1); border-color: var(--t3); }

/* Chips */
.bio-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.bio-chip {
  padding: 8px 14px; border-radius: 100px;
  background: var(--bg2);
  border: 1px solid var(--bd);
  color: var(--t2);
  font-family: var(--font); font-size: 0.78rem; font-weight: 500;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.bio-chip:hover { border-color: var(--t3); color: var(--t1); }
.bio-chip.is-active {
  background: var(--t1); color: var(--bg2);
  border-color: var(--t1);
}
.dark .bio-chip.is-active { background: var(--bg2); color: var(--t1); border-color: var(--bg2); }

.bio-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.bio-toggle input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Link items */
.bio-link-card {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
}
.bio-link-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.bio-link-icon {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--bg3); color: var(--t2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.24s var(--ease);
}
.bio-link-icon svg { width: 16px; height: 16px; }
.bio-link-service {
  flex: 1; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.08em; color: var(--t3); text-transform: uppercase;
}
.bio-link-handle { display: flex; gap: 4px; }
.bio-link-handle button {
  background: transparent; border: none; cursor: pointer;
  width: 26px; height: 26px; border-radius: 100px;
  display: flex; align-items: center; justify-content: center;
  color: var(--t3);
  transition: all 0.15s;
}
.bio-link-handle button:hover { background: var(--bg3); color: var(--t1); }
.bio-link-handle button.bio-link-remove:hover { color: #e11d48; background: rgba(225, 29, 72, 0.1); }
.bio-link-handle svg { width: 14px; height: 14px; }

.bio-link-body input,
.bio-link-body textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--font); font-size: 0.86rem;
  color: var(--t1);
  margin-bottom: 6px;
}
.bio-link-body input:focus,
.bio-link-body textarea:focus { outline: none; border-color: var(--accent); }
.bio-link-body input.is-url { font-family: var(--mono); font-size: 0.78rem; }

/* Disabled chip state — used when a chip choice doesn't apply for the current
   theme (e.g. button-style picks under Gallery, where the theme owns the link
   layout). Kept clickable-looking-but-muted so users see they exist but understand
   the current theme overrides them. */
.bio-chip.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: var(--t4);
}
.bio-chip.is-disabled:hover { opacity: 0.5; transform: none; }

/* Status preset chips — quick-fill suggestions below the status input. Each
   chip click fills the input with the preset value (kept short here as a label;
   the actual fill text is in data-status). Datalist on the input itself handles
   typeahead with a fuller preset list. */
.bio-status-presets {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px;
}
.bio-status-preset {
  font-family: var(--mono);
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--t3);
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 100px;
  padding: 5px 10px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.bio-status-preset:hover {
  color: var(--t1);
  border-color: var(--t3);
  background: var(--bg);
}

/* Preview pane — phone-shaped frame that grows with content instead of clipping
   inside an emulator scroll. 320px matches iPhone SE logical width — feels like
   a real device, not a thumbnail. Sticky so it follows the controls column. */
.bio-preview-wrap {
  background: var(--bg);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 32px 24px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  scrollbar-width: none;
}
.bio-preview-wrap::-webkit-scrollbar { display: none; }

.bio-preview-frame {
  width: 400px;
  min-height: 600px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bp-bg, var(--bg2));
  box-shadow:
    0 1px 2px rgba(70, 60, 50, 0.06),
    0 24px 48px -16px rgba(70, 60, 50, 0.20);
  transition: min-height 240ms cubic-bezier(.2, .8, .2, 1);
}
@media (max-width: 1280px) {
  .bio-preview-frame { width: 360px; }
}
@media (max-width: 1100px) {
  .bio-preview-frame { width: 320px; }
}
.dark .bio-preview-frame {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 24px 48px -16px rgba(0, 0, 0, 0.55);
}

@media (max-width: 1024px) {
  .bio-editor { grid-template-columns: 1fr; }
  .bio-controls { max-height: none; border-right: none; border-bottom: 1px solid var(--bd); }
  .bio-preview-wrap { max-height: none; padding: 20px; }
}
@media (max-width: 600px) {
  .bio-controls { padding: 24px 18px 60px; }
  .bio-field-row { grid-template-columns: 1fr; }
}

/* === Public link page (independent of editor styles) === */
.bp { /* bio-page wrapper class */
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 20px 80px;
  position: relative;
  font-family: var(--font);
  color: var(--t1);
}
.bp-inner { width: 100%; max-width: 520px; position: relative; z-index: 1; }
.bp-head { text-align: center; margin-bottom: 40px; }

.bp-avatar {
  width: 110px; height: 110px;
  margin: 0 auto 22px;
  background-size: cover; background-position: center;
  background-color: var(--bp-card);
  border: 2px solid var(--bp-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--t3);
  position: relative;
  overflow: hidden;
}
.bp-avatar.shape-circle { border-radius: 100px; }
.bp-avatar.shape-square { border-radius: 22px; }
.bp-avatar.shape-blob { border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%; }
.bp-avatar.shape-hex {
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
  border: none;
  background-color: var(--bp-card);
}

.bp-name {
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--bp-text);
}
.bp-bio {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--bp-text-mute);
  margin-bottom: 12px;
}
.bp-meta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.bp-meta-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bp-text-mute);
}
.bp-meta-item svg { width: 11px; height: 11px; }

/* Layouts */
.bp-links-stack { display: flex; flex-direction: column; gap: 12px; }
.bp-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bp-links-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bp-links-mosaic .bp-link:nth-child(3n+1) { grid-column: span 2; }
.bp-links-magazine { display: flex; flex-direction: column; gap: 24px; }
.bp-links-magazine .bp-link {
  border-radius: 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--bp-border);
  padding: 22px 0 4px;
  flex-direction: column;
  align-items: flex-start;
}

/* Buttons */
.bp-link {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--bp-card);
  border: 1px solid var(--bp-border);
  border-radius: 16px;
  color: var(--bp-text);
  text-decoration: none;
  transition: all 0.32s var(--ease);
  position: relative;
  overflow: hidden;
}
.bp-link:hover {
  transform: translateY(-2px);
  border-color: var(--bp-accent);
  box-shadow: 0 14px 30px -14px var(--bp-shadow);
}
.bp-link-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--bp-icon-bg);
  color: var(--bp-icon-color, currentColor);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.32s var(--ease);
}
.bp-link:hover .bp-link-icon { transform: scale(1.06) rotate(-3deg); }
.bp-link-icon svg { width: 20px; height: 20px; }
.bp-link-text { flex: 1; min-width: 0; }
.bp-link-title {
  font-weight: 500; font-size: 0.96rem; line-height: 1.2;
  color: var(--bp-text);
}
.bp-link-desc { font-size: 0.78rem; color: var(--bp-text-mute); margin-top: 3px; }
.bp-link-badge {
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 100px;
  background: var(--bp-accent); color: var(--bp-accent-text);
  flex-shrink: 0;
}
.bp-link-arrow {
  width: 26px; height: 26px; border-radius: 100px;
  background: transparent; color: var(--bp-text-mute);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.32s var(--ease);
}
.bp-link:hover .bp-link-arrow {
  background: var(--bp-accent); color: var(--bp-accent-text);
  transform: translate(2px, -1px);
}
.bp-link-arrow svg { width: 12px; height: 12px; }

/* Button style variants */
.bp-link.style-pill { border-radius: 100px; padding: 14px 20px; }
.bp-link.style-sharp { border-radius: 4px; }
.bp-link.style-ghost { background: transparent; border: 1.5px solid var(--bp-border); }
.bp-link.style-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Index Card — library catalog row. Sharp 2px radius, label + monotype meta. */
.bp-link.style-index {
  border-radius: 2px;
  padding: 14px 16px;
  background: var(--bp-card);
  border: 1px solid var(--bp-border);
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.bp-link.style-index .bp-link-icon { display: none; }
.bp-link.style-index .bp-link-text { width: 100%; }
.bp-link.style-index .bp-link-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.005em;
  color: var(--bp-text);
}
.bp-link.style-index .bp-link-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bp-text-mute);
  margin-top: 6px;
}
.bp-link.style-index .bp-link-arrow {
  position: absolute;
  top: 14px; right: 14px;
  width: 18px; height: 18px;
  background: transparent !important;
  color: var(--bp-text-mute) !important;
}
.bp-link.style-index:hover {
  transform: none;
  border-color: var(--bp-text);
  box-shadow: 0 4px 0 0 var(--bp-border);
}

/* Magazine Teaser — wide 3:1 card with full-bleed thumb on left. */
.bp-link.style-magazine {
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--bp-border);
  background: transparent;
  overflow: hidden;
  gap: 0;
}
.bp-link.style-magazine .bp-link-icon {
  width: 96px; height: 96px;
  border-radius: 0;
  background: var(--bp-icon-bg);
  flex-shrink: 0;
  margin: 0;
}
.bp-link.style-magazine.has-thumb .bp-link-icon { display: none; }
.bp-link.style-magazine .bp-link-thumb {
  width: 96px; height: 96px;
  flex-shrink: 0;
  margin: 0;
}
.bp-link.style-magazine .bp-link-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.bp-link.style-magazine .bp-link-text {
  padding: 14px 0 14px 16px;
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.bp-link.style-magazine .bp-link-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.bp-link.style-magazine .bp-link-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bp-link.style-magazine .bp-link-arrow {
  align-self: center;
  margin-right: 12px;
  background: transparent !important;
  color: var(--bp-text-mute) !important;
}
.bp-link.style-magazine:hover {
  transform: none;
  background: var(--bp-icon-bg);
  border-color: var(--bp-border);
  box-shadow: none;
}
.bp-link.style-magazine:hover .bp-link-title { color: var(--bp-accent); }

/* Margin Note — annotated marginalia. Quote-rule on left, italic with one
   underlined "key term" treatment on the title. No box. */
.bp-link.style-margin {
  border: 0;
  background: transparent;
  border-left: 2px solid var(--bp-text-mute);
  border-radius: 0;
  padding: 6px 0 6px 18px;
  margin-left: 12px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  position: relative;
  transition: border-color 0.32s var(--ease), padding-left 0.32s var(--ease);
}
.bp-link.style-margin .bp-link-icon { display: none; }
.bp-link.style-margin .bp-link-text { width: 100%; }
.bp-link.style-margin .bp-link-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--bp-text-mute);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.32s var(--ease);
}
.bp-link.style-margin .bp-link-desc {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--bp-text-mute);
  line-height: 1.5;
  margin-top: 3px;
}
.bp-link.style-margin .bp-link-arrow {
  position: absolute;
  left: -24px; top: 6px;
  background: transparent !important;
  color: var(--bp-text-mute) !important;
  width: auto; height: auto;
}
.bp-link.style-margin .bp-link-arrow svg { display: none; }
.bp-link.style-margin .bp-link-arrow::after { content: "→"; font-size: 0.9rem; }
.bp-link.style-margin:hover {
  border-left-color: var(--bp-accent);
  padding-left: 22px;
  transform: none;
  box-shadow: none;
}
.bp-link.style-margin:hover .bp-link-title {
  text-decoration-color: var(--bp-accent);
  color: var(--bp-accent);
}

.bp-footer {
  margin-top: 48px;
  text-align: center;
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bp-text-mute);
  opacity: 0.7;
}
.bp-footer a {
  color: var(--bp-text);
  text-decoration: none;
  border-bottom: 1px solid var(--bp-border);
  padding-bottom: 1px;
}
.bp-footer a:hover { border-bottom-color: var(--bp-accent); }

/* ── Humanize: status, sections, featured, mood presets, custom color ── */

/* Status line, small live signal under bio */
.bp-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 6px 12px;
  background: var(--bp-icon-bg);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.06em;
  color: var(--bp-text-mute);
  max-width: 100%;
  text-align: left;
}
.bp-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bp-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bp-accent) 24%, transparent);
  animation: bpStatusPulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes bpStatusPulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--bp-accent) 24%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in srgb, var(--bp-accent) 12%, transparent); }
}

/* Section headers, typographic dividers between groups of links */
.bp-section-header {
  display: flex; align-items: center; gap: 14px;
  margin: 26px 0 12px;
  font-family: var(--mono);
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bp-text-mute);
}
.bp-section-header::after {
  content: ""; flex: 1; height: 1px;
  background: var(--bp-border);
}
.bp-section-header:first-child { margin-top: 8px; }

/* Featured/pinned link, visually dominant */
.bp-link.is-featured {
  position: relative;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--bp-accent) 8%, var(--bp-card)),
    var(--bp-card)
  );
  border-color: color-mix(in srgb, var(--bp-accent) 25%, var(--bp-border));
  box-shadow:
    0 12px 28px -16px color-mix(in srgb, var(--bp-accent) 50%, transparent),
    0 0 0 1px color-mix(in srgb, var(--bp-accent) 12%, transparent);
}
.bp-link.is-featured .bp-link-title {
  font-size: 1.05em;
}
.bp-link-pin {
  position: absolute;
  top: -8px; right: 14px;
  width: 26px; height: 26px;
  border-radius: 100px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bp-accent); color: var(--bp-accent-text, #fff);
  box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--bp-accent) 60%, transparent);
}
.bp-link-pin svg { width: 12px; height: 12px; }

/* === Editor extras === */

/* Mood preset buttons */
.bio-mood-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.bio-mood {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--bd);
  font-family: var(--font); font-size: 0.78rem; font-weight: 500;
  color: var(--t2); cursor: pointer;
  transition: all 0.2s var(--ease);
}
.bio-mood:hover { border-color: var(--accent); color: var(--t1); transform: translateY(-1px); }
.bio-mood.is-active {
  background: var(--t1); color: var(--bg2);
  border-color: var(--t1);
}
.dark .bio-mood.is-active { background: var(--bg2); color: var(--t1); border-color: var(--bg2); }
.bio-mood-dot {
  width: 14px; height: 14px; border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}

/* Custom accent color picker */
.qb-accent.qb-accent-custom {
  position: relative;
  background: conic-gradient(from 0deg,
    #ef4444, #f59e0b, #eab308, #22c55e, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #ef4444);
  cursor: pointer;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.qb-accent.qb-accent-custom input[type="color"] {
  position: absolute; inset: 0;
  opacity: 0;
  cursor: pointer;
  border: none;
  width: 100%; height: 100%;
}
.qb-accent-custom-icon {
  position: relative; z-index: 1;
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
  pointer-events: none;
}
.qb-accent-custom-icon svg { width: 100%; height: 100%; }
.bio-accent-hex {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px;
}
.bio-accent-hex input {
  flex: 1; max-width: 110px;
  padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--bd);
  background: var(--bg);
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--t1);
  text-transform: uppercase;
}
.bio-accent-hex input:focus { outline: 1px solid var(--accent); }

/* Per-link section header input (shows above the link card when toggled) */
.bio-link-section-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px dashed var(--bd);
  padding: 6px 0 8px 0;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--t3);
}
.bio-link-section-input:focus { outline: none; border-bottom-color: var(--accent); color: var(--t1); }

/* Featured/section toggle buttons in link card head */
.bio-link-handle button[data-act="featured"].is-active,
.bio-link-handle button[data-act="section"].is-active {
  color: var(--accent);
  background: var(--accent-light);
}

@media (max-width: 720px) {
  .bio-mood-row { grid-template-columns: repeat(2, 1fr); }
}

/* ────────── Expressive card styles ────────── */

/* POLAROID, white frame + tilt + accent strip */
.bp-link.style-polaroid {
  background: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 14px 14px 22px;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 8px 18px -8px rgba(0,0,0,0.18),
    0 14px 38px -16px rgba(0,0,0,0.22);
  position: relative;
  transform: rotate(-0.6deg);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
}
.bp-link.style-polaroid:nth-child(2n) { transform: rotate(0.7deg); }
.bp-link.style-polaroid:nth-child(3n) { transform: rotate(-0.3deg); }
.bp-link.style-polaroid:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 16px 32px -10px rgba(0,0,0,0.28);
}
.bp-link.style-polaroid::before {
  content: ""; position: absolute;
  left: 14px; right: 14px; top: 14px;
  height: 4px; background: var(--bp-accent);
  border-radius: 2px;
}
.bp-link.style-polaroid .bp-link-icon {
  width: 56px; height: 56px;
  border-radius: 4px; margin-top: 12px;
  margin-right: 14px;
}
.bp-link.style-polaroid .bp-link-text { padding-top: 16px; }
.bp-link.style-polaroid .bp-link-title { color: #1a1614; }
.bp-link.style-polaroid .bp-link-arrow { color: var(--bp-accent); opacity: 0.7; }

/* STICKY NOTE, pastel rotated square + handwritten feel */
.bp-link.style-sticky {
  background: linear-gradient(180deg, #fff8c4, #fff3a8);
  border: none;
  border-radius: 2px;
  padding: 18px 16px;
  box-shadow:
    0 6px 14px -6px rgba(180, 150, 0, 0.22),
    0 1px 2px rgba(0,0,0,0.06);
  transform: rotate(-1.2deg);
  position: relative;
  transition: transform 0.36s var(--ease), box-shadow 0.36s var(--ease);
  font-family: 'Caveat', 'Patrick Hand', 'Comic Sans MS', cursive;
}
.bp-link.style-sticky::before {
  content: ""; position: absolute;
  top: -8px; left: 50%; transform: translateX(-50%) rotate(2deg);
  width: 38px; height: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.25));
  border: 1px solid rgba(0,0,0,0.06);
}
.bp-link.style-sticky:nth-child(2n) { transform: rotate(1.4deg); background: linear-gradient(180deg,#ffd6e6,#ffc1d8); }
.bp-link.style-sticky:nth-child(3n) { transform: rotate(-0.6deg); background: linear-gradient(180deg,#c4f0d4,#a8e8be); }
.bp-link.style-sticky:nth-child(4n) { transform: rotate(0.9deg); background: linear-gradient(180deg,#c4dcff,#a8c8ff); }
.bp-link.style-sticky:hover { transform: rotate(0deg) translateY(-2px) scale(1.02); }
.bp-link.style-sticky .bp-link-title { font-size: 1.2rem; color: #1a1614; }
.bp-link.style-sticky .bp-link-desc { color: #4a4540; font-size: 0.95rem; }
.bp-link.style-sticky .bp-link-arrow { color: #1a1614; opacity: 0.5; }
.bp-link.style-sticky .bp-link-icon { background: rgba(0,0,0,0.06) !important; color: #1a1614 !important; }

/* TICKET, perforated edge + mono caps */
.bp-link.style-ticket {
  background: var(--bp-card);
  border: 1px dashed var(--bp-border);
  border-left: none;
  border-radius: 0 12px 12px 0;
  padding: 16px 18px 16px 26px;
  position: relative;
  font-family: var(--mono);
  transition: transform 0.24s var(--ease), background 0.24s var(--ease);
}
.bp-link.style-ticket::before {
  content: ""; position: absolute;
  left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--bp-accent);
  border-radius: 12px 0 0 12px;
}
.bp-link.style-ticket::after {
  content: ""; position: absolute;
  left: 9px; top: 0; bottom: 0;
  width: 0; border-left: 1px dashed var(--bp-border);
  background-image: radial-gradient(circle at 1.5px 1.5px, var(--bp-bg) 1.5px, transparent 1.6px);
  background-size: 3px 8px; background-repeat: repeat-y;
}
.bp-link.style-ticket .bp-link-title {
  font-family: var(--mono); font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 600;
}
.bp-link.style-ticket .bp-link-desc {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.04em;
}
.bp-link.style-ticket:hover { transform: translateX(3px); }

/* BRUTALIST, thick border, hard offset shadow */
.bp-link.style-brutalist {
  background: var(--bp-card);
  border: 2.5px solid var(--bp-text);
  border-radius: 0;
  box-shadow: 5px 5px 0 var(--bp-text);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  font-weight: 600;
}
.bp-link.style-brutalist:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--bp-accent);
}
.bp-link.style-brutalist .bp-link-icon {
  border-radius: 0;
  background: var(--bp-text) !important;
  color: var(--bp-bg) !important;
}
.bp-link.style-brutalist .bp-link-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.bp-link.style-brutalist .bp-link-arrow {
  border: 2px solid var(--bp-text);
  border-radius: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
}

/* HOLOGRAPHIC, animated rainbow shimmer */
.bp-link.style-holographic {
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--bp-accent) 18%, var(--bp-card)),
      var(--bp-card) 50%,
      color-mix(in srgb, var(--bp-accent) 18%, var(--bp-card))
    );
  border: 1px solid color-mix(in srgb, var(--bp-accent) 30%, var(--bp-border));
  position: relative;
  overflow: hidden;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
}
.bp-link.style-holographic::before {
  content: ""; position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 70%);
  background-size: 200% 100%;
  background-position: 200% 0;
  transition: background-position 0.85s var(--ease);
  pointer-events: none;
}
.bp-link.style-holographic::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 100, 200, 0.18), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(100, 200, 255, 0.16), transparent 40%);
  pointer-events: none;
  opacity: 0.9;
}
.bp-link.style-holographic:hover::before { background-position: -200% 0; }
.bp-link.style-holographic:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px -8px color-mix(in srgb, var(--bp-accent) 32%, transparent),
    0 0 0 1px color-mix(in srgb, var(--bp-accent) 30%, transparent);
}
.bp-link.style-holographic .bp-link-text,
.bp-link.style-holographic .bp-link-icon,
.bp-link.style-holographic .bp-link-arrow,
.bp-link.style-holographic .bp-link-badge { position: relative; z-index: 1; }

/* ────────── Avatar decorations (single-select) ──────────
   Replaces the old multi-toggle (tape/sparkles/confetti/frame) which looked
   chaotic when more than one was active. Now the user picks ONE decoration
   that lives on the avatar. Single-class scheme: .bp-avatar.deco-{name}.
   All animations are GPU-friendly (transform + opacity only). */

.bp-avatar { /* shared baseline so any decoration's pseudo-elements anchor right */
  position: relative;
}
.bp-avatar[class*="deco-"] { overflow: visible; }
/* Background-image fallback only kicks in when there's an avatar; the
   fallback SVG icon shouldn't get cut off by overflow:hidden either */

/* TAPE — yellow scrapbook strips at the top corners. Static. */
.bp-avatar.deco-tape::before,
.bp-avatar.deco-tape::after {
  content: ""; position: absolute;
  width: 64px; height: 22px;
  background: linear-gradient(180deg, rgba(255, 220, 100, 0.85), rgba(255, 200, 80, 0.65));
  border: 1px solid rgba(180, 140, 30, 0.18);
  box-shadow: 0 2px 4px rgba(180, 140, 30, 0.12);
  pointer-events: none;
  z-index: 2;
}
.bp-avatar.deco-tape::before { top: -10px; left: -12px; transform: rotate(-22deg); }
.bp-avatar.deco-tape::after  { top: -10px; right: -12px; transform: rotate(22deg); }

/* SPARKLES — three stars floating above the avatar, gentle bob loop. */
.bp-avatar.deco-sparkles::before {
  content: "✨ ✨ ✨";
  position: absolute;
  top: -22px; left: -28px; right: -28px;
  text-align: center;
  font-size: 18px;
  letter-spacing: 28px;
  pointer-events: none;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--bp-accent) 50%, transparent));
  animation: bpSparkleBob 3s ease-in-out infinite;
}
@keyframes bpSparkleBob {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(-2px); }
}

/* HALO — soft glow ring that breathes. Renders BEHIND the avatar via z-index. */
.bp-avatar.deco-halo::before {
  content: ""; position: absolute;
  inset: -12px;
  border-radius: inherit;
  background: radial-gradient(circle,
    transparent 58%,
    color-mix(in srgb, var(--bp-accent) 40%, transparent) 72%,
    transparent 88%);
  pointer-events: none;
  z-index: -1;
  animation: bpHaloBreathe 3.4s ease-in-out infinite;
}
@keyframes bpHaloBreathe {
  0%, 100% { transform: scale(1);    opacity: 0.65; }
  50%      { transform: scale(1.08); opacity: 1; }
}

/* STAMP — postmark ink stamp overlapping the bottom-right corner. Static.
   Borrows postal red even outside the postcard theme — it reads as a stamp
   regardless of palette. */
.bp-avatar.deco-stamp::after {
  content: "✓ FLOATI · 2026";
  position: absolute;
  bottom: -6px; right: -18px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(170, 51, 68, 0.92);
  border: 1.5px solid rgba(170, 51, 68, 0.78);
  border-radius: 100px;
  padding: 4px 10px;
  background: rgba(170, 51, 68, 0.06);
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
}

/* PULSE — two concentric rings that ripple outward, staggered for continuity. */
.bp-avatar.deco-pulse::before,
.bp-avatar.deco-pulse::after {
  content: ""; position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1.5px solid var(--bp-accent);
  pointer-events: none;
  animation: bpPulseRipple 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  opacity: 0;
}
.bp-avatar.deco-pulse::after { animation-delay: 1.2s; }
@keyframes bpPulseRipple {
  0%   { transform: scale(1);    opacity: 0.7; }
  80%  { opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* RING — single accent ring orbiting at a fixed offset. Subtle hue rotation.
   Lighter touch than Halo or Pulse — works on every theme. */
.bp-avatar.deco-ring::before {
  content: ""; position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1.5px solid var(--bp-accent);
  pointer-events: none;
  opacity: 0.6;
  animation: bpRingDrift 6s linear infinite;
}
@keyframes bpRingDrift {
  0%   { transform: rotate(0deg)   scale(1.0); opacity: 0.45; }
  50%  {                            opacity: 0.85; }
  100% { transform: rotate(360deg) scale(1.0); opacity: 0.45; }
}

/* Backward-compat — old saved pages used .has-tape and .has-sparkles. Map them
   to the new classes so existing public pages still render correctly. */
.bp-avatar.has-tape::before, .bp-avatar.has-tape::after {
  content: ""; position: absolute;
  width: 64px; height: 22px;
  background: linear-gradient(180deg, rgba(255, 220, 100, 0.85), rgba(255, 200, 80, 0.65));
  border: 1px solid rgba(180, 140, 30, 0.18);
  box-shadow: 0 2px 4px rgba(180, 140, 30, 0.12);
  pointer-events: none; z-index: 2;
}
.bp-avatar.has-tape::before { top: -10px; left: -12px; transform: rotate(-22deg); }
.bp-avatar.has-tape::after  { top: -10px; right: -12px; transform: rotate(22deg); }
.bp-avatar.has-sparkles::before {
  content: "✨ ✨ ✨"; position: absolute;
  top: -22px; left: -28px; right: -28px;
  text-align: center; font-size: 18px; letter-spacing: 28px;
  pointer-events: none;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--bp-accent) 50%, transparent));
  animation: bpSparkleBob 3s ease-in-out infinite;
}

/* Background image overlay */
.bp.has-bg-image { position: relative; }
.bp.has-bg-image > .bp-bg-image-layer {
  position: fixed; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}
.bp.has-bg-image[data-bg-style="contain"] > .bp-bg-image-layer {
  background-size: contain;
}
.bp.has-bg-image[data-bg-style="tile"] > .bp-bg-image-layer {
  background-size: 240px;
  background-repeat: repeat;
}
.bp.has-bg-image > .bp-bg-image-dim {
  position: fixed; inset: 0; z-index: -1;
  background: rgba(0,0,0,0); transition: background 0.32s var(--ease);
}

/* (Old full-page decorations removed: .bp.has-confetti and .bp.frame-wavy.
   These looked chaotic and have been replaced by single-select avatar decorations
   above. Public pages with old saved settings simply render without them.) */

/* ────────── Editor UI for new features ────────── */

/* BG image upload */
.bio-bg-upload {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border: 1px dashed var(--bd);
  border-radius: 12px;
  background: var(--bg);
}
.bio-bg-preview {
  width: 60px; height: 60px;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px solid var(--bd);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

/* (Old multi-select decoration toggles removed — replaced with single-select
   avatar-decoration chip row using the standard .bio-chip styling.) */

/* Per-link emoji input */
.bio-link-emoji-input {
  width: 60px; padding: 8px 10px;
  border: 1px solid var(--bd); border-radius: 10px;
  background: var(--bg);
  font-size: 1.1rem; text-align: center;
}

/* ── Public URL display + copy (in handle row) ── */
.bio-public-url {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px;
  padding: 9px 12px;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 10px;
}
.bio-public-url-label {
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--t3);
  flex-shrink: 0;
}
.bio-public-url-value {
  flex: 1;
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--t1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
}
.bio-public-url-copy {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 100px;
  background: var(--t1); color: var(--bg2);
  border: none; cursor: pointer;
  font-family: var(--font); font-size: 0.74rem; font-weight: 500;
  transition: all 0.18s var(--ease);
}
.dark .bio-public-url-copy { background: var(--bg2); color: var(--t1); }
.bio-public-url-copy:hover { transform: translateY(-1px); }
.bio-public-url-copy.is-copied {
  background: var(--green, #059669) !important;
  color: white !important;
}
.bio-public-url-copy svg { width: 12px; height: 12px; }

/* ── Edit-mode persistent banner ── */
.bio-edit-banner {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 8%, var(--bg2)),
    var(--bg2)
  );
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--bd));
  border-radius: 14px;
}
.bio-edit-banner-row {
  display: flex; align-items: center; gap: 12px;
}
.bio-edit-banner-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bio-edit-banner-icon svg { width: 18px; height: 18px; }
.bio-edit-banner-text {
  display: flex; flex-direction: column; gap: 2px;
  flex: 1; min-width: 0;
}
.bio-edit-banner-eyebrow {
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}
.bio-edit-banner-hint {
  font-size: 0.74rem; color: var(--t3); line-height: 1.4;
}
.bio-edit-banner-copy {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 100px;
  background: var(--t1); color: var(--bg2);
  border: none; cursor: pointer;
  font-family: var(--font); font-size: 0.78rem; font-weight: 500;
  flex-shrink: 0;
  transition: all 0.18s var(--ease);
}
.dark .bio-edit-banner-copy { background: var(--bg2); color: var(--t1); }
.bio-edit-banner-copy:hover { transform: translateY(-1px); }
.bio-edit-banner-copy.is-copied {
  background: var(--green, #059669) !important;
  color: white !important;
}
.bio-edit-banner-copy svg { width: 13px; height: 13px; }

@media (max-width: 720px) {
  .bio-edit-banner-row { flex-wrap: wrap; }
  .bio-edit-banner-copy { width: 100%; justify-content: center; }
}

/* Open Graph thumbnail (replaces icon when og_image is present) */
.bp-link-thumb {
  width: 56px; height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bp-icon-bg);
  display: flex; align-items: center; justify-content: center;
}
.bp-link-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.bp-link.has-thumb { gap: 14px; }
.bp-link.has-thumb .bp-link-text { gap: 4px; }

@media (max-width: 720px) {
  .bp-link-thumb { width: 48px; height: 48px; }
}

/* Bio analytics card (edit mode) */
.bio-stats {
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
}
.bio-stats-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
.bio-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 14px;
}
.bio-stat {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}
.bio-stat-num {
  font-family: var(--display);  font-weight: 600;
  font-size: 1.6rem; line-height: 1; color: var(--t1);
}
.bio-stat-label {
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--t3); margin-top: 6px;
}
.bio-top-clicks-list {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: flex; flex-direction: column; gap: 4px;
}
.bio-top-clicks-list li {
  display: grid; grid-template-columns: 22px 1fr auto;
  gap: 10px; align-items: center;
  padding: 8px 12px; border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--bd2);
  font-size: 0.84rem;
}
.bio-top-clicks-rank {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--t3);
}
.bio-top-clicks-title {
  color: var(--t1); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bio-top-clicks-count {
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--accent); font-weight: 500;
}

/* Help button + slide-in drawer (replaces inline how-to-use details) */

.help-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 6px; border-radius: 100px;
  background: var(--bg);
  border: 1px solid var(--bd);
  color: var(--t3); cursor: pointer;
  font-family: var(--mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: all 0.18s var(--ease);
  vertical-align: middle;
}
.help-trigger:hover { color: var(--accent); border-color: var(--accent); }
.help-trigger-icon {
  width: 18px; height: 18px; border-radius: 100px;
  background: var(--accent-light); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display);  font-weight: 700;
  font-size: 0.78rem; line-height: 1;
}
.help-trigger:hover .help-trigger-icon { background: var(--accent); color: white; }

.help-backdrop {
  position: fixed; inset: 0; z-index: 990;
  background: rgba(26, 22, 20, 0.36);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.24s var(--ease);
}
.help-backdrop.is-open { opacity: 1; pointer-events: auto; }

.help-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 380px; max-width: 92vw;
  z-index: 991;
  background: var(--bg2);
  border-left: 1px solid var(--bd);
  box-shadow: -30px 0 60px -20px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.help-drawer.is-open { transform: translateX(0); }
.help-drawer-head {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--bd);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, var(--bg2)), var(--bg2));
}
.help-drawer-icon {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--display);  font-weight: 700;
  font-size: 1.1rem;
}
.help-drawer-text { flex: 1; min-width: 0; }
.help-drawer-eyebrow {
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--t3);
}
.help-drawer-title {
  font-family: var(--display);  font-weight: 600;
  font-size: 1.15rem; color: var(--t1); letter-spacing: -0.015em;
  line-height: 1.2; margin-top: 4px;
}
.help-drawer-close {
  width: 32px; height: 32px; border-radius: 100px;
  background: transparent; border: 1px solid var(--bd);
  color: var(--t2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s var(--ease);
}
.help-drawer-close:hover { background: var(--bg); color: var(--t1); transform: rotate(90deg); }
.help-drawer-close svg { width: 14px; height: 14px; }

.help-drawer-body { padding: 22px 24px 28px; overflow-y: auto; flex: 1; }
.help-step {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--bd2);
}
.help-step:last-of-type { border-bottom: none; }
.help-step-num {
  width: 26px; height: 26px; border-radius: 100px;
  background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);  font-weight: 700;
  font-size: 0.86rem;
  flex-shrink: 0; line-height: 1;
}
.help-step-text { flex: 1; min-width: 0; }
.help-step-title {
  display: block;
  font-family: var(--font); font-weight: 600;
  font-size: 0.88rem; color: var(--t1);
  margin-bottom: 4px;
}
.help-step-body {
  font-size: 0.82rem; color: var(--t3); line-height: 1.55;
}
.help-drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--bd);
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.06em; color: var(--t4); text-align: center;
}

@media (max-width: 720px) {
  .help-drawer {
    top: auto;
    width: 100%; max-width: 100%;
    border-left: none;
    border-top: 1px solid var(--bd);
    border-radius: 24px 24px 0 0;
    max-height: 80vh;
    transform: translateY(100%);
    box-shadow: 0 -30px 60px -20px rgba(0,0,0,0.18);
  }
  .help-drawer.is-open { transform: translateY(0); }
  .help-drawer-head { padding: 18px 22px 14px; }
}
