/* ═══════════════════════════════════════════════════════════════
   Datumeer — design system
   Apple-grade type (SF Pro on Apple devices, Inter elsewhere),
   calm white/grey surfaces, one confident accent, generative cover art.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #FFFFFF;
  --bg-2: #F5F5F7;
  --bg-3: #EDEDF0;
  --ink: #1D1D1F;
  --ink-2: #424245;
  --ink-3: #6E6E73;
  --ink-4: #8E8E93;
  --hair: rgba(0, 0, 0, .08);
  --hair-2: rgba(0, 0, 0, .14);
  --accent: #1F5EFF;
  --accent-hover: #1449D8;
  --accent-soft: #EBF1FF;
  --accent-ink: #1446C8;
  --coral: #FF3B5C;
  --coral-soft: #FFECEF;
  --green: #1E9E5A;
  --green-soft: #E6F6EC;
  --amber: #B86E00;
  --amber-soft: #FFF3DC;
  --r-xl: 28px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --sh-1: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --sh-2: 0 2px 6px rgba(0,0,0,.04), 0 12px 32px -8px rgba(0,0,0,.14);
  --sh-3: 0 8px 24px rgba(0,0,0,.08), 0 32px 64px -16px rgba(0,0,0,.22);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 64px;
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -.012em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); letter-spacing: -.022em; }
p { margin: 0; }
:focus-visible { outline: 3px solid rgba(31, 94, 255, .45); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(31, 94, 255, .18); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.muted { color: var(--ink-3); }
.faint { color: var(--ink-4); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap-ok { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 16px; height: 16px; } .ic.lg { width: 24px; height: 24px; }

/* ───────── buttons ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--bg-2); color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; transition: background .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { background: var(--bg-3); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #000; }
.btn.outline { background: #fff; box-shadow: inset 0 0 0 1px var(--hair-2); }
.btn.outline:hover { background: var(--bg-2); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--bg-2); }
.btn.danger { background: transparent; color: var(--coral); }
.btn.danger:hover { background: var(--coral-soft); }
.btn.lg { height: 50px; padding: 0 26px; font-size: 17px; }
.btn.sm { height: 32px; padding: 0 14px; font-size: 14px; }
.btn.icon { width: 40px; padding: 0; }
.btn.icon.sm { width: 32px; }
.btn.block { width: 100%; }
.link { color: var(--accent); font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ───────── inputs ───────── */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; letter-spacing: -.005em; }
.field .hint { font-size: 13px; color: var(--ink-4); margin-top: 6px; }
.input { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--hair-2); background: #fff; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236E6E73' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 94, 255, .14); }
.input::placeholder { color: var(--ink-4); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.toggle { position: relative; width: 51px; height: 31px; border-radius: 999px; background: #E3E3E8; border: 0; flex: none; transition: background .2s; }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.08); transition: transform .25s var(--ease); }
.toggle.on { background: #34C759; } .toggle.on::after { transform: translateX(20px); }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--bg-2); gap: 2px; }
.seg button { height: 34px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background .2s, box-shadow .2s; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--hair-2); background: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--ink-2); transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; letter-spacing: -.005em; }
.pill.blue { background: var(--accent-soft); color: var(--accent-ink); }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.coral { background: var(--coral-soft); color: #C81E3D; }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.dark { background: var(--ink); color: #fff; }
.drop { border: 1.5px dashed var(--hair-2); border-radius: var(--r-md); padding: 22px; text-align: center; color: var(--ink-3); font-size: 15px; cursor: pointer; transition: border-color .15s, background .15s; background: var(--bg-2); }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.drop input { display: none; }
.drop img { max-height: 160px; margin: 0 auto 10px; border-radius: 10px; }

/* ───────── avatars ───────── */
.av { --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: calc(var(--s) * .38); font-weight: 600; color: #fff; overflow: hidden; letter-spacing: 0; background: #8E8E93; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.xs { --s: 24px; } .av.sm { --s: 32px; } .av.md { --s: 48px; } .av.lg { --s: 72px; } .av.xl { --s: 128px; }
.av.co { border-radius: 24%; }
.stackav { display: flex; }
.stackav .av { box-shadow: 0 0 0 2.5px #fff; }
.stackav .av + .av { margin-left: -8px; }

/* ───────── top navigation ───────── */
.nav { position: sticky; top: 0; z-index: 30; height: var(--nav-h); background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hair); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 32px; height: 32px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.035em; }
.navlinks { display: flex; gap: 2px; margin-left: 8px; }
.navlinks a { height: 36px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; }
.navlinks a:hover { background: var(--bg-2); color: var(--ink); }
.navlinks a.on { color: var(--ink); font-weight: 600; background: var(--bg-2); }
.searchbtn { flex: 1; max-width: 300px; margin-left: auto; height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 14px; border-radius: 999px; border: 0; background: var(--bg-2); color: var(--ink-4); font-size: 14.5px; text-align: left; transition: background .15s; }
.searchbtn:hover { background: var(--bg-3); }
.searchbtn kbd { margin-left: auto; font-family: var(--font); font-size: 12px; color: var(--ink-4); background: #fff; border-radius: 6px; padding: 2px 6px; box-shadow: 0 0 0 1px var(--hair); }
.navright { display: flex; align-items: center; gap: 6px; }
.dot-badge { position: absolute; top: 7px; right: 8px; min-width: 9px; height: 9px; border-radius: 999px; background: var(--coral); box-shadow: 0 0 0 2px #fff; }
.me-btn { border: 0; background: none; padding: 2px; border-radius: 999px; }
.popover { position: absolute; right: 0; top: calc(100% + 10px); width: 320px; background: rgba(255,255,255,.96); backdrop-filter: blur(24px); border-radius: 18px; box-shadow: var(--sh-3), 0 0 0 1px var(--hair); padding: 8px; z-index: 40; animation: pop .18s var(--ease); max-height: 70vh; overflow: auto; }
.popover.wide { width: 380px; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: none; font-size: 15px; text-align: left; color: var(--ink); }
.menu-item:hover { background: var(--bg-2); }
.menu-item .ic { color: var(--ink-3); }
.menu-item small { display: block; font-size: 13px; color: var(--ink-3); }
.menu-sep { height: 1px; background: var(--hair); margin: 6px 4px; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* ───────── mobile tab bar ───────── */
.tabbar { display: none; }
@media (max-width: 860px) {
  .navlinks, .searchbtn kbd, .nav .create-btn .lbl { display: none; }
  .searchbtn { max-width: none; }
  .wrap { padding: 0 18px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--hair); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 500; color: var(--ink-4); border: 0; background: none; padding: 4px 0; }
  .tabbar .on { color: var(--accent); }
  .tabbar .plus { width: 44px; height: 44px; margin-top: -2px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px -4px rgba(31,94,255,.6); }
  body.has-tabbar { padding-bottom: 76px; }
  body.has-tabbar #player-root .player { bottom: calc(70px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) { .searchbtn span.lbl { display: none; } .searchbtn { flex: 0 0 38px; width: 38px; padding: 0; justify-content: center; margin-left: auto; } .nav .wrap { gap: 10px; } }

/* ───────── page scaffolding ───────── */
.page { padding: 40px 0 96px; animation: fadein .35s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.head h1 { font-size: 40px; font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
.head p { color: var(--ink-3); font-size: 19px; margin-top: 8px; max-width: 60ch; letter-spacing: -.015em; }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 48px 0 18px; }
.sec-title h2 { font-size: 26px; font-weight: 700; letter-spacing: -.025em; }
.sec-title a { font-size: 15px; color: var(--accent); font-weight: 500; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.layout > aside { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 20px; }
.layout.aside-wide { grid-template-columns: minmax(0, 1fr) 380px; }
@media (max-width: 1080px) { .layout, .layout.aside-wide { grid-template-columns: 1fr; } .layout > aside { position: static; } .layout.aside-first > aside { order: -1; } }
@media (max-width: 640px) { .page { padding-top: 24px; } .head h1 { font-size: 32px; } .head p { font-size: 17px; } }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; color: var(--accent); font-weight: 500; margin-bottom: 18px; }

/* ───────── cards & panels ───────── */
.panel { background: #fff; border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--hair); padding: 22px; }
.panel.soft { background: var(--bg-2); box-shadow: none; }
.panel h3 { font-size: 17px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 14px; }
.panel .more { display: block; margin-top: 14px; font-size: 15px; color: var(--accent); font-weight: 500; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.list-row + .list-row { border-top: 1px solid var(--hair); }
.list-row b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.list-row small { display: block; font-size: 13.5px; color: var(--ink-3); line-height: 1.35; }
.empty { text-align: center; padding: 56px 20px; border-radius: var(--r-lg); background: var(--bg-2); color: var(--ink-3); }
.empty h3 { font-size: 20px; color: var(--ink); margin: 14px 0 6px; }
.empty .art { width: 120px; height: 90px; margin: 0 auto; border-radius: 18px; overflow: hidden; }

/* cover art */
.cover { position: relative; overflow: hidden; background: var(--bg-2); }
.cover > svg, .cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }

/* tile grid (boards, groups, events, podcasts) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 24px; }
.tiles.lg { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.tile { display: block; position: relative; }
.tile .cover { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.tile:hover .cover > svg, .tile:hover .cover > img { transform: scale(1.04); }
.tile .t-body { padding: 14px 2px 0; }
.tile h3 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.tile .sub { font-size: 15px; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }
.tile .meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.tile .badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.tile .badge-r { position: absolute; top: 12px; right: 12px; z-index: 2; }
.datechip { background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-radius: 12px; padding: 6px 10px; text-align: center; line-height: 1.05; box-shadow: var(--sh-1); }
.datechip .m { font-size: 11.5px; font-weight: 700; color: var(--coral); letter-spacing: .01em; }
.datechip .d { font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }

/* horizontal scroller */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 300px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; margin: 0 -2px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.nextcard { display: flex; flex-direction: column; border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--hair); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease); min-height: 100%; }
.nextcard:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.nextcard .cover { height: 132px; }
.nextcard .nb { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nextcard .kind { font-size: 13px; font-weight: 600; color: var(--accent); }
.nextcard h4 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.nextcard .s { font-size: 14px; color: var(--ink-3); }

/* ───────── posts ───────── */
.composer { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--hair); }
.composer .fake { flex: 1; height: 44px; border-radius: 999px; background: var(--bg-2); border: 0; text-align: left; padding: 0 18px; color: var(--ink-4); font-size: 16px; transition: background .15s; }
.composer .fake:hover { background: var(--bg-3); }
.composer .qa { display: flex; gap: 4px; }
.feed { display: flex; flex-direction: column; }
.post { padding: 26px 0; border-bottom: 1px solid var(--hair); }
.post:first-child { padding-top: 8px; }
.post .by { display: flex; align-items: center; gap: 12px; }
.post .by b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.post .by small { display: block; font-size: 13.5px; color: var(--ink-3); line-height: 1.3; }
.post .by .where { color: var(--accent-ink); font-weight: 500; }
.post h2 { font-size: 22px; font-weight: 700; letter-spacing: -.022em; line-height: 1.25; margin: 14px 0 6px; }
.post h2 a:hover { color: var(--accent); }
.post .body { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; word-wrap: break-word; letter-spacing: -.008em; }
.post .body.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post .body a { color: var(--accent); }
.post .pimg { margin-top: 14px; border-radius: var(--r-md); max-height: 460px; width: 100%; object-fit: cover; }
.post .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.post .tags a { font-size: 14px; color: var(--accent-ink); font-weight: 500; }
.post .acts { display: flex; align-items: center; gap: 4px; margin: 14px 0 0 -10px; }
.act { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: none; font-size: 14.5px; font-weight: 500; color: var(--ink-3); transition: background .15s, color .15s; }
.act:hover { background: var(--bg-2); color: var(--ink); }
.act.liked { color: var(--coral); }
.act.liked .ic { fill: var(--coral); stroke: var(--coral); }
.act.liked .ic { animation: heart .35s var(--ease); }
@keyframes heart { 40% { transform: scale(1.3); } }
.post.pinned { background: linear-gradient(180deg, var(--accent-soft), rgba(235,241,255,0)); margin: 0 -20px; padding: 22px 20px 26px; border-radius: var(--r-lg); border-bottom: 0; }
.adcard { margin: 6px 0; padding: 18px; border-radius: var(--r-lg); background: var(--bg-2); display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; transition: background .2s; }
.adcard:hover { background: var(--bg-3); }
.adcard .cover { width: 96px; height: 96px; border-radius: 16px; }
.adcard .sp { font-size: 12.5px; color: var(--ink-4); font-weight: 500; }
.adcard h4 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; margin: 2px 0; }
.adcard p { font-size: 14.5px; color: var(--ink-3); }
.adcard .cta { font-size: 14.5px; color: var(--accent); font-weight: 600; margin-top: 6px; display: inline-block; }
.comments { margin-top: 22px; display: flex; flex-direction: column; gap: 18px; }
.cmt { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.cmt .bubble { background: var(--bg-2); border-radius: 4px 18px 18px 18px; padding: 10px 14px; }
.cmt .bubble b { font-size: 14px; font-weight: 600; }
.cmt .bubble p { font-size: 15.5px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.5; }
.cmt .t { font-size: 12.5px; color: var(--ink-4); margin: 4px 0 0 14px; }
.cmt .t button { border: 0; background: none; padding: 0; color: var(--ink-4); font-size: 12.5px; }
.cmt .t button:hover { color: var(--coral); }
.reply-box { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: end; }
.reply-box textarea { min-height: 46px; height: 46px; border-radius: 22px; padding: 12px 16px; }

/* ───────── hero banners (board/group/event/profile) ───────── */
.banner { position: relative; border-radius: var(--r-xl); overflow: hidden; height: 300px; margin-bottom: 32px; }
.banner .cover { position: absolute; inset: 0; }
.banner .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 18%, rgba(0,0,0,.32) 50%, rgba(0,0,0,.72)); }
.banner .bt p, .banner .bt span { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.banner .bt { position: absolute; left: 36px; right: 36px; bottom: 30px; color: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.banner h1 { font-size: 48px; font-weight: 700; letter-spacing: -.035em; line-height: 1.02; text-shadow: 0 2px 20px rgba(0,0,0,.2); }
.banner p { font-size: 18px; font-weight: 500; margin-top: 8px; max-width: 56ch; }
.banner .btn.glass { background: rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(16px); }
.banner .btn.glass:hover { background: rgba(255,255,255,.32); }
.banner .btn.white { background: #fff; color: var(--ink); }
@media (max-width: 640px) { .banner { height: 240px; border-radius: 22px; } .banner h1 { font-size: 32px; } .banner .bt { left: 20px; right: 20px; bottom: 20px; } }

/* ───────── event listing ───────── */
.listing-cover { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 3 / 1; margin-bottom: 32px; }
@media (max-width: 640px) { .listing-cover { aspect-ratio: 4 / 3; border-radius: 22px; } }
.listing h1 { font-size: 40px; font-weight: 700; letter-spacing: -.032em; line-height: 1.08; }
.facts { margin: 26px 0; border-top: 1px solid var(--hair); }
.fact { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hair); align-items: flex-start; }
.fact .ic { width: 26px; height: 26px; color: var(--ink-2); stroke-width: 1.5; margin-top: 1px; }
.fact b { display: block; font-size: 16px; font-weight: 600; }
.fact small { display: block; font-size: 15px; color: var(--ink-3); }
.rsvp-card { border-radius: var(--r-lg); box-shadow: var(--sh-2), 0 0 0 1px var(--hair); padding: 24px; background: #fff; }
.rsvp-card .big { font-size: 24px; font-weight: 700; letter-spacing: -.025em; }
.rsvp-opts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--hair-2); border-radius: 14px; overflow: hidden; margin: 18px 0 14px; }
.rsvp-opts button { height: 54px; border: 0; background: #fff; font-size: 15px; font-weight: 600; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.rsvp-opts button + button { border-left: 1px solid var(--hair-2); }
.rsvp-opts button small { font-size: 12px; font-weight: 500; color: var(--ink-4); }
.rsvp-opts button:hover { background: var(--bg-2); }
.rsvp-opts button.on { background: var(--ink); color: #fff; }
.rsvp-opts button.on small { color: rgba(255,255,255,.7); }
.cap { height: 6px; border-radius: 999px; background: var(--bg-3); overflow: hidden; margin-top: 8px; }
.cap i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; transition: background .15s; }
.person:hover { background: var(--bg-2); }
.person b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.person small { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }

/* ───────── polls ───────── */
.poll { border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--hair); padding: 22px; }
.poll h3 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.poll .pm { font-size: 14px; color: var(--ink-3); margin: 4px 0 16px; }
.opt { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 16px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--hair-2); background: #fff; font-size: 15.5px; font-weight: 500; text-align: left; overflow: hidden; transition: border-color .15s; }
.opt:hover { border-color: var(--ink-3); }
.opt .fill { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--bg-2); transition: width .6s var(--ease); }
.opt.mine { border-color: var(--accent); }
.opt.mine .fill { background: var(--accent-soft); }
.opt > span { position: relative; display: flex; align-items: center; gap: 8px; }
.opt .pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.opt.mine .pct { color: var(--accent-ink); }

/* ───────── podcasts ───────── */
.pod-feature { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; padding: 32px; border-radius: var(--r-xl); background: var(--bg-2); margin-bottom: 8px; }
.pod-feature .cover { aspect-ratio: 1; border-radius: 20px; box-shadow: var(--sh-3); }
.pod-feature h2 { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 6px 0 10px; }
.pod-feature p { color: var(--ink-3); font-size: 17px; max-width: 54ch; }
@media (max-width: 760px) { .pod-feature { grid-template-columns: 1fr; padding: 20px; gap: 20px; } .pod-feature .cover { max-width: 260px; } }
.ptile .cover { aspect-ratio: 1; border-radius: 16px; box-shadow: var(--sh-1); }
.ptile:hover .cover { box-shadow: var(--sh-2); }
.playfab { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-2); opacity: 0; transform: translateY(6px); transition: .25s var(--ease); color: var(--ink); }
.tile:hover .playfab, .playfab:focus-visible { opacity: 1; transform: none; }
.playfab .ic { fill: currentColor; stroke: none; }
.player { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 35; width: min(720px, calc(100% - 24px)); display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 20px; background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); box-shadow: var(--sh-3), 0 0 0 1px var(--hair); animation: slideup .35s var(--ease); }
@keyframes slideup { from { opacity: 0; transform: translate(-50%, 20px); } }
.player .cover { width: 52px; height: 52px; border-radius: 12px; }
.player b { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player small { font-size: 12.5px; color: var(--ink-3); }
.player .bar { position: relative; height: 4px; border-radius: 999px; background: var(--bg-3); margin-top: 7px; cursor: pointer; }
.player .bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: 999px; }
.player .ctrl { display: flex; align-items: center; gap: 4px; }
.player .pp { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; border: 0; display: flex; align-items: center; justify-content: center; }
.player .pp .ic { fill: #fff; stroke: none; }
body.has-player .page { padding-bottom: 160px; }

/* ───────── careers ───────── */
.jobrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--hair); }
.jobrow:hover h3 { color: var(--accent); }
.jobrow h3 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; transition: color .15s; }
.jobrow .co { font-size: 15px; color: var(--ink-2); }
.jobrow .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.jobrow .when { font-size: 14px; color: var(--ink-4); text-align: right; }
@media (max-width: 640px) { .jobrow { grid-template-columns: 48px 1fr; } .jobrow .when { display: none; } }
.talent { display: block; padding: 22px; border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--hair); transition: box-shadow .25s var(--ease), transform .25s var(--ease); background: #fff; }
.talent:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.talent h3 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.talent p { font-size: 15px; color: var(--ink-2); margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.otw { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--green); }
.otw::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.cards3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.verified { display: inline-flex; color: var(--accent); vertical-align: -3px; }
.verified .ic { width: 18px; height: 18px; fill: var(--accent); stroke: #fff; stroke-width: 2; }

/* ───────── profile ───────── */
.profile-top { position: relative; margin-bottom: 28px; }
.profile-top .banner { height: 220px; margin-bottom: 0; }
.profile-id { display: flex; align-items: flex-end; gap: 22px; margin: -44px 0 0 32px; position: relative; flex-wrap: wrap; }
.profile-id .av.xl { box-shadow: 0 0 0 5px #fff, var(--sh-2); }
.profile-id h1 { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.profile-id .hl { font-size: 17px; color: var(--ink-3); margin-top: 4px; }
.profile-id .acts { margin-left: auto; display: flex; gap: 8px; padding-bottom: 6px; }
@media (max-width: 640px) { .profile-id { margin-left: 16px; } .profile-id .acts { margin-left: 0; } }

/* ───────── settings (grouped lists) ───────── */
.settings { max-width: 720px; }
.group-label { font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 28px 0 8px 16px; }
.inset { background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--hair); padding: 6px 20px; }
.inset .field { margin: 14px 0; }
.inset-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.inset-row + .inset-row { border-top: 1px solid var(--hair); }

/* ───────── tables (admin) ───────── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { padding: 20px; border-radius: var(--r-lg); background: var(--bg-2); }
.kpi .n { font-family: var(--display); font-size: 36px; font-weight: 700; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.kpi.alert { background: var(--coral-soft); } .kpi.alert .n { color: #C81E3D; }
.tablebox { border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--hair); overflow-x: auto; background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 14px 18px; border-bottom: 1px solid var(--hair); background: #FBFBFC; white-space: nowrap; }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table select.input { height: 34px; font-size: 14px; width: auto; padding-right: 32px; }

/* ───────── modals / sheets ───────── */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.32); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 26px; box-shadow: var(--sh-3); animation: rise .3s var(--ease); }
.sheet.wide { max-width: 720px; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.sheet-h { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px 26px; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); }
.sheet-h h2 { font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
.sheet-b { padding: 4px 26px 8px; }
.sheet-b > p.sub { color: var(--ink-3); margin-bottom: 20px; font-size: 16px; }
.sheet-f { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 16px 26px 22px; background: linear-gradient(rgba(255,255,255,0), #fff 30%); }
.err { color: #C81E3D; font-size: 14px; font-weight: 500; min-height: 1px; }
@media (max-width: 640px) { .scrim { align-items: flex-end; padding: 0; } .sheet { border-radius: 26px 26px 0 0; max-height: 92vh; animation: sheetup .35s var(--ease); } @keyframes sheetup { from { transform: translateY(100%); } } }
.create-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 18px; }
.create-opt { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; border: 0; background: var(--bg-2); text-align: left; transition: background .15s, transform .15s; }
.create-opt:hover { background: var(--bg-3); }
.create-opt:active { transform: scale(.98); }
.create-opt .ci { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.create-opt b { display: block; font-size: 16px; font-weight: 600; }
.create-opt small { display: block; font-size: 13.5px; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }
@media (max-width: 520px) { .create-grid { grid-template-columns: 1fr; } }

/* search palette */
.palette { width: 100%; max-width: 640px; align-self: flex-start; margin-top: 10vh; background: rgba(255,255,255,.97); backdrop-filter: blur(30px); border-radius: 22px; box-shadow: var(--sh-3); overflow: hidden; animation: rise .25s var(--ease); }
.palette .pin { display: flex; align-items: center; gap: 12px; padding: 0 20px; height: 64px; border-bottom: 1px solid var(--hair); }
.palette .pin input { flex: 1; border: 0; outline: 0; background: none; font-size: 20px; letter-spacing: -.02em; }
.palette .res { max-height: 56vh; overflow: auto; padding: 8px; }
.palette .gl { font-size: 12.5px; font-weight: 600; color: var(--ink-4); padding: 10px 12px 4px; }
.palette .hit { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; }
.palette .hit:hover, .palette .hit.sel { background: var(--accent-soft); }
.palette .hit b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.palette .hit small { display: block; font-size: 13px; color: var(--ink-3); }
.palette .hit .thumb { width: 36px; height: 36px; border-radius: 9px; flex: none; }
@media (max-width: 640px) { .palette { margin-top: 0; border-radius: 0; max-width: none; height: 100%; align-self: stretch; } }

/* toasts */
#toasts { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: rgba(29,29,31,.92); backdrop-filter: blur(20px); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; box-shadow: var(--sh-3); animation: toastin .35s var(--ease); }
.toast.err { background: rgba(200,30,61,.95); }
.toast .ic { width: 18px; height: 18px; }
@keyframes toastin { from { opacity: 0; transform: translateY(-12px) scale(.96); } }

/* ───────── landing ───────── */
.landing .nav { background: rgba(255,255,255,.7); }
.hero { text-align: center; padding: 96px 0 40px; }
.hero .eyebrowless { font-size: 19px; font-weight: 600; color: var(--accent); letter-spacing: -.015em; }
.hero h1 { font-size: clamp(44px, 7.4vw, 92px); font-weight: 800; letter-spacing: -.048em; line-height: 1.0; margin: 14px auto 0; max-width: 14ch; }
.hero h1 .soft { color: var(--ink-4); }
.hero p { font-size: clamp(19px, 2.1vw, 24px); color: var(--ink-3); max-width: 38ch; margin: 22px auto 0; letter-spacing: -.02em; line-height: 1.38; }
.hero .cta { display: flex; justify-content: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.showcase { position: relative; max-width: 1180px; margin: 40px auto 0; height: 560px; }
.showcase .stage { position: absolute; inset: 40px 0 0; border-radius: 36px; overflow: hidden; }
.showcase .float { position: absolute; background: #fff; border-radius: 22px; box-shadow: var(--sh-3); overflow: hidden; }
@media (max-width: 900px) { .showcase { height: auto; display: grid; gap: 16px; padding: 0 18px; } .showcase .stage { display: none; } .showcase .float { position: static; width: auto !important; transform: none !important; } }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 80px 0; }
.feature-row.flip > :first-child { order: 2; }
.feature-row h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 700; letter-spacing: -.04em; line-height: 1.04; }
.feature-row p { font-size: 20px; color: var(--ink-3); margin-top: 18px; max-width: 42ch; letter-spacing: -.018em; line-height: 1.45; }
.feature-row .visual { border-radius: 32px; overflow: hidden; background: var(--bg-2); padding: 28px; min-height: 380px; position: relative; }
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; } .feature-row.flip > :first-child { order: 0; } }
.band { background: var(--bg-2); }
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 64px 0; text-align: center; }
.statband .n { font-family: var(--display); font-size: 56px; font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.statband .l { color: var(--ink-3); font-size: 17px; margin-top: 8px; }
@media (max-width: 760px) { .statband { grid-template-columns: 1fr 1fr; } .statband .n { font-size: 42px; } }
.foot { padding: 40px 0 56px; font-size: 13.5px; color: var(--ink-3); border-top: 1px solid var(--hair); }
.closing { text-align: center; padding: 110px 0; }
.closing h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }

/* ───────── auth ───────── */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth .art { position: relative; overflow: hidden; }
.auth .art .cover { position: absolute; inset: 14px; border-radius: 30px; }
.auth .art .quote { position: absolute; left: 56px; right: 56px; bottom: 56px; color: #fff; }
.auth .art .quote p { font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; text-shadow: 0 2px 30px rgba(0,0,0,.15); }
.auth .art .quote small { display: block; margin-top: 14px; font-size: 16px; opacity: .85; }
.auth .formside { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 96px); }
.auth .formside .inner { width: 100%; max-width: 420px; }
.auth h1 { font-size: 36px; font-weight: 700; letter-spacing: -.035em; margin: 32px 0 6px; }
.auth .sub { color: var(--ink-3); font-size: 17px; margin-bottom: 28px; }
.rulebox { border-radius: 16px; background: var(--bg-2); padding: 16px 18px; max-height: 210px; overflow: auto; margin-bottom: 14px; }
.rulebox ol { margin: 0; padding-left: 20px; }
.rulebox li { margin-bottom: 10px; font-size: 14.5px; color: var(--ink-2); }
.rulebox li b { display: block; color: var(--ink); font-size: 15px; }
.demo { margin-top: 26px; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); font-size: 13.5px; color: var(--ink-3); line-height: 1.7; }
.demo code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; color: var(--ink); background: #fff; padding: 1px 6px; border-radius: 6px; box-shadow: 0 0 0 1px var(--hair); cursor: pointer; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth .art { display: none; } }

/* skeletons */
.sk { border-radius: 14px; background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
