/* Support site: clean white theme. The main colour comes from the owner panel (Page design > Brand). */
:root {
  --accent: #5b4cff;
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 9%, #fff);
  --accent-line: color-mix(in srgb, var(--accent) 28%, #fff);
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --line: #e6e8ef;
  --text: #0d0f17;
  --text-2: #3b4152;
  --muted: #6a7184;
  --green: #0f9f6e;
  --blue: #0b8bd6;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .07);
  --shadow: 0 10px 30px -12px rgba(16, 24, 40, .18);
  --shadow-lg: 0 28px 60px -18px rgba(16, 24, 40, .28);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.12; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- buttons and form bits ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--text);
  font: inherit; font-weight: 650; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:hover { border-color: #cfd3df; box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.dark { background: var(--text); color: #fff; border-color: transparent; }
.btn.danger { color: #c0262d; }
.btn.small { padding: 7px 12px; font-size: 13.5px; border-radius: 10px; }
.btn.big { padding: 15px 26px; font-size: 16.5px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }

label.field { display: block; margin: 0 0 16px; font-weight: 600; font-size: 14.5px; }
label.field .hint, .hint { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
input[type=text], input[type=password], input[type=url], input[type=number], input[type=search], textarea, select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--text); font: inherit; font-weight: 400; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin: 0 0 16px; }
.check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--accent); }
.form-error { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #fff1f1; color: #b4232a; font-size: 14px; }
.form-error:empty { display: none; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em; background: var(--accent-soft); color: var(--accent);
}
.pill.green { background: #e7f8f1; color: var(--green); }
.pill.dark { background: var(--text); color: #fff; }
.pill.white { background: rgba(255, 255, 255, .92); color: var(--text); backdrop-filter: blur(6px); }
.badge-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff;
  font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; line-height: 1;
}

/* ---------- top bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000));
  box-shadow: 0 6px 16px -6px var(--accent); overflow: hidden;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { background: var(--bg-soft); color: var(--text); }
.nav-links a.on { color: var(--text); background: var(--bg-soft); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.cur-select { width: auto; margin: 0; padding: 7px 30px 7px 11px; border-radius: 10px; font-size: 14px; font-weight: 650; background-color: var(--bg-soft); border-color: transparent; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--text-2);
  border: 1px solid var(--line); background: #fff; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { color: var(--text); background: var(--bg-soft); }
.icon-btn .badge-count { position: absolute; top: -6px; right: -6px; }
.icon-btn svg { width: 20px; height: 20px; }
.me-btn { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; font-weight: 650; font-size: 14px; color: var(--text); }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: 6px; border-radius: 14px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 50;
}
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font: inherit; font-size: 14.5px; font-weight: 550; background: none; border: 0; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--bg-soft); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.rel { position: relative; }
.burger { display: none; }
.show-sm { display: none; }

@media (max-width: 880px) {
  .nav .wrap { gap: 12px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 68px; padding: 10px 16px 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 12px; font-size: 16px; }
  .burger { display: grid; }
  .nav-links.open .show-sm { display: block; }
  .logo { margin-right: auto; }
  .logo .logo-name { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; }
  .hide-sm { display: none !important; }
}

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 1.08rem; max-width: 640px; }
.kicker { display: block; margin-bottom: 10px; color: var(--accent); font-weight: 750; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; }

/* hero */
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 140%; pointer-events: none;
  background: radial-gradient(closest-side, var(--accent-soft), transparent); z-index: -1;
}
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); font-weight: 850; margin: 18px 0 18px; }
.hero p.lead { font-size: 1.18rem; color: var(--text-2); max-width: 560px; white-space: pre-line; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-media { position: relative; }
.hero-media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-lg); background: var(--bg-soft); }
.hero-media::after { content: ""; position: absolute; inset: 0; border-radius: 26px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); pointer-events: none; }
@media (max-width: 880px) {
  .hero { padding: 40px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 850; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 14px; font-weight: 600; }
@media (max-width: 880px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* gallery "shelf" (scrolls sideways like an app store) */
.shelf-nav { display: flex; gap: 8px; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); cursor: pointer; display: grid; place-items: center; color: var(--text); }
.round-btn:hover { box-shadow: var(--shadow); }
.round-btn svg { width: 20px; height: 20px; }
.shelf {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 540px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 24px; padding: 4px 24px 18px;
  margin: 0 -24px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.shelf::-webkit-scrollbar { display: none; }
.shot { margin: 0; scroll-snap-align: start; cursor: zoom-in; }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; background: var(--bg-soft); box-shadow: var(--shadow); transition: transform .25s; }
.shot:hover img { transform: translateY(-3px); }
.shot figcaption { margin-top: 12px; font-size: 14.5px; color: var(--text-2); font-weight: 550; }
.placeholder-art.h1 { filter: hue-rotate(40deg); } .placeholder-art.h2 { filter: hue-rotate(110deg); } .placeholder-art.h3 { filter: hue-rotate(200deg); }

/* goals */
.goals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.goals.one { grid-template-columns: minmax(0, 720px); justify-content: center; }
.goal { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.goal:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.goal-media { position: relative; }
.goal-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-soft); }
.goal-media .pills { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.goal-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.goal-body h3 { font-size: 1.45rem; font-weight: 800; }
.goal-body p { color: var(--text-2); white-space: pre-line; }
.goal-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 880px) { .goals { grid-template-columns: 1fr; } }

.meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.meter-top b { color: var(--text); font-size: 1.15rem; font-weight: 800; }
.meter-top .pct { font-weight: 800; color: var(--text); }
.bar { height: 12px; border-radius: 99px; background: #eceef4; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #22d3ee)); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.bar.build { height: 8px; }
.bar.build i { background: repeating-linear-gradient(135deg, var(--blue) 0 10px, color-mix(in srgb, var(--blue) 75%, #fff) 10px 20px); }
.meter.build .meter-top { font-size: 13px; }
.meter.build .meter-top span:first-child { font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }

/* donate */
.donate-card {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-lg);
}
.donate-side { padding: 44px; background: linear-gradient(160deg, var(--accent-soft), #fff 70%); border-right: 1px solid var(--line); }
.donate-side h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 850; }
.donate-side > p { margin-top: 12px; color: var(--text-2); font-size: 1.05rem; white-space: pre-line; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.trust li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 14.5px; }
.trust svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.donate-form { padding: 44px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 14px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: block; text-align: center; padding: 15px 4px; border-radius: 14px; border: 1.5px solid var(--line); font-weight: 800; font-size: 1.1rem; cursor: pointer; background: #fff; transition: all .15s; }
.chip:hover span { border-color: var(--accent-line); }
.chip input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 10px 22px -10px var(--accent); }
.chip input:focus-visible + span { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.money { display: flex; align-items: center; margin-top: 6px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.money:focus-within, .money.on { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.money b { color: var(--muted); font-size: 1.1rem; }
.money input { border: 0; box-shadow: none !important; margin: 0; padding: 13px 8px; font-size: 1.1rem; font-weight: 700; }
.pay-note { margin-top: 10px; min-height: 1.4em; font-size: 13.5px; color: var(--muted); text-align: center; }
.pay-note.bad { color: #c0262d; }
.secure-line { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 14px; font-size: 13px; color: var(--muted); }
.secure-line svg { width: 15px; height: 15px; color: var(--green); }
@media (max-width: 880px) {
  .donate-card { grid-template-columns: 1fr; }
  .donate-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 30px 24px; }
  .donate-form { padding: 28px 24px 30px; }
}
@media (max-width: 420px) { .amounts { grid-template-columns: repeat(2, 1fr); } .row2 { grid-template-columns: 1fr; } }

/* text + faq */
.prose { max-width: 760px; }
.prose p { color: var(--text-2); font-size: 1.08rem; white-space: pre-line; }
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--text-2); white-space: pre-line; }

/* footer */
.foot { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--text-2); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--text); }

/* ---------- account pages ---------- */
.page { padding: 48px 0 80px; min-height: calc(100vh - 68px - 140px); }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 850; }
.page-head p { margin-top: 8px; color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-sm); }
.auth { max-width: 440px; margin: 20px auto 0; }
.auth .card { padding: 34px; box-shadow: var(--shadow-lg); }
.auth h1 { font-size: 1.9rem; font-weight: 850; margin-bottom: 6px; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.notice { padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text-2); font-size: 14.5px; margin-bottom: 20px; }

.avatar { flex: none; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 2px var(--text); }
.counter { float: right; font-weight: 500; font-size: 12.5px; color: var(--muted); }

.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.member { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.member-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.member-top div { min-width: 0; }
.member-top b { display: block; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-top small { color: var(--muted); }
.member p { color: var(--text-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.member .btns { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.vrc { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; color: var(--text-2); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; cursor: pointer; }
.vrc:hover { border-color: var(--accent-line); }
.profile-hero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.profile-hero h1 { font-size: 2rem; font-weight: 850; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .grow b { display: block; }
.empty { padding: 26px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 16px; }

/* messages */
.chat { display: flex; flex-direction: column; height: min(72vh, 760px); min-height: 440px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; }
.chat-list { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(#fff, var(--bg-soft)); }
.bubble { max-width: min(78%, 560px); padding: 10px 14px; border-radius: 18px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.mine { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.bubble.mine a { color: inherit; }
.bubble time { display: block; margin-top: 4px; font-size: 11px; opacity: .65; }
.composer { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.composer textarea { margin: 0; resize: none; height: 46px; max-height: 140px; }
.inbox { display: grid; grid-template-columns: 330px 1fr; gap: 20px; }
.convos { border: 1px solid var(--line); border-radius: 22px; background: #fff; overflow: hidden; display: flex; flex-direction: column; height: min(72vh, 760px); min-height: 440px; }
.convos .scroll { overflow-y: auto; flex: 1; }
.convo { display: flex; gap: 10px; align-items: center; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.convo:hover, .convo.on { background: var(--bg-soft); }
.convo .grow { flex: 1; min-width: 0; }
.convo b { display: block; font-size: 14.5px; }
.convo small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.broadcast { padding: 12px; border-bottom: 1px solid var(--line); background: var(--accent-soft); }
.broadcast textarea { margin: 6px 0 8px; height: 64px; }
@media (max-width: 880px) {
  .inbox { grid-template-columns: 1fr; }
  .inbox.chatting .convos { display: none; }
  .inbox:not(.chatting) .chat { display: none; }
}

/* overlays */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 100;
  padding: 12px 18px; border-radius: 12px; background: var(--text); color: #fff; font-weight: 600; font-size: 14.5px;
  box-shadow: var(--shadow-lg); transition: all .25s; pointer-events: none; max-width: 92vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8, 10, 16, .92); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-width: 94vw; max-height: 82vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox p { color: #e8eaf2; text-align: center; margin-top: 14px; }
.lightbox .round-btn { position: fixed; top: 50%; transform: translateY(-50%); }
.lightbox .prev { left: 16px; } .lightbox .next { right: 16px; }
.lightbox .close { position: fixed; top: 16px; right: 16px; transform: none; }
.preview-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 95; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 18px; border-radius: 16px; background: var(--text); color: #fff; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px;
}
.loading { padding: 120px 0; text-align: center; color: var(--muted); }
.spinner { width: 34px; height: 34px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

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

/* ---------- owner panel ---------- */
.owner { padding-bottom: 120px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; margin-bottom: 22px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.tab { padding: 9px 16px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 650; font-size: 14.5px; }
.tab.on { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.ocard { margin-bottom: 20px; }
.ocard h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 16px; }
.ocard.off { opacity: .6; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 720px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.sec { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: #fff; }
.sec.off { background: var(--bg-soft); }
.sec.off .sec-name { opacity: .55; }
.sec summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.sec summary::-webkit-details-marker { display: none; }
.sec-name { min-width: 0; }
.sec-name b { display: block; }
.sec-name small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.sec-tools { display: flex; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.sec-body { padding: 4px 16px 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.sub-card { padding: 14px; border: 1px dashed var(--line); border-radius: 12px; margin-bottom: 12px; }
.add-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.thumb { border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: #fff; }
.thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; background: var(--bg-soft); }
.thumb input { margin: 8px 0; padding: 7px 9px; font-size: 13.5px; }
.thumb-btns { display: flex; gap: 6px; }
.thumb.add { display: grid; place-items: center; min-height: 150px; border-style: dashed; cursor: pointer; color: var(--accent); font-weight: 700; }
.thumb.add:hover { background: var(--accent-soft); }
.img-pick { display: flex; gap: 14px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.img-pick img { width: 150px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-soft); }
.img-pick label.btn { cursor: pointer; }
.slider-box { padding: 16px 18px; border-radius: 16px; background: var(--accent-soft); border: 1px solid var(--accent-line); margin-bottom: 14px; }
.slider-box.build { background: #eef7fd; border-color: #cfe7f7; }
.slider-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14.5px; }
.slider-box input[type=range] { width: 100%; margin: 12px 0 6px; accent-color: var(--accent); height: 26px; }
.slider-box.build input[type=range] { accent-color: var(--blue); }
.slider-box .field { margin-bottom: 0; }
.goal-edit-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.goal-edit-head img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--bg-soft); }
.goal-edit-head h2 { margin: 0; }
.link-row { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
.link-row b { text-align: right; }
.link-row input { margin: 0; }
.member-tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; max-width: 60%; }
@media (max-width: 880px) { .list-row { flex-wrap: wrap; } .member-tools { max-width: 100%; justify-content: flex-start; } }
.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(16, 24, 40, .3); }
.savebar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.savebar #saveState { font-weight: 650; color: var(--muted); font-size: 14.5px; }
.savebar.dirty #saveState { color: #b45309; }
.savebar.dirty #saveState::before { content: "\25CF  "; }

/* icon sizes inside buttons and chips */
.btn svg, .link-btn svg { width: 18px; height: 18px; flex: none; }
.vrc svg { width: 14px; height: 14px; flex: none; color: var(--muted); }
.chat .muted svg { width: 34px; height: 34px; margin-bottom: 6px; }
@media (max-width: 880px) {
  .nav .wrap { padding: 0 14px; gap: 8px; }
  .nav-right { gap: 6px; }
  .me-btn { padding: 3px; }
}
@media (max-width: 400px) { .logo .logo-name { max-width: 30vw; } .wrap { padding: 0 16px; } .card { padding: 22px; } }
.goal-edit-head > div { min-width: 150px !important; }
@media (max-width: 520px) { .goal-edit-head img { width: 72px; } }
@media (max-width: 880px) { .logo .logo-name { max-width: 42vw; } }
@media (max-width: 400px) {
  .logo .logo-name { max-width: 38vw; }
  .shelf { margin: 0 -16px; padding: 4px 16px 18px; scroll-padding: 0 16px; }
}

/* news posts */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.post-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-soft); }
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body time, .post-full time { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.post-body h3 { font-size: 1.25rem; font-weight: 800; }
.post-body p { color: var(--text-2); font-size: 15px; }
.post-body .read { margin-top: auto; padding-top: 6px; color: var(--accent); font-weight: 700; font-size: 14.5px; }
.post-full { max-width: 760px; }
.post-full h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 850; margin: 8px 0 22px; }
.post-full .post-img img { display: block; width: 100%; border-radius: 20px; margin-bottom: 26px; box-shadow: var(--shadow); }
.post-full p { color: var(--text-2); font-size: 1.1rem; margin-bottom: 1em; white-space: pre-line; overflow-wrap: anywhere; }

/* bot trap: real people never see it */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* owner security tab */
.shield-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.shield-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 14.5px; }
.shield-list svg { flex: none; width: 20px; height: 20px; color: var(--green); margin-top: 1px; }
.pill.sec-ok { background: #e7f8f1; color: var(--green); }
.pill.sec-warn { background: #fff6e5; color: #b45309; }
.pill.sec-bad { background: #fff1f1; color: #b4232a; }
.list-row .pill { flex: none; }
