:root {
  color-scheme: dark;
  --page-pad: clamp(10px, 4vw, 18px);
  --topbar-content-height: 64px;
  --topbar-height: calc(var(--topbar-content-height) + env(safe-area-inset-top));
  --bg: #0f0e0b;
  --panel: #201d17;
  --paper: #f3e7c9;
  --paper-2: #dac28f;
  --ink: #16120c;
  --text: #f8edcf;
  --muted: #c5b792;
  --gold: #d9aa45;
  --gold-2: #f3d486;
  --line: rgba(243, 212, 134, 0.28);
  --line-strong: rgba(243, 212, 134, 0.48);
  --danger: #d45f55;
  --radius: 8px;
  --museum-charcoal: #1d1a14;
  --museum-ink: #171510;
  --museum-burgundy: #4b302f;
  --museum-olive: #34382c;
  --museum-blue: #303842;
  font-family: ui-serif, Georgia, "Times New Roman", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(243, 212, 134, 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 50% 0, rgba(217, 170, 69, 0.22), transparent 360px),
    var(--bg);
  color: var(--text);
  overscroll-behavior-y: none;
}

html {
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-text-size-adjust: 100%;
}

body.drawer-open,
body.drawer-lock {
  overflow: hidden;
  position: fixed;
  inset: 0;
  width: 100%;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.72;
}

:where(button, input, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 3px solid #ffe59a;
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hidden {
  visibility: hidden !important;
  pointer-events: none !important;
}

.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: clip;
  padding: 0 max(var(--page-pad), env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(var(--page-pad), env(safe-area-inset-left));
  position: relative;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: auto;
  max-width: none;
  min-height: var(--topbar-height);
  padding: env(safe-area-inset-top) max(var(--page-pad), env(safe-area-inset-right), calc((100vw - 430px) / 2 + var(--page-pad))) 4px max(var(--page-pad), env(safe-area-inset-left), calc((100vw - 430px) / 2 + var(--page-pad)));
  border-bottom: 1px solid rgba(243, 212, 134, 0.1);
  background: rgba(8, 8, 6, 0.96);
  backdrop-filter: blur(18px);
}

main {
  padding-top: var(--topbar-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  transform: translateY(-2px);
}

.brand-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255, 229, 154, 0.34);
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.brand-copy {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-primary,
.brand-secondary {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-primary {
  font-size: 15px;
  line-height: 1.15;
}

.brand-secondary {
  margin-top: 2px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 11px;
  line-height: 1.15;
}

.top-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  transform: translateY(-2px);
}

.icon-btn,
.lang-toggle,
.small-action,
.arrow-btn,
.nav-btn,
.card-action,
.copy-btn {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.icon-btn {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
}

/* Embedded Lucide masks render reliably from WKWebView file bundles. */
.ui-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--ui-icon) center / contain no-repeat;
  mask: var(--ui-icon) center / contain no-repeat;
}

.ui-icon-heart { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNMiA5LjVhNS41IDUuNSAwIDAgMSA5LjU5MS0zLjY3Ni41Ni41NiAwIDAgMCAuODE4IDBBNS40OSA1LjQ5IDAgMCAxIDIyIDkuNWMwIDIuMjktMS41IDQtMyA1LjVsLTUuNDkyIDUuMzEzYTIgMiAwIDAgMS0zIC4wMTlMNSAxNWMtMS41LTEuNS0zLTMuMi0zLTUuNSIvPjwvc3ZnPgo="); }
.ui-icon-star { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNMTEuNTI1IDIuMjk1YS41My41MyAwIDAgMSAuOTUgMGwyLjMxIDQuNjc5YTIuMTIgMi4xMiAwIDAgMCAxLjU5NSAxLjE2bDUuMTY0Ljc1YS41My41MyAwIDAgMSAuMjk0LjkwNGwtMy43MzcgMy42NDJhMi4xMiAyLjEyIDAgMCAwLS42MSAxLjg4bC44ODIgNS4xNGEuNTMuNTMgMCAwIDEtLjc2OS41NTlsLTQuNjE4LTIuNDI4YTIuMTIgMi4xMiAwIDAgMC0xLjk3MyAwTDYuMzk2IDIxLjAxYS41My41MyAwIDAgMS0uNzctLjU2bC44ODMtNS4xMzlhMi4xMiAyLjEyIDAgMCAwLS42MTEtMS44NzlMMi4xNiA5Ljc5YS41My41MyAwIDAgMSAuMjk0LS45MDZsNS4xNjUtLjc1YTIuMTIgMi4xMiAwIDAgMCAxLjU5Ny0xLjE2eiIvPjwvc3ZnPg=="); }
.ui-icon-copy { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cmVjdCB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHg9IjgiIHk9IjgiIHJ4PSIyIiByeT0iMiIvPjxwYXRoIGQ9Ik00IDE2Yy0xLjEgMC0yLS45LTItMlY0YzAtMS4xLjktMiAyLTJoMTBjMS4xIDAgMiAuOSAyIDIiLz48L3N2Zz4K"); }
.ui-icon-share { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48Y2lyY2xlIGN4PSIxOCIgY3k9IjUiIHI9IjMiLz48Y2lyY2xlIGN4PSI2IiBjeT0iMTIiIHI9IjMiLz48Y2lyY2xlIGN4PSIxOCIgY3k9IjE5IiByPSIzIi8+PGxpbmUgeDE9IjguNTkiIHgyPSIxNS40MiIgeTE9IjEzLjUxIiB5Mj0iMTcuNDkiLz48bGluZSB4MT0iMTUuNDEiIHgyPSI4LjU5IiB5MT0iNi41MSIgeTI9IjEwLjQ5Ii8+PC9zdmc+Cg=="); }
.ui-icon-chevron-right { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJtOSAxOCA2LTYtNi02Ii8+PC9zdmc+Cg=="); }
.ui-icon-lock { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48Y2lyY2xlIGN4PSIxMiIgY3k9IjE2IiByPSIxIi8+PHJlY3QgeD0iMyIgeT0iMTAiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxMiIgcng9IjIiLz48cGF0aCBkPSJNNyAxMFY3YTUgNSAwIDAgMSAxMCAwdjMiLz48L3N2Zz4K"); }
.ui-icon-house { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNMTUgMjF2LThhMSAxIDAgMCAwLTEtMWgtNGExIDEgMCAwIDAtMSAxdjgiLz48cGF0aCBkPSJNMyAxMGEyIDIgMCAwIDEgLjcwOS0xLjUyOGw3LTZhMiAyIDAgMCAxIDIuNTgyIDBsNyA2QTIgMiAwIDAgMSAyMSAxMHY5YTIgMiAwIDAgMS0yIDJINWEyIDIgMCAwIDEtMi0yeiIvPjwvc3ZnPgo="); }
.ui-icon-shirt { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNMjAuMzggMy40NiAxNiAyYTQgNCAwIDAgMS04IDBMMy42MiAzLjQ2YTIgMiAwIDAgMC0xLjM0IDIuMjNsLjU4IDMuNDdhMSAxIDAgMCAwIC45OS44NEg2djEwYzAgMS4xLjkgMiAyIDJoOGEyIDIgMCAwIDAgMi0yVjEwaDIuMTVhMSAxIDAgMCAwIC45OS0uODRsLjU4LTMuNDdhMiAyIDAgMCAwLTEuMzQtMi4yM3oiLz48L3N2Zz4K"); }
.ui-icon-camera { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNMTMuOTk3IDRhMiAyIDAgMCAxIDEuNzYgMS4wNWwuNDg2LjlBMiAyIDAgMCAwIDE4LjAwMyA3SDIwYTIgMiAwIDAgMSAyIDJ2OWEyIDIgMCAwIDEtMiAySDRhMiAyIDAgMCAxLTItMlY5YTIgMiAwIDAgMSAyLTJoMS45OTdhMiAyIDAgMCAwIDEuNzU5LTEuMDQ4bC40ODktLjkwNEEyIDIgMCAwIDEgMTAuMDA0IDR6Ii8+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMyIgcj0iMyIvPjwvc3ZnPgo="); }
.ui-icon-package { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNMTEgMjEuNzNhMiAyIDAgMCAwIDIgMGw3LTRBMiAyIDAgMCAwIDIxIDE2VjhhMiAyIDAgMCAwLTEtMS43M2wtNy00YTIgMiAwIDAgMC0yIDBsLTcgNEEyIDIgMCAwIDAgMyA4djhhMiAyIDAgMCAwIDEgMS43M3oiLz48cGF0aCBkPSJNMTIgMjJWMTIiLz48cG9seWxpbmUgcG9pbnRzPSIzLjI5IDcgMTIgMTIgMjAuNzEgNyIvPjxwYXRoIGQ9Im03LjUgNC4yNyA5IDUuMTUiLz48L3N2Zz4K"); }
.ui-icon-chevron-down { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJtNiA5IDYgNiA2LTYiLz48L3N2Zz4K"); }
.ui-icon-arrow-left { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJtMTIgMTktNy03IDctNyIvPjxwYXRoIGQ9Ik0xOSAxMkg1Ii8+PC9zdmc+Cg=="); }
.ui-icon-search { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJtMjEgMjEtNC4zNC00LjM0Ii8+PGNpcmNsZSBjeD0iMTEiIGN5PSIxMSIgcj0iOCIvPjwvc3ZnPgo="); }
.ui-icon-menu { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNNCA1aDE2Ii8+PHBhdGggZD0iTTQgMTJoMTYiLz48cGF0aCBkPSJNNCAxOWgxNiIvPjwvc3ZnPgo="); }
.ui-icon-x { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNMTggNiA2IDE4Ii8+PHBhdGggZD0ibTYgNiAxMiAxMiIvPjwvc3ZnPgo="); }
.ui-icon-arrow-right { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNNSAxMmgxNCIvPjxwYXRoIGQ9Im0xMiA1IDcgNy03IDciLz48L3N2Zz4K"); }
.ui-icon-bookmark { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNMTcgM2EyIDIgMCAwIDEgMiAydjE1YTEgMSAwIDAgMS0xLjQ5Ni44NjhsLTQuNTEyLTIuNTc4YTIgMiAwIDAgMC0xLjk4NCAwbC00LjUxMiAyLjU3OEExIDEgMCAwIDEgNSAyMFY1YTIgMiAwIDAgMSAyLTJ6Ii8+PC9zdmc+Cg=="); }
.ui-icon-info { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIvPjxwYXRoIGQ9Ik0xMiAxNnYtNCIvPjxwYXRoIGQ9Ik0xMiA4aC4wMSIvPjwvc3ZnPgo="); }
.ui-icon-smartphone { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cmVjdCB3aWR0aD0iMTQiIGhlaWdodD0iMjAiIHg9IjUiIHk9IjIiIHJ4PSIyIiByeT0iMiIvPjxwYXRoIGQ9Ik0xMiAxOGguMDEiLz48L3N2Zz4K"); }
.ui-icon-shuffle { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJtMTggMTQgNCA0LTQgNCIvPjxwYXRoIGQ9Im0xOCAyIDQgNC00IDQiLz48cGF0aCBkPSJNMiAxOGgxLjk3M2E0IDQgMCAwIDAgMy4zLTEuN2w1LjQ1NC04LjZhNCA0IDAgMCAxIDMuMy0xLjdIMjIiLz48cGF0aCBkPSJNMiA2aDEuOTcyYTQgNCAwIDAgMSAzLjYgMi4yIi8+PHBhdGggZD0iTTIyIDE4aC02LjA0MWE0IDQgMCAwIDEtMy4zLTEuOGwtLjM1OS0uNDUiLz48L3N2Zz4K"); }
.ui-icon-mail { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJtMjIgNy04Ljk5MSA1LjcyN2EyIDIgMCAwIDEtMi4wMDkgMEwyIDciLz48cmVjdCB4PSIyIiB5PSI0IiB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHJ4PSIyIi8+PC9zdmc+Cg=="); }
.ui-icon-hand-heart { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNMTEgMTRoMmEyIDIgMCAwIDAgMC00aC0zYy0uNiAwLTEuMS4yLTEuNC42TDMgMTYiLz48cGF0aCBkPSJtMTQuNDUgMTMuMzkgNS4wNS00LjY5NEMyMC4xOTYgOCAyMSA2Ljg1IDIxIDUuNzVhMi43NSAyLjc1IDAgMCAwLTQuNzk3LTEuODM3LjI3Ni4yNzYgMCAwIDEtLjQwNiAwQTIuNzUgMi43NSAwIDAgMCAxMSA1Ljc1YzAgMS4yLjgwMiAyLjI0OCAxLjUgMi45NDZMMTYgMTEuOTUiLz48cGF0aCBkPSJtMiAxNSA2IDYiLz48cGF0aCBkPSJtNyAyMCAxLjYtMS40Yy4zLS40LjgtLjYgMS40LS42aDRjMS4xIDAgMi4xLS40IDIuOC0xLjJsNC42LTQuNGExIDEgMCAwIDAtMi43NS0yLjkxIi8+PC9zdmc+Cg=="); }
.ui-icon-external-link { --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNMTUgM2g2djYiLz48cGF0aCBkPSJNMTAgMTQgMjEgMyIvPjxwYXRoIGQ9Ik0xOCAxM3Y2YTIgMiAwIDAgMS0yIDJINWEyIDIgMCAwIDEtMi0yVjhhMiAyIDAgMCAxIDItMmg2Ii8+PC9zdmc+Cg=="); }

.icon-btn .ui-icon {
  width: 20px;
  height: 20px;
}

.lang-toggle {
  min-width: 64px;
  min-height: 44px;
  padding: 0 8px;
  color: var(--gold-2);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 11px;
}

#backBtn:not(.hidden) + .brand {
  min-width: 0;
}

.topbar.has-back .brand-icon {
  display: none;
}

#backBtn:not(.hidden) {
  transform: translateY(-2px);
}

.topbar.has-back {
  grid-template-columns: 44px minmax(0, 1fr) auto;
}

#backBtn.hidden {
  display: none;
}

@media (max-width: 360px) {
  .brand {
    gap: 6px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 10px;
  }

  .brand-primary {
    font-size: 14px;
  }

  .brand-secondary {
    font-size: 10px;
  }

  .icon-btn {
    min-width: 44px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .lang-toggle {
    min-width: 50px;
    width: 50px;
    height: 44px;
    padding: 0 6px;
    white-space: nowrap;
  }
}

@media (max-width: 410px) {
  .top-actions {
    gap: 5px;
  }

  .icon-btn {
    min-width: 44px;
    width: 44px;
  }

  .lang-toggle {
    min-width: 50px;
    width: 50px;
    padding: 0 5px;
  }
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.section-head,
.saved-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 12px;
}

.section-head p,
.saved-head p {
  margin: 0;
  color: var(--gold);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.small-action {
  min-height: 44px;
  padding: 0 12px;
  color: var(--gold-2);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
}

.deck-stage {
  position: relative;
  aspect-ratio: 3 / 5;
  height: auto;
  margin: 0;
  contain: layout style;
  isolation: isolate;
  overflow: visible;
}

.style-card {
  position: relative;
  overflow: hidden;
  min-height: 598px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(243, 231, 201, 0.92), rgba(218, 194, 143, 0.94)),
    var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.deck-stage .style-card {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  backface-visibility: hidden;
  transition: transform 220ms cubic-bezier(.2, .82, .22, 1), opacity 180ms ease;
}

.deck-stage.dragging .style-card,
.deck-stage.is-animating .style-card {
  will-change: transform, opacity;
}

.deck-stage .cover-image {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.live-card {
  z-index: 3;
  transform: translate3d(var(--drag-x, 0px), var(--drag-y, 0px), 0) rotate(var(--drag-rotate, 0deg));
  transform-origin: 50% 112%;
}

.ghost-card {
  z-index: 1;
  opacity: var(--ghost-opacity, 0.72);
  pointer-events: none;
}

.ghost-card .card-actions {
  display: none;
}

.ghost-card.prev {
  transform: translate3d(var(--ghost-x, -18px), var(--ghost-y, 5px), 0) rotate(var(--ghost-rotate, -2.4deg)) scale(var(--ghost-scale, 0.965));
  transform-origin: 50% 112%;
}

.ghost-card.next {
  transform: translate3d(var(--ghost-x, 18px), var(--ghost-y, 5px), 0) rotate(var(--ghost-rotate, 2.4deg)) scale(var(--ghost-scale, 0.965));
  transform-origin: 50% 112%;
}

.deck-stage.dragging .style-card {
  transition: none;
  cursor: grabbing;
}

.deck-stage.dragging .ghost-card {
  opacity: var(--ghost-opacity, 0.78);
}

.deck-stage.is-animating {
  pointer-events: none;
}

.deck-stage.random-out .live-card {
  animation: random-card-out 180ms cubic-bezier(.4, 0, 1, 1) both;
}

.deck-stage.random-in .live-card {
  animation: random-card-in 360ms cubic-bezier(.18, .82, .2, 1) both;
}

.deck-stage.random-out .ghost-card,
.deck-stage.random-in .ghost-card {
  opacity: 0.42;
}

@keyframes random-card-out {
  to {
    transform: perspective(900px) rotateY(-76deg) scale(.94);
    opacity: 0;
  }
}

@keyframes random-card-in {
  from {
    transform: perspective(900px) rotateY(76deg) scale(.94);
    opacity: 0;
  }

  to {
    transform: perspective(900px) rotateY(0) scale(1);
    opacity: 1;
  }
}

#detailView.edge-back-dragging {
  transform: translate3d(var(--edge-back-x, 0px), 0, 0);
  opacity: var(--edge-back-opacity, 1);
  transition: none;
  will-change: transform, opacity;
}

#detailView.edge-back-settling {
  transition: transform 180ms cubic-bezier(.2, .82, .22, 1), opacity 160ms ease;
}

.deck-stage.fly-left .live-card {
  transform: translate3d(-122%, 5%, 0) rotate(-10deg);
  opacity: 0;
}

.deck-stage.fly-right .live-card {
  transform: translate3d(122%, 5%, 0) rotate(10deg);
  opacity: 0;
}

.deck-stage.fly-left .next {
  z-index: 2;
  transform: translate3d(0, 0, 0) rotate(0) scale(1);
  opacity: 1;
}

.deck-stage.fly-right .prev {
  z-index: 2;
  transform: translate3d(0, 0, 0) rotate(0) scale(1);
  opacity: 1;
}

.style-card::before,
.share-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,.22) 39%, transparent 40%),
    repeating-linear-gradient(90deg, rgba(27, 20, 8, .06) 0 1px, transparent 1px 46px);
  content: "";
}

.cover-card::before {
  display: none;
}

.cover-card {
  min-height: 0;
  padding: 0;
  border-color: rgba(255, 236, 187, 0.18);
  border-radius: 24px;
  background: #0e0c08;
  color: #fff6dc;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.62);
}

.deck-stage .cover-card {
  min-height: 0;
}

.cover-image,
.cover-shade {
  position: absolute;
  inset: 0;
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-slot {
  position: relative;
  background-color: #11100c;
}

.image-managed {
  opacity: 0;
  transition: opacity 160ms ease;
}

.image-loaded > .image-managed,
.image-loaded .image-managed,
.image-managed[data-image-state="loaded"] {
  opacity: 1;
}

.image-slot.image-failed::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(217, 170, 69, 0.13), transparent 58%),
    repeating-linear-gradient(90deg, rgba(243, 212, 134, 0.055) 0 1px, transparent 1px 42px),
    #11100c;
  color: #d8c694;
  content: attr(data-image-label);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
}

.cover-card.image-failed::after {
  z-index: 1;
  font-size: 18px;
}

.cover-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent 24%, transparent 50%, rgba(0, 0, 0, 0.84)),
    radial-gradient(circle at 50% 38%, transparent 0 34%, rgba(0, 0, 0, 0.28) 78%);
}

.cover-top,
.cover-title {
  position: absolute;
  z-index: 2;
  right: 16px;
  left: 16px;
}

.cover-top {
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cover-top > span {
  min-width: 52px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 246, 220, 0.32);
  border-radius: 999px;
  background: rgba(12, 10, 7, 0.42);
  color: #f5d98e;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(14px);
}

.cover-card .card-action {
  border-color: rgba(255, 246, 220, 0.28);
  background: rgba(12, 10, 7, 0.48);
  color: #fff6dc;
  backdrop-filter: blur(14px);
}

.cover-title {
  bottom: 22px;
}

.cover-title h2 {
  margin: 0;
  max-width: 95%;
  color: #fff6dc;
  font-size: clamp(38px, 11vw, 58px);
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.72);
}

.cover-title p {
  margin: 10px 0 0;
  color: #f4cf76;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7);
}

.badge-row,
.card-actions,
.deck-controls,
.chip-row,
.feature-grid,
.prompt-actions {
  display: flex;
  align-items: center;
}

.badge-row {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  gap: 10px;
}

.badge {
  max-width: 72%;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: #17130d;
  color: var(--gold-2);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.card-actions {
  gap: 8px;
}

.card-action {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-color: rgba(20, 15, 6, 0.16);
  background: #17130d;
  color: var(--paper);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
}

.card-action.saved {
  border-color: rgba(230, 103, 91, 0.5);
  background: rgba(230, 103, 91, 0.12);
  color: #ee7468;
}

.card-action.saved .ui-icon-heart {
  --ui-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSIjMDAwIj48cGF0aCBkPSJNMjAuODQgNC42MWE1LjUgNS41IDAgMCAwLTcuNzggMEwxMiA1LjY3bC0xLjA2LTEuMDZhNS41IDUuNSAwIDAgMC03Ljc4IDcuNzhMMTIgMjEuMjNsOC44NC04Ljg0YTUuNSA1LjUgMCAwIDAgMC03Ljc4WiIvPjwvc3ZnPg==");
}

.visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 282px;
  margin: 22px 0 18px;
  overflow: hidden;
  border: 1px solid rgba(22, 18, 12, 0.22);
  border-radius: 14px;
  background: #111;
  box-shadow: inset 0 0 0 8px rgba(243, 231, 201, 0.14);
}

.visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-title {
  position: relative;
  z-index: 2;
  align-self: end;
  margin: 0 0 24px;
  color: var(--paper);
  font-size: clamp(38px, 13vw, 58px);
  font-weight: 600;
  line-height: 0.95;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}

.visual .visual-title {
  display: none;
}

.style-card h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(36px, 12vw, 56px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
}

.zh-name {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: #57451e;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.summary {
  position: relative;
  z-index: 1;
  margin: 14px 0;
  color: #3f3422;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

.card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(22, 18, 12, 0.14);
  color: #5d4a22;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.card-footer button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(22, 18, 12, 0.18);
  border-radius: var(--radius);
  background: #17130d;
  color: var(--gold-2);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
}

.chip-row {
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(22, 18, 12, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  color: #302716;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
}

.deck-controls {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 12px;
  margin: 12px 0 24px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
}

.random-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: center;
  min-width: 116px;
  border-color: #e1b44f;
  background: #d9a63e;
  color: #171109;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 7px 20px rgba(217, 166, 62, 0.18);
}

.random-control .ui-icon {
  width: 16px;
  height: 16px;
}

.random-control:active {
  transform: translateY(1px);
  background: #e2b34a;
}

.arrow-btn {
  width: 46px;
  height: 44px;
  color: var(--gold-2);
  font-size: 20px;
}

.category-strip h2,
.detail h2 {
  margin: 0 0 12px;
  color: var(--paper);
  font-size: 18px;
}

.category-cards {
  display: grid;
  gap: 12px;
}

.category-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 132px;
  align-items: center;
  min-height: 102px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
}

.category-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 56%);
  content: "";
}

.category-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.category-copy strong {
  max-width: 180px;
  color: #fff4d1;
  font-size: 15px;
  line-height: 1.25;
}

.category-copy small {
  color: #c9b47e;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.category-stack {
  position: relative;
  z-index: 1;
  height: 76px;
}

.category-stack img {
  position: absolute;
  top: 0;
  width: 52px;
  height: 76px;
  border: 1px solid rgba(255, 239, 190, 0.22);
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.34);
}

.category-stack img:nth-child(1) {
  right: 72px;
  transform: rotate(-8deg);
}

.category-stack img:nth-child(2) {
  right: 36px;
  transform: rotate(2deg);
}

.category-stack img:nth-child(3) {
  right: 0;
  transform: rotate(9deg);
}

.detail {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  overflow-anchor: none;
}

body.detail-mode .app-shell {
  overflow-x: visible;
}

html.detail-mode,
body.detail-mode {
  overflow-x: clip;
}

@media (hover: hover) and (pointer: fine) {
  html,
  body {
    overscroll-behavior-y: auto;
  }

  #detailView.active {
    cursor: grab;
  }

  body.desktop-drag-scrolling,
  body.desktop-drag-scrolling #detailView.active {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
  }
}

.detail-hero {
  display: flex;
  flex-direction: column;
  margin: 0 calc(-1 * var(--page-pad));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--museum-charcoal);
  box-shadow: none;
  cursor: default;
  user-select: text;
  -webkit-user-select: text;
}

.detail-hero::before {
  display: none;
}

.detail-section-nav {
  position: sticky;
  top: var(--topbar-height);
  z-index: 7;
  display: flex;
  gap: 0;
  margin: 0 calc(-1 * var(--page-pad)) 22px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid rgba(243, 212, 134, 0.24);
  border-radius: 0;
  background: rgba(10, 10, 8, 0.97);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  scrollbar-width: none;
}

.detail-section-nav::-webkit-scrollbar {
  display: none;
}

.detail-section-nav button {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  align-content: center;
  justify-content: center;
  flex: 1 0 20%;
  min-width: 70px;
  min-height: 64px;
  gap: 2px 5px;
  padding: 8px 5px 7px;
  border: 0;
  border-right: 1px solid rgba(243, 212, 134, 0.12);
  border-radius: 0;
  background: transparent;
  color: #ddcda4;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.detail-section-nav button:last-child {
  border-right: 0;
}

.detail-section-nav button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.detail-section-nav button small {
  grid-column: 1 / -1;
  color: #8f8264;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.2;
}

.detail-nav-arrow {
  display: grid;
  place-items: center;
  color: var(--gold);
  line-height: 1;
  opacity: 0.9;
}

.detail-nav-arrow .ui-icon {
  width: 14px;
  height: 14px;
}

.detail-section-nav button:active {
  background: rgba(217, 170, 69, 0.08);
}

.detail-section-nav button:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}

.detail-section-nav button[aria-current="true"] {
  background: rgba(217, 170, 69, 0.065);
  color: var(--gold-2);
}

.detail-section-nav button[aria-current="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.detail-section-nav button[aria-current="true"] .detail-nav-arrow {
  opacity: 1;
}

.detail-section-nav button.plus-locked {
  background: rgba(255, 255, 255, 0.015);
  color: #ad9f7b;
}

.detail-section-nav button.plus-locked .detail-nav-arrow {
  color: #d8b762;
  opacity: 1;
}

.detail-section-nav button.plus-locked .detail-nav-arrow .ui-icon {
  width: 12px;
  height: 12px;
}

.detail .style-card {
  min-height: auto;
}

.detail-hero .visual {
  order: 1;
  display: block;
  height: auto;
  margin: 0;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.detail-hero .visual img {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.hero-image-button {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.detail-hero-copy {
  order: 3;
  position: relative;
  z-index: 2;
  padding: 4px var(--page-pad) 20px;
}

.detail-hero-copy h1 {
  max-width: 100%;
  color: #d8b56c;
  font-size: clamp(34px, 10vw, 48px);
  font-weight: 650;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.detail-hero-copy .alternate-name {
  margin-top: 7px;
  color: #caa85f;
  font-family: ui-serif, Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(20px, 6vw, 28px);
  font-weight: 500;
  line-height: 1.15;
}

.detail-hero .summary {
  max-width: 42rem;
  margin: 18px 0 0;
  color: #b8aa89;
  font-size: 15px;
  line-height: 1.75;
}

.detail-hero > .badge-row {
  order: 2;
  padding: 14px var(--page-pad) 10px;
}

.detail-hero .badge {
  max-width: calc(100% - 104px);
  padding: 0;
  background: transparent;
  color: #b89855;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.55;
  text-transform: uppercase;
}

.detail-hero .card-action {
  border-color: rgba(214, 181, 107, 0.34);
  background: transparent;
  color: #d8b56c;
}

.detail-hero-copy h1:focus {
  outline: none;
}

.detail-hero-copy h1:focus-visible {
  outline: none;
}

.memory-anchor {
  margin: 20px 0 0;
  padding: 16px 0;
  border-top: 1px solid rgba(214, 181, 107, 0.22);
  border-bottom: 1px solid rgba(214, 181, 107, 0.12);
  background: transparent;
}

.memory-anchor span {
  display: block;
  margin-bottom: 6px;
  color: #b38b3f;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.memory-anchor p {
  margin: 0;
  color: #e4d6b4;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

.hero-actions {
  display: block;
  margin-top: 18px;
}

.guided-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #efc35c;
  border-radius: 6px;
  background: #d9aa45;
  color: #171109;
  box-shadow: 0 8px 24px rgba(217, 170, 69, 0.2);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 15px;
  font-weight: 850;
  text-align: left;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.guided-entry .ui-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.guided-entry:active {
  background: #efc35c;
  box-shadow: 0 4px 12px rgba(217, 170, 69, 0.18);
  transform: translateY(1px);
}

@media (hover: hover) and (pointer: fine) {
  .guided-entry:hover {
    background: #e7b94f;
    box-shadow: 0 10px 28px rgba(217, 170, 69, 0.28);
  }
}

.detail-hero .overview-copy-btn,
.detail-see-tools .overview-copy-btn {
  position: static;
  width: 44px;
  height: 48px;
  border-radius: 6px;
  border-color: rgba(214, 181, 107, 0.34);
  background: transparent;
  box-shadow: none;
}

.hero-copy-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.detail-hero-copy .overview-copy-btn {
  width: 44px;
  height: 44px;
}

:is(.detail-hero, .detail-see-tools) .chip-row {
  gap: 7px;
  margin-top: 16px;
}

:is(.detail-hero, .detail-see-tools) .chip {
  min-height: 32px;
  padding: 0 10px;
  border-color: rgba(218, 199, 155, 0.22);
  border-radius: 5px;
  background: var(--museum-olive);
  color: #e5d8b8;
  font-size: 11px;
}

:is(.detail-hero, .detail-see-tools) .chip:nth-child(2) {
  background: var(--museum-blue);
}

:is(.detail-hero, .detail-see-tools) .chip:nth-child(3) {
  background: var(--museum-burgundy);
}

.section-kicker {
  margin: 0 0 7px !important;
  color: var(--gold) !important;
  font-size: 12px !important;
  font-weight: 800;
  text-transform: uppercase;
}

.aesthetic-section {
  padding: 20px 16px;
}

.recognition-grid,
.everyday-grid,
.comparison-list {
  display: grid;
  gap: 10px;
}

.recognition-grid {
  gap: 0;
  border-top: 1px solid rgba(243, 212, 134, 0.18);
}

.observation-card {
  position: relative;
  min-height: 124px;
  padding: 20px 6px 20px 54px;
  border: 0;
  border-bottom: 1px solid rgba(243, 212, 134, 0.18);
  border-radius: 0;
  background: transparent;
  color: #f2e4bf;
}

.observation-card > span {
  position: absolute;
  top: 16px;
  left: 14px;
  color: #95621b;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.observation-card h3,
.everyday-grid h3,
.why-block h3 {
  margin: 0 0 7px;
  color: inherit;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.35;
}

.observation-card p {
  color: #cdbf9d;
  font-size: 14px;
  line-height: 1.65;
}

.profile-note {
  margin-bottom: 14px !important;
  color: #baa97f !important;
  font-size: 13px !important;
}

.profile-grid {
  display: grid;
  gap: 15px;
}

.profile-row {
  display: grid;
  gap: 8px;
}

.profile-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #f1dfb1;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 13px;
}

.profile-row > div:first-child span {
  color: #bfae83;
  text-align: right;
}

.profile-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.profile-scale i {
  height: 8px;
  border: 1px solid rgba(243, 212, 134, 0.25);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
}

.profile-scale i.active {
  border-color: #e0aa42;
  background: #d3982d;
}

.profile-hint {
  color: #9f916f;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 11px;
  line-height: 1.3;
}

.feeling-words {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.feeling-words span {
  padding: 7px 10px;
  border: 1px solid rgba(107, 168, 168, 0.45);
  border-radius: 999px;
  background: rgba(64, 128, 128, 0.16);
  color: #bde1d8;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.why-feels {
  display: grid;
  gap: 14px;
}

.why-block {
  padding-top: 13px;
  border-top: 1px solid rgba(243, 212, 134, 0.15);
}

.why-block h3 {
  color: var(--gold-2);
}

.why-feels blockquote {
  margin: 2px 0 0;
  padding: 15px;
  border: 1px solid rgba(243, 212, 134, 0.26);
  border-radius: 10px;
  background: rgba(217, 170, 69, 0.1);
}

.why-feels blockquote strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-2);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
}

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

.everyday-grid article {
  --everyday-tone: rgba(83, 96, 72, 0.34);
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(247, 235, 204, 0.2);
  border-radius: 10px;
  background: var(--everyday-tone);
}

.everyday-grid article:nth-child(2) {
  --everyday-tone: rgba(70, 86, 103, 0.38);
}

.everyday-grid article:nth-child(3) {
  --everyday-tone: rgba(97, 78, 91, 0.38);
}

.everyday-grid article:nth-child(4) {
  --everyday-tone: rgba(101, 88, 62, 0.38);
}

.everyday-grid article > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border: 1px solid rgba(247, 235, 204, 0.3);
  border-radius: 50%;
  color: #f6dfa0;
}

.everyday-grid article > span .ui-icon {
  width: 15px;
  height: 15px;
}

.everyday-grid h3 {
  color: #fff4d8;
}

.everyday-grid article p {
  color: #e7dcc1;
  font-size: 13px;
  line-height: 1.6;
}

.comparison-card {
  overflow: hidden;
  border: 1px solid rgba(243, 212, 134, 0.2);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
}

.comparison-open {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 88px;
  padding: 0;
  border: 0;
  background: rgba(217, 170, 69, 0.08);
  color: var(--paper);
  text-align: left;
}

.comparison-open img {
  width: 86px;
  height: 88px;
  object-fit: cover;
}

.comparison-open span {
  display: grid;
  gap: 4px;
  padding-right: 12px;
}

.comparison-open strong {
  font-size: 16px;
}

.comparison-open small {
  color: #bbaa80;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
}

.comparison-card > p {
  padding: 12px 14px 0;
  color: #cdbd94;
  font-size: 13px;
  line-height: 1.6;
}

.comparison-card > p:last-child {
  padding-bottom: 14px;
}

.comparison-card > p strong {
  display: block;
  margin-bottom: 3px;
  color: var(--gold-2);
  font-size: 12px;
}

.deep-accordions {
  display: grid;
  gap: 9px;
}

.deep-accordion {
  overflow: hidden;
  border: 1px solid rgba(243, 212, 134, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.deep-accordion h3 {
  margin: 0;
}

.deep-accordion h3 button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 13px;
  border: 0;
  background: transparent;
  color: #f2e4bf;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 750;
  text-align: left;
}

.deep-accordion h3 button[aria-expanded="true"] span:last-child {
  transform: rotate(180deg);
}

.accordion-chevron {
  width: 17px;
  height: 17px;
  color: #d9ba6d;
  transition: transform 160ms ease;
}

.deep-accordion-panel {
  padding: 0 13px 14px;
}

.deep-accordion-panel[hidden] {
  display: none;
}

.gallery-note {
  margin-top: 10px !important;
  color: #9e906e !important;
  font-size: 12px !important;
}

.similar-section {
  margin-bottom: 28px;
}

.detail-section:not(.detail-see-tools) .chip {
  border-color: rgba(217, 170, 69, 0.36);
  background: rgba(217, 170, 69, 0.16);
  color: #f4e5bd;
  font-weight: 700;
}

.detail-section {
  margin: 0 calc(-1 * var(--page-pad));
  padding: 28px var(--page-pad);
  scroll-margin-top: calc(var(--topbar-height) + 76px);
  border: 0;
  border-top: 1px solid rgba(243, 212, 134, 0.16);
  border-radius: 0;
  background: var(--museum-charcoal);
}

.recognize-section,
.why-feels,
.prompt-section,
.explore-section {
  background: #211e17;
}

.profile-section,
.export-section {
  background: #1b1f1c;
}

.everyday-section {
  background: #1c201a;
}

.comparison-section,
.similar-section {
  background: #1b1d22;
}

.detail h2 {
  margin-bottom: 18px;
  font-size: clamp(22px, 7vw, 30px);
  font-weight: 650;
  line-height: 1.2;
}

.detail-section h3 {
  letter-spacing: 0;
}

.detail-create-group {
  scroll-margin-top: calc(var(--topbar-height) + 76px);
}

.detail-create-group > .detail-section {
  margin: 0 calc(-1 * var(--page-pad));
}

.detail-see-tools {
  margin-top: -22px;
  padding-top: 22px;
  background: #181611;
}

.detail-see-tools .memory-anchor {
  margin-top: 0;
}

.access-note {
  display: inline-flex;
  margin: -2px 0 8px;
  padding: 6px 10px;
  border: 1px solid rgba(243, 212, 134, 0.28);
  border-radius: 999px;
  background: rgba(217, 170, 69, 0.12);
  color: var(--gold-2);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.detail-section p {
  margin: 0;
  color: #e7d8b3;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.detail-list {
  margin: 0;
  padding-left: 18px;
  color: #e7d8b3;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

.detail-list li + li {
  margin-top: 6px;
}

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

.gallery-item {
  min-width: 0;
  margin: 0;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111;
  object-fit: cover;
  cursor: zoom-in;
}

.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  min-height: 44px;
}

.gallery-item figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 11px;
  line-height: 1.35;
}

.gallery-item a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold-2);
  text-decoration: none;
}

.feature-grid {
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-grid span {
  flex: 1 1 44%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
}

.prompt-box {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e0d0a;
  color: var(--paper);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

.prompt-heading {
  margin: 18px 0 10px;
  color: var(--paper);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 18px;
  line-height: 1.35;
}

.example-card {
  margin: 0;
}

.example-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 10px;
  background: #111;
}

.example-open {
  overflow: hidden;
  cursor: zoom-in;
}

.example-card figcaption {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

.example-card strong {
  color: var(--paper);
  font-size: 14px;
}

.example-card a {
  color: var(--gold-2);
  text-decoration: none;
}

.prompt-actions {
  gap: 8px;
  margin-top: 10px;
}

.overview-actions {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 16px;
}

.overview-copy-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(67, 50, 18, 0.24);
  border-radius: 12px;
  background: rgba(22, 17, 10, 0.88);
  color: #f4cf76;
  box-shadow: 0 8px 22px rgba(42, 31, 12, 0.16);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 21px;
  line-height: 1;
}

.overview-copy-btn:active {
  transform: scale(0.96);
}

.detail-hero > .chip-row {
  padding-right: 54px;
}

.locked-section {
  position: relative;
  min-height: 190px;
  overflow: hidden;
}

.locked-preview {
  filter: blur(2px);
  opacity: 0.42;
  user-select: none;
}

.lock-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(12, 11, 8, 0.52), rgba(12, 11, 8, 0.92)),
    radial-gradient(circle at 50% 0, rgba(217, 170, 69, 0.18), transparent 70%);
  text-align: left;
}

.lock-overlay span {
  width: max-content;
  padding: 4px 8px;
  border: 1px solid rgba(243, 212, 134, 0.32);
  border-radius: 999px;
  color: var(--gold-2);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.lock-overlay strong {
  color: var(--paper);
  font-size: 20px;
}

.lock-overlay p {
  color: #d8c694;
}

.lock-overlay .copy-btn {
  justify-self: start;
  margin-top: 4px;
}

.locked-archive-gate {
  overflow: hidden;
  padding: 0;
  border-color: rgba(235, 199, 112, 0.44);
  background: #12110d;
  color: #f5e8c7;
}

.locked-gate-head {
  position: relative;
  padding: 24px 20px 20px 76px;
  border-bottom: 1px solid rgba(235, 199, 112, 0.18);
  background: rgba(217, 170, 69, 0.07);
}

.locked-gate-mark {
  position: absolute;
  top: 24px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(243, 212, 134, 0.42);
  border-radius: 8px;
  background: #211a0e;
  color: #efca73;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 9px;
  font-weight: 900;
}

.locked-gate-head h2 {
  margin: 0;
  color: #fff2cf;
  font-size: 24px;
  line-height: 1.2;
}

.locked-gate-head > p:last-child {
  margin: 11px 0 0;
  color: #cdbd96;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 13px;
  line-height: 1.65;
}

.locked-preview-flow {
  border-bottom: 1px solid rgba(235, 199, 112, 0.16);
}

.locked-preview-chapter {
  padding: 20px;
  border-top: 1px solid rgba(235, 199, 112, 0.16);
}

.locked-preview-chapter:first-child {
  border-top: 0;
}

.locked-preview-chapter > header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 16px;
}

.locked-preview-chapter > header > span {
  color: #d7aa4c;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.locked-preview-chapter h3 {
  margin: 0;
  color: #f2e5c4;
  font-size: 19px;
  line-height: 1.25;
}

.locked-preview-chapter header p {
  margin: 4px 0 0;
  color: #bcae89;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 11px;
}

.locked-preview-chapter header small {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #a9976d;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 10px;
  white-space: nowrap;
}

.locked-preview-chapter header small .ui-icon {
  width: 12px;
  height: 12px;
  color: #d3aa4e;
}

.locked-observation-body {
  display: grid;
  grid-template-columns: minmax(120px, 0.78fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.locked-preview-image {
  min-height: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(235, 199, 112, 0.2);
  border-radius: 6px;
  background: #0e0d0a;
}

.locked-preview-image img,
.locked-comparison-image img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.locked-observation-body ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.locked-observation-body li {
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(235, 199, 112, 0.12);
}

.locked-observation-body li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.locked-observation-body strong {
  color: #e8d8b2;
  font-size: 12px;
}

.locked-observation-body p {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: #b9ab88;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.locked-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(235, 199, 112, 0.18);
  border-radius: 6px;
}

.locked-profile-item {
  min-width: 0;
  padding: 13px 10px;
  border-left: 1px solid rgba(235, 199, 112, 0.14);
}

.locked-profile-item:first-child {
  border-left: 0;
}

.locked-profile-item strong,
.locked-profile-item span {
  display: block;
  overflow-wrap: anywhere;
}

.locked-profile-item strong {
  color: #e8d8b2;
  font-size: 11px;
}

.locked-profile-item span {
  min-height: 31px;
  margin-top: 5px;
  color: #aa9b77;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 9px;
  line-height: 1.45;
}

.locked-profile-item .profile-scale {
  gap: 3px;
  margin-top: 9px;
}

.locked-profile-item .profile-scale i {
  height: 4px;
}

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

.locked-comparison-list article {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(235, 199, 112, 0.18);
  border-radius: 6px;
  background: rgba(57, 55, 45, 0.24);
}

.locked-comparison-image {
  min-height: 0;
  border-right: 1px solid rgba(235, 199, 112, 0.14);
  background: #0e0d0a;
}

.locked-comparison-list article > div:last-child {
  min-width: 0;
  padding: 10px;
}

.locked-comparison-list strong,
.locked-comparison-list small {
  display: block;
}

.locked-comparison-list strong {
  color: #efe0bb;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.locked-comparison-list small {
  margin-top: 3px;
  color: #b19b66;
  font-size: 9px;
  overflow-wrap: anywhere;
}

.locked-comparison-list p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: #aa9d7d;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 9px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.plus-gate-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 32px);
  min-height: 52px;
  margin: 18px 16px 10px;
  padding: 0 16px;
  border: 1px solid #e8bd5a;
  border-radius: 8px;
  background: #dba43b;
  color: #171108;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 900;
}

.plus-gate-cta:active {
  transform: translateY(1px);
  background: #e6b750;
}

.locked-archive-gate > small {
  display: block;
  margin: 0 16px 18px;
  color: #a99973;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.export-section {
  display: grid;
  gap: 10px;
}

.export-status {
  min-height: 20px;
  color: var(--gold-2) !important;
  font-size: 12px !important;
}

[data-export-control][disabled] {
  cursor: wait;
  opacity: 0.52;
}

.export-section .copy-btn {
  width: 100%;
  min-height: 44px;
  text-align: left;
}

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

.export-ratios .copy-btn {
  min-width: 0;
  padding: 0 6px;
  text-align: center;
}

.locked-export {
  border-color: rgba(243, 212, 134, 0.34);
  background: rgba(217, 170, 69, 0.11);
  color: #d8c694;
}

.plus-export-ready {
  border-color: rgba(243, 212, 134, 0.48);
  background: rgba(217, 170, 69, 0.2);
  color: var(--gold-2);
}

.copy-btn {
  min-height: 44px;
  padding: 0 12px;
  color: var(--gold-2);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
}

.about-hero h1,
.screenshot-head h1 {
  margin: 0 0 14px;
  color: var(--paper);
  font-size: 27px;
  line-height: 1.08;
}

.about-hero p + p,
.detail-section p + p {
  margin-top: 10px;
}

.app-feature-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 16px;
  padding: 0;
  list-style: none;
  color: #efe2bd;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.app-feature-list li {
  position: relative;
  padding-left: 20px;
}

.app-feature-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--gold);
  content: "•";
}

.app-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: min(100%, 250px);
  margin-top: 16px;
  border: 1px solid rgba(243, 212, 134, 0.52);
  background: rgba(217, 170, 69, 0.16);
  text-decoration: none;
}

.app-store-link:hover {
  background: rgba(217, 170, 69, 0.24);
}

.screenshot-kit {
  padding-bottom: 24px;
}

.screenshot-head {
  padding: 18px 0;
}

.screenshot-head p {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.screenshot-head span {
  display: block;
  color: #d8c694;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.screenshot-grid {
  display: grid;
  gap: 18px;
}

.screenshot-card {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  padding: 24px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0, rgba(217, 170, 69, 0.28), transparent 45%),
    linear-gradient(180deg, #17130d, #080806);
  box-shadow: 0 28px 70px rgba(0,0,0,.45);
}

.shot-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.shot-copy strong {
  max-width: 92%;
  color: #fff5d4;
  font-size: 31px;
  line-height: 1.06;
}

.shot-copy span {
  color: var(--gold-2);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.screenshot-card > small {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 3;
  color: rgba(255, 246, 220, .72);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.shot-card-visual,
.shot-panel,
.shot-list,
.shot-export,
.shot-paywall {
  position: absolute;
  right: 18px;
  bottom: 46px;
  left: 18px;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(243, 212, 134, .28);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}

.shot-card-visual {
  height: 62%;
}

.shot-card-visual img,
.shot-export img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-card-visual::after {
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.82));
  content: "";
}

.shot-card-visual h2,
.shot-card-visual p {
  position: absolute;
  z-index: 2;
  left: 16px;
  margin: 0;
}

.shot-card-visual h2 {
  bottom: 42px;
  color: #fff6dc;
  font-size: 34px;
  line-height: .95;
}

.shot-card-visual p {
  bottom: 16px;
  color: var(--gold-2);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-weight: 800;
}

.shot-panel,
.shot-paywall {
  display: grid;
  gap: 12px;
  padding: 16px;
  color: #dfd0aa;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
}

.shot-panel h3,
.shot-paywall h2 {
  margin: 0;
  color: var(--paper);
  font-size: 22px;
}

.shot-panel p,
.shot-paywall p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.shot-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.shot-list span {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--paper);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 13px;
}

.shot-list img {
  width: 52px;
  height: 66px;
  border-radius: 8px;
  object-fit: cover;
}

.shot-export {
  height: 58%;
}

.shot-export button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(8,8,6,.88);
  color: var(--gold-2);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
}

.shot-paywall ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}

.search-panel {
  position: sticky;
  top: var(--topbar-height);
  z-index: 5;
  padding: 12px 0 14px;
  background: linear-gradient(180deg, rgba(8, 8, 6, 0.96), rgba(8, 8, 6, 0.86));
  backdrop-filter: blur(14px);
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 44px;
  min-height: 48px;
  border: 1px solid rgba(243, 212, 134, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  transition: border-color 140ms ease, background-color 140ms ease;
}

.search-box:focus-within {
  border-color: rgba(243, 212, 134, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.search-box input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0 14px;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 16px;
}

.search-box input:focus-visible {
  outline: none;
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

.search-box button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
}

.filters {
  flex-wrap: nowrap;
  gap: 8px;
  margin-inline: -2px;
  margin-top: 10px;
  padding: 0 2px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filters .chip {
  flex: 0 0 auto;
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}

.filters .chip.active {
  border-color: var(--gold);
  color: var(--gold-2);
}

.result-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.result-list.gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.result-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  min-height: 98px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  content-visibility: auto;
  contain-intrinsic-size: 118px;
}

.result-open {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.gallery-grid .result-card {
  display: block;
  min-height: 0;
  padding: 8px;
}

.gallery-grid .result-open {
  display: block;
  width: 100%;
}

.thumb-slot {
  display: block;
  width: 78px;
  height: 78px;
  overflow: hidden;
  border-radius: var(--radius);
}

.thumb-slot .thumb {
  display: block;
}

.gallery-grid .thumb-slot {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  margin-bottom: 9px;
}

.gallery-grid .thumb-slot .thumb {
  height: 100%;
  margin-bottom: 0;
}

.gallery-grid .thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  margin-bottom: 9px;
}

.gallery-grid .result-card h3 {
  font-size: 14px;
}

.gallery-grid .result-card p {
  display: none;
}

.gallery-grid .card-action {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 44px;
  height: 44px;
}

.thumb {
  height: 78px;
  width: 78px;
  border-radius: var(--radius);
  object-fit: cover;
  background: #111;
}

.result-card h3 {
  margin: 0;
  color: var(--paper);
  font-size: 17px;
  line-height: 1.1;
}

.result-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

.empty {
  padding: 28px 14px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  text-align: center;
}

.category-card,
.gallery-item,
.screenshot-card {
  content-visibility: auto;
}

.category-card {
  contain-intrinsic-size: 116px;
}

.gallery-item {
  contain-intrinsic-size: 220px 290px;
}

.screenshot-card {
  contain-intrinsic-size: 390px 694px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 3, 2, 0.68);
  backdrop-filter: blur(7px) saturate(0.75);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(430px, calc(100vw - 46px));
  max-height: 100dvh;
  overflow: hidden;
  border-left: 1px solid rgba(243, 212, 134, 0.24);
  background: #11100d;
  box-shadow: -28px 0 74px rgba(0, 0, 0, 0.58);
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 160ms ease;
}

.drawer.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: calc(108px + env(safe-area-inset-top));
  padding: calc(18px + env(safe-area-inset-top)) 24px 18px;
  border-bottom: 1px solid rgba(243, 212, 134, 0.16);
  color: var(--paper);
}

.drawer-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.drawer-brand img {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(243, 212, 134, 0.32);
  border-radius: 8px;
}

.drawer-brand div {
  min-width: 0;
}

.drawer-brand p {
  margin: 0 0 5px;
  color: #b89243;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.drawer-head strong {
  display: block;
  color: #f4e7c6;
  font-size: 23px;
  font-weight: 600;
  overflow-wrap: anywhere;
  line-height: 1.1;
}

.drawer-head .icon-btn {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-color: rgba(243, 212, 134, 0.2);
  background: transparent;
  color: #d9c79b;
}

.drawer-body {
  height: calc(100dvh - 108px - env(safe-area-inset-top));
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer-kicker {
  margin: 0 0 10px;
  color: #caa24f;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.drawer-download h2 {
  margin: 0;
  color: #f6e9c8;
  font-size: 24px;
  font-weight: 620;
  line-height: 1.22;
}

.drawer-download > p:not(.drawer-kicker) {
  margin: 12px 0 0;
  color: #b9ac8a;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 13px;
  line-height: 1.65;
}

.drawer-nav {
  display: grid;
  margin-top: 0;
  border-top: 1px solid rgba(243, 212, 134, 0.16);
}

.drawer-row,
.download-nav {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  gap: 13px;
  align-items: center;
  width: 100%;
  min-height: 82px;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid rgba(243, 212, 134, 0.16);
  border-radius: 0;
  background: transparent;
  color: #dfd0aa;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  text-align: left;
}

.drawer-row[hidden] {
  display: none;
}

.drawer-row-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(218, 174, 83, 0.34);
  border-radius: 50%;
  color: #d2ab57;
}

.drawer-row-icon .ui-icon {
  width: 17px;
  height: 17px;
}

.drawer-reminder-time {
  color: #17130a;
  background: #e7d8b3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.drawer-reminder-state {
  min-width: 34px;
  padding: 4px 7px;
  border: 1px solid rgba(243, 212, 134, 0.26);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

#drawerDailyReminderBtn[aria-pressed="true"] .drawer-reminder-state {
  border-color: rgba(243, 212, 134, 0.58);
  color: #f3d486;
  background: rgba(243, 212, 134, 0.1);
}

#drawerDailyReminderBtn[aria-busy="true"] {
  opacity: 0.66;
  pointer-events: none;
}

.drawer-row-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.drawer-row-copy strong {
  color: #f0e2bd;
  font-size: 16px;
  line-height: 1.25;
}

.drawer-row-copy small {
  color: #91866b;
  font-size: 11px;
  line-height: 1.45;
}

.drawer-row-arrow {
  width: 16px;
  height: 16px;
  color: #b9954a;
}

.drawer-row:active,
.drawer-row.active {
  background: rgba(217, 170, 69, 0.07);
}

.drawer-row:focus-visible,
.download-nav:focus-visible,
.drawer-work-card:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

.drawer-contact {
  border-bottom: 1px solid rgba(243, 212, 134, 0.16);
}

.drawer-contact summary {
  border-bottom: 0;
  cursor: pointer;
  list-style: none;
}

.drawer-contact summary::-webkit-details-marker {
  display: none;
}

.drawer-contact[open] summary .drawer-row-arrow {
  transform: rotate(180deg);
}

.drawer-contact summary .drawer-row-arrow {
  transition: transform 160ms ease;
}

.drawer-contact-list {
  display: grid;
  padding: 2px 4px 14px 53px;
}

.drawer-contact-list a,
.drawer-contact-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 40px;
  padding: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-top: 1px solid rgba(243, 212, 134, 0.09);
  border-radius: 0;
  background: transparent;
  color: #a99b78;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 11px;
  text-align: left;
  text-decoration: none;
}

.drawer-contact-list strong {
  color: #d9c79d;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.drawer-download {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(243, 212, 134, 0.2);
}

.drawer-download > [hidden] {
  display: none !important;
}

.download-nav {
  min-height: 76px;
  margin-top: 18px;
  padding: 10px 13px;
  border: 1px solid rgba(218, 174, 83, 0.4);
  border-radius: 8px;
  background: #1a180f;
  text-decoration: none;
}

.download-nav:hover {
  background: #211e13;
}

.drawer-review-link {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 16px;
  gap: 11px;
  align-items: center;
  min-height: 58px;
  margin-top: 10px;
  padding: 10px 13px;
  border: 1px solid rgba(218, 174, 83, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: #c9ad69;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  text-decoration: none;
}

.drawer-review-link > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.drawer-review-link strong {
  color: #e7d5aa;
  font-size: 13px;
  line-height: 1.35;
}

.drawer-review-link small {
  color: #897e65;
  font-size: 10px;
  line-height: 1.4;
}

.drawer-review-link > .ui-icon:last-child {
  width: 14px;
  height: 14px;
  color: #a88744;
}

.drawer-review-link:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

.drawer-works {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(243, 212, 134, 0.2);
}

.drawer-works h2 {
  margin: 0;
  color: #f6e9c8;
  font-size: 24px;
  font-weight: 620;
  line-height: 1.22;
}

.drawer-work-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.drawer-work-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: start;
  min-height: 78px;
  padding: 15px 14px;
  border: 1px solid rgba(218, 174, 83, 0.28);
  border-radius: 8px;
  background: #17150f;
  color: #eadab2;
  text-decoration: none;
}

.drawer-work-index {
  color: #bd9443;
  font-size: 15px;
  line-height: 1.4;
}

.drawer-work-card .drawer-row-arrow {
  margin-top: 2px;
}

.drawer-footer {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(243, 212, 134, 0.14);
  color: #766c56;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 96px;
  left: 22px;
  z-index: 180;
  max-width: 390px;
  margin: auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 10, 8, 0.94);
  color: var(--paper);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 13px;
  text-align: center;
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: max(18px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  background: rgba(4, 4, 3, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.plus-modal {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: grid;
  place-items: end center;
  padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  background: rgba(4, 4, 3, 0.72);
  backdrop-filter: blur(10px);
}

.plus-modal[hidden] {
  display: none;
}

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  background: rgba(4, 4, 3, 0.78);
  backdrop-filter: blur(10px);
}

.support-modal[hidden] {
  display: none;
}

.wechat-download-guide {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: max(92px, calc(env(safe-area-inset-top) + 72px)) 18px max(22px, env(safe-area-inset-bottom));
  background: rgba(2, 2, 1, 0.82);
  backdrop-filter: blur(12px);
}

.wechat-download-guide[hidden] {
  display: none;
}

.wechat-download-pointer {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f2ca68;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  animation: wechat-pointer-nudge 1.4s ease-in-out infinite;
}

.wechat-download-pointer-arrow {
  font-size: 30px;
}

.wechat-download-panel {
  position: relative;
  width: min(100%, 390px);
  padding: 28px 24px 22px;
  border: 1px solid rgba(235, 199, 112, 0.52);
  border-radius: 8px;
  background: #15130e;
  color: #f5e8c7;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
}

.wechat-download-panel:focus {
  outline: none;
}

.wechat-download-panel h2 {
  margin: 8px 0 12px;
  color: #fff0c9;
  font-size: 25px;
  line-height: 1.22;
}

.wechat-download-panel > p:not(.drawer-kicker):not(.wechat-download-status) {
  margin: 0;
  color: #cfc09b;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

.wechat-download-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(235, 199, 112, 0.34);
  border-radius: 50%;
  background: #0c0b08;
  color: #eadcb9;
}

.wechat-download-actions {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.wechat-download-actions .copy-btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  border-radius: 8px;
}

.wechat-download-primary {
  border-color: #e0ac36;
  background: #e0ac36;
  color: #171007;
  font-weight: 800;
}

.wechat-download-secondary {
  background: #1c1912;
  color: #f1d892;
}

.wechat-download-status {
  min-height: 19px;
  margin: 10px 0 0;
  color: #d8bd78;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

@keyframes wechat-pointer-nudge {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4px, -4px); }
}

.guided-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  background: #050504;
}

.guided-overlay[hidden] {
  display: none;
}

.guided-panel {
  position: relative;
  width: min(100%, 430px);
  height: calc(100dvh / var(--native-ui-scale, 1));
  max-height: calc(100dvh / var(--native-ui-scale, 1));
  overflow: hidden;
  background: #090806;
  color: #fff4d1;
}

.guided-visual,
.guided-visual img,
.guided-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.guided-visual img {
  object-fit: cover;
  transform-origin: var(--focus-x, 50%) var(--focus-y, 50%);
  transition: transform 360ms ease, object-position 360ms ease;
}

.guided-visual img.has-focus {
  object-position: var(--focus-x, 50%) var(--focus-y, 50%);
  transform: scale(var(--focus-scale, 1));
}

.guided-shade {
  background:
    linear-gradient(180deg, rgba(3, 3, 2, 0.12) 0 34%, rgba(3, 3, 2, 0.64) 68%, rgba(3, 3, 2, 0.96) 100%),
    linear-gradient(90deg, rgba(3, 3, 2, 0.2), transparent 45%);
}

.guided-close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 141;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 235, 180, 0.42);
  border-radius: 50%;
  background: rgba(8, 7, 5, 0.74);
  color: #fff5d8;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
}

.guided-stage {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(28px, env(safe-area-inset-bottom));
  left: max(20px, env(safe-area-inset-left));
  z-index: 2;
  padding: 22px 20px 20px;
  border: 1px solid rgba(255, 224, 147, 0.38);
  border-radius: 12px;
  background: rgba(12, 10, 7, 0.9);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  max-height: calc(100% - max(92px, calc(env(safe-area-inset-top) + 60px)) - max(28px, env(safe-area-inset-bottom)));
  overflow-y: auto;
  overscroll-behavior: contain;
}

html[data-native-large-text] .guided-stage {
  top: max(92px, calc(env(safe-area-inset-top) + 60px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.guided-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: #d9bd7b;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.guided-dots {
  display: flex;
  gap: 6px;
}

.guided-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 235, 180, 0.34);
}

.guided-dots i.active {
  background: #edbd58;
}

.guided-kicker {
  margin: 0 0 8px;
  color: #edbd58;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.guided-stage h2 {
  margin: 0 0 12px;
  color: #fff4d1;
  font-size: 25px;
  line-height: 1.2;
}

.guided-stage > p:not(.guided-kicker) {
  margin: 0;
  color: #e5d4ad;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

.guided-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.guided-prev,
.guided-next {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 9px;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 900;
}

.guided-prev {
  border: 1px solid rgba(255, 235, 180, 0.36);
  background: rgba(255, 255, 255, 0.06);
  color: #f3dfad;
}

.guided-prev[hidden] {
  display: none;
}

.guided-prev[hidden] + .guided-next {
  grid-column: 1 / -1;
}

.guided-next {
  border: 1px solid #e2ad43;
  background: #d99c2e;
  color: #1a1206;
}

@media (prefers-reduced-motion: reduce) {
  .guided-visual img {
    transition: none;
  }
}

@media (max-width: 340px) {
  .everyday-grid {
    grid-template-columns: 1fr;
  }

  .guided-stage {
    right: 12px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 12px;
    padding: 16px;
  }
}

.plus-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 430px);
  max-height: calc(100dvh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(31, 26, 16, 0.99), rgba(11, 10, 8, 0.99)),
    var(--panel);
  color: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.68);
}

.plus-scroll-content {
  min-height: 0;
  padding: 22px 20px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.support-panel {
  position: relative;
  width: min(100%, 390px);
  max-height: calc(100dvh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: hidden;
  border: 1px solid rgba(243, 212, 134, 0.34);
  border-radius: 8px;
  background: #12110d;
  color: #f4e7c6;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.68);
}

.support-panel:focus {
  outline: none;
}

.support-panel figure {
  max-height: inherit;
  margin: 0;
  padding: 24px 22px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.support-panel figcaption {
  padding-right: 50px;
}

.support-panel h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 620;
}

.support-panel figcaption > p:last-child {
  margin: 12px 0 0;
  color: #ac9e7d;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 13px;
  line-height: 1.65;
}

.support-panel img {
  display: block;
  width: min(100%, 300px);
  height: auto;
  margin: 22px auto 12px;
  border-radius: 6px;
  background: #fff;
}

.video-channel-panel img {
  width: min(100%, 330px);
}

#videoChannelCaption {
  margin: 0;
  color: #c7b78e;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
  text-align: center;
}

.support-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(243, 212, 134, 0.3);
  border-radius: 50%;
  background: #0c0b08;
  color: #eadcb9;
}

.support-close .ui-icon {
  width: 18px;
  height: 18px;
}

.plus-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 1px solid rgba(243, 212, 134, 0.34);
  border-radius: 999px;
  background: rgba(13, 11, 8, 0.94);
  color: var(--paper);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  line-height: 1;
}

.plus-close:active {
  transform: scale(0.96);
}

.plus-kicker {
  margin: 0 0 8px;
  padding-right: 52px;
  color: var(--gold);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.plus-panel h2 {
  margin: 0;
  padding-right: 52px;
  color: #fff5d4;
  font-size: 24px;
  line-height: 1.15;
}

.plus-subtitle {
  margin: 8px 48px 12px 0;
  color: #d8c694;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.plus-note {
  margin-top: -6px;
  margin-bottom: 12px;
  color: #bfae83;
}

.plus-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(243, 212, 134, 0.14);
  border-radius: 8px;
  background: rgba(243, 212, 134, 0.14);
  counter-reset: plus-benefit;
  list-style: none;
  color: #efe2bd;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 13px;
}

.plus-benefits li {
  min-height: 58px;
  padding: 10px;
  background: #15130f;
  overflow-wrap: anywhere;
  counter-increment: plus-benefit;
}

.plus-benefits li::before {
  display: block;
  margin-bottom: 5px;
  color: #c99b3d;
  content: "0" counter(plus-benefit);
  font-size: 9px;
  font-weight: 900;
}

.plan-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.plan-compare > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(243, 212, 134, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.plan-compare > div:last-child {
  border-color: rgba(243, 212, 134, 0.4);
  background: rgba(217, 170, 69, 0.1);
}

.plan-compare h3 {
  margin: 0 0 6px;
  color: var(--gold-2);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 13px;
}

.plan-compare ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #d8c694;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 11px;
  line-height: 1.35;
}

.plus-price {
  display: grid;
  gap: 5px;
  margin: 0;
  color: var(--gold-2);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-weight: 800;
}

.plus-plan-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}

.plus-plan-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: #d8c694;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.plus-plan-option {
  position: relative;
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(243, 212, 134, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #efe2bd;
  cursor: pointer;
}

.plus-plan-option:has(input:checked) {
  border-color: #e2b447;
  background: rgba(217, 170, 69, 0.13);
  box-shadow: inset 0 0 0 1px rgba(226, 180, 71, 0.16);
}

.plus-plan-option input {
  position: absolute;
  top: 13px;
  left: 12px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #e2b447;
}

.plus-plan-main,
.plus-plan-price {
  display: grid;
  min-width: 0;
}

.plus-plan-main {
  gap: 4px;
  padding-left: 27px;
}

.plus-plan-main strong,
.plus-plan-price b {
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 13px;
}

.plus-plan-main small {
  color: #af9f76;
  font-size: 10px;
  line-height: 1.35;
}

.plus-plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-left: 27px;
  text-align: left;
}

.plus-plan-price em {
  padding: 2px 6px;
  border-radius: 999px;
  background: #ddb455;
  color: #171109;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.plus-price small {
  color: var(--muted);
  font-weight: 700;
}

.plus-footnote {
  margin: 3px 0 7px;
  color: #b8a77d;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

.plus-renewal-disclosure {
  margin: 0 0 8px;
  color: #a99971;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 10px;
  line-height: 1.5;
}

.plus-legal-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0;
  color: #8f815e;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 11px;
}

.plus-legal-links a {
  color: #c8b682;
  text-underline-offset: 3px;
}

.plus-action-bar {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin: 0;
  padding: 12px 20px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(243, 212, 134, 0.22);
  background: rgba(12, 10, 7, 0.98);
  box-shadow: 0 -16px 32px rgba(0, 0, 0, 0.38);
}

.plus-cta {
  width: 100%;
  min-height: 50px;
  border-color: #f3d486;
  background: #ddb455;
  color: #171109;
  box-shadow: 0 10px 28px rgba(217, 170, 69, 0.24);
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 850;
  opacity: 1;
  white-space: normal;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.plus-cta:not(:disabled):active {
  transform: translateY(1px) scale(0.99);
  background: #edc86d;
  box-shadow: 0 5px 16px rgba(217, 170, 69, 0.2);
}

.plus-cta:disabled {
  cursor: default;
  border-color: rgba(243, 212, 134, 0.24);
  background: rgba(217, 170, 69, 0.11);
  color: #bba66f;
  box-shadow: none;
  opacity: 0.78;
}

.plus-restore {
  width: 100%;
  margin: 8px 0 0;
  border-color: rgba(243, 212, 134, 0.22);
  background: rgba(255, 246, 220, 0.04);
}

/* Follow available space, including medium-width expanded windows. */
@media (min-width: 600px) {
  body:not(.detail-mode) .app-shell {
    max-width: 840px;
    padding-right: max(24px, env(safe-area-inset-right));
    padding-left: max(24px, env(safe-area-inset-left));
  }

  body:not(.detail-mode) .topbar {
    padding-right: max(24px, env(safe-area-inset-right), calc((100vw - 840px) / 2 + 24px));
    padding-left: max(24px, env(safe-area-inset-left), calc((100vw - 840px) / 2 + 24px));
  }

  #homeView.active {
    display: block;
  }

  #homeView .section-head,
  #homeView .deck-stage,
  #homeView .deck-controls {
    width: 100%;
    max-width: 420px;
    margin-right: auto;
    margin-left: auto;
  }

  #homeView .category-cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  }

  #searchView,
  #savedView,
  #aboutView {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
  }

  body.detail-mode .app-shell {
    max-width: 960px;
    padding-right: max(24px, env(safe-area-inset-right));
    padding-left: max(24px, env(safe-area-inset-left));
  }

  body.detail-mode .topbar {
    padding-right: max(24px, env(safe-area-inset-right), calc((100vw - 960px) / 2 + 24px));
    padding-left: max(24px, env(safe-area-inset-left), calc((100vw - 960px) / 2 + 24px));
  }

  body.detail-mode .detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "visual meta"
      "visual copy";
    margin: 0;
  }

  body.detail-mode .detail-hero .visual {
    grid-area: visual;
    align-self: start;
    min-height: 0;
    aspect-ratio: auto;
    border-right: 1px solid rgba(243, 212, 134, 0.18);
  }

  body.detail-mode .detail-hero > .badge-row {
    grid-area: meta;
    padding: 26px 28px 12px;
  }

  body.detail-mode .detail-hero-copy {
    grid-area: copy;
    align-self: start;
    padding: 8px 28px 34px;
  }

  body.detail-mode .detail-hero-copy h1 {
    font-size: clamp(42px, 5vw, 62px);
  }

  body.detail-mode .detail-section-nav {
    margin: 0 0 28px;
  }

  body.detail-mode .detail-section {
    margin: 0;
    padding: 38px 34px;
  }

  body.detail-mode .locked-archive-gate {
    padding: 0;
  }

  body.detail-mode .detail-create-group > .detail-section {
    margin: 0;
  }

  body.detail-mode .recognition-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.detail-mode .observation-card {
    min-height: 190px;
    padding: 22px 20px 22px 54px;
    border-right: 1px solid rgba(243, 212, 134, 0.18);
  }

  body.detail-mode .observation-card:last-child {
    border-right: 0;
  }

  body.detail-mode .everyday-grid,
  body.detail-mode .comparison-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.detail-mode .detail-create-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.detail-mode .detail-create-group > .detail-section + .detail-section {
    border-left: 1px solid rgba(243, 212, 134, 0.16);
  }

  .plus-modal {
    place-items: center;
  }

  .plus-panel {
    max-height: min(88dvh, 820px);
  }

  .guided-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 16px;
    width: min(100%, 1180px);
    padding: max(76px, calc(env(safe-area-inset-top) + 60px)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }

  .guided-panel .guided-visual {
    position: relative;
    inset: auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 12px;
  }

  .guided-panel .guided-shade {
    background: linear-gradient(180deg, transparent 75%, rgba(3, 3, 2, .15));
  }

  .guided-panel .guided-stage,
  html[data-native-large-text] .guided-panel .guided-stage {
    position: relative;
    inset: auto;
    align-self: center;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 16px;
  }
}

@media (max-width: 360px) {
  .detail-section-nav button {
    min-width: 64px;
    min-height: 60px;
    font-size: 12px;
  }

  .detail-section-nav button small {
    font-size: 8px;
  }

  .detail-hero-copy h1 {
    font-size: 32px;
  }
}

@media (max-width: 360px) {
  .plus-benefits,
  .plan-compare {
    grid-template-columns: 1fr;
  }

  .locked-preview-chapter > header {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .locked-preview-chapter header small {
    grid-column: 2;
  }

  .locked-observation-body,
  .locked-comparison-list {
    grid-template-columns: 1fr;
  }

  .locked-preview-image {
    max-height: 220px;
  }

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

  .locked-profile-item:nth-child(3) {
    border-left: 0;
  }

  .locked-profile-item:nth-child(n + 3) {
    border-top: 1px solid rgba(235, 199, 112, 0.14);
  }
}

.lightbox img {
  max-width: min(100%, 430px);
  max-height: 78vh;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62);
}

.lightbox-hint {
  max-width: min(100%, 430px);
  margin: -2px 0 0;
  color: #f1dfb2;
  font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 15, 10, 0.88);
  color: var(--paper);
  font-size: 24px;
}

.lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.a11y-debug-panel {
  position: fixed;
  right: max(8px, env(safe-area-inset-right));
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 999;
  max-width: min(280px, calc(100vw - 16px));
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 229, 154, 0.55);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.88);
  color: #fff4cd;
  font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  pointer-events: none;
}

@media (max-width: 350px) {
  .top-actions {
    gap: 4px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 9px;
  }

  .brand-primary {
    font-size: 13px;
  }

  .brand-secondary,
  .topbar.has-back .brand-primary {
    font-size: 10px;
  }

  .plan-compare {
    grid-template-columns: 1fr;
  }

  .plan-compare ul {
    font-size: 13px;
  }
}

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

  html {
    scroll-behavior: auto !important;
  }

  .deck-stage .style-card,
  .drawer,
  .toast {
    transition: none !important;
  }

  .deck-stage.fly-left .live-card,
  .deck-stage.fly-right .live-card,
  .deck-stage.fly-left .next,
  .deck-stage.fly-right .prev {
    transform: none !important;
  }
}
.entry-type {
  color: var(--muted, #bdb5a5);
  font-size: 12px;
  letter-spacing: .04em;
  margin: 0 0 8px;
}

.image-provenance {
  color: var(--muted, #bdb5a5);
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0 0;
  max-width: 65ch;
}

.source-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* Today's art leads; learning paths follow and categories close the page. */
#homeView .category-strip {
  min-width: 0;
  margin-top: 32px;
  padding: 28px 0 20px;
  border-top: 1px solid var(--line);
}

.home-learning-intro {
  min-width: 0;
  padding: 26px 0 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.home-learning-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--gold);
  font: 750 10px/1.4 ui-sans-serif, "PingFang SC", sans-serif;
  letter-spacing: .12em;
}

.home-learning-eyebrow::before {
  width: 24px;
  height: 1px;
  background: currentColor;
  content: "";
}

#homeViewTitle {
  max-width: 17em;
  margin: 0;
  color: var(--paper);
  font-size: clamp(32px, 6.4vw, 48px);
  font-weight: 650;
  line-height: 1.22;
  letter-spacing: -.035em;
  text-wrap: balance;
}

html[lang^="zh"] #homeViewTitle {
  max-width: 13em;
  letter-spacing: .015em;
}

.home-learning-summary {
  max-width: 45em;
  margin: 15px 0 0;
  color: var(--muted);
  font: 400 14px/1.8 ui-sans-serif, "PingFang SC", sans-serif;
  text-wrap: pretty;
}

.home-learning-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 9px 12px;
  margin: 22px 0 0;
}

.home-learning-actions button,
.home-reading-card button {
  min-width: 44px;
  min-height: 46px;
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--paper);
  background: transparent;
  font: 650 13px/1.5 ui-sans-serif, "PingFang SC", sans-serif;
  text-align: center;
  overflow-wrap: break-word;
}

.home-learning-actions .home-learning-primary {
  border-color: var(--gold-2);
  background: var(--gold-2);
  color: var(--ink);
}

.home-learning-actions .home-learning-primary::after {
  display: inline-block;
  padding-left: 12px;
  content: "↗";
}

.home-learning-actions .home-learning-all {
  border-color: transparent;
  padding-right: 0;
  padding-left: 0;
  color: var(--gold-2);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--line-strong);
}

.home-learning-actions button:hover:not(:disabled),
.home-reading-card button:hover {
  border-color: var(--paper);
}

.home-reading-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding: 14px 0 14px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 2px solid var(--gold);
}

.home-reading-card > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.home-reading-card small {
  color: var(--gold-2);
  font: 650 11px/1.4 ui-sans-serif, "PingFang SC", sans-serif;
}

.home-reading-card strong {
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.home-reading-card > div > span {
  color: var(--muted);
  font: 400 11px/1.5 ui-sans-serif, "PingFang SC", sans-serif;
}

.home-reading-card button {
  flex: 0 0 auto;
  color: var(--gold-2);
}

.home-free-guides {
  margin-top: 30px;
}

.home-shelf-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px 14px;
  margin-bottom: 14px;
}

.home-shelf-heading h2,
.home-editorial-links h2 {
  margin: 0;
  color: var(--paper);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.5;
}

.home-shelf-heading p {
  margin: 0;
  color: var(--muted);
  font: 400 11px/1.5 ui-sans-serif, "PingFang SC", sans-serif;
}

.home-free-guide-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-free-guide {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #191711;
  color: var(--paper);
  text-align: left;
}

.home-free-guide img {
  display: block;
  width: 100%;
  height: 90px;
  object-fit: cover;
  object-position: center 40%;
  border-bottom: 1px solid var(--line);
}

.home-free-guide-copy {
  display: grid;
  gap: 5px;
  padding: 10px 8px 12px;
}

.home-free-guide-copy small {
  color: var(--gold-2);
  font: 600 10px/1.45 ui-sans-serif, "PingFang SC", sans-serif;
}

.home-free-guide-copy strong {
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.home-free-guide-copy > span {
  color: var(--muted);
  font: 400 11px/1.5 ui-sans-serif, "PingFang SC", sans-serif;
}

.home-task-paths {
  min-width: 0;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.home-task-path-list {
  display: grid;
  gap: 22px;
}

.home-task-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.home-task-heading > span {
  padding-top: 3px;
  color: var(--gold);
  font-size: 13px;
  font-style: italic;
}

.home-task-heading h3 {
  margin: 0;
  color: var(--paper);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.home-task-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font: 400 11px/1.6 ui-sans-serif, "PingFang SC", sans-serif;
}

.home-task-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-task-choices button {
  display: grid;
  align-content: start;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #17150f;
  color: var(--paper);
  text-align: left;
}

.home-task-choices img {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
}

.home-task-choices span {
  padding: 10px 8px;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.home-free-guide:hover,
.home-task-choices button:hover {
  border-color: var(--gold-2);
}

.home-editorial-links {
  display: grid;
  gap: 0;
  min-width: 0;
  margin-top: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.home-editorial-links h2 {
  margin-bottom: 8px;
}

.home-editorial-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 0;
  color: var(--muted);
  font: 400 13px/1.6 ui-sans-serif, "PingFang SC", sans-serif;
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 212, 134, .1);
}

.home-editorial-links a::after {
  color: var(--gold);
  content: "↗";
}

.hero-guided-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 100%;
  min-height: 46px;
  margin: 16px 0 0;
  padding: 11px 15px;
  border: 1px solid var(--gold-2);
  border-radius: 6px;
  background: var(--gold-2);
  color: var(--ink);
  font: 700 13px/1.6 ui-sans-serif, "PingFang SC", sans-serif;
  white-space: normal;
}

.hero-guided-entry .ui-icon {
  width: 17px;
  height: 17px;
}

.guided-completion-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.guided-completion-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.guided-completion-actions button,
.free-filter-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(243, 212, 134, .06);
  color: var(--gold-2);
  font: 650 12px/1.6 ui-sans-serif, "PingFang SC", sans-serif;
  white-space: normal;
}

.free-filter-toggle[aria-pressed="true"] {
  background: var(--gold-2);
  color: var(--ink);
}

@media (min-width: 600px) {
  #homeView .home-learning-intro {
    padding-top: 34px;
  }

  .home-free-guide {
    flex-direction: row;
    align-items: stretch;
  }

  .home-free-guide img {
    flex: 0 0 72px;
    width: 72px;
    height: 100%;
    min-height: 125px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .home-free-guide-copy {
    align-content: center;
    padding: 12px 9px;
  }

  .home-task-path-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .home-task-heading {
    min-height: 78px;
  }

  .home-task-choices {
    gap: 5px;
  }

  .home-task-choices img {
    height: 85px;
  }

  .home-task-choices span {
    padding: 9px 5px;
    font-size: 11px;
  }
}

@media (max-width: 359px) {
  #homeViewTitle {
    font-size: 30px;
  }

  .home-learning-actions .home-learning-primary,
  .home-learning-actions .home-learning-secondary {
    width: 100%;
  }

  .home-free-guide-list {
    gap: 7px;
  }

  .home-free-guide-copy {
    padding-right: 6px;
    padding-left: 6px;
  }
}
