/* Motion Reference Library: light, quiet UI so the work is the hero.
   Purple (from the logo) is used only for accents, small headers,
   the hover state of clickable text and the active tab. */

:root {
  --bg: #fafafb;
  --surface: #ffffff;
  --ink: #15151a;
  --muted: #6c6c78;
  --faint: #ececf1;
  --line: #e3e3ea;
  --accent: #5b5bff;
  --accent-soft: #eeeeff;
  --accent-2: #a2a2ff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 40, .06), 0 8px 24px rgba(20, 20, 40, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Montserrat", var(--font);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover, .link:hover { color: var(--accent); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
#app { position: relative; z-index: 1; min-height: 100vh; }

/* ---------- Bottom glow ---------- */
.glow { position: fixed; inset: auto 0 0 0; height: 45vh; pointer-events: none; z-index: 0; overflow: hidden; }
.glow span {
  position: absolute; bottom: -30vh; width: 70vw; height: 50vh; border-radius: 50%;
  filter: blur(80px); opacity: .16;
  background: radial-gradient(closest-side, var(--accent), transparent);
  animation: drift 48s ease-in-out infinite alternate;
}
.glow span:nth-child(1) { left: -15vw; }
.glow span:nth-child(2) { left: 30vw; background: radial-gradient(closest-side, var(--accent-2), transparent); animation-duration: 64s; animation-delay: -20s; }
.glow span:nth-child(3) { left: 60vw; animation-duration: 56s; animation-delay: -35s; opacity: .12; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(8vw, -4vh, 0) scale(1.15); }
  100% { transform: translate3d(-6vw, 2vh, 0) scale(.95); }
}
@media (prefers-reduced-motion: reduce) { .glow span { animation: none; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 32px; background: rgba(250, 250, 251, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.brand img { height: 40px; width: auto; mix-blend-mode: multiply; }
.search {
  flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
}
.search:focus-within { border-color: var(--accent-2); }
.search input { border: 0; outline: 0; background: none; width: 100%; }
.search svg { flex: none; color: var(--muted); }
.tabs { display: flex; gap: 4px; margin-left: auto; }
.tab { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; }
.tab:hover { color: var(--accent); }
.tab.active { color: var(--accent); background: var(--accent-soft); }
.tab .count { font-size: 12px; margin-left: 4px; opacity: .8; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 600;
}
.menu { position: relative; }
.menu-pop {
  position: absolute; right: 0; top: 46px; min-width: 220px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none;
}
.menu.open .menu-pop { display: block; }
.menu-pop .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--faint); margin-bottom: 6px; }
.menu-pop .who small { display: block; color: var(--muted); }
.menu-pop button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; }
.menu-pop button:hover { background: var(--faint); color: var(--accent); }
.role { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* ---------- Filters ---------- */
.filters { padding: 6px 32px 0; }
.filter-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 6px 0; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-label { flex: none; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); width: 78px; }
.chip {
  flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-size: 13.5px; white-space: nowrap; transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { color: var(--accent); border-color: var(--accent-2); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .n { color: var(--muted); font-size: 12px; margin-left: 4px; }
.chip.on .n { color: rgba(255, 255, 255, .8); }
.chip.tag { border-style: dashed; }
.chip.tag.on { border-style: solid; }
.filter-meta { display: flex; align-items: center; gap: 14px; padding: 10px 0 0; color: var(--muted); font-size: 13px; }
.filter-meta .link { text-decoration: underline; text-underline-offset: 3px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.toggle input { accent-color: var(--accent); }

/* ---------- Grid (masonry: each piece keeps its own shape) ---------- */
.grid { display: flex; gap: 18px; padding: 18px 32px 120px; align-items: flex-start; }
.col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.tile {
  position: relative; display: block; width: 100%; border-radius: var(--radius); overflow: hidden;
  background: var(--faint); transform: scale(var(--s, 1)); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
  will-change: transform;
}
.tile:hover { box-shadow: var(--shadow); z-index: 2; }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tile img, .tile video { width: 100%; height: auto; display: block; }
.tile .live {
  position: absolute; inset: 0; opacity: 0; transition: opacity .35s; background: #000;
}
.tile .live.ready { opacity: 1; }
.tile .live iframe, .tile .live video, .tile .live img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; pointer-events: none; }
.tile .badge {
  position: absolute; left: 10px; top: 10px; z-index: 3; font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--accent);
}
.placeholder {
  aspect-ratio: 16 / 10; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 16px; text-align: left;
  background: linear-gradient(135deg, #f1f1ff, #e6e6fb 60%, #dcdcfa);
}
.placeholder b { font-family: var(--display); font-size: 15px; line-height: 1.25; }
.placeholder small { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 80px 20px; }
.empty h3 { font-family: var(--display); color: var(--ink); margin: 0 0 6px; }

/* ---------- Modal (click-through view) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(18, 18, 28, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; padding: 40px 20px;
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.panel {
  position: relative; width: min(1100px, 100%); background: var(--surface); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25); animation: rise .25s cubic-bezier(.2, .7, .2, 1);
}
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
.close {
  position: absolute; right: 14px; top: 14px; z-index: 3; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center; box-shadow: var(--shadow);
}
.close:hover { color: var(--accent); }
.stage { background: #0c0c10; display: flex; justify-content: center; }
.stage .frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.stage .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage img, .stage video { max-height: 72vh; width: auto; max-width: 100%; }
.stage .outlink {
  position: relative; width: 100%; display: grid; place-items: center; min-height: 320px; overflow: hidden;
}
.stage .outlink img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; opacity: .55; }
.stage .outlink a {
  position: relative; background: #fff; color: var(--ink); border-radius: 999px; padding: 12px 22px; font-weight: 600;
  box-shadow: var(--shadow);
}
.stage .outlink a:hover { color: var(--accent); }
.stage .outlink p { position: absolute; bottom: 14px; margin: 0; color: rgba(255, 255, 255, .85); font-size: 13px; }
.info { display: grid; grid-template-columns: 1fr 280px; gap: 36px; padding: 28px 32px 32px; }
.info h1 { font-family: var(--display); font-size: 26px; line-height: 1.2; margin: 0 0 6px; }
.credit { color: var(--muted); margin: 0 0 16px; }
.credit b { color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 22px 0 6px; }
.prose { white-space: pre-line; color: #33333d; }
.why { background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; }
.side .btn { width: 100%; justify-content: center; margin-bottom: 8px; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li a { display: block; padding: 7px 0; border-bottom: 1px solid var(--faint); font-size: 14px; }
.side .meta { font-size: 13px; color: var(--muted); margin-top: 18px; }
.side .meta div { padding: 3px 0; }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 500; transition: border-color .15s, color .15s, background .15s;
}
.btn:hover { border-color: var(--accent-2); color: var(--accent); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.good { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.good:hover { filter: brightness(1.08); color: #fff; }
.btn.danger:hover { border-color: #e5484d; color: #e5484d; }
.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); outline: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 90px; resize: vertical; }
.field small { color: var(--muted); font-size: 12px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Pages (review, submit, auth) ---------- */
.page { max-width: 1100px; margin: 0 auto; padding: 28px 32px 120px; }
.page h2 { font-family: var(--display); font-size: 24px; margin: 0 0 4px; }
.page .sub { color: var(--muted); margin: 0 0 24px; }
.queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.qcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.qcard .thumb { aspect-ratio: 16 / 9; background: var(--faint); overflow: hidden; cursor: pointer; }
.qcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.qcard .thumb .placeholder { aspect-ratio: auto; height: 100%; }
.qcard .body { padding: 12px 14px; flex: 1; }
.qcard .body b { display: block; line-height: 1.3; }
.qcard .body small { color: var(--muted); }
.qcard .actions { display: flex; gap: 6px; padding: 0 14px 14px; }
.qcard .actions .btn { flex: 1; justify-content: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth .card { width: min(400px, 100%); box-shadow: var(--shadow); }
.auth img { height: 64px; width: auto; margin: 0 auto 14px; mix-blend-mode: multiply; }
.auth p { color: var(--muted); text-align: center; margin: 0 0 20px; }
.auth .btn { width: 100%; justify-content: center; }
.auth .switch { text-align: center; margin-top: 14px; font-size: 14px; color: var(--muted); }
.auth .switch button { color: var(--accent); font-weight: 500; }
.notice { background: var(--accent-soft); color: #33337a; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.error { background: #fff0f0; color: #a3262a; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; transition: .25s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .header { flex-wrap: wrap; padding: 12px 16px; gap: 12px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .filters, .grid { padding-left: 16px; padding-right: 16px; }
  .grid { gap: 12px; } .col { gap: 12px; }
  .info { grid-template-columns: 1fr; padding: 22px 20px; gap: 10px; }
  .overlay { padding: 0; } .panel { border-radius: 0; min-height: 100vh; }
  .page { padding: 20px 16px 100px; }
}

/* ---------- Password box with Show / Hide ---------- */
.pw { position: relative; }
.pw input { padding-right: 64px; }
.peek {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  padding: 5px 10px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--muted);
}
.peek:hover { color: var(--accent); background: var(--accent-soft); }

/* ---------- Tags: slim strip under the big view, bottom left ---------- */
.stage { position: relative; }
.stage-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 32px 0; }
.stage-chips .chip { font-size: 12px; padding: 4px 10px; }
.stage-chips .chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Instagram embed ---------- */
.insta { width: 100%; display: flex; justify-content: center; background: #0c0c10; padding: 18px 0; }
.insta iframe { width: min(480px, 100%); height: min(78vh, 720px); border: 0; border-radius: 12px; background: #fff; }

/* ---------- Footer: links bottom left, credit bottom right ---------- */
.footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 9px 32px; font-size: 12px; color: var(--muted);
  background: linear-gradient(to top, rgba(250, 250, 251, .92), rgba(250, 250, 251, 0));
}
.footer nav { display: flex; gap: 18px; }
.footer a:hover { color: var(--accent); }

/* ---------- Info pages (About, Resources, Brand, Terms) ---------- */
.info-page { max-width: 820px; }
.info-title { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 6px 0 14px; }
.lead { font-size: 18px; color: #3a3a46; margin: 0 0 10px; }
.info-sec { margin-top: 30px; }
.info-sec p, .info-sec li { color: #3a3a46; }
.info-sec ul, .info-page > ul { padding-left: 20px; }
.info-sec li, .info-page > ul li { margin-bottom: 6px; }
.faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: '+'; color: var(--accent); font-weight: 500; }
.faq[open] summary::after { content: '–'; }
.faq summary:hover { color: var(--accent); }
.faq p { margin: 8px 0 0; }
.signoff { margin-top: 36px; color: var(--muted); }
.signoff span { display: block; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.res { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: border-color .15s, transform .2s; }
a.res:hover { border-color: var(--accent-2); transform: translateY(-2px); color: inherit; }
.res-top { display: flex; justify-content: space-between; }
.res-top span { color: var(--accent); }
.res p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.res .kind { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.brand-card .swatch-img { border-radius: 10px; height: 150px; display: grid; place-items: center; overflow: hidden; margin-bottom: 6px; }
.brand-card .swatch-img img { height: 70%; width: auto; max-width: 85%; object-fit: contain; }
.brand-card .btn { align-self: flex-start; }
.colours { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 12px 0; }
.colour { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto auto; column-gap: 12px; text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.colour:hover { border-color: var(--accent-2); }
.colour .dot { grid-row: 1 / 4; width: 40px; height: 40px; border-radius: 10px; }
.colour code { font-size: 12px; color: var(--muted); }
.colour small { font-size: 12px; color: var(--muted); }
.auth .fine { font-size: 12px; color: var(--muted); text-align: center; margin: 12px 0 0; }

@media (max-width: 820px) {
  .footer { position: static; flex-direction: column; padding: 16px; }
  .stage-chips { padding: 10px 20px 0; }
}

/* ---------- Avatars ---------- */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.big { width: 104px; height: 104px; font-size: 38px; font-family: var(--display); margin: 0 auto 14px; }

/* ---------- Profile ---------- */
.profile-hero { text-align: center; padding: 36px 32px 10px; }
.profile-hero h1 { font-family: var(--display); font-size: 30px; margin: 0 0 4px; }
.profile-hero .bio { max-width: 520px; margin: 8px auto 0; color: #3a3a46; }
.profile-hero .bio.muted { color: var(--muted); font-style: italic; }
.profile-links { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.ptabs { display: flex; gap: 6px; justify-content: center; padding: 22px 32px 4px; border-bottom: 1px solid var(--line); margin: 0 32px; }
.ptab { padding: 10px 14px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ptab:hover { color: var(--accent); }
.ptab.active { color: var(--accent); border-bottom-color: var(--accent); }
.ptab .count { font-size: 12px; margin-left: 5px; opacity: .8; }
.profile-grid.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.board-tile {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); padding: 18px; text-align: left; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  background: linear-gradient(45deg, #9c9cff, #5d5cff); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
}
.board-tile:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.board-tile b { font-family: var(--display); font-size: 18px; line-height: 1.2; }
.board-tile small { opacity: .85; }
.board-tile .lock { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 600; background: rgba(255, 255, 255, .22); padding: 3px 8px; border-radius: 999px; }
.avatar-edit { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.avatar-edit .avatar.big { margin: 0; width: 84px; height: 84px; font-size: 30px; }

/* ---------- Picture uploader ---------- */
.drop {
  margin-top: 8px; border: 1.5px dashed var(--line); border-radius: 10px; padding: 14px; text-align: center;
  font-size: 13px; color: var(--muted); transition: border-color .15s, background .15s;
}
.drop.over, .drop:focus { border-color: var(--accent); background: var(--accent-soft); outline: 0; }
.drop.busy { opacity: .6; pointer-events: none; }
.drop-preview img { margin-top: 8px; border-radius: 8px; max-height: 160px; width: auto; }

/* ---------- Warnings & lost links ---------- */
.warn { margin: 0 14px 10px; font-size: 12.5px; color: #a3262a; background: #fff0f0; border-radius: 8px; padding: 6px 10px; }
.tile .badge.lost { color: #a3262a; }
.tile.is-lost img, .tile.is-lost video { filter: grayscale(1); opacity: .55; }

/* ---------- Footer: stronger, taller fade so the links read over tiles ---------- */
.footer {
  padding: 34px 32px 10px;
  background: linear-gradient(to top, rgba(250, 250, 251, .98) 0%, rgba(250, 250, 251, .94) 40%, rgba(250, 250, 251, 0) 100%);
  pointer-events: none;
}
.footer a, .footer span { pointer-events: auto; }
.footer nav { flex-wrap: wrap; }

/* ---------- Legal dropdowns ---------- */
.legal-doc { padding: 16px 0; }
.legal-doc > summary { font-family: var(--display); font-size: 20px; align-items: center; }
.legal-doc > summary small { display: block; font-family: var(--font); font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.legal-body { padding-top: 6px; }
.legal-body h4 { margin: 16px 0 4px; font-size: 15px; }
.legal-body ol, .legal-body ul { padding-left: 22px; color: #3a3a46; }
.legal-body li { margin-bottom: 6px; }
.tldr { margin: 10px 0 8px; }
.tldr ul { margin: 8px 0 0; }
.table-wrap { overflow-x: auto; }
.legal-body table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 8px 0; }
.legal-body th, .legal-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-body th { background: var(--faint); }

/* ---------- Checkboxes ---------- */
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 14px; color: #3a3a46; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.fine-check { font-size: 12.5px; color: var(--muted); margin: 4px 0 14px; }

/* ---------- Report form & review cards ---------- */
.takedown-box { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
.report.urgent { border-color: #f0b4b6; }
.report-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.report-top small { color: var(--muted); }
.kind-pill { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.kind-pill.takedown { background: #fff0f0; color: #a3262a; }
.takedown-details { font-size: 13.5px; background: var(--faint); border-radius: 10px; padding: 10px 12px; margin-top: 8px; display: grid; gap: 3px; }
.review-h { display: flex; align-items: center; gap: 10px; }
.step { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; font-family: var(--font); }

/* ---------- motionrefs submit button card ---------- */
.bm-card { margin-bottom: 16px; padding: 16px 20px; }
.bm-card > summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; }
.bm-card > summary small { color: var(--muted); }
.bm-card > summary:hover b { color: var(--accent); }
.bm-card ol { padding-left: 20px; margin: 12px 0 0; color: #3a3a46; }
.bm-card li { margin-bottom: 10px; }
.bm-button {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; margin-left: 6px;
  background: linear-gradient(45deg, #9c9cff, #5d5cff); color: #fff !important; font-weight: 600; font-size: 13.5px; cursor: grab;
  box-shadow: 0 2px 10px rgba(93, 92, 255, .35);
}
.bm-button img { width: 22px; height: 22px; border-radius: 6px; }

/* ---------- Footer fade: long and gradual (eased), no hard edge near the links ---------- */
.footer {
  padding-top: 56px;
  background: linear-gradient(to top,
    rgba(250, 250, 251, .97) 0%,
    rgba(250, 250, 251, .9) 18%,
    rgba(250, 250, 251, .76) 34%,
    rgba(250, 250, 251, .56) 50%,
    rgba(250, 250, 251, .34) 66%,
    rgba(250, 250, 251, .16) 82%,
    rgba(250, 250, 251, .05) 92%,
    rgba(250, 250, 251, 0) 100%);
}

/* ---------- Brand page: centre the icon and gradient in their boxes ---------- */
.brand-card .swatch-img { display: flex; align-items: center; justify-content: center; }
.brand-card .swatch-img img { margin: 0 auto; }

/* ---------- Social links ---------- */
.social-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.social { font-size: 12.5px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.social:hover { color: var(--accent); border-color: var(--accent-2); }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 600px) { .social-grid { grid-template-columns: 1fr; } }

/* ---------- Moodboards ---------- */
.tile-save, .tile-remove {
  position: absolute; z-index: 4; top: 10px; right: 10px; opacity: 0; transition: opacity .2s, background .15s, color .15s;
  background: rgba(255, 255, 255, .94); color: var(--ink); border-radius: 999px; font-size: 12px; font-weight: 600; padding: 5px 11px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .18);
}
.tile-remove { padding: 6px; display: grid; place-items: center; }
.tile:hover .tile-save, .tile:hover .tile-remove, .tile:focus-within .tile-save { opacity: 1; }
.tile-save:hover { background: var(--accent); color: #fff; }
.tile-remove:hover { background: #e5484d; color: #fff; }
.tile.ghost { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; aspect-ratio: 16 / 10; text-align: center; padding: 18px;
  background: repeating-linear-gradient(45deg, #f1f1f5, #f1f1f5 10px, #ececf1 10px, #ececf1 20px); color: var(--muted); }
.tile.ghost b { color: var(--ink); }
.lost-cover { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 16px; text-align: center;
  background: rgba(250, 250, 251, .55); }
.lost-cover b { font-family: var(--display); font-size: 17px; }
.lost-cover small { color: #3a3a46; max-width: 240px; }
.board-tile { text-decoration: none; }
.board-tile.new { background: var(--surface); border: 1.5px dashed var(--accent-2); color: var(--accent); align-items: center; justify-content: center; text-align: center; }
.board-tile.new .plus { font-size: 38px; line-height: 1; font-weight: 300; }
.board-tile.new:hover { background: var(--accent-soft); }
.board-hero {
  margin: 18px 32px 0; border-radius: 18px; padding: 34px 32px 26px; color: #fff; position: relative;
  background: linear-gradient(45deg, #9c9cff, #5d5cff); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap;
}
.board-hero h1 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 38px); margin: 8px 0 6px; line-height: 1.1; }
.board-hero p { margin: 0 0 10px; max-width: 620px; opacity: .92; }
.board-hero small { opacity: .9; }
.board-hero small a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.board-hero .lock { font-size: 11px; font-weight: 600; background: rgba(255, 255, 255, .22); padding: 3px 9px; border-radius: 999px; }
.board-actions { display: flex; gap: 8px; }
.board-actions .btn { background: rgba(255, 255, 255, .95); border-color: transparent; color: var(--ink); }
.board-actions .btn:hover { color: var(--accent); }
.board-edit { margin: 18px 32px 0; max-width: 640px; }

/* Save-to-moodboard pop-up */
.picker {
  position: fixed; z-index: 80; width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(20, 20, 40, .22); padding: 10px; animation: rise .18s ease;
}
.picker-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 8px; }
.close-sm { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.close-sm:hover { background: var(--faint); color: var(--accent); }
.picker-list { max-height: 260px; overflow-y: auto; }
.picker-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 6px; border-radius: 9px; text-align: left; }
.picker-item:hover { background: var(--faint); }
.picker-item .swatch { width: 30px; height: 30px; border-radius: 8px; flex: none; background: linear-gradient(45deg, #9c9cff, #5d5cff); }
.picker-item .pname { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-item .tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; border: 1px solid var(--line); color: var(--muted); }
.picker-item.on .tick { background: var(--accent); border-color: var(--accent); color: #fff; }
.picker-new { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 6px; padding: 9px 8px; border-top: 1px solid var(--faint); color: var(--accent); font-weight: 500; font-size: 14px; }
.picker-new:hover { background: var(--accent-soft); border-radius: 9px; }
@media (max-width: 820px) { .board-hero, .board-edit { margin-left: 16px; margin-right: 16px; } }

/* ---------- Sort ---------- */
.sort { display: inline-flex; align-items: center; gap: 4px; }
.sort-btn { padding: 3px 9px; border-radius: 999px; color: var(--muted); }
.sort-btn:hover { color: var(--accent); }
.sort-btn.on { background: var(--accent-soft); color: var(--accent); font-weight: 500; }

/* ---------- Arrow buttons in the big view ---------- */
.nav-arrow {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 60; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 28px; line-height: 1; display: grid; place-items: center;
  box-shadow: var(--shadow); padding-bottom: 3px;
}
.nav-arrow:hover { background: var(--accent); color: #fff; }
.nav-arrow.prev { left: 18px; } .nav-arrow.next { right: 18px; }
@media (max-width: 820px) { .nav-arrow { display: none; } }

/* ---------- More like this ---------- */
.more { grid-column: 1 / -1; border-top: 1px solid var(--faint); padding-top: 18px; }
.more-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.more-head .link { color: var(--accent); font-weight: 500; font-size: 14px; }
.more-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.more-tile { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--faint); transition: transform .25s; }
.more-tile:hover { transform: scale(1.03); }
.more-tile img { width: 100%; height: 100%; object-fit: cover; }
.more-tile .placeholder { aspect-ratio: auto; height: 100%; padding: 10px; }
.more-tile .placeholder b { font-size: 12px; }

/* ---------- Moodboard covers: mini stills over the gradient ---------- */
.board-tile { padding: 14px; justify-content: space-between; overflow: hidden; }
.board-tile .cover { display: grid; gap: 6px; flex: 1 1 0; min-height: 0; margin-bottom: 10px; }
.board-tile .cover img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.board-tile .cover:empty { display: none; }
.board-tile .board-label { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.board-tile .lock { z-index: 2; }

/* ---------- My Team, danger zone, tags page ---------- */
.team-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--faint); }
.team-row:last-child { border-bottom: 0; }
.team-row .avatar { width: 40px; height: 40px; font-size: 15px; }
.team-who { flex: 1; display: flex; flex-direction: column; }
.team-who small { color: var(--muted); }
.team-row select { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--surface); }
.role-list { padding-left: 20px; color: #3a3a46; }
.danger-zone { margin-top: 18px; border-color: #f0c4c6; }
.review-tools { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.tag-add { margin-bottom: 14px; }
.tag-add input, .tag-add select { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--surface); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-x { margin-left: 6px; color: var(--muted); font-size: 15px; line-height: 1; }
.chip-x:hover { color: #e5484d; }

/* YouTube hover previews: crop the player's title bar (top) and logo (bottom) out of view */
.tile .live.yt { overflow: hidden; }
.tile .live.yt iframe { top: -70px; height: calc(100% + 140px); }

/* ---------- Invites ---------- */
.invite-form .row { flex-wrap: wrap; }
.invite-form input { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); min-width: 200px; }
.copy-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.copy-row code { flex: 1; font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-row, .inv-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--faint); }
.req-row:last-child, .inv-row:last-child { border-bottom: 0; }
.inv-row span:first-child { flex: 1; }
.inv-row small { color: var(--muted); }
.kind-pill.ok { background: #e7f7ee; color: #1d7a46; }
.allow-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.allow { width: 62px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.allow-note { font-size: 12.5px; color: var(--muted); }
input.readonly { background: var(--faint) !important; color: var(--muted); }
.auth .btn { margin-top: 2px; }
