/* ============================================================
   DropSee — clean & friendly. Warm paper, fresh teal, coral warmth.
   Body: Plus Jakarta Sans · Wordmark: Baloo 2
   ============================================================ */
:root {
  --bg:      #faf9f6;   /* warm paper, cooler than cream */
  --surface: #ffffff;
  --ink:     #1a1c22;
  --muted:   #6b7280;
  --line:    #ecebe6;
  --primary: #14b8a6;   /* fresh teal */
  --primary-d:#0e9c8c;
  --accent:  #ff7a59;   /* coral warmth */
  --brand-a: #14b8a6;   /* logo teal */
  --brand-b: #83c341;   /* logo green */
  --success: #16a34a;
  --danger:  #e5484d;
  --radius:  16px;
  --radius-sm: 11px;
  --shadow:  0 1px 2px rgba(20,24,34,.05), 0 6px 20px rgba(20,24,34,.05);
  --maxw: 620px;
  --tabh: 66px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* must beat .boot { display:flex } */
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 15.5px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-d); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; }

/* ---------- boot ---------- */
.boot {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; background: var(--bg); z-index: 50;
}
.boot__logo { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 34px; color: var(--primary); letter-spacing: -.02em; }
.boot__spinner, .spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--primary);
  animation: spin .8s linear infinite; margin: 22px auto;
}
.boot__spinner { margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(250,249,246,.85);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; max-width: var(--maxw); margin: 0 auto;
}
.topbar__brand { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 23px; color: var(--primary); letter-spacing: -.02em; }
.view { max-width: var(--maxw); margin: 0 auto; padding: 16px 16px calc(var(--tabh) + 28px); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: var(--tabh); background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); display: flex; align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom); max-width: var(--maxw); margin: 0 auto;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600;
}
.tab__icon svg { width: 23px; height: 23px; }
.tab--active { color: var(--primary-d); }
.tab--cta .tab__icon {
  background: var(--primary); color: #fff; width: 42px; height: 42px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(20,184,166,.35);
  margin-bottom: 1px;
}
.tab--cta { color: var(--primary-d); }
.tab--cta .tab__icon svg { width: 22px; height: 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--radius-sm); padding: 12px 18px; font: inherit;
  font-weight: 700; cursor: pointer; transition: transform .06s ease, background .15s ease; color: var(--ink);
  background: transparent;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-d); }
.btn--ghost { background: #f1f0ec; color: var(--ink); }
.btn--ghost:hover { background: #e9e8e3; }
.btn--google { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 13px; font-size: 13.5px; border-radius: 9px; }

.chip { background: #f1f0ec; padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--ink); }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); font: inherit; color: var(--ink);
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20,184,166,.15); }
textarea.input { resize: vertical; }
.help { font-size: 12.5px; color: var(--muted); margin-top: 6px; display: block; }
.help--ok { color: var(--success); }
.help--err { color: var(--danger); }

.handle-field { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.handle-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20,184,166,.15); }
.handle-field__at { padding: 0 10px 0 14px; color: var(--muted); font-weight: 700; }
.handle-field__input { border: 0; box-shadow: none; padding-left: 0; }
.handle-field__input:focus { box-shadow: none; }

.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 14px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- cards / pages ---------- */
.page__head, .feed__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.page__head h1, .feed__head h1 { font-size: 25px; font-weight: 800; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }

/* ---------- feed ---------- */
.feed__hint { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.feed__hint svg { width: 15px; height: 15px; }
.composer {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b)); border: 0; border-radius: var(--radius);
  padding: 15px 16px; font: inherit; font-weight: 800; font-size: 15.5px; color: #ffffff !important; cursor: pointer;
  box-shadow: 0 6px 18px rgba(20,184,166,.28); transition: transform .06s ease, box-shadow .2s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,.28);
}
.composer, .composer span, .composer svg { color: #ffffff !important; }
.composer:hover { box-shadow: 0 8px 22px rgba(20,184,166,.36); }
.composer:active { transform: scale(.99); }
.composer svg { color: #ffffff !important; stroke: #ffffff; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.composer--signin { background: var(--surface); border: 1px solid var(--line); color: var(--muted) !important; box-shadow: var(--shadow); text-shadow: none; }
.composer--signin, .composer--signin span { color: var(--muted) !important; }
.composer--signin svg { color: var(--primary) !important; stroke: var(--primary); filter: none; }
.feed__list { display: flex; flex-direction: column; gap: 18px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post__top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.post__who { display: flex; flex-direction: column; line-height: 1.25; }
.post__who strong { font-size: 14px; }
.post__who span { font-size: 12px; color: var(--muted); }
.post__img { background: #f1f0ec; }
.post__img img { width: 100%; height: auto; }
.post__cap { margin: 0; padding: 12px 14px; font-size: 14.5px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #f1f0ec; }
.avatar--i { display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--primary-d); background: #e6f6f4; }

/* signature: the ephemerality pill */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #f1f0ec; color: var(--muted); }
.pill svg { width: 13px; height: 13px; }
.pill--time { margin-left: auto; background: #fff2ee; color: var(--accent); }
.pill--tier { background: #e6f6f4; color: var(--primary-d); text-transform: capitalize; }

.feed__more, .feed__end { text-align: center; color: var(--muted); font-size: 13px; padding: 18px 0; }

/* ---------- albums ---------- */
.albumgrid { display: flex; flex-direction: column; gap: 12px; }
.albumcard { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.albumcard h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.albumcard__meta { display: flex; gap: 6px; margin-bottom: 6px; }
.albumcard__stats { font-size: 12.5px; color: var(--muted); }
.albumcard__body { flex: 1; }
.albumcard__go { color: var(--muted); }
.albumcard .pill svg { width: 12px; height: 12px; }

/* ---------- album view ---------- */
.album__head { margin-bottom: 16px; }
.album__head h1 { font-size: 25px; font-weight: 800; }
.album__desc { color: var(--muted); margin: 8px 0; }
.album__owner { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin: 10px 0; }
.album__owner .avatar { width: 28px; height: 28px; }
.album__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.photos__cell { aspect-ratio: 1; background: #f1f0ec; border-radius: 8px; overflow: hidden; }
.photos__cell img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- auth ---------- */
.authwrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 20px 0; }
.authcard { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px; box-shadow: var(--shadow); text-align: center; }
.authcard__brand { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 26px; color: var(--primary); margin-bottom: 14px; }
.authcard__title { font-size: 22px; font-weight: 800; }
.authcard__sub { color: var(--muted); margin: 6px 0 18px; font-size: 14px; }
.authcard .field { text-align: left; }
.authcard .btn { margin-top: 8px; }
.authcard__foot { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* ---------- empty ---------- */
.empty { text-align: center; padding: 48px 20px; }
.empty__icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; background: #e6f6f4; color: var(--primary-d); display: flex; align-items: center; justify-content: center; }
.empty__icon svg { width: 28px; height: 28px; }
.empty__title { font-size: 19px; font-weight: 800; }
.empty__msg { color: var(--muted); margin: 8px auto 16px; max-width: 320px; }

/* ---------- toast ---------- */
#toast-root { position: fixed; left: 0; right: 0; bottom: calc(var(--tabh) + 14px); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { max-width: 440px; width: max-content; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: .25s ease; }
.toast--in { opacity: 1; transform: translateY(0); }
.toast--success { background: #12564a; }
.toast--error { background: #8f2b2e; }

/* ---------- modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 70; background: rgba(20,24,34,.45); display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal { width: 100%; max-width: 420px; background: var(--surface); border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.25); overflow: hidden; }
.modal__head { padding: 18px 20px 0; }
.modal__head h3 { font-size: 19px; font-weight: 800; }
.modal__body { padding: 14px 20px; }
.modal__body p { margin: 0 0 10px; }
.modal__actions { display: flex; gap: 10px; padding: 8px 20px 20px; }
.modal__actions .btn { flex: 1; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (min-width: 640px) { .view { padding-bottom: 40px; } }

/* ---------- admin / moderation ---------- */
.chip--admin { background: #eef2ff; color: #4f46e5; padding: 7px 10px; }
.chip--admin svg { width: 17px; height: 17px; }
.page__head h1 svg { width: 22px; height: 22px; vertical-align: -3px; margin-right: 4px; color: #4f46e5; }
.btn--danger { background: #fdecec; color: var(--danger); }
.btn--danger:hover { background: #fbdcdc; }
.iconbtn { margin-left: auto; background: transparent; border: 0; color: var(--muted); padding: 4px; cursor: pointer; border-radius: 8px; }
.iconbtn:hover { background: #f1f0ec; color: var(--ink); }
.iconbtn svg { width: 17px; height: 17px; }
.post__top .pill--time { margin-left: auto; }
.post__top .iconbtn { margin-left: 6px; }

.seg { display: inline-flex; background: #f1f0ec; border-radius: 10px; padding: 3px; margin-bottom: 16px; }
.seg__btn { border: 0; background: transparent; padding: 7px 16px; border-radius: 8px; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.seg__btn--on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

.qlist { display: flex; flex-direction: column; gap: 12px; }
.qcard { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.qcard__img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; background: #f1f0ec; }
.qcard__album { width: 84px; min-height: 84px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; justify-content: center; padding: 8px; background: #f1f0ec; border-radius: 10px; font-size: 13px; }
.qcard__gone { width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; text-align: center; background: #f1f0ec; border-radius: 10px; font-size: 11px; color: var(--muted); }
.qcard__body { flex: 1; min-width: 0; }
.qcard__meta { display: flex; gap: 6px; margin-bottom: 6px; }
.qcard__reason { margin: 4px 0; font-style: italic; }
.qcard__cap { margin: 4px 0; color: var(--muted); font-size: 13.5px; }
.qcard__by { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.qcard__actions { display: flex; gap: 8px; }
.pill--open { background: #fff2ee; color: var(--accent); }
.pill--actioned { background: #e6f6f4; color: var(--primary-d); }
.pill--dismissed { background: #f1f0ec; color: var(--muted); }
.link { color: var(--primary-d); font-weight: 700; font-size: 12.5px; }

/* ---------- brand images ---------- */
.boot__logo-img { width: 150px; height: auto; }
.topbar__brand img { height: 30px; width: auto; display: block; }
.authcard__logo { width: 116px; height: auto; margin: 0 auto 6px; display: block; }
.authcard__fine { font-size: 12px; color: var(--muted); margin-top: 14px; }

/* ============================================================
   DARK THEME — applied via <html data-theme="dark">
   ============================================================ */
[data-theme="dark"] {
  --bg:      #0f1114;
  --surface: #191c21;
  --ink:     #eef0f2;
  --muted:   #9aa1ab;
  --line:    #2a2e35;
  --primary: #2dd4bf;
  --primary-d:#5eead4;
  --accent:  #ff8b6b;
  --shadow:  0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
}
[data-theme="dark"] .topbar { background: rgba(15,17,20,.85); }
[data-theme="dark"] .tabbar { background: rgba(25,28,33,.94); }
[data-theme="dark"] .btn--ghost { background: #262b32; color: var(--ink); }
[data-theme="dark"] .btn--ghost:hover { background: #2f353d; }
[data-theme="dark"] .btn--google { background: #262b32; color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .chip { background: #262b32; color: var(--ink); }
[data-theme="dark"] .pill { background: #262b32; color: var(--muted); }
[data-theme="dark"] .composer { color: #ffffff; }
[data-theme="dark"] .composer--signin { color: var(--muted); }
[data-theme="dark"] .seg { background: #14171b; }
[data-theme="dark"] .seg__btn--on { background: #2c323a; color: var(--ink); }
[data-theme="dark"] .input { background: #14171b; color: var(--ink); }
[data-theme="dark"] .post__img,
[data-theme="dark"] .photos__cell,
[data-theme="dark"] .qcard__img,
[data-theme="dark"] .qcard__album,
[data-theme="dark"] .qcard__gone,
[data-theme="dark"] .avatar { background: #262b32; }
[data-theme="dark"] .avatar--i,
[data-theme="dark"] .empty__icon { background: #123b37; color: var(--primary); }
[data-theme="dark"] .pill--time { background: #3a2820; color: var(--accent); }
[data-theme="dark"] .pill--tier,
[data-theme="dark"] .pill--actioned { background: #123b37; color: var(--primary-d); }
[data-theme="dark"] .pill--open { background: #3a2820; color: var(--accent); }
[data-theme="dark"] .pill--dismissed { background: #262b32; color: var(--muted); }
[data-theme="dark"] .chip--admin { background: #1e2140; color: #a5b4fc; }
[data-theme="dark"] .btn--danger { background: #3a1f21; color: #ff8b8b; }
[data-theme="dark"] .iconbtn:hover { background: #262b32; color: var(--ink); }
[data-theme="dark"] .modal-back { background: rgba(0,0,0,.6); }
/* the wordmark PNGs read fine on dark; nudge contrast slightly */
[data-theme="dark"] .topbar__brand img { filter: brightness(1.08); }

/* ---------- install banner + top icon button ---------- */
.iconbtn--top { color: var(--muted); }
.iconbtn--top:hover { background: #f1f0ec; }
[data-theme="dark"] .iconbtn--top:hover { background: #262b32; }

.installbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabh) + 12px + env(safe-area-inset-bottom));
  z-index: 40; max-width: calc(var(--maxw) - 24px); margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px; box-shadow: 0 8px 30px rgba(20,24,34,.18);
  animation: installin .35s ease;
}
@keyframes installin { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.installbar__icon { border-radius: 10px; }
.installbar__main { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.installbar__main strong { font-size: 14.5px; }
.installbar__main span { font-size: 12.5px; color: var(--muted); }
.installbar__act { display: flex; align-items: center; gap: 6px; }
.installbar__x { background: transparent; border: 0; color: var(--muted); font-size: 22px; line-height: 1; padding: 2px 8px; cursor: pointer; border-radius: 8px; }
.installbar__x:hover { background: #f1f0ec; }
[data-theme="dark"] .installbar__x:hover { background: #262b32; }

/* ---------- upload modal ---------- */
.upload .modal__body { max-height: 70vh; overflow-y: auto; }
.uploadpick { display: block; cursor: pointer; }
.uploadpick__inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px; color: var(--muted);
  font-weight: 700; text-align: center; word-break: break-all;
}
.uploadpick__inner svg { width: 28px; height: 28px; color: var(--primary); }
.uploadprev { margin-top: 12px; border-radius: var(--radius); overflow: hidden; background: #f1f0ec; }
[data-theme="dark"] .uploadprev { background: #262b32; }
.uploadprev img { width: 100%; max-height: 320px; object-fit: contain; }
.consent {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
}
.consent__txt { display: flex; align-items: center; gap: 10px; flex: 1; }
.consent__txt svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.consent__txt strong { display: block; font-size: 13.5px; }
.consent__txt span { font-size: 12px; color: var(--muted); }
.switch { flex-shrink: 0; width: 46px; height: 27px; border-radius: 999px; border: 0; background: #d8d6d0; cursor: pointer; position: relative; transition: background .18s ease; }
[data-theme="dark"] .switch { background: #3a3f47; }
.switch span { position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: transform .18s ease; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch--on { background: var(--primary); }
.switch--on span { transform: translateX(19px); }
.uploadprog { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-weight: 600; font-size: 14px; }

/* ---------- album photo management ---------- */
.photos__cell--own { position: relative; }
.photos__del {
  position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: rgba(20,24,34,.62); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.photos__del svg { width: 15px; height: 15px; }

/* ---------- admin console ---------- */
.seg--sub { margin-bottom: 14px; }
.statgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.stat__n { font-size: 30px; font-weight: 800; line-height: 1; }
.stat__l { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat--accent .stat__n { color: var(--accent); }
.stat--danger .stat__n { color: var(--danger); }
.userrow { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px; cursor: pointer; font: inherit; color: var(--ink); }
.userrow__main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.userrow__main strong { font-size: 14.5px; }
.userrow__main span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userrow svg { width: 18px; height: 18px; color: var(--muted); }
.pill--danger { background: #fdecec; color: var(--danger); }
[data-theme="dark"] .pill--danger { background: #3a1f21; color: #ff8b8b; }
.udetail__id { display: flex; flex-direction: column; margin-bottom: 8px; }
.udetail__id strong { font-size: 18px; }
.udetail__id span { font-size: 13px; color: var(--muted); }
.exprow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.exprow__t { flex: 1; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exprow input { flex: 0 0 auto; width: auto; padding: 8px 10px; font-size: 13px; }

/* ---------- mentions (links) ---------- */
.mention { color: var(--primary-d); font-weight: 700; }

/* ---------- feed comment row + post links ---------- */
.post__comments { display: flex; align-items: center; gap: 6px; padding: 10px 14px; color: var(--muted); font-size: 13px; font-weight: 600; border-top: 1px solid var(--line); }
.post__comments svg { width: 17px; height: 17px; }
.post__who a { color: inherit; }

/* ---------- profile page ---------- */
.prof { display: flex; gap: 16px; margin-bottom: 18px; }
.prof__avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; font-size: 30px; }
.prof__meta { flex: 1; min-width: 0; }
.prof__meta h1 { font-size: 21px; font-weight: 800; }
.prof__handle { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.prof__bio { font-size: 14px; margin: 6px 0; }
.prof__counts { display: flex; gap: 16px; font-size: 13.5px; color: var(--muted); margin: 8px 0; }
.prof__counts strong { color: var(--ink); }
.prof__act { margin-top: 4px; }

/* ---------- post page + comments ---------- */
.postpage .post { margin-bottom: 18px; }
.cmt__h { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.cmt__box { display: flex; gap: 8px; margin-bottom: 16px; }
.cmt__box .input { flex: 1; }
.cmt__list { display: flex; flex-direction: column; gap: 14px; }
.cmt { display: flex; gap: 10px; align-items: flex-start; }
.cmt .avatar { width: 34px; height: 34px; }
.cmt__body { flex: 1; min-width: 0; }
.cmt__head { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; }
.cmt__head strong a, .cmt__head strong { font-weight: 700; }
.cmt__head span { color: var(--muted); font-size: 12px; }
.cmt__text { font-size: 14.5px; margin-top: 2px; word-wrap: break-word; }
.cmt .iconbtn { flex-shrink: 0; }

/* ---------- account quick links ---------- */
.acctlinks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.acctlink { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px; color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.acctlink > span { flex: 1; }
.acctlink svg { width: 19px; height: 19px; color: var(--muted); }

/* ---------- mentions list ---------- */
.mrow { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; margin-bottom: 8px; color: var(--ink); }
.mrow__img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: #f1f0ec; flex-shrink: 0; }
[data-theme="dark"] .mrow__img { background: #262b32; }
.mrow__img--gone { display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); }
.mrow__body { flex: 1; min-width: 0; }
.mrow__t { font-size: 14px; font-weight: 600; }
.mrow__c { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow__time { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---------- See dashboard ---------- */
.seesplit { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.seeexp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.seeexp__l { font-size: 12px; color: var(--muted); font-weight: 600; }
.seeexp__v { font-size: 20px; font-weight: 800; color: var(--accent); }
.see__h { font-size: 16px; font-weight: 800; margin: 18px 0 10px; }
.topcell { position: relative; }
.topcell__c { position: absolute; bottom: 5px; right: 5px; display: inline-flex; align-items: center; gap: 3px; background: rgba(20,24,34,.62); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 6px; border-radius: 999px; }
.topcell__c svg { width: 12px; height: 12px; }

/* ---------- framed square post + like + lightbox ---------- */
.post__frame { padding: 3px; margin: 2px 0; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); border-radius: 20px; }
.post__square { aspect-ratio: 1 / 1; border-radius: 17px; overflow: hidden; background: #f1f0ec; cursor: zoom-in; }
[data-theme="dark"] .post__square { background: #262b32; }
.post__square img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post__actions { display: flex; align-items: center; gap: 4px; padding: 8px 12px 12px; }
.likebtn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; color: var(--muted); font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; padding: 6px 8px; border-radius: 8px; transition: transform .08s ease; }
.likebtn:active { transform: scale(.9); }
.likebtn svg { width: 21px; height: 21px; transition: fill .12s ease; }
.likebtn.like--on { color: var(--accent); }
.likebtn.like--on svg { fill: var(--accent); stroke: var(--accent); }
.post__actions .post__comments { border-top: 0; padding: 6px 8px; color: var(--muted); font-weight: 700; }
.post__actions .post__comments svg { width: 20px; height: 20px; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.93); display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.lightbox__x { position: absolute; top: 12px; right: 18px; background: transparent; border: 0; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; }

/* ---------- tier editor + album meta ---------- */
.tiercard__h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.tiercard__h strong { font-size: 16px; }
.tiergrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.tiergrid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.tiergrid .input { padding: 9px 11px; }
.album__meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.album__meta .pill svg { width: 12px; height: 12px; }

.tiercard__act { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- staff album management ---------- */
.amanage { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 10px; }
.amanage__h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.amanage__h strong { font-size: 14px; }
.amanage__row { display: flex; gap: 8px; margin-bottom: 8px; }
.amanage__row:last-child { margin-bottom: 0; }
.amanage__row .input { flex: 1; padding: 8px 10px; font-size: 13px; }
.amanage__row .btn { flex: 0 0 auto; }

/* ---------- avatar editor ---------- */
.avataredit { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.avataredit #avpreview img, .avataredit .avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; font-size: 26px; }
.avataredit #avpreview { flex-shrink: 0; }

/* ---------- notifications bell + list ---------- */
.notifbell { position: relative; color: var(--muted); }
.notifdot { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; line-height: 1; }
.nrow { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-bottom: 1px solid var(--line); color: var(--ink); }
.nrow--unread { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.nrow .avatar { width: 42px; height: 42px; flex-shrink: 0; }
.nrow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nrow__body span { font-size: 14px; }
.nrow__time { font-size: 12px; color: var(--muted); }
.nrow__thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }

/* ---------- public album cards ---------- */
.albumcard--pub { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.albumcard__cover { aspect-ratio: 16/10; background: #f1f0ec; overflow: hidden; }
[data-theme="dark"] .albumcard__cover { background: #262b32; }
.albumcard__cover img { width: 100%; height: 100%; object-fit: cover; }
.albumcard__cover--empty { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.albumcard__cover--empty svg { width: 28px; height: 28px; }
.albumcard--pub .albumcard__body { padding: 10px 12px; }
.albumcard__owner { font-size: 12px; color: var(--muted); }

/* ---------- @mention autocomplete ---------- */
.mentionbox { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; margin-top: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 30px rgba(20,24,34,.18); overflow: hidden; }
.mentionopt { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: transparent; border: 0; padding: 9px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.mentionopt:hover { background: var(--bg); }
.mentionopt__av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mentionopt__av--i { display: flex; align-items: center; justify-content: center; background: #e6f6f4; color: var(--primary); font-size: 12px; font-weight: 700; }
[data-theme="dark"] .mentionopt__av--i { background: #123b37; }
.mentionopt__h { font-weight: 700; font-size: 14px; }
.mentionopt__n { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.albumsub { grid-column: 1 / -1; font-size: 12.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 6px 2px 2px; }
.amanage__vis { flex: 1; font-size: 13px; font-weight: 600; color: var(--muted); align-self: center; }

/* ---------- gallery nav + uploader label ---------- */
.gallery__img { cursor: default; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gallery__nav:hover { background: rgba(255,255,255,.26); }
.gallery__prev { left: 14px; } .gallery__next { right: 14px; }
.gallery__sub { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #fff; font-size: 13.5px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.6); padding: 0 16px; }
.gallery__count { position: absolute; top: 16px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: 13px; font-weight: 700; }
.photos__cell img[data-idx] { cursor: zoom-in; }
.photos__by { position: absolute; bottom: 4px; left: 4px; max-width: calc(100% - 8px); background: rgba(20,24,34,.62); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- checkout / plans ---------- */
.addonline { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.addonline span { font-size: 13.5px; color: var(--muted); font-weight: 600; flex: 1; }
.planopt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 8px; cursor: pointer; font: inherit; color: var(--ink); }
.planopt:hover { border-color: var(--primary); }
.planopt strong { display: block; font-size: 15px; }
.planopt span { font-size: 12.5px; color: var(--muted); }
.planopt__price { font-size: 18px; font-weight: 800; color: var(--primary-d); }
.paydone { text-align: center; padding: 40px 16px; }
.paydone__icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #e6f6f4; color: var(--primary); display: flex; align-items: center; justify-content: center; }
[data-theme="dark"] .paydone__icon { background: #123b37; }
.paydone__icon svg { width: 32px; height: 32px; }

/* ---------- album pending-payment (hold) ---------- */
.albumcard--hold { opacity: .82; border-style: dashed; }
.holdbanner { display: flex; align-items: center; gap: 12px; margin-top: 12px; background: #fff2ee; border: 1px solid #ffd9cc; border-radius: var(--radius-sm); padding: 12px 14px; }
[data-theme="dark"] .holdbanner { background: #3a2820; border-color: #5a3a2a; }
.holdbanner svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.holdbanner > div { flex: 1; display: flex; flex-direction: column; }
.holdbanner strong { font-size: 14px; }
.holdbanner span { font-size: 12.5px; color: var(--muted); }

/* ---------- payments list ---------- */
.payrow { display: flex; align-items: flex-start; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px; }
.payrow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.payrow__main strong { font-size: 14.5px; }
.payrow__main span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.payrow__sub code { font-size: 11px; background: var(--bg); padding: 1px 5px; border-radius: 5px; }
.pill--actioned { background: #e6f6f4; color: var(--primary-d); }

/* ---------- scrollable tab strips (admin console, etc.) ---------- */
.seg--scroll { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; max-width: 100%; }
.seg--scroll .seg__btn { flex: 0 0 auto; white-space: nowrap; }

/* ---------- legal pages ---------- */
.legal { max-width: 720px; }
.legal__back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.legal__back svg { width: 16px; height: 16px; transform: rotate(90deg); }
.legal h2 { font-size: 16px; margin: 22px 0 6px; }
.legal p { line-height: 1.6; color: var(--ink); margin: 0 0 10px; }
.legal__meta { color: var(--muted); font-size: 13px; }
.legal__links a, .legal p a { color: var(--primary-d); text-decoration: underline; }
.authcard__fine a { color: inherit; text-decoration: underline; }

/* ---------- responsive safety net ---------- */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, canvas { max-width: 100%; }
.page, .view, .card, .feed { max-width: 100%; }
* { min-width: 0; }
.seg { max-width: 100%; flex-wrap: wrap; }

/* ---------- guest image protection (deterrence) ---------- */
.photos__cell--prot img,
.gallery--prot .gallery__img {
  -webkit-touch-callout: none;   /* no iOS long-press "Save Image" menu */
  -webkit-user-select: none; user-select: none;
  -webkit-user-drag: none; user-drag: none;
}
.photos__cell--prot img { pointer-events: none; }   /* taps go to the guard, not the image */
.photos__cell--prot { position: relative; }
.photoguard { position: absolute; inset: 0; z-index: 2; cursor: zoom-in; background: transparent; }

/* ---------- archived albums (grace period) ---------- */
.pill--danger { background: #ffece6; color: #c0392b; }
[data-theme="dark"] .pill--danger { background: #3a2018; color: #ff8f6b; }
.albumcard--archived { opacity: .9; border-style: dashed; border-color: #ffd9cc; }
[data-theme="dark"] .albumcard--archived { border-color: #5a3a2a; }
.archivebox { text-align: center; padding: 28px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 8px; }
.archivebox__icon { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: #fff2ee; color: var(--accent); display: flex; align-items: center; justify-content: center; }
[data-theme="dark"] .archivebox__icon { background: #3a2820; }
.archivebox__icon svg { width: 30px; height: 30px; }
.archivebox h2 { font-size: 19px; margin-bottom: 8px; }
.archivebox p { line-height: 1.55; margin: 0 auto 8px; max-width: 420px; }

/* ---------- people search rows (Following tab) ---------- */
.urows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.urow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.urow:hover { border-color: var(--primary); }
.urow .avatar { width: 40px; height: 40px; }
.urow__b { display: flex; flex-direction: column; min-width: 0; }
.urow__b strong { font-size: 14.5px; }
.urow__b span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- about & faq (See tab) ---------- */
.about h2 { font-size: 17px; margin: 20px 0 8px; }
.about > p { line-height: 1.6; margin: 0 0 10px; }
.about a { color: var(--primary-d); text-decoration: underline; }
.faq { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px; background: var(--surface); }
.faq summary { font-weight: 700; font-size: 14.5px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; display: inline-block; width: 18px; color: var(--primary); font-weight: 800; }
.faq[open] summary::before { content: '\2013'; }
.faq p { margin: 10px 0 0; line-height: 1.55; color: var(--muted); font-size: 13.5px; }

/* ---------- reshare + co-author ---------- */
.post__reshared { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); padding: 2px 2px 8px; font-weight: 600; }
.post__reshared svg { width: 15px; height: 15px; }
.post__reshared a { color: var(--muted); }
.rebtn { display: inline-flex; align-items: center; gap: 5px; background: transparent; border: 0; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.rebtn svg { width: 18px; height: 18px; }
.rebtn:hover { background: var(--bg); }
.rebtn.re--on { color: var(--primary); }
.invsec { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.invsec__h { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 14px; background: var(--bg); }
.invrow { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.invrow__thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.invrow__b { flex: 1; min-width: 0; font-size: 13.5px; }
.invrow__act { display: flex; gap: 6px; }

/* ---------- map overlay ---------- */
.mapov { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: flex; flex-direction: column; }
.mapov__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.mapov__bar strong { flex: 1; font-size: 16px; }
.mapov__count { font-size: 12.5px; color: var(--muted); }
.mapov__x { background: transparent; border: 0; font-size: 26px; line-height: 1; color: var(--ink); cursor: pointer; padding: 0 4px; }
.mapov__canvas { flex: 1; width: 100%; }
.mapov__empty { position: absolute; left: 16px; right: 16px; bottom: 24px; z-index: 1200; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; color: var(--muted); text-align: center; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.leaflet-container { font: inherit; background: #e8eef0; }

/* ---------- places curation ---------- */
.placerow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px; }
.placerow__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; align-items: center; }
.placerow__meta a.pill { text-decoration: none; }
.placerow__edit { display: flex; flex-wrap: wrap; gap: 8px; }
.placerow__edit .input { flex: 1; min-width: 120px; }

/* ---------- location control (composer) ---------- */
.locctl { margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.locpin { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.locpin svg { width: 16px; height: 16px; }
.locpin--on { color: var(--primary-d); border-color: var(--primary); background: #e6f6f4; }
[data-theme="dark"] .locpin--on { background: #123b37; }
.locclear { background: transparent; border: 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.mapov__foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.mapov__hint { flex: 1; font-size: 12.5px; color: var(--muted); }

/* ---------- place picker panel ---------- */
.mapov__panel { padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface); max-height: 42vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.pk-lbl { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }
.pk-suggest { display: flex; flex-direction: column; gap: 6px; }
.pk-chip, .pk-res { text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.pk-res { border-radius: var(--radius-sm); }
.pk-chip--unv { border-style: dashed; color: var(--muted); }
.pk-chip--sel { border-color: var(--primary); background: #e6f6f4; color: var(--primary-d); font-weight: 700; }
[data-theme="dark"] .pk-chip--sel { background: #123b37; }
.pk-results { display: flex; flex-direction: column; gap: 4px; }

/* ---------- tagline ---------- */
.authcard__tag { font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--primary-d); text-transform: uppercase; margin: 2px 0 10px; }

/* ---------- profile QR card ---------- */
.pcard__inner { text-align: center; padding: 8px 4px 4px; }
.pcard__av { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; display: block; }
.pcard__av--i { display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-size: 34px; font-weight: 800; }
.pcard__name { font-size: 20px; font-weight: 800; }
.pcard__handle { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.pcard__bio { font-size: 13px; color: var(--ink); margin: 0 auto 12px; max-width: 260px; line-height: 1.5; }
.pcard__qr { width: 220px; height: 220px; margin: 6px auto; display: block; background: #fff; border-radius: 12px; padding: 10px; box-sizing: content-box; }
.pcard__url { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 8px; }
.pcard__tag { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--primary-d); margin-top: 6px; }

/* ---------- account switcher ---------- */
.acctrow { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; }
.acctrow--on { border-color: var(--primary); background: #e6f6f4; }
[data-theme="dark"] .acctrow--on { background: #123b37; }
.acctrow .avatar { width: 42px; height: 42px; }
.acctrow__b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acctrow__b strong { font-size: 14.5px; }
.acctrow__b span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acctrow__badge { color: var(--primary); display: flex; }
.acctrow__badge svg { width: 20px; height: 20px; }
.acctrow__x { background: transparent; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }

/* ---------- header tagline ---------- */
.topbar__brand { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; gap: 2px; text-decoration: none; }
.topbar__tag { font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- picker OSM results ---------- */
.pk-res--osm { display: flex; align-items: center; justify-content: space-between; }
.pk-src { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--primary); border-radius: 6px; padding: 2px 6px; }

/* ---------- text card composer ---------- */
.tcard-text { width: 100%; resize: none; font-size: 16px; line-height: 1.4; }
.tcard-styles { display: flex; gap: 10px; margin: 12px 0; }
.tcard-sw { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.tcard-sw--on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.tcard-prev { width: 100%; max-width: 320px; aspect-ratio: 1; height: auto; display: block; margin: 4px auto 0; border-radius: var(--radius-sm); border: 1px solid var(--line); }

/* ---------- public Maps tab ---------- */
.mapswrap { position: relative; }
.mapsbar { display: flex; gap: 8px; margin-bottom: 8px; }
.mapsbar .input { flex: 1; }
.mapsres { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.mapsres__r { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.mapsres__r:hover { border-color: var(--primary); }
.mapscanvas { width: 100%; height: 60vh; min-height: 340px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.mapsadd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--primary); border-radius: var(--radius-sm); }
.mapsadd__hint { flex: 1 0 100%; font-size: 12.5px; color: var(--muted); }
.mapsadd .input { flex: 1; min-width: 150px; }

/* ---------- multi-photo carousel ---------- */
.carou { position: relative; }
.carou__t { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carou__t::-webkit-scrollbar { display: none; }
.carou__s { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1; }
.carou__s img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carou__n { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.carou__dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.carou__d { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); }
.carou__d--on { background: #fff; width: 7px; height: 7px; }

/* ---------- composer thumbs ---------- */
.thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.thumb { position: relative; flex: 0 0 62px; height: 62px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__c { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 9px; font-weight: 800; text-align: center; padding: 2px 0; }

/* ---------- location on a post ---------- */
.post__loc { display: inline-flex; align-items: center; gap: 5px; margin: 8px 14px 0; font-size: 13px; font-weight: 600; color: var(--primary-d); text-decoration: none; background: transparent; border: 0; font-family: inherit; cursor: pointer; padding: 0; }
.post__loc:hover span { text-decoration: underline; }
.post__loc svg { width: 15px; height: 15px; }
.post__loc--plain { color: var(--muted); }

/* ---------- comment replies ---------- */
.cmt__replies { margin-left: 46px; border-left: 2px solid var(--line); padding-left: 10px; }
.cmt--reply { padding-top: 6px; }
.cmt--reply .avatar { width: 30px; height: 30px; }
.cmt__reply { background: transparent; border: 0; padding: 4px 0 0; font: inherit; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; }
.cmt__reply:hover { color: var(--primary-d); text-decoration: underline; }
.replybar { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.replybar__x { background: transparent; border: 0; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; }

/* ---------- map popup actions ---------- */
.pop__acts { display: flex; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #e6e6e6; }
.pop__b { flex: 1; border: 1px solid #d8d8d8; background: #fff; border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 11.5px; font-weight: 800; cursor: pointer; }
.pop__b--ok { color: #0b7a63; border-color: #9fd8cb; }
.pop__b--no { color: #b03a2e; border-color: #edc0ba; }

/* ---------- map legend / suggested toggle ---------- */
.mapslegend { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.mapslegend__t { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.mapslegend__h { font-size: 11.5px; color: var(--muted); }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot--sug { border: 2px dashed var(--primary); background: rgba(20,184,166,.25); }
