/* Shared UI chrome used across pages. Edit here instead of per-page. */
*, *::before, *::after { box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }
* { scrollbar-width: none !important; }
*::-webkit-scrollbar { display: none !important; }
body { user-select: none; -webkit-user-select: none; }
input, textarea { user-select: text; -webkit-user-select: text; }
@font-face { font-family: "Shippori Gothic B2"; src: url("/fonts/ShipporiGothicB2-Bold.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
.act-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; width: 40px; padding: 0; color: #62666d; cursor: pointer; border: none; border-radius: 50%; background: transparent; text-decoration: none; transition: color 0.2s, background 0.2s; flex-shrink: 0; }
.act-btn.del { color: #62666d; }
.act-btn.del:hover, .act-btn.del:active { color: #f28b82; background: transparent; }
.act-btn:hover, .act-btn:active { color: #e5e5e6; background: transparent; }
.btn-primary { all: unset; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #e5e5e6; background: transparent; transition: color 0.15s, background 0.15s; }
.btn-primary:disabled { color: #23252a; cursor: default; pointer-events: none; }
.btn-secondary { all: unset; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #383b3f; background: transparent; transition: color 0.15s, background 0.15s; }
/* width:fit-content matters when this lands directly on a grid-item label (e.g. Nude) -- grid
   items stretch to fill their column by default, which silently makes the whole column's empty
   space hoverable/clickable along with the text. Harmless no-op when applied to an inline <a>/
   <span> nested inside a label instead, since those are already sized to their content. */
.clickable-label { color: #62666d; cursor: pointer; text-decoration: none; width: fit-content; }
.clickable-label:hover, .clickable-label:active { color: #e5e5e6; }
.container { width: 100%; max-width: 400px; margin: 0 auto; padding: 20px 16px 120px; }
.drawer-link { display:flex; align-items:center; gap:14px; padding:11px 24px 11px 37px; font-size:15px; letter-spacing:0.03em; color:#8a8f98; text-decoration:none; transition:background 0.15s, color 0.15s; }
.drawer-link .material-symbols-rounded, .drawer-link svg { font-size:20px; width:20px; height:20px; flex-shrink:0; }
.drawer-link.active { color:#e5e5e6; font-weight:500; }
.drawer-link:hover, .drawer-link:active { background:#161718; color:#e5e5e6; }
/* padding-top mirrors .top-bar's safe-area reservation -- env() resolves to 0 without
   viewport-fit=cover (currently only index.html), so this is a no-op on every other page. */
.drawer-logo { height:108px; display:flex; align-items:center; gap:10px; padding:env(safe-area-inset-top, 0px) 34px 0; box-sizing:content-box; flex-shrink:0; user-select:none; -webkit-user-select:none; -webkit-tap-highlight-color:transparent; }
.drawer-logo span { font-size:18px; font-weight:510; letter-spacing:0.1px; color:#d0d6e0; }
.drawer-logo-icon { width:40px; height:40px; display:flex; align-items:center; justify-content:center; flex-shrink:0; cursor:pointer; }
.drawer-nav { display:flex; flex-direction:column; }
/* Google Photos intercepts its own domain via OS-level Universal/App Links once the Google Photos
   app is installed -- tapping any photos.google.com link from inside the installed PWA gets yanked
   out into that app instead of staying in-app, with no way for this page's JS/HTML to prevent it.
   Image.html is nothing but those links, so hide its nav entry in that mode instead of leaving a
   page whose entire purpose is now broken. */
@media (display-mode: standalone) {
  .drawer-nav a[href="image.html"] { display: none; }
}
@media (min-width: 600px) { .container { max-width: 480px; } }
.drawer-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.6); z-index:150; }
.drawer-overlay.show { display:block; }
.drawer-overlay.show .drawer-panel { transform:translateX(0); }
/* top:-4px + padding-top:4px (instead of top:0) extends the panel's own background 4px past the
   true screen edge -- mobile Safari's address-bar show/hide can otherwise briefly reveal a hairline
   gap at the top of a position:fixed;top:0 element, showing whatever's behind it through the seam. */
.drawer-panel { position:fixed; top:-4px; left:0; bottom:0; width:240px; max-width:80vw; background:#0f1011; box-shadow:0 0 32px rgba(0,0,0,0.5); transform:translateX(-100%); transition:transform 0.65s cubic-bezier(0.16,1,0.3,1); display:flex; flex-direction:column; padding:4px 0 24px; }
.field-row label, .search-row label { font-size: 13px; color: #8a8f98; font-weight: 400; letter-spacing: 0.04em; }
.field-row.group-child, .search-row.group-child { padding-left: 52px; }
.field-row.group-child input.field, .search-row.group-child input { height: 44px; }
.field-row.group-child label, .search-row.group-child label { color: #383b3f; font-size: 11px; }
.field-row.group-header { border-bottom: none; min-height: 60px; }
.field-row.group-header label, .search-row.group-header label { color: #8a8f98; }
.field-row.group-header::after, .search-row.group-header::after { display: none; }
.field-row.no-border::after, .search-row.no-border::after { display: none; }
.field-row.solo-icon, .search-row.solo-icon { grid-template-columns: 110px 1fr 18px; }
.field-row::after, .search-row::after { content: ""; display: none; }
.group-label, .nat-lbl-main { font-size: 11px; color: #e5e5e6; letter-spacing: 0.12em; text-transform: uppercase; }
.header-icon-link { color:#62666d; display:flex; align-items:center; justify-content:center; width:18px; height:18px; transition:color 0.15s; }
.header-icon-link:hover, .header-icon-link:active { color:#e5e5e6; }
.header-icon-wrap-left { position:absolute; left:33.5px; top:50%; transform:translateY(-50%); display:flex; align-items:center; gap:10px; }
/* A section-header's own title text doubling as a link (Prompt/Body) -- keeps the header's own
   resting color, dims a step on hover/active instead of brightening (there's no brighter state to
   go to, since the header text is already at full brightness). */
.header-label-link { color: inherit; text-decoration: none; transition: color 0.15s; }
.header-label-link:hover, .header-label-link:active { color: #8a8f98; }
/* Generic hover-brightens convention (matches .header-icon-link/.lb-close) for any plain icon or
   text link that doesn't already have its own hover treatment -- color only, no sizing/layout, so
   it composes with whatever box the element already is. */
.hover-fade { color: #62666d; transition: color 0.15s; }
.hover-fade:hover, .hover-fade:active { color: #e5e5e6; }
.lb-arrow-line { flex:1;width:100%;display:flex;align-items:center;justify-content:center; }
.lb-bwh { font-size:13px;color:#62666d;letter-spacing:0.06em;font-family:"Google Sans","Shippori Gothic B2",sans-serif;line-height:1; }
.lb-bwh-line { flex-shrink:0;display:flex;align-items:center; }
.lb-bwh-row { display:flex;align-items:center;gap:16px;white-space:nowrap; }
/* Matches the site-wide top-bar icon convention (40x40 circle, 24px from the right edge,
   vertically centered in the 108px-tall bar) instead of floating as a bare glyph. */
.lb-close { position:fixed;top:34px;right:34px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:18px;color:#62666d;cursor:pointer;z-index:101;line-height:1;user-select:none; }
.lb-close:hover,.lb-close:active { color:#e5e5e6 }
.lb-crossbar { display:flex;align-items:flex-start;justify-content:center; }
.lb-height-val { font-size:13px;color:#62666d;letter-spacing:0.06em;font-family:"Google Sans","Shippori Gothic B2",sans-serif;white-space:nowrap;padding:16px 0;line-height:1; }
.lb-img { max-width:calc(100vw - 220px);max-height:82vh;border-radius:6px;object-fit:contain;display:block; }
.lb-left { position:absolute;left:-84px;bottom:0;height:66.6%;width:78px;display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start;padding:0 0 4px 0;pointer-events:none;box-sizing:border-box;transform:translateY(32px); }
.lb-name-age { font-size:13px;color:#62666d;letter-spacing:0.06em;font-family:"Google Sans","Shippori Gothic B2",sans-serif;display:block; }
.lb-name-en { font-size:16px;font-weight:500;color:#8a8f98;letter-spacing:0.04em;font-family:"Google Sans","Shippori Gothic B2",sans-serif;display:block; }
.lb-name-overlay { position:absolute;top:0;left:-84px;width:78px;pointer-events:none;line-height:1.4; }
.lb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 100; align-items: center; justify-content: center; }
.lb-overlay.show { display: flex; }
.lb-right { position:absolute;right:-84px;top:0;height:100%;width:40px;display:flex;flex-direction:column;align-items:center;pointer-events:none; }
.lb-wrap { position:relative;display:inline-flex;align-items:center;justify-content:center; }
.links-btn { all: unset; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #8a8f98; transition: background 0.15s, color 0.15s; }
.links-btn.open { color: #e5e5e6; }
.links-btn:hover, .links-btn:active { background: #23252a; color: #e5e5e6; }
.links-dropdown.open { display: block; }
.links-item { display: flex; align-items: center; justify-content: center; padding: 8px 16px; font-size: 11px; color: #8a8f98; text-decoration: none; letter-spacing: 0.04em; transition: background 0.12s, color 0.12s; white-space: nowrap; position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; text-align: center; }
.links-item:hover, .links-item:active { background: #0f1011; color: #e5e5e6; }
.loading-indicator { display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.loading-indicator::after { content: ""; width: 22px; height: 22px; border: 2px solid #23252a; border-top-color: #d0d6e0; border-radius: 50%; animation: spin 0.7s linear infinite; }
.locked-out { pointer-events:none !important; opacity:0.35; transition:opacity 0.2s; }
@keyframes spin { to { transform: rotate(360deg); } }
.material-symbols-rounded { font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle; }
.modal { background: #0f1011; border-radius: 12px; padding: 28px 28px 24px; width: 300px; text-align: center; border: 1px solid #23252a; box-shadow: 0 8px 32px rgba(0,0,0,0.5); display: flex; flex-direction: column; align-items: stretch; }
.modal-box { background: #0f1011; border: 1px solid #161718; border-radius: 12px; padding: 24px; width: 100%; max-width: 448px; box-sizing: border-box; }
.links-dropdown { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: #08090a; border: 1px solid #161718; border-radius: 12px; padding: 6px 0; z-index: 100; width: 120px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.modal-btn { height: 44px; padding: 0; border: none; border-radius: 6px; font-family: "Google Sans", "Shippori Gothic B2", sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; cursor: pointer; flex: 1; }
.modal-btn.cancel { background: transparent; color: #8a8f98; border: 1px solid #23252a; transition: background 0.2s, color 0.2s; }
.modal-btn.cancel:hover, .modal-btn.cancel:active { background: #23252a; color: #d0d6e0; }
.modal-btn.confirm { background: #e5e5e6; color: #08090a; transition: background 0.2s; }
.modal-btn.confirm:hover, .modal-btn.confirm:active { background: #d0d6e0; }
.modal-btn.edit { background: #e5e5e6; color: #08090a; transition: background 0.2s; }
.modal-btn.edit:hover, .modal-btn.edit:active { background: #d0d6e0; }
.modal-btn.lg { height: 44px; border-radius: 6px; }
.modal-btns { display: flex; gap: 12px; width: 100%; }
.modal-msg { font-size: 13px; color: #8a8f98; font-weight: 400; margin-bottom: 20px; line-height: 1.5; text-align: center; letter-spacing: 0.08em; }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 100; align-items: center; justify-content: center; }
.modal-overlay.show { display: flex; }
.no-results-label { color: #62666d; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.no-results-wrap { display: flex; flex-direction: column; align-items: center; padding: 0 16px 36px; gap: 20px; }
.note-badge { cursor: pointer; }
.note-drop-thumb { width: 60px; height: 90px; border-radius: 2px; object-fit: cover; flex-shrink: 0; background: #161718; }
.note-drop-thumb-empty { width: 60px; height: 90px; border-radius: 2px; flex-shrink: 0; background: #161718; }
.note-drop-title { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 4; }
.note-dropdown.open { display: block; }
@keyframes fadeIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeOut { to { opacity:0; transform:translateY(-4px); } }
.page-exit { animation: fadeOut 0.12s ease forwards; }
.prompt-mode-seg-wrap { position:absolute; right:33.5px; top:50%; transform:translateY(-50%); display:flex; align-items:center; gap:2px; background:#08090a; border:1px solid #23252a; border-radius:6px; padding:2px; }
.prompt-mode-seg.active { color:#e5e5e6; }
.prompt-mode-seg:hover, .prompt-mode-seg:active { color:#8a8f98; }
.prompt-mode-thumb { position:absolute; top:2px; left:2px; width:22px; height:22px; border-radius:6px; background:#383b3f; box-shadow:0 1px 4px rgba(0,0,0,0.4); transition:transform 0.25s cubic-bezier(.4,0,.2,1); z-index:0; }
.pt-btn { cursor:pointer; height:32px; flex:1; min-width:0; padding:0 4px; display:flex; align-items:center; justify-content:center; border:1px solid #23252a; border-radius:6px; font-size:11px; color:#62666d; font-family:"Google Sans",sans-serif; background:transparent; transition:color 0.15s, background 0.15s; -webkit-tap-highlight-color:transparent; user-select:none; }
.pt-btn-row { padding:14px 33.5px; display:flex; align-items:center; justify-content:center; gap:5px; }
.pt-btn.selected { background:#23252a; color:#e5e5e6; }
.pt-btn:active { background:#23252a; color:#e5e5e6; }
.pt-btn:disabled { color:#23252a; border-color:#161718; cursor:default; pointer-events:none; }
.pt-btn:hover { background:#23252a; color:#e5e5e6; }
.pwa .lb-name-en { font-size:13px; }
.pwa .lb-name-age { font-size:11px; }
.pwa .lb-bwh { font-size:11px; }
.pwa .lb-height-val { font-size:11px; }
.pwa .lb-left { transform:translateY(16px); }
.pwa .lb-name-overlay { line-height:1.3; }
.record { padding: 0; border-bottom: none; display: flex; flex-direction: row; align-items: stretch; position: relative; }
.record-name { font-size: 15px; font-weight: 510; letter-spacing: 0.15px; color: #d0d6e0; }
.record-name a { color: #d0d6e0; text-decoration: none; transition: color 0.2s; }
.record-name a:hover, .record-name a:active { color: #e5e5e6; }
.record-score { font-size: 10px; color: #62666d; letter-spacing: 0.10em; margin-bottom: 2px; }
.record-stats { font-size: 10.5px; color: #62666d; letter-spacing: 0.04em; min-height: 16px; cursor: pointer; }
.record-stats:hover, .record-stats:active { color: #e5e5e6; }
.row-icon-left { position: absolute; right: 76px; top: 50%; transform: translateY(-50%); }
.row-icon-right { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); }
.record-thumb { position: absolute; top: 16px; bottom: 14px; right: 28px; width: 72px; overflow: hidden; border-radius: 12px; cursor: pointer; }
.record-thumb img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: top center; opacity: 0; transition: opacity 0.3s; }
.record-thumb img.loaded { opacity: 1; }
.record-thumb-empty { display: none; }
.record::after { content: ""; position: absolute; bottom: 0; left: 16px; right: 16px; height: 0.5px; background: #08090a; }
.record:last-child::after { display: none; }
.search-row.group-header { border-bottom: none; min-height: 52px; }
.section-card, .search-card { background: #0f1011; border-radius: 12px; border: 1px solid rgba(255,255,255,0.06); box-shadow: 0px 2px 4px rgba(0,0,0,0.4); margin-bottom: 20px; overflow: hidden; }
.section-header { user-select: none;
  -webkit-user-select: none;
  padding: 16px 32px;
  font-size: 11px;
  font-weight: 500;
  color: #e5e5e6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid #23252a;
  text-align: center; }
.sk-bar { border-radius: 6px; background: #161718; }
.sk-card { background: #0f1011; border-radius: 12px; border: 1px solid rgba(255,255,255,0.06); margin-bottom: 12px; overflow: hidden; box-shadow: 0px 2px 4px rgba(0,0,0,0.4); }
.sk-chip { width: 28px; height: 18px; border-radius: 12px; background: #161718; }
.sk-chips { display: flex; gap: 6px; }
.sk-label { width: 60px; height: 9px; border-radius: 6px; background: #161718; margin: 20px 4px 8px; }
.sk-name { width: 120px; height: 14px; }
.sk-row:last-child { border-bottom: none; }
.sk-score { width: 48px; height: 9px; }
.sk-stats { width: 80px; height: 10px; }
.sort-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; border-radius: 50%; color: #8a8f98; cursor: pointer; transition: background 0.15s, color 0.15s; user-select: none; }
.sort-btn:hover, .sort-btn:active, .sort-btn.open, .sort-btn.active { background: #23252a; color: #e5e5e6; }
.sort-dropdown { position: absolute; top: calc(100% + 6px); right: 0; background: #08090a; border: 1px solid #161718; border-radius: 12px; padding: 6px 0; z-index: 100; width: 120px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); overflow: hidden; }
.sort-label { font-size: 11px; color: #e5e5e6; letter-spacing: 0.06em; }
.sort-option { padding: 8px 16px; font-family: "Google Sans", "Shippori Gothic B2", sans-serif; font-size: 11px; letter-spacing: 0.04em; color: #8a8f98; cursor: pointer; transition: background 0.12s, color 0.12s; text-align: center; }
.sort-option.active { color: #e5e5e6; }
.sort-option:hover, .sort-option:active { background: #0f1011; color: #e5e5e6; }
.sort-wrap { position: relative; display: flex; align-items: center; }
.tip-popup { position: fixed; top: 0; left: 0; background: #1c1e22; color: #e5e5e6; font-family: "Google Sans", "Shippori Gothic B2", sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.02em; padding: 5px 9px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.12s ease; z-index: 9999; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.tip-popup.show { opacity: 1; }
.toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  background: #000000; color: #e5e5e6;
  padding: 12px 32px; border-radius: 12px;
  font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  max-width: calc(100% - 40px); text-align: center; z-index: 450;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
.toast.error { background: #383b3f; color: #e5e5e6; }
.toast.info { background: #161718; color: #d0d6e0; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }
.toast.success { background: #23252a; color: #e5e5e6; }
/* padding-top reserves the status bar/notch area on a viewport-fit=cover page (currently just
   index.html) -- env() resolves to 0 without that meta tag, so this is a no-op everywhere else. */
/* box-sizing:content-box (overriding the site-wide border-box reset) so the safe-area padding
   adds height on top of the full 108px instead of eating into it -- border-box was squeezing the
   icon row into less space instead of pushing it down, on every page except index.html (which has
   its own local .top-bar override with height:auto, unaffected by this). */
.top-bar { position: sticky; top: 0; z-index: 10; background: #000000; display: flex; align-items: center; padding: env(safe-area-inset-top, 0px) 34px 0; height: 108px; box-sizing: content-box; }
.top-bar-back { all: unset; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #8a8f98; transition: background 0.15s, color 0.15s; }
.top-bar-back:hover, .top-bar-back:active { background: #383b3f; color: #e5e5e6; }
.top-bar-crumb { font-size: 15px; font-weight: 500; letter-spacing: 0.02em; color: #8a8f98; white-space: nowrap; user-select: none; -webkit-user-select: none; }
.top-bar-crumb .sep { color: #383b3f; margin-right: 8px; }
/* A page's own title doubling as a link (Bridal/Nude) keeps the crumb's own resting color --
   only brightens like every other hover target on interaction. */
.top-bar-crumb a { color: inherit; text-decoration: none; transition: color 0.15s; }
.top-bar-crumb a:hover, .top-bar-crumb a:active { color: #e5e5e6; }
.top-bar-ext a:hover, .top-bar-ext a:active { background: #23252a; color: #e5e5e6; }
.top-bar-left { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.top-bar-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; width: 128px; flex-shrink: 0; margin-left: auto; }
/* Installed-PWA (standalone) rendering sits the right-side icon a couple px lower than the
   top-bar-back icon on the left -- nudge it back up to match. */
@media (display-mode: standalone) {
  .top-bar-right { transform: translateY(-2px); }
}
.video-dd { display: none; position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #08090a; border: 1px solid #23252a; border-radius: 12px; padding: 6px 0; z-index: 100; width: 120px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.video-dd-item { display: flex; align-items: center; justify-content: center; padding: 8px 16px; font-size: 11px; color: #8a8f98; text-decoration: none; letter-spacing: 0.04em; transition: background 0.12s, color 0.12s; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; text-align: center; position: relative; }
.video-dd-item.grayed { color: #383b3f; pointer-events: none; cursor: default; }
.video-dd-item.has-sub { position: relative; cursor: default; }
.video-dd-item.has-sub:hover { background: transparent; color: #8a8f98; }
.video-dd-item:hover, .video-dd-item:active { background: #23252a; color: #e5e5e6; }
.video-dd-sub { display: none; }
.video-dd-sub.open { display: block; }
.video-dd-subitem { display: flex; align-items: center; justify-content: center; padding: 8px 16px; font-size: 10px; color: #62666d; text-decoration: none; letter-spacing: 0.04em; transition: background 0.12s, color 0.12s; white-space: nowrap; text-align: center; cursor: pointer; }
.video-dd-subitem.grayed { color: #383b3f; pointer-events: none; cursor: default; }
.video-dd-subitem.has-fav:hover { background: transparent; color: #62666d; }
.video-dd-subitem:hover, .video-dd-subitem:active { background: #23252a; color: #e5e5e6; }
.video-dd.open { display: block; }
