@font-face { font-family: 'Montserrat'; src: url('/fonts/Montserrat.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Mr Dafoe'; src: url('/fonts/MrDafoe.ttf') format('truetype'); font-display: swap; }

:root {
  --pink: #ff2d95;
  --pink-2: #ff5fb0;
  --pink-soft: rgba(255, 45, 149, 0.55);
  --bg: #000;
  --card: #0b0b0d;
  --text: #f5f5f7;
  --muted: #9a9aa5;
  --line: #24242b;
  --nav-h: 74px;
  --glow: 0 0 6px rgba(255,45,149,.55), 0 0 18px rgba(255,45,149,.25);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.4;
  background-color: #000;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.shell { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px); }
@media (min-width: 700px) {
  .shell { border-left: 1px solid #141418; border-right: 1px solid #141418; background: rgba(0,0,0,.55); }
}

/* ---------- header ---------- */
.top { padding: 14px 16px 6px; position: sticky; top: 0; z-index: 20; background: rgba(0,0,0,.94); backdrop-filter: blur(8px); border-bottom: 1px solid #16161b; }
.logo { display: block; width: max-content; margin: 4px auto 6px; position: relative; padding: 0 26px 18px 0; }
.logo-drill { font-weight: 800; font-size: 44px; letter-spacing: -1.5px; color: #fff; line-height: 1; text-shadow: 0 2px 0 #000; }
.logo-social {
  font-family: 'Mr Dafoe', cursive; font-size: 46px; color: var(--pink); position: absolute; right: -8px; bottom: -6px;
  transform: rotate(-8deg); text-shadow: 0 0 8px rgba(255,45,149,.75), 0 0 22px rgba(255,45,149,.35); line-height: 1;
}
.top.compact .logo { margin: 0 auto 2px; padding: 0 18px 12px 0; }
.top.compact .logo-drill { font-size: 32px; }
.top.compact .logo-social { font-size: 33px; bottom: -4px; right: -6px; }
.top.compact .icon-row { padding-top: 2px; }
.top.compact .icon-row a { height: 38px; }
.top.compact .icon-row a svg { width: 26px; height: 26px; }
.top.compact .icon-row .me-avatar { width: 26px; height: 26px; }
.icon-row { display: flex; justify-content: space-around; align-items: center; padding: 8px 4px 4px; }
.icon-row a { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: #d8d8de; border-radius: 12px; }
.icon-row a svg { width: 30px; height: 30px; }
.icon-row a.active { color: var(--pink); filter: drop-shadow(0 0 6px rgba(255,45,149,.7)); }
.icon-row .badge { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--pink); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 8px var(--pink); }
.icon-row .badge[hidden] { display: none; }
.notif-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.notif { display: flex; gap: 11px; align-items: flex-start; padding: 11px 12px; border-radius: 16px; background: #111116; border: 1px solid #22222a; color: inherit; text-decoration: none; }
.notif.unread { border-color: rgba(255,45,149,.55); box-shadow: 0 0 12px rgba(255,45,149,.18); background: #17101a; }
.notif .ntext { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
.notif .nsnip { color: #cfcfd6; font-size: 13px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif .ntime { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.notif .nthumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; }
.notif .ngem svg { width: 15px; height: 15px; vertical-align: -2px; }
.icon-row .me-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1.5px solid currentColor; }

/* ---------- feed + cards ---------- */
main { padding: 6px 12px 0; outline: none; }
.card {
  background: var(--card); border: 1.5px solid var(--pink); border-radius: 18px; margin: 12px 0 18px; padding: 12px;
  box-shadow: 0 0 8px rgba(255,45,149,.55), 0 0 22px rgba(255,45,149,.22), inset 0 0 14px rgba(255,45,149,.08);
}
.post-head { display: flex; align-items: center; gap: 10px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pink); box-shadow: 0 0 8px rgba(255,45,149,.5); background: #222; flex: none; }
.avatar.sm { width: 32px; height: 32px; border-width: 1.5px; }
.avatar.lg { width: 96px; height: 96px; border-width: 3px; }
.who { flex: 1; min-width: 0; }
.who .name { font-weight: 600; font-size: 17px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .mood { color: var(--pink); font-size: 13.5px; display: flex; align-items: center; gap: 5px; }
.who .mood svg { width: 13px; height: 13px; }
.more { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; position: relative; }
.more svg { width: 22px; height: 22px; }
.menu {
  position: absolute; right: 0; top: 38px; background: #121216; border: 1px solid var(--pink-soft); border-radius: 12px; padding: 6px; z-index: 10;
  min-width: 170px; box-shadow: var(--glow); text-align: left;
}
.menu button { display: block; width: 100%; padding: 10px 12px; border-radius: 8px; text-align: left; font-size: 14px; }
.menu button:hover { background: #1d1d23; }
.menu .danger { color: #ff6b8a; }
.post-img { display: block; width: 100%; margin: 10px 0 8px; border-radius: 12px; border: 1px solid rgba(255,45,149,.45); background: #111; aspect-ratio: 3 / 2; object-fit: cover; }
.post-body { margin: 6px 2px 4px; font-size: 15px; white-space: pre-wrap; word-wrap: break-word; }
.post-body.text-only { font-size: 18px; font-weight: 500; padding: 14px 6px; }
.post-time { color: var(--muted); font-size: 12px; margin: 2px 2px 0; }
.actions { display: flex; align-items: center; gap: 22px; margin-top: 6px; padding: 2px; }
.act { display: flex; align-items: center; gap: 7px; font-size: 15px; color: #e6e6ea; min-height: 36px; position: relative; }
.act svg { width: 26px; height: 26px; }
.act.share { margin-left: auto; }
.act.share svg { width: 22px; height: 22px; }

/* ---------- gem like ---------- */
.gem svg { overflow: visible; transition: transform .15s ease; }
.gem .gem-body { fill: transparent; stroke: #f0f0f4; stroke-width: 1.5; stroke-linejoin: round; transition: fill .2s, stroke .2s; }
.gem .gem-facets { fill: none; stroke: #f0f0f4; stroke-opacity: .55; stroke-width: 1; stroke-linejoin: round; }
.gem .gem-shine { opacity: 0; }
.gem.liked .gem-body { fill: url(#gemFill); stroke: #ff8cc8; }
.gem.liked .gem-facets { stroke: #fff; stroke-opacity: .6; }
.gem.liked .gem-shine { opacity: .9; }
.gem.liked svg { filter: drop-shadow(0 0 4px rgba(255,45,149,.9)) drop-shadow(0 0 10px rgba(255,45,149,.5)); }
.gem.pop svg { animation: gemPop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes gemPop { 0% { transform: scale(1); } 35% { transform: scale(1.45) rotate(-8deg); } 100% { transform: scale(1); } }
.spark { position: absolute; left: 13px; top: 50%; width: 10px; height: 10px; pointer-events: none; color: #ffd1ea; animation: spark .7s ease-out forwards; }
.spark svg { width: 10px; height: 10px; filter: drop-shadow(0 0 3px var(--pink)); }
@keyframes spark {
  0% { transform: translate(-50%, -50%) scale(.3); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(90deg); opacity: 0; }
}

/* ---------- comments ---------- */
.comments { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; }
.comment { display: flex; gap: 9px; padding: 7px 0; align-items: flex-start; }
.comment .bubble { background: #15151a; border: 1px solid #22222a; border-radius: 14px; padding: 7px 11px; flex: 1; min-width: 0; }
.comment .cname { font-weight: 600; font-size: 13.5px; }
.comment .ctext { font-size: 14px; white-space: pre-wrap; word-wrap: break-word; }
.comment .cmeta { color: var(--muted); font-size: 11.5px; margin-top: 2px; display: flex; gap: 10px; }
.comment .cmeta button { color: var(--muted); font-size: 11.5px; }
.comment .cgem { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 34px; min-height: 40px; padding-top: 6px; position: relative; color: var(--muted); font-size: 11.5px; }
.comment .cgem svg { width: 17px; height: 17px; }
.comment .cgem.liked { color: #ff8cc8; }
.comment .cgem .spark { left: 12px; top: 14px; }
.comment-form { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.comment-form input { flex: 1; }
.empty-comments { color: var(--muted); font-size: 13.5px; padding: 6px 2px; }

/* ---------- forms ---------- */
input[type=text], input[type=password], input[type=email], textarea {
  width: 100%; background: #0f0f13; border: 1.5px solid #2a2a33; border-radius: 12px; color: var(--text); padding: 12px 14px; font: inherit;
}
input:focus, textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,45,149,.18); outline: none; }
textarea { resize: vertical; min-height: 110px; }
.btn {
  background: var(--pink); color: #fff; font-weight: 700; border-radius: 999px; padding: 12px 20px; box-shadow: 0 0 14px rgba(255,45,149,.55);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; border: 1.5px solid var(--pink); color: var(--pink); box-shadow: none; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.send-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; box-shadow: 0 0 10px rgba(255,45,149,.5); flex: none; }
.send-btn svg { width: 20px; height: 20px; }
.field { margin: 12px 0; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.error { color: #ff6b8a; font-size: 14px; min-height: 20px; margin: 6px 0; }
h1.page-title { font-size: 22px; margin: 10px 4px 4px; font-weight: 700; }
.sub { color: var(--muted); margin: 0 4px 10px; }

/* auth */
.tabs { display: flex; background: #101014; border-radius: 999px; padding: 4px; margin: 6px 0 14px; border: 1px solid #22222a; }
.tabs button { flex: 1; padding: 10px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.tabs button.on { background: var(--pink); color: #fff; box-shadow: 0 0 10px rgba(255,45,149,.5); }
.demo-hint { color: var(--muted); font-size: 12.5px; text-align: center; margin-top: 14px; }

/* new post */
.drop {
  display: grid; place-items: center; text-align: center; border: 2px dashed var(--pink-soft); border-radius: 16px; min-height: 220px; padding: 18px;
  color: #e6e6ea; background: rgba(255,45,149,.04); cursor: pointer; position: relative; overflow: hidden;
}
.drop svg { width: 46px; height: 46px; color: var(--pink); filter: drop-shadow(0 0 6px rgba(255,45,149,.7)); }
.drop .hint { color: var(--muted); font-size: 13px; margin-top: 4px; }
.drop img { width: 100%; max-height: 360px; object-fit: contain; border-radius: 10px; }
.drop .remove { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.7); border: 1px solid var(--pink); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.moods { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid #33333d; border-radius: 999px; padding: 7px 12px; font-size: 13.5px; color: #ddd; }
.chip.on { border-color: var(--pink); color: #fff; background: rgba(255,45,149,.16); box-shadow: 0 0 8px rgba(255,45,149,.35); }
.counter { text-align: right; color: var(--muted); font-size: 12px; margin-top: 4px; }

/* profile */
.profile-head { text-align: center; padding: 14px 10px 6px; }
.profile-head h2 { margin: 10px 0 0; font-size: 22px; }
.profile-head .handle { color: var(--pink); font-size: 14px; }
.profile-head .bio { color: #d4d4da; margin: 8px auto; max-width: 340px; white-space: pre-wrap; }
.stats { display: flex; justify-content: center; gap: 36px; margin: 12px 0; }
.stats b { display: block; font-size: 19px; }
.stats span { color: var(--muted); font-size: 12.5px; }
.profile-actions { display: flex; gap: 10px; justify-content: center; margin: 8px 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.grid3 a { aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,45,149,.35); background: #111; display: block; position: relative; }
.grid3 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grid3 .txt { padding: 8px; font-size: 12px; color: #ddd; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; height: 100%; background: linear-gradient(135deg, #1a0c14, #0b0b0d); }
.section-label { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.5px; margin: 14px 4px 8px; }

/* discover */
.creators { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 12px; scrollbar-width: none; }
.creators a { text-align: center; font-size: 12px; width: 70px; flex: none; }
.creators .avatar { width: 60px; height: 60px; margin: 0 auto 4px; display: block; }
.creators span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* placeholder */
.placeholder { text-align: center; padding: 40px 18px; }
.placeholder .big-gem svg { width: 84px; height: 84px; }
.placeholder h2 { margin: 16px 0 6px; }
.placeholder p { color: var(--muted); max-width: 320px; margin: 0 auto; }
.soon { display: inline-block; margin-top: 16px; border: 1px solid var(--pink); color: var(--pink); padding: 5px 12px; border-radius: 999px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }

/* bottom nav */
.bottom {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 30;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(8,8,10,.96); border-top: 1px solid #1e1e24; display: flex; align-items: center; justify-content: space-around;
  backdrop-filter: blur(10px);
}
.bottom a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; color: #c9c9d0; width: 72px; }
.bottom a svg { width: 27px; height: 27px; }
.bottom a.active { color: var(--pink); }
.bottom a.active svg { filter: drop-shadow(0 0 5px rgba(255,45,149,.75)); }
.bottom a.plus { width: 62px; height: 62px; border-radius: 50%; background: var(--pink); color: #fff; justify-content: center; margin-top: -26px;
  box-shadow: 0 0 0 4px #000, 0 0 18px rgba(255,45,149,.85), 0 0 40px rgba(255,45,149,.35); }
.bottom a.plus svg { width: 30px; height: 30px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 22px); transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  background: #16161b; border: 1px solid var(--pink); color: #fff; padding: 10px 18px; border-radius: 999px; box-shadow: var(--glow); transition: all .25s; z-index: 50; font-size: 14px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.loading { text-align: center; color: var(--muted); padding: 30px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin: 6px 4px 0; }
.back svg { width: 18px; height: 18px; }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal { width: 100%; max-width: 420px; }
.edit-area textarea { min-height: 80px; margin-top: 8px; }
.edit-area .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }

/* ---------- Cloudflare edition additions ---------- */
.shell { padding-top: env(safe-area-inset-top); }
.link { color: var(--pink); text-decoration: underline; text-underline-offset: 2px; }
.tabs a { flex: 1; padding: 10px; border-radius: 999px; font-weight: 600; color: var(--muted); text-align: center; }
.tabs a.on { background: var(--pink); color: #fff; box-shadow: 0 0 10px rgba(255,45,149,.5); }
.hidden-badge { margin-top: 8px; font-size: 12.5px; color: #ffb3c7; background: rgba(255,107,138,.12); border: 1px dashed #ff6b8a; border-radius: 10px; padding: 6px 10px; }
.reasons { display: grid; gap: 8px; margin: 6px 0 4px; }
.reason { display: flex; align-items: center; gap: 10px; border: 1.5px solid #2a2a33; border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.reason:has(input:checked) { border-color: var(--pink); background: rgba(255,45,149,.1); }
.reason input { accent-color: var(--pink); width: 18px; height: 18px; margin: 0; }
.pill { display: inline-block; font-size: 11px; border: 1px solid #ff6b8a; color: #ff6b8a; border-radius: 999px; padding: 1px 8px; vertical-align: middle; }
.report-row { display: flex; gap: 12px; align-items: flex-start; }
.report-row img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,45,149,.45); }
.report-body { font-size: 14px; color: #ddd; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.danger-btn { border-color: #ff6b8a !important; color: #ff6b8a !important; background: transparent; box-shadow: none; }
.btn.danger-btn:not(.ghost) { background: #ff3366; color: #fff !important; }
.danger-zone { margin: 10px 0 4px; border: 1px solid #3a1f28; border-radius: 12px; padding: 10px 12px; }
.danger-zone summary { cursor: pointer; color: #ff6b8a; font-size: 14px; }
.modal { max-height: 90vh; overflow-y: auto; }
#turnstile { margin: 8px 0; min-height: 0; }
.drop .hint#sizeHint { margin-top: 8px; color: var(--pink-2); }
@media (display-mode: standalone) { .top { padding-top: calc(10px + env(safe-area-inset-top)); } }

/* composer bar (top of the Glo Board) */
.composer { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; padding: 10px 12px; background: var(--card);
  border: 1px solid #1f1f26; border-radius: 18px; }
.composer .avatar.sm { width: 40px; height: 40px; }
.composer-input { flex: 1; min-width: 0; border: 1.5px solid var(--pink); border-radius: 999px; padding: 10px 16px; color: #b9b9c3; font-size: 15px;
  box-shadow: 0 0 8px rgba(255,45,149,.45), inset 0 0 8px rgba(255,45,149,.08); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer:hover .composer-input { color: #fff; }
.composer-photo { color: var(--pink); display: grid; place-items: center; width: 36px; height: 36px; filter: drop-shadow(0 0 5px rgba(255,45,149,.7)); }
.composer-photo svg { width: 26px; height: 26px; }

.avatar-edit { position: relative; display: inline-block; padding: 0; background: none; border: 0; cursor: pointer; }
.avatar-edit .cam { position: absolute; right: -2px; bottom: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; box-shadow: 0 0 10px rgba(255,45,149,.7); border: 2px solid #000; }
.avatar-edit .cam svg { width: 16px; height: 16px; }
.avatar-row { display: flex; align-items: center; gap: 14px; }
.avatar-row .avatar.lg { width: 72px; height: 72px; }
.avatar-btns { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.avatar-btns label.btn { cursor: pointer; color: #fff; margin: 0; font-size: 14px; }

.shared-label { color: var(--muted); font-size: 13.5px; font-weight: 400; }
.embed { border: 1px solid rgba(255,45,149,.35); border-radius: 14px; padding: 10px; margin: 8px 0 6px; background: #0d0d11; }
.embed .post-img { margin: 8px 0 6px; }
.embed-head { display: flex; gap: 9px; align-items: center; }
.embed-head .name { font-weight: 600; font-size: 14px; }
.embed-body { display: block; color: inherit; text-decoration: none; font-size: 14.5px; white-space: pre-wrap; word-wrap: break-word; margin: 4px 2px; }
.embed-link { display: inline-block; color: var(--pink); font-size: 12.5px; margin: 4px 2px 0; }
.embed.gone { color: var(--muted); font-style: italic; text-align: center; padding: 22px 10px; }
.sheet-bg { place-items: end center; padding: 0; }
.sheet { max-width: 520px; border-radius: 22px 22px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.sheet-grip { width: 42px; height: 4px; border-radius: 2px; background: #444; margin: 0 auto 12px; }
.sheet textarea { width: 100%; }
.sheet .btn svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
.sheet-sec { display: flex; gap: 10px; margin-top: 14px; border-top: 1px solid #22222a; padding-top: 12px; }
.sheet-opt { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 6px; border-radius: 14px; background: #15151a; border: 1px solid #26262e; color: #e6e6ea; font-size: 13px; }
.sheet-opt svg { width: 22px; height: 22px; }
.who-line { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }

.seg { display: flex; background: #111116; border: 1px solid #26262e; border-radius: 999px; padding: 4px; margin: 4px 0 12px; }
.seg button { flex: 1; padding: 8px 0; border-radius: 999px; font-weight: 600; font-size: 14px; color: #bdbdc6; }
.seg button[aria-selected="true"] { background: var(--pink); color: #fff; box-shadow: 0 0 12px rgba(255,45,149,.55); }
.stats a { color: inherit; text-decoration: none; }
.user-row { display: flex; gap: 12px; align-items: center; margin: 10px 0; }
.user-row .user-link { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.follow-btn { flex: none; min-width: 92px; }
.follow-btn.big { min-width: 140px; }
.search input { width: 100%; border-radius: 999px; padding: 12px 18px; font-size: 15px; min-height: 46px; box-sizing: border-box; }
.search { margin: 6px 0 4px; }

.seg.tabs a { flex: 1; text-align: center; padding: 8px 0; border-radius: 999px; font-weight: 600; font-size: 14px; color: #bdbdc6; text-decoration: none; }
.seg.tabs a[aria-selected="true"] { background: var(--pink); color: #fff; box-shadow: 0 0 12px rgba(255,45,149,.55); }
.pbar { height: 8px; border-radius: 99px; background: #23232b; overflow: hidden; margin: 8px 0 4px; }
.pbar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #b5179e, #ff2d95, #ff8cc8); box-shadow: 0 0 8px rgba(255,45,149,.7); }
.pbar.done span { background: linear-gradient(90deg, #ff2d95, #ffd1ea); }
.fin-badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,45,149,.16); border: 1px solid rgba(255,45,149,.7); color: #ffd1ea; font-size: 11.5px; font-weight: 700; padding: 3px 8px 3px 5px; border-radius: 999px; vertical-align: middle; }
.fin-badge .gem svg { width: 14px; height: 14px; }
.wip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wip-card { display: block; border-radius: 16px; overflow: hidden; background: #111116; border: 1px solid #26262e; color: inherit; text-decoration: none; }
.wip-card.finished { border-color: rgba(255,45,149,.6); box-shadow: 0 0 12px rgba(255,45,149,.2); }
.wip-cover { position: relative; aspect-ratio: 1; background: #0b0b0f; }
.wip-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wip-cover .fin-badge { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.72); }
.wip-nocover { height: 100%; display: grid; place-items: center; }
.wip-nocover svg { width: 46px; height: 46px; }
.wip-info { padding: 9px 10px 10px; }
.wip-name { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wip-meta { display: flex; justify-content: space-between; gap: 6px; color: var(--muted); font-size: 11.5px; flex-wrap: wrap; }
.wip-head .wip-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.wip-head h1 { font-size: 22px; margin: 4px 0; }
.wip-status { color: var(--muted); font-size: 12.5px; border: 1px solid #33333d; padding: 2px 8px; border-radius: 999px; }
.wip-owner { display: inline-flex; align-items: center; gap: 8px; color: #e6e6ea; text-decoration: none; font-weight: 600; font-size: 14px; margin: 4px 0 6px; }
.wip-head .wip-meta { font-size: 13px; }
.wip-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.wip-tags span { background: #15151a; border: 1px solid #26262e; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; }
.wip-notes { white-space: pre-wrap; color: #d4d4da; font-size: 14px; margin: 10px 0 0; }
.wip-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(#ff2d95, rgba(255,45,149,.15)); }
.tl-item { position: relative; margin-bottom: 12px; }
.tl-dot { position: absolute; left: -20px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.tl-card { margin: 0; }
.tl-date { color: #ffd1ea; font-size: 13px; }
.tl-photos { display: grid; gap: 6px; margin-top: 8px; grid-template-columns: 1fr 1fr; }
.tl-photos.n1 { grid-template-columns: 1fr; }
.tl-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; border: 1px solid rgba(255,45,149,.35); }
.tl-photos.n1 img { aspect-ratio: 4 / 3; }
.tl-photos.edit { grid-template-columns: repeat(4, 1fr); }
.tl-note { white-space: pre-wrap; margin: 8px 0 0; font-size: 14.5px; }
.rm-photo { padding: 0; border: 0; background: none; position: relative; }
.rm-photo.removing img { opacity: .3; outline: 2px solid #ff4d6d; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; margin: 6px 0; }
.check input { width: 18px; height: 18px; accent-color: #ff2d95; }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wip-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; border: 1px solid rgba(255,45,149,.5); }
.wip-post-head { font-size: 14.5px; color: #d4d4da; margin: 4px 2px 0; }
.wip-link { color: var(--pink); font-weight: 700; text-decoration: none; }
.wip-mini { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; text-decoration: none; margin: 4px 2px; }
.wip-mini .pbar { flex: 1; margin: 0; }
.wip-mini .go { color: var(--pink); font-weight: 600; }
input[type=range] { width: 100%; accent-color: #ff2d95; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; align-items: center; justify-content: center; animation: lbIn .16s ease; }
.lightbox.closing { opacity: 0; transition: opacity .15s; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; touch-action: none; overflow: hidden; }
.lb-img { max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; object-fit: contain; user-select: none; -webkit-user-drag: none; will-change: transform; }
.lb-x { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(20,20,26,.75); border: 1px solid rgba(255,45,149,.6); color: #fff; display: grid; place-items: center; }
.lb-x svg { width: 22px; height: 22px; }
body.lb-lock { overflow: hidden; }
article.post img.post-img, .embed img.post-img, .wip-head img.post-img, .tl-photos:not(.edit) img, .post-head img.avatar, .comment img.avatar, .profile-head > img.avatar { cursor: zoom-in; }

/* ---------- @mentions, #tags, autocomplete ---------- */
a.mention, a.hashtag, span.mention, span.hashtag { color: var(--pink-2); font-weight: 600; text-decoration: none; }
a.mention:hover, a.hashtag:hover { text-decoration: underline; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 2px 10px; }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--pink-soft);
  background: rgba(255, 45, 149, 0.08); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
.tag-chip span { color: var(--muted); font-weight: 500; font-size: 12px; }
.tag-title { color: var(--pink-2); word-break: break-word; }
.more-btn { display: block; margin: 12px auto 24px; }
.mention-ac { position: fixed; z-index: 1000; max-height: 220px; overflow-y: auto; background: #141016; border: 1px solid var(--pink-soft);
  border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 45, 149, 0.25); padding: 4px; }
.mention-ac .ac-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.mention-ac .ac-item.on, .mention-ac .ac-item:hover { background: rgba(255, 45, 149, 0.16); }
.mention-ac .ac-item div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mention-ac .ac-item b { color: #fff; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
.mention-ac .ac-item span { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-ac .ac-item em { font-style: normal; font-size: 11.5px; color: var(--pink-2); border: 1px solid var(--pink-soft); border-radius: 999px; padding: 2px 8px; }
.more-btn[hidden] { display: none; }

/* ---------- Discover: Fresh Finishes ---------- */
.finishes { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.finishes::-webkit-scrollbar { display: none; }
.finish-card { flex: none; width: 138px; scroll-snap-align: start; text-decoration: none; color: #fff; display: flex; flex-direction: column; gap: 2px; }
.finish-card .fc-img { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--pink-soft); background: #111;
  box-shadow: 0 0 14px rgba(255, 45, 149, 0.25); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.finish-card .fc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.finish-card .fc-img .gem { width: 44px; height: 44px; }
.finish-card .fc-badge { position: absolute; left: 6px; top: 6px; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: rgba(0, 0, 0, 0.7); border: 1px solid var(--pink-soft); }
.finish-card b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finish-card .fc-owner { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
