/* bltn.club design system
   Paper, ink, and a splash. Cream board, dark ink, warm gradient for the mark,
   category colors as the only loud thing on the page. */

:root {
  --paper: #F6F1E8;
  --paper-2: #EFE8DB;
  --card: #FFFFFF;
  --ink: #1B1A1F;
  --ink-2: #3E3B47;
  --ink-3: #6B6875;
  --line: #E6DFD2;
  --line-2: #D9D0BF;
  --tangerine: #FF7A1A;
  --rose: #FF4F7A;
  --lilac: #B48CFF;
  --sky: #2F8CFF;
  --mint: #1FC58B;
  --lemon: #FFC93C;
  --splash: linear-gradient(120deg, #FF7A1A 0%, #FF4F7A 55%, #B48CFF 100%);
  --splash-soft: linear-gradient(120deg, rgba(255,122,26,.16), rgba(255,79,122,.14) 55%, rgba(180,140,255,.16));
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(27,26,31,.07), 0 1px 2px rgba(27,26,31,.05);
  --shadow-lg: 0 24px 60px rgba(27,26,31,.14);
  --display: "Bricolage Grotesque", "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(255,122,26,.10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(180,140,255,.14), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.wrap-narrow { width: min(760px, calc(100% - 40px)); margin: 0 auto; }
.wrap-mid { width: min(920px, calc(100% - 40px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  backdrop-filter: blur(14px) saturate(1.3);
  background: rgba(246,241,232,.78);
  border-bottom: 1px solid rgba(27,26,31,.06);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.04em; display: inline-flex; align-items: center; gap: 8px; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--splash); position: relative; box-shadow: 0 4px 14px rgba(255,90,80,.35); }
.brand .mark::after { content: ""; position: absolute; inset: 9px; background: #fff; border-radius: 3px; transform: rotate(-8deg); }
.brand .tld { color: var(--ink-3); font-weight: 600; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background .15s, color .15s; }
.nav-links a:hover, .nav-links a.active { background: rgba(27,26,31,.06); color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--splash); color: #fff; display: inline-grid; place-items: center; font-weight: 800; font-family: var(--display); font-size: 14px; flex: none; overflow: hidden; }
.avatar.lg { width: 96px; height: 96px; font-size: 34px; }
.avatar.xl { width: 128px; height: 128px; font-size: 44px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.nav-burger { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; line-height: 1.1;
  transition: transform .12s, box-shadow .15s, background .15s, border-color .15s;
  white-space: nowrap; background: var(--ink); color: #fff;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(27,26,31,.18); }
.btn:active { transform: translateY(0); }
.btn.splash { background: var(--splash); color: #fff; box-shadow: 0 8px 22px rgba(255,90,90,.28); }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { background: #fff; box-shadow: var(--shadow); }
.btn.soft { background: rgba(27,26,31,.06); color: var(--ink); }
.btn.soft:hover { background: rgba(27,26,31,.1); box-shadow: none; }
.btn.white { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.danger { background: #fff; color: #C8102E; border-color: #F3C2CB; }
.btn.danger:hover { background: #FFF2F4; }
.btn.sm { padding: 8px 14px; font-size: 13.5px; }
.btn.lg { padding: 15px 28px; font-size: 17px; }
.btn.icon { padding: 10px; width: 42px; height: 42px; }
.btn svg { width: 18px; height: 18px; }
.btn.sm svg { width: 15px; height: 15px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label, .label { font-weight: 700; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--ink-3); }
.input, input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], input[type=datetime-local], select, textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line-2);
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; font-size: 15px;
}
textarea { min-height: 120px; resize: vertical; }
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(27,26,31,.08); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.switch:last-child { border-bottom: 0; }
.switch input { width: 44px; height: 26px; appearance: none; background: var(--line-2); border-radius: 999px; position: relative; cursor: pointer; transition: background .15s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { left: 21px; }
.switch b { display: block; font-size: 15px; }
.switch span { font-size: 13px; color: var(--ink-3); }

/* ---------- flash ---------- */
.flashes { position: fixed; top: calc(var(--nav-h) + 12px); right: 20px; z-index: 80; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.flash { background: var(--ink); color: #fff; padding: 12px 16px 12px 14px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; animation: pop .25s ease-out; }
.flash::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; }
.flash.error::before { background: var(--rose); }
.flash.info::before { background: var(--sky); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(27,26,31,.04); }
.card.pad { padding: 26px; }
.card.pad-lg { padding: 36px; }
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); }
.section-head p { margin: 6px 0 0; color: var(--ink-3); }

/* event card */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.ev { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; border: 1px solid rgba(27,26,31,.04); }
.ev:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ev .poster { aspect-ratio: 4/3; background: var(--paper-2); position: relative; overflow: hidden; }
.ev .poster img { width: 100%; height: 100%; object-fit: cover; }
.ev .poster .nopic { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 64px; letter-spacing: -.04em; color: rgba(27,26,31,.09); }
.ev .poster .nopic .pattern { position: absolute; inset: 0; opacity: .5; }
.ev .tape { position: absolute; top: 14px; left: 14px; background: var(--cat, var(--ink)); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 11px; border-radius: 8px; transform: rotate(-2deg); box-shadow: 0 3px 10px rgba(0,0,0,.14); }
.ev .datebox { position: absolute; right: 14px; top: 14px; background: #fff; border-radius: 12px; padding: 6px 10px; text-align: center; line-height: 1; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.ev .datebox b { display: block; font-family: var(--display); font-size: 22px; font-weight: 800; }
.ev .datebox span { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ev .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ev h3 { font-size: 20px; line-height: 1.2; }
.ev .meta { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.ev .meta span { display: flex; align-items: center; gap: 7px; }
.ev .meta svg { width: 14px; height: 14px; color: var(--ink-3); flex: none; }
.ev .host { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--ink-3); }
.ev .host b { color: var(--ink); font-weight: 600; }
.ev.cancelled .poster::after { content: "Cancelled"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(27,26,31,.55); color: #fff; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .04em; }
.ev.past { opacity: .72; }

/* compact row card */
.ev-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; align-items: center; padding: 16px 18px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid rgba(27,26,31,.04); transition: transform .15s; }
.ev-row:hover { transform: translateX(3px); }
.ev-row .day { text-align: center; line-height: 1; padding: 10px 0; border-radius: 14px; background: var(--paper); }
.ev-row .day b { display: block; font-family: var(--display); font-size: 28px; font-weight: 800; }
.ev-row .day span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ev-row h3 { font-size: 18px; margin-bottom: 4px; }
.ev-row .meta { font-size: 13.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ev-row .meta span { display: inline-flex; align-items: center; gap: 6px; }
.ev-row .meta svg { width: 14px; height: 14px; color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; background: rgba(27,26,31,.06); color: var(--ink-2); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat, var(--ink)); }
.pill.cat { background: color-mix(in srgb, var(--cat, var(--ink)) 14%, white); color: color-mix(in srgb, var(--cat, var(--ink)) 80%, black); }
.pill.org { background: var(--lilac); color: #fff; }
.pill.activist { background: var(--mint); color: #063; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; position: relative; }
.hero h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: .98; letter-spacing: -.045em; font-weight: 800; max-width: 12ch; }
.hero h1 .swap { display: inline-block; background: var(--splash); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); max-width: 54ch; margin: 22px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.searchbar { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 20px; box-shadow: var(--shadow); border: 1px solid rgba(27,26,31,.05); max-width: 620px; }
.searchbar input { border: 0; box-shadow: none; padding: 10px 0; background: transparent; flex: 1; font-size: 16px; }
.searchbar input:focus { box-shadow: none; }
.searchbar svg { width: 20px; height: 20px; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; transition: transform .12s, box-shadow .15s; }
.chip:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cat); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat) 25%, transparent); }
.chip small { color: var(--ink-3); font-weight: 600; }
.chip.active small { color: rgba(255,255,255,.7); }

/* hero board: stacked posters */
.board { position: relative; height: 440px; }
.board .note { position: absolute; width: min(230px, 62%); background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 14px; transform: rotate(var(--r, 0deg)); transition: transform .25s; }
.board .note:hover { transform: rotate(0deg) scale(1.03); z-index: 5; }
.board .note .swatch { height: 130px; border-radius: 12px; background: var(--cat); position: relative; overflow: hidden; }
.board .note .swatch img { width: 100%; height: 100%; object-fit: cover; }
.board .note .swatch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.35), transparent 50%); }
.board .note h4 { font-size: 16px; margin: 12px 0 4px; }
.board .note p { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.board .pin { position: absolute; top: -10px; left: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--splash); box-shadow: 0 4px 10px rgba(0,0,0,.25); transform: translateX(-50%); }
.board .pin::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: rgba(255,255,255,.55); }
.stats { display: flex; gap: 32px; margin-top: 34px; }
.stats div b { display: block; font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.stats div span { font-size: 13px; color: var(--ink-3); font-weight: 600; }

/* scroller */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 320px); gap: 20px; overflow-x: auto; padding: 6px 4px 20px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { padding: 28px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pillar .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; }
.pillar .ico svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 21px; margin-bottom: 8px; }
.pillar p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* ---------- events page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 30px; }
.filters .seg { display: inline-flex; background: #fff; border-radius: 999px; padding: 4px; border: 1px solid var(--line); }
.filters .seg a { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.filters .seg a.active { background: var(--ink); color: #fff; }
.filters select { width: auto; padding: 9px 36px 9px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.daygroup { margin-bottom: 36px; }
.daygroup h2 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.daygroup h2::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.daygroup .list { display: flex; flex-direction: column; gap: 12px; }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.empty h3 { font-size: 24px; color: var(--ink); margin-bottom: 8px; }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 20px; gap: 16px; flex-wrap: wrap; }
.cal-head h1 { font-size: clamp(30px, 4vw, 44px); }
.cal-nav { display: flex; gap: 8px; align-items: center; }
.cal { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid rgba(27,26,31,.04); }
.cal .dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--paper-2); }
.cal .dow div { padding: 12px 10px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cal .week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cal .day { min-height: 118px; min-width: 0; padding: 8px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.cal .day:last-child { border-right: 0; }
.cal .day.out { background: #FBF9F5; color: var(--ink-3); }
.cal .day .n { font-weight: 700; font-size: 13px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cal .day.today .n { background: var(--ink); color: #fff; }
.cal .evt { display: block; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 8px; background: color-mix(in srgb, var(--cat) 16%, white); color: color-mix(in srgb, var(--cat) 75%, black); border-left: 3px solid var(--cat); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .evt:hover { background: color-mix(in srgb, var(--cat) 28%, white); }
.cal .evt.cancelled { text-decoration: line-through; opacity: .6; }
.cal .more { font-size: 11px; color: var(--ink-3); font-weight: 700; padding-left: 8px; }
.sync-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 20px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); margin-top: 22px; }
.sync-box code { background: var(--paper); padding: 6px 10px; border-radius: 8px; font-size: 13px; user-select: all; }

/* ---------- event detail ---------- */
.ev-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; padding-top: 30px; }
.ev-hero h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; margin: 12px 0 18px; }
.ev-poster { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--paper-2); position: sticky; top: calc(var(--nav-h) + 20px); }
.ev-poster img { width: 100%; }
.ev-poster .nopic { aspect-ratio: 4/5; display: grid; place-items: center; background: var(--cat); color: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 80px); letter-spacing: -.04em; text-align: center; padding: 30px; line-height: .95; }
.facts { display: grid; gap: 12px; margin: 20px 0 26px; }
.fact { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.fact .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; flex: none; }
.fact .ico svg { width: 18px; height: 18px; color: var(--ink-2); }
.fact b { display: block; font-size: 15.5px; }
.fact span { font-size: 13.5px; color: var(--ink-3); }
.fact a.map { font-size: 13px; font-weight: 700; color: var(--sky); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.going-strip { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.going-strip .stack { display: flex; }
.going-strip .stack .avatar { width: 30px; height: 30px; font-size: 11px; border: 2px solid var(--paper); margin-left: -8px; }
.going-strip .stack .avatar:first-child { margin-left: 0; }
.prose { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.prose p { margin-bottom: 1.1em; }
.ev-body { display: grid; grid-template-columns: 1fr 360px; gap: 40px; padding: 40px 0 60px; align-items: start; }
.ev-body h2 { font-size: 24px; margin-bottom: 14px; }
.side { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 20px; }
.host-card { padding: 22px; }
.host-card .top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.host-card h3 { font-size: 19px; }
.host-card p { font-size: 14px; color: var(--ink-2); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.social { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 11px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: 13.5px; box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 40%, transparent); transition: transform .12s, filter .12s; }
.social:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.08); }
.social svg { width: 16px; height: 16px; }
.social.icon-only { padding: 10px; width: 40px; height: 40px; justify-content: center; }
.social.icon-only svg { width: 18px; height: 18px; }
.social[data-net="tiktok"] { background: #010101; box-shadow: 0 4px 12px rgba(105,201,208,.5), 0 -2px 10px rgba(238,29,82,.35); }
.social[data-net="instagram"] { background: linear-gradient(45deg, #F9CE34, #EE2A7B 50%, #6228D7); }
.social[data-net="threads"], .social[data-net="x"] { background: #000; }
.social[data-net="linktree"] { color: #0f2a17; }
.contact-form { padding: 22px; }
.contact-form h3 { font-size: 19px; margin-bottom: 4px; }
.contact-form p { font-size: 13.5px; color: var(--ink-3); margin-bottom: 14px; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.notice { padding: 14px 18px; border-radius: 14px; background: #FFF4E8; color: #8A4A00; font-weight: 600; font-size: 14px; border: 1px solid #FFD9B0; }
.notice.red { background: #FFF0F3; color: #A11235; border-color: #FFC3D0; }

/* ---------- profile ---------- */
.prof-head { padding: 36px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.prof-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--accent, var(--tangerine)); }
.prof-head h1 { font-size: clamp(30px, 4vw, 46px); }
.prof-head .bio { color: var(--ink-2); max-width: 60ch; margin: 10px 0 0; }
.prof-stats { display: flex; gap: 24px; margin-top: 16px; }
.prof-stats b { font-family: var(--display); font-size: 22px; font-weight: 800; display: block; letter-spacing: -.02em; }
.prof-stats span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.flyer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.flyer-tile { background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.flyer-tile .img { background: var(--paper-2); aspect-ratio: 4/5; display: grid; place-items: center; overflow: hidden; }
.flyer-tile .img img { width: 100%; height: 100%; object-fit: contain; }
.flyer-tile .b { padding: 12px 14px; font-size: 13.5px; }
.flyer-tile .b b { display: block; }
.flyer-tile .b span { color: var(--ink-3); font-size: 12.5px; }
.flyer-tile .acts { display: flex; gap: 6px; padding: 0 12px 12px; }

/* ---------- auth ---------- */
.auth { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth .art { background: var(--splash); color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.auth .art h2 { font-size: clamp(36px, 4.4vw, 60px); letter-spacing: -.04em; line-height: .98; max-width: 10ch; }
.auth .art p { font-size: 17px; opacity: .9; max-width: 40ch; margin-top: 16px; }
.auth .art .blob { position: absolute; border-radius: 50%; background: rgba(255,255,255,.14); filter: blur(2px); }
.auth .form { padding: 60px; display: flex; align-items: center; }
.auth .form > div { width: min(440px, 100%); margin: 0 auto; }
.auth h1 { font-size: 36px; margin-bottom: 8px; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.role { position: relative; }
.role input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.role div { padding: 16px; border-radius: 16px; border: 2px solid var(--line-2); background: #fff; transition: border-color .15s, box-shadow .15s; }
.role input:checked + div { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(27,26,31,.08); }
.role b { display: block; font-family: var(--display); font-size: 18px; }
.role span { font-size: 13px; color: var(--ink-3); }

/* ---------- dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.kpi { background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); }
.kpi b { font-family: var(--display); font-size: 32px; font-weight: 800; display: block; letter-spacing: -.03em; }
.kpi span { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.msg { padding: 16px 18px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); font-size: 14px; }
.msg .who { font-weight: 700; display: flex; justify-content: space-between; gap: 10px; }
.msg .who span { color: var(--ink-3); font-weight: 500; font-size: 12.5px; }
.msg p { margin: 6px 0 8px; color: var(--ink-2); white-space: pre-wrap; }
.msg a { font-size: 13px; font-weight: 700; color: var(--sky); }

/* ---------- misc ---------- */
.footer { padding: 50px 0 40px; margin-top: 40px; border-top: 1px solid rgba(27,26,31,.08); color: var(--ink-3); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer nav { display: flex; gap: 18px; }
.footer nav a:hover { color: var(--ink); }
.page-title { padding: 36px 0 10px; }
.page-title h1 { font-size: clamp(32px, 4.4vw, 52px); }
.page-title p { color: var(--ink-3); margin-top: 8px; font-size: 17px; }
.terms { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.terms h2 { font-size: 22px; margin: 34px 0 10px; color: var(--ink); }
.terms li { margin-bottom: 6px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.poster-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.poster-pick label { position: relative; cursor: pointer; }
.poster-pick input { position: absolute; opacity: 0; inset: 0; }
.poster-pick img { border-radius: 12px; aspect-ratio: 4/5; object-fit: cover; border: 3px solid transparent; transition: border-color .12s; background: var(--paper-2); }
.poster-pick input:checked + img { border-color: var(--ink); }
.outbox-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 14px 18px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); align-items: center; font-size: 14px; }
.outbox-row b { display: block; }
.outbox-row span { color: var(--ink-3); font-size: 12.5px; }
.tag { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--paper); color: var(--ink-3); }
.tag.ok { background: #E6FAF1; color: #0A7A4C; }
.tag.local { background: #FFF4E8; color: #8A4A00; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .ev-hero, .ev-body, .dash-grid, .auth, .split { grid-template-columns: 1fr; }
  .board { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .ev-poster, .side { position: static; }
  .auth .art { min-height: 260px; padding: 40px 28px; }
  .auth .form { padding: 40px 24px; }
  .prof-head { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .prof-stats { justify-content: center; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 12px 20px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-burger { display: inline-grid; }
  .nav-right .hide-m { display: none; }
  .cal .day { min-height: 80px; padding: 5px; }
  .cal .evt { font-size: 0; height: 7px; padding: 0; border-left: 0; background: var(--cat); border-radius: 4px; margin-top: 3px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .row, .row-3 { grid-template-columns: 1fr; }
  .ev-row { grid-template-columns: 60px 1fr; }
  .ev-row .acts { grid-column: 1 / -1; }
  .section { padding: 36px 0; }
  .hero { padding: 40px 0 20px; }
}

/* ---------- calendar: range + dots + day popup ---------- */
.range-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; background: #fff; padding: 16px 18px; border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 18px; }
.range-bar label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.range-bar input[type=date] { width: auto; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); font-size: 15px; font-weight: 600; color: var(--ink); background: #fff; letter-spacing: 0; text-transform: none; }
.range-bar .quick { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.cal.dots .week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal.dots .day { all: unset; box-sizing: border-box; min-height: 104px; min-width: 0; padding: 10px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; cursor: default; position: relative; transition: background .12s; }
.cal.dots .day:last-child { border-right: 0; }
.cal.dots .day.out { background: #FBF9F5; color: #C4BDB0; }
.cal.dots .day.has { cursor: pointer; }
.cal.dots .day.has:hover { background: #FFF8F0; }
.cal.dots .day.has:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.cal.dots .day .n { font-weight: 700; font-size: 14px; min-width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 999px; align-self: flex-start; padding: 0 6px; }
.cal.dots .day .n em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tangerine); margin-right: 3px; }
.cal.dots .day.today .n { background: var(--ink); color: #fff; }
.cal.dots .day.today .n em { color: var(--lemon); }
.cal.dots .dotrow { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.cal.dots .dotrow i { width: 12px; height: 12px; border-radius: 50%; background: var(--cat); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat) 22%, transparent); }
.cal.dots .dotrow i.x { background: transparent; box-shadow: inset 0 0 0 2px var(--cat); opacity: .6; }
.cal.dots .dotrow b { font-size: 11px; color: var(--ink-3); }
.cal.dots .count { font-size: 11.5px; font-weight: 700; color: var(--ink-3); margin-top: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 4px 0; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; }
.agenda { margin-top: 40px; }
.agenda-tabs { display: inline-flex; background: #fff; border-radius: 999px; padding: 5px; box-shadow: var(--shadow); margin-bottom: 18px; }
.agenda-tabs button { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 17px; cursor: pointer; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; }
.agenda-tabs button small { font-family: var(--body); font-size: 12px; font-weight: 700; background: rgba(27,26,31,.07); padding: 2px 8px; border-radius: 999px; }
.agenda-tabs button small:empty { display: none; }
.agenda-tabs button.active { background: var(--ink); color: #fff; }
.agenda-tabs button.active small { background: rgba(255,255,255,.18); }
.agenda .pane { display: none; }
.agenda .pane.active { display: block; }
.sync-box .feed { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.daypop { position: fixed; inset: 0; z-index: 100; background: rgba(27,26,31,.45); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; animation: fade .15s ease-out; }
.daypop[hidden] { display: none; }
.daypop-card { background: var(--paper); width: min(560px, 100%); max-height: min(80vh, 720px); border-radius: 26px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: pop .2s ease-out; }
.daypop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 22px 14px; }
.daypop-head h2 { font-size: 28px; }
.daypop-list { overflow-y: auto; padding: 0 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.dp-ev { display: grid; grid-template-columns: 6px 74px 1fr; gap: 14px; align-items: center; background: #fff; border-radius: 16px; padding: 14px 16px 14px 0; box-shadow: var(--shadow); overflow: hidden; transition: transform .12s; }
.dp-ev:hover { transform: translateX(3px); }
.dp-ev .bar { align-self: stretch; background: var(--cat); margin: -14px 0; }
.dp-ev .t { font-family: var(--display); font-weight: 800; font-size: 15px; }
.dp-ev .b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dp-ev .b b { font-size: 16px; }
.dp-ev .b span { font-size: 13px; color: var(--ink-3); }
.dp-ev .b em { font-style: normal; font-weight: 700; color: #0A7A4C; }
.dp-ev .b em.red { color: #A11235; }
.dp-ev.cancelled b { text-decoration: line-through; opacity: .6; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 980px) {
  .cal.dots .day { min-height: 64px; padding: 6px 4px; gap: 5px; align-items: center; }
  .cal.dots .day .n { align-self: center; font-size: 13px; }
  .cal.dots .day .n { flex-direction: column; line-height: 1; height: auto; min-height: 26px; }
  .cal.dots .day .n em { font-size: 8.5px; margin: 0 0 2px; }
  .cal.dots .dotrow { justify-content: center; gap: 3px; }
  .cal.dots .dotrow i { width: 8px; height: 8px; box-shadow: none; }
  .cal.dots .count { display: none; }
  .range-bar .quick { margin-left: 0; }
  .sync-box .feed { justify-content: flex-start; }
  .dp-ev { grid-template-columns: 6px 62px 1fr; }
}

/* ================= v2: polish + new features ================= */

/* typographic covers for events without a poster */
.ev .poster .cover { position: absolute; inset: 0; background: var(--cat); overflow: hidden; display: flex; align-items: flex-end; padding: 18px 20px; }
.ev .poster .cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.22), transparent 45%, rgba(0,0,0,.18)); }
.cover-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-art .c1 { fill: rgba(255,255,255,.16); }
.cover-art .c2 { fill: rgba(27,26,31,.12); }
.cover.v1 .cover-art .c1 { transform: translate(-280px, 190px); }
.cover.v2 .cover-art .c1 { transform: translate(-150px, -60px) scale(1.2); }
.cover.v3 .cover-art .c2 { transform: translate(-320px, -180px) scale(1.6); }
.cover-title { position: relative; color: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.3vw, 28px); line-height: .98; letter-spacing: -.03em; text-shadow: 0 2px 18px rgba(0,0,0,.18); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 88%; text-wrap: balance; }
.ev .poster { aspect-ratio: 16/11; }
.ev .poster img { transition: transform .5s ease; }
.ev:hover .poster img { transform: scale(1.04); }
.ev .body { padding: 18px 20px 18px; }
.ev h3 { text-wrap: balance; }
.ev .tape { font-size: 11px; padding: 6px 10px; border-radius: 7px; }
.ev .datebox { border-radius: 14px; padding: 7px 11px 6px; }

/* event hero without poster */
.ev-poster .nopic { position: relative; overflow: hidden; background: var(--cat); text-wrap: balance; }
.ev-poster .nopic::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; right: -20%; top: -15%; background: rgba(255,255,255,.15); }

/* add-to-calendar menu */
details.menu { position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary svg:last-child { width: 14px; height: 14px; transition: transform .15s; }
details.menu[open] > summary svg:last-child { transform: rotate(180deg); }
.menu-list { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; min-width: 230px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; animation: pop .15s ease-out; }
.menu-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; }
.menu-list a:hover { background: var(--paper); }
.menu-list .mi { width: 10px; height: 10px; border-radius: 3px; }

/* share card + QR */
.share-card { padding: 22px; }
.share-card h3 { font-size: 19px; margin-bottom: 14px; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-grid .social { justify-content: center; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 13.5px; }
.qr-row { display: grid; grid-template-columns: 108px 1fr; gap: 16px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.qr-row b { display: block; font-size: 15px; }
.qr-row p { margin: 4px 0 10px; }
.qr { width: 108px; height: 108px; border-radius: 14px; background: #fff; border: 1px solid var(--line); padding: 4px; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr svg path, .qr svg rect[fill="#000000"] { fill: var(--ink); }

/* report */
details.report { padding: 4px 6px; }
details.report summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; list-style: none; }
details.report summary svg { width: 14px; height: 14px; }
details.report summary:hover { color: #A11235; }
details.report form { margin-top: 12px; background: #fff; padding: 18px; border-radius: 16px; box-shadow: var(--shadow); }

/* host tools */
.host-tools { margin-top: 26px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.host-tools .ht-head { width: 100%; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.host-tools form { display: inline; }

/* attendees */
.backlink { display: inline-flex; gap: 6px; align-items: center; }
.backlink svg { width: 14px; height: 14px; }
.backlink:hover { color: var(--ink); }
.people { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.person { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; }
.person .who { display: flex; flex-direction: column; min-width: 0; }
.person .who span { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }

/* admin */
.admin-table { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.arow { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.arow:last-child { border-bottom: 0; }
.arow > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.arow > div:first-child span { font-size: 12.5px; color: var(--ink-3); }
.arow.done { opacity: .55; }
.arow .acts { display: flex; gap: 6px; }

/* footer */
.footer { background: var(--ink); color: rgba(255,255,255,.7); border-top: 0; margin-top: 60px; padding: 56px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; align-items: start; }
.footer .brand { color: #fff; }
.footer .brand .tld { color: rgba(255,255,255,.5); }
.footer-brand p { margin: 14px 0 0; max-width: 34ch; font-size: 15px; line-height: 1.55; }
.footer nav { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer nav b { color: #fff; font-family: var(--display); font-size: 15px; margin-bottom: 4px; }
.footer nav a:hover, .linkbtn:hover { color: #fff; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; font-size: 14.5px; }

/* nav helpers */
.show-m { display: none !important; }

/* page title polish */
.page-title h1 { text-wrap: balance; }
.section-head h2 { text-wrap: balance; }
.kpi { border: 1px solid rgba(27,26,31,.04); }

@media (max-width: 980px) {
  .show-m { display: block !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .person { grid-template-columns: auto 1fr; }
  .person .pill, .person > .muted { display: none; }
  .arow { grid-template-columns: 1fr; }
  .kpis[style] { grid-template-columns: 1fr 1fr !important; }
  .qr-row { grid-template-columns: 96px 1fr; }
  .qr { width: 96px; height: 96px; }
}

.cover ~ .tape { background: rgba(27,26,31,.88); }
.scroller { scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }

/* ================= v3: dynamic event cards ================= */
.ev .poster, .feat-art { container-type: inline-size; position: relative; overflow: hidden; }
.ev .poster { aspect-ratio: 16/11; background: var(--cat); }
.ev { border: 0; box-shadow: 0 1px 2px rgba(27,26,31,.06), 0 12px 32px -12px rgba(27,26,31,.18); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.ev:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(27,26,31,.06), 0 28px 50px -18px color-mix(in srgb, var(--cat) 55%, rgba(27,26,31,.5)); }
.ev.past { opacity: 1; }
.ev.past .poster { filter: grayscale(.85) contrast(.95); }
.ev.cancelled .poster::after { z-index: 6; }

.cv { position: absolute; inset: 0; overflow: hidden; color: #fff; font-family: var(--display); }
.cv * { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.cv-cat { position: absolute; top: 4.5cqw; left: 4.5cqw; z-index: 3; font-family: var(--body); font-size: max(10px, 3.2cqw); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: rgba(27,26,31,.84); color: #fff; padding: 1.6cqw 2.8cqw; border-radius: 1.8cqw; transition: none; }

/* 0 · big date */
.cv0 { background: linear-gradient(150deg, color-mix(in srgb, var(--cat) 78%, white) 0%, var(--cat) 45%, color-mix(in srgb, var(--cat) 72%, black) 100%); }
.cv0 .cv-orb { position: absolute; width: 78cqw; aspect-ratio: 1; border-radius: 50%; right: -26cqw; top: -34cqw; background: rgba(255,255,255,.2); }
.cv0 .cv-orb2 { position: absolute; width: 22cqw; aspect-ratio: 1; border-radius: 50%; right: 12cqw; bottom: 8cqw; background: rgba(27,26,31,.16); }
.cv0 .cv-day { position: absolute; left: 3cqw; bottom: -6cqw; font-size: 50cqw; font-weight: 800; line-height: .85; letter-spacing: -.07em; text-shadow: 0 1cqw 6cqw rgba(0,0,0,.12); }
.cv0 .cv-side { position: absolute; right: 5cqw; bottom: 6cqw; text-align: right; display: flex; flex-direction: column; gap: .4cqw; }
.cv0 .cv-side b { font-size: 7.5cqw; letter-spacing: -.03em; line-height: 1; }
.cv0 .cv-side span { font-family: var(--body); font-size: 3.8cqw; font-weight: 700; opacity: .92; }
.ev:hover .cv0 .cv-orb { transform: scale(1.12) translate(-4cqw, 4cqw); }
.ev:hover .cv0 .cv-day { transform: translateY(-2cqw); }

/* 1 · category wordmark */
.cv1 { background: var(--cat); }
.cv1 .cv-words { position: absolute; left: -20%; top: -12%; width: 160%; transform: rotate(-9deg); display: flex; flex-direction: column; }
.cv1 .cv-words span { white-space: nowrap; font-size: 15cqw; font-weight: 800; letter-spacing: -.04em; line-height: .95; text-transform: uppercase; color: rgba(255,255,255,.95); transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.cv1 .cv-words span.o { color: transparent; -webkit-text-stroke: max(1.5px, .5cqw) rgba(255,255,255,.75); transform: translateX(-14%); }
.ev:hover .cv1 .cv-words span { transform: translateX(-12%); }
.ev:hover .cv1 .cv-words span.o { transform: translateX(0); }
.cv1 .cv-stamp { position: absolute; left: 4.5cqw; bottom: 4.5cqw; z-index: 2; background: #fff; color: var(--ink); border-radius: 3cqw; padding: 2.6cqw 3.6cqw; display: flex; flex-direction: column; box-shadow: 0 2cqw 6cqw rgba(0,0,0,.18); }
.cv1 .cv-stamp b { font-size: 6.4cqw; letter-spacing: -.03em; line-height: 1; }
.cv1 .cv-stamp span { font-family: var(--body); font-size: 3.4cqw; font-weight: 700; color: var(--ink-3); margin-top: .8cqw; }

/* 2 · sunburst */
.cv2 { background: color-mix(in srgb, var(--cat) 16%, #FFF9F0); }
.cv2 .cv-rays { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 15% 105%; }
.cv2 .cv-rays path { fill: var(--cat); opacity: .9; }
.ev:hover .cv2 .cv-rays { transform: rotate(4deg) scale(1.04); }
.cv2 .cv-badge { position: absolute; right: 6cqw; top: 50%; translate: 0 -50%; width: 38cqw; aspect-ratio: 1; border-radius: 50%; background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 0 0 2.4cqw color-mix(in srgb, var(--cat) 16%, #FFF9F0); }
.cv2 .cv-badge b { font-size: 9.5cqw; letter-spacing: -.04em; line-height: 1; }
.cv2 .cv-badge span { font-family: var(--body); font-size: 3.4cqw; font-weight: 700; opacity: .75; margin-top: 1cqw; text-transform: uppercase; letter-spacing: .1em; }
.ev:hover .cv2 .cv-badge { transform: rotate(-8deg) scale(1.04); }

/* 3 · ticket */
.cv3 { background: repeating-linear-gradient(135deg, var(--cat) 0 5cqw, color-mix(in srgb, var(--cat) 86%, white) 5cqw 10cqw); }
.cv3 .cv-ticket { position: absolute; left: 50%; top: 54%; translate: -50% -50%; width: 80cqw; display: flex; background: #fff; color: var(--ink); border-radius: 3.4cqw; box-shadow: 0 3cqw 8cqw rgba(0,0,0,.2); transform: rotate(-3deg);
  -webkit-mask: radial-gradient(circle 3.2cqw at 27cqw 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 3.2cqw at 27cqw 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 3.2cqw at 27cqw 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 3.2cqw at 27cqw 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; }
.cv3 .stub { width: 27cqw; padding: 5cqw 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: max(1.5px, .45cqw) dashed var(--line-2); }
.cv3 .stub b { font-size: 13cqw; line-height: .9; letter-spacing: -.05em; color: var(--cat); filter: saturate(1.2) brightness(.85); }
.cv3 .stub span { font-family: var(--body); font-size: 3.4cqw; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.cv3 .main { flex: 1; padding: 4cqw 5cqw; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.cv3 .main b { font-size: 7cqw; letter-spacing: -.03em; line-height: 1.05; }
.cv3 .main span { font-family: var(--body); font-size: 3.5cqw; font-weight: 600; color: var(--ink-3); margin-top: 1cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev:hover .cv3 .cv-ticket { transform: rotate(0deg) scale(1.03); }

/* 4 · place on halftone */
.cv4 { background: #1B1A1F; }
.cv4 .cv-dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.cv4 .cv-dots circle { fill: var(--cat); }
.ev:hover .cv4 .cv-dots { transform: scale(1.08) translateX(-3%); }
.cv4 .cv-place { position: absolute; left: 5cqw; bottom: 12cqw; display: flex; align-items: center; gap: 2cqw; max-width: 90cqw; }
.cv4 .cv-place svg { width: 7cqw; height: 7cqw; flex: none; color: var(--cat); }
.cv4 .cv-place b { font-size: 11cqw; letter-spacing: -.04em; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv4 .cv-when { position: absolute; left: 5cqw; bottom: 5cqw; font-family: var(--body); font-size: 3.8cqw; font-weight: 700; color: color-mix(in srgb, var(--cat) 55%, white); }

/* 5 · bauhaus blocks */
.cv5 { background: #F6F1E8; }
.cv5 .cv-bau { position: absolute; inset: 0; width: 100%; height: 100%; }
.cv5 .a { fill: var(--cat); }
.cv5 .b { fill: #1B1A1F; }
.cv5 .c { fill: color-mix(in srgb, var(--cat) 45%, #FFC93C); }
.cv5 .d { fill: color-mix(in srgb, var(--cat) 60%, white); }
.cv5 .cv-bau * { transform-box: fill-box; transform-origin: center; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.ev:hover .cv5 .c { transform: translate(-40px, 30px); }
.ev:hover .cv5 .a { transform: rotate(-8deg); }
.cv5 .cv-corner { position: absolute; right: 5cqw; top: 25%; text-align: right; color: var(--ink); display: flex; flex-direction: column; }
.cv5 .cv-corner b { font-size: 20cqw; line-height: .85; letter-spacing: -.06em; }
.cv5 .cv-corner span { font-family: var(--body); font-size: 3.6cqw; font-weight: 700; color: var(--ink-2); }

/* status badge */
.rel { position: absolute; top: 4.5cqw; right: 4.5cqw; z-index: 4; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.94); color: var(--ink); font-size: max(11px, 3.2cqw); font-weight: 800; padding: 1.6cqw 3cqw; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.12); backdrop-filter: blur(6px); }
.rel.hot { background: var(--ink); color: #fff; }
.rel.cancel { background: #C8102E; color: #fff; }
.rel .live { width: 8px; height: 8px; border-radius: 50%; background: #FF3B5C; box-shadow: 0 0 0 0 rgba(255,59,92,.7); animation: live 1.4s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(255,59,92,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,92,0); } }
.ev .tape { top: 4.5cqw; left: 4.5cqw; background: rgba(27,26,31,.84); transform: none; }
.ev .datebox { display: none; }

/* card body */
.ev .body { gap: 6px; padding: 16px 18px 16px; }
.ev .when-line { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--cat) 70%, #1B1A1F); }
.ev h3 { font-size: 19px; line-height: 1.18; letter-spacing: -.02em; }
.ev .sum { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev .meta { margin-top: 2px; }
.ev .host { padding-top: 12px; margin-top: auto; border-top: 1px solid var(--line); }
.ev .host .hn { font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ev .host .going { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ink-2); flex: none; }
.ev .host .going svg { width: 14px; height: 14px; }
.ev .host .spots { margin-left: auto; flex: none; font-size: 12px; font-weight: 800; color: #B0123A; background: #FFE8EE; padding: 3px 9px; border-radius: 999px; }
.pill.hotpill { background: var(--ink); color: #fff; }

/* bento grid on the home page */
.ev-grid.bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ev-grid.bento > .ev:nth-child(7n+1) { grid-column: span 2; }
.ev-grid.bento > .ev:nth-child(7n+1) .poster { aspect-ratio: 16/7.6; }
.ev-grid.bento > .ev:nth-child(7n+1) h3 { font-size: 24px; }
.scroller > .ev { height: 100%; }

/* featured next-up */
.feat { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 1px 2px rgba(27,26,31,.06), 0 30px 60px -30px color-mix(in srgb, var(--cat) 60%, rgba(27,26,31,.5)); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.feat:hover { transform: translateY(-4px); }
.feat-art { min-height: 360px; background: var(--cat); }
.feat-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat:hover .cv0 .cv-orb { transform: scale(1.12) translate(-4cqw, 4cqw); }
.feat:hover .cv1 .cv-words span { transform: translateX(-12%); }
.feat:hover .cv1 .cv-words span.o { transform: translateX(0); }
.feat:hover .cv2 .cv-rays { transform: rotate(4deg) scale(1.04); }
.feat:hover .cv3 .cv-ticket { transform: rotate(0) scale(1.03); }
.feat-body { padding: 40px 40px 36px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.feat-body .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.feat-body .eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; }
.feat-body h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.feat-body .lede { font-size: 17px; color: var(--ink-2); margin: 0; }
.feat-facts { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.feat-facts span { display: flex; align-items: center; gap: 9px; }
.feat-facts svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.feat-body .btn { align-self: flex-start; margin-top: 6px; }

@media (max-width: 980px) {
  .ev-grid.bento { grid-template-columns: 1fr; }
  .ev-grid.bento > .ev:nth-child(7n+1) { grid-column: auto; }
  .ev-grid.bento > .ev:nth-child(7n+1) .poster { aspect-ratio: 16/11; }
  .feat { grid-template-columns: 1fr; }
  .feat-art { min-height: 0; aspect-ratio: 16/11; }
  .feat-body { padding: 24px 22px 26px; }
}
@media (min-width: 981px) and (max-width: 1180px) {
  .ev-grid.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .cv *, .ev, .feat { transition: none !important; }
  .rel .live { animation: none; }
}

.ev-cover { position: relative; aspect-ratio: 4/5; container-type: inline-size; overflow: hidden; }
.ev-cover .cv-cat { font-size: 2.6cqw; }

.board .note .swatch { container-type: inline-size; height: auto; aspect-ratio: 16/10; }
.board .note .swatch .cv-cat { display: none; }
.cv5 .cv-corner { top: 34%; }

.sample-tag { position: absolute; bottom: 4.5cqw; right: 4.5cqw; z-index: 4; font-size: max(10px, 2.9cqw); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: #FFC93C; color: #1B1A1F; padding: 1.3cqw 2.6cqw; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.notice.sample { background: #FFF8E0; color: #6B4A00; border-color: #FFE08A; }
.footer .footer-grid { display: grid; align-items: start; justify-content: stretch; }
.poster-pick img { width: 100%; }
input[type=file] { max-width: 100%; font-size: 14px; }
input[type=file]::file-selector-button { font: inherit; font-weight: 700; border: 1.5px solid var(--line-2); background: #fff; border-radius: 999px; padding: 8px 14px; margin-right: 10px; cursor: pointer; }
.nav-right .nav-burger { display: none; }
@media (max-width: 980px) { .nav-right .nav-burger { display: inline-grid; } }

.pill.individual { background: var(--sky); color: #fff; }
.roles { grid-template-columns: repeat(3, 1fr); }
.going-strip { flex-direction: column; align-items: flex-start; gap: 4px; }
.going-count { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; color: var(--ink); }
.going-count svg { width: 18px; height: 18px; color: var(--ink-3); }
.rsvp-kpis { grid-template-columns: repeat(3, 1fr); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding-top: 6px; overflow-x: auto; }
.bars .bar { flex: 1 0 14px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bars .bar i { display: block; width: 100%; min-height: 2px; border-radius: 6px 6px 2px 2px; background: var(--splash); }
.bars .bar span { font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.split-row { display: grid; grid-template-columns: 110px 1fr 36px; gap: 12px; align-items: center; padding: 8px 0; font-size: 14.5px; font-weight: 600; }
.split-row .track { height: 12px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.split-row .track i { display: block; height: 100%; border-radius: 999px; background: var(--sky); }
.split-row .track i.activist { background: var(--mint); }
.split-row .track i.org { background: var(--lilac); }
.split-row b { text-align: right; font-family: var(--display); font-size: 17px; }
@media (max-width: 760px) { .roles { grid-template-columns: 1fr; } .split-row { grid-template-columns: 96px 1fr 30px; } }
.bars .bar { flex: 0 1 30px; min-width: 12px; }
.bars { justify-content: flex-start; }

/* ---------- saved / going ---------- */
article.ev { position: relative; }
.ev .ev-link { color: inherit; }
.ev .ev-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ev .when-row { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.ev .when-row .when-line { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.going-pill { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 11.5px; font-weight: 800; color: #0A7A4C; background: #E6FAF1; padding: 3px 9px; border-radius: 999px; }
.going-pill svg { width: 12px; height: 12px; }
.pill.going-pill { font-size: 12px; }
.fav { position: relative; z-index: 3; flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(27,26,31,.05); color: var(--ink-3); cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.fav svg { width: 18px; height: 18px; transition: fill .15s; }
.fav:hover { background: #FFE8EE; color: #E0245E; }
.fav.on { color: #E0245E; background: #FFE8EE; }
.fav.on svg { fill: currentColor; }
.fav.pop { animation: favpop .4s ease; }
@keyframes favpop { 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
.btn.fav { width: auto; height: auto; border-radius: 999px; display: inline-flex; gap: 8px; }
.btn.fav.on { background: #FFE8EE; color: #C0174E; border-color: #FFC3D0; }
.btn.fav.icon { width: 42px; height: 42px; padding: 0; justify-content: center; }
.ev-row .acts .fav { width: 40px; height: 40px; }
.cal.dots .day.mine .n { box-shadow: 0 0 0 2px #E0245E; }
.cal.dots .day.today.mine .n { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #E0245E; }
.dp-ev .b em.saved { color: #C0174E; }
.mylist .agenda-tabs button svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .fav { width: 40px; height: 40px; }
  .ev-row .acts .fav { flex: none; }
  .actionbar .btn.fav.icon { width: 54px; height: 54px; border-radius: 18px; }
}
/* admin */
.user-row .acts { flex-wrap: wrap; justify-content: flex-end; }
details.pwbox { position: relative; }
details.pwbox > summary { list-style: none; }
details.pwbox > summary::-webkit-details-marker { display: none; }
details.pwbox form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: flex; gap: 6px; background: #fff; padding: 8px; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); width: 280px; }
details.pwbox input { padding: 9px 12px; font-size: 14px; }
@media (max-width: 760px) { details.pwbox form { position: static; width: 100%; margin-top: 6px; } .user-row .acts { justify-content: flex-start; } }

/* ---------- area picker in the header ---------- */
.brandbox { display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.locpick { position: relative; }
.locpick > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--ink-3); padding: 3px 8px 3px 5px; margin-left: 32px; border-radius: 999px; white-space: nowrap; }
.locpick > summary::-webkit-details-marker { display: none; }
.locpick > summary svg { width: 13px; height: 13px; }
.locpick > summary svg:first-child { color: var(--tangerine); }
.locpick > summary:hover, .locpick[open] > summary { background: rgba(27,26,31,.06); color: var(--ink); }
.locpick-menu { position: absolute; top: calc(100% + 8px); left: 20px; z-index: 70; width: min(360px, calc(100vw - 24px)); max-height: min(70vh, 560px); overflow-y: auto; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 10px; animation: pop .15s ease-out; }
.locpick-menu .loc-all { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 14px; background: var(--paper); margin-bottom: 6px; }
.locpick-menu .loc-all b { font-family: var(--display); font-size: 16px; }
.locpick-menu .loc-all span { font-size: 12.5px; color: var(--ink-3); }
.locpick-menu .loc-all.on { background: var(--ink); color: #fff; }
.locpick-menu .loc-all.on span { color: rgba(255,255,255,.7); }
.loc-county { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 10px 6px 6px; }
.loc-towns { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px 4px; }
.loc-towns a { font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); }
.loc-towns a:hover { border-color: var(--ink); }
.loc-towns a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.nbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #E0245E; color: #fff; font-size: 11.5px; font-weight: 800; vertical-align: 1px; }
.nbadge.big { min-width: 28px; height: 28px; font-size: 15px; vertical-align: 4px; }

/* ---------- approval ---------- */
.notice.pending { background: #FFF6E0; color: #5E4300; border-color: #FFDF8F; }
.review-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.review-bar .decline, .pq-acts .decline { display: flex; gap: 6px; flex: 1 1 260px; }
.review-bar .decline input, .pq-acts .decline input { flex: 1; padding: 8px 12px; font-size: 14px; border-radius: 999px; }
.pill.pendpill { background: #FFF1C9; color: #7A5200; }
.pending-queue { margin-bottom: 40px; }
.pq-list { display: flex; flex-direction: column; gap: 12px; }
.pq-card { display: grid; grid-template-columns: 1fr 290px; gap: 20px; background: #fff; border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); border-left: 6px solid var(--cat); }
.pq-card h3 { font-size: 20px; margin: 8px 0 6px; }
.pq-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pq-meta { margin: 0 0 4px; font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.pq-meta svg { width: 14px; height: 14px; color: var(--ink-3); }
.pq-sum { margin: 8px 0 4px; font-weight: 600; }
.pq-desc { margin: 0; font-size: 14px; color: var(--ink-3); }
.pq-acts { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.pq-acts .decline { flex: none; }
@media (max-width: 760px) {
  .pq-card { grid-template-columns: 1fr; }
  .locpick > summary { margin-left: 30px; font-size: 12px; }
  .locpick-menu { position: fixed; left: 12px; right: 12px; top: calc(var(--nav-h) + 6px); width: auto; max-height: calc(100vh - var(--nav-h) - 110px); }
}

/* ---------- notification sheet (comes before the phone's own prompt) ---------- */
.nsheet { position: fixed; inset: 0; z-index: 120; background: rgba(27,26,31,.42); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .2s; }
.nsheet.in { opacity: 1; }
.nsheet[hidden] { display: none; }
.nsheet-card { width: min(440px, 100%); background: var(--paper); border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.3); transform: translateY(16px) scale(.98); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.nsheet.in .nsheet-card { transform: none; }
.nsheet-grab { display: none; }
.nsheet-art { padding: 26px 22px 18px; background: radial-gradient(120% 90% at 20% 0%, #FFB36B 0%, #FF5C8A 45%, #7B5CFF 100%); }
.nsheet-body { padding: 22px 24px 24px; }
.nsheet-body h2 { font-size: 24px; line-height: 1.12; margin-bottom: 8px; text-wrap: balance; }
.nsheet-body p { color: var(--ink-2); font-size: 15px; margin: 0 0 16px; }
.nsheet-btns { display: flex; flex-direction: column; gap: 8px; }
.nsheet-btns .btn { width: 100%; }
.nsheet-fine { font-size: 12.5px !important; color: var(--ink-3) !important; margin: 12px 0 0 !important; text-align: center; }
.nsheet-err { color: #A11235 !important; font-weight: 600; }
.nsheet [data-show] { display: none; }
.nsheet[data-mode="ask"] [data-show~="ask"], .nsheet[data-mode="error"] [data-show~="error"], .nsheet[data-mode="ios"] [data-show~="ios"],
.nsheet[data-mode="denied"] [data-show~="denied"], .nsheet[data-mode="done"] [data-show~="done"] { display: block; }
.nsheet[data-mode="error"] .nsheet-body[data-show~="error"] { display: block; }
.nsheet-done { text-align: center; }
.nsheet-check { width: 56px; height: 56px; border-radius: 50%; background: #1FC58B; color: #fff; display: grid; place-items: center; margin: 4px auto 12px; }
.nsheet-check svg { width: 28px; height: 28px; }
.nsteps { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.nsteps li { display: flex; align-items: center; gap: 12px; font-size: 15px; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); }
.nstep-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; flex: none; color: #1D6FE0; overflow: hidden; }
.nstep-ico svg { width: 20px; height: 20px; }
.nstep-ico img { width: 100%; height: 100%; }

/* the notification preview: an iOS/Android style banner */
.nprev { display: flex; flex-direction: column; gap: 6px; }
.nprev-card { display: grid; grid-template-columns: 38px 1fr 54px; gap: 10px; align-items: center; background: rgba(255,255,255,.82); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); border-radius: 22px; padding: 12px 12px 12px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, var(--body); }
.nprev-icon { width: 38px; height: 38px; border-radius: 10px; align-self: start; }
.nprev-top { display: flex; justify-content: space-between; font-size: 12px; color: #6B6875; margin-bottom: 2px; }
.nprev-top b { color: #1B1A1F; font-weight: 600; text-transform: none; letter-spacing: 0; }
.nprev-title { font-size: 14.5px; font-weight: 700; color: #111; line-height: 1.25; }
.nprev-body { font-size: 13.5px; color: #333; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nprev-thumb { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; align-self: center; }
.nprev-actions { display: flex; gap: 6px; padding: 0 4px; }
.nprev-actions span { flex: 1; text-align: center; background: rgba(255,255,255,.6); border-radius: 14px; padding: 8px 0; font-size: 13px; font-weight: 700; color: #1B1A1F; font-family: -apple-system, "Segoe UI", Roboto, var(--body); }

/* settings: notifications block */
.nset { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: center; background: #fff; border-radius: 20px; padding: 18px; border: 1px solid var(--line); margin-bottom: 8px; }
.nset-preview { padding: 18px; border-radius: 18px; background: radial-gradient(120% 90% at 20% 0%, #FFB36B 0%, #FF5C8A 45%, #7B5CFF 100%); }
.nset-status { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.nset-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); flex: none; }
.nset-status[data-state="granted"]::before { background: #1FC58B; }
.nset-status[data-state="denied"]::before { background: #E0245E; }
@media (max-width: 760px) {
  .nset { grid-template-columns: 1fr; }
  .nsheet { place-items: end stretch; padding: 0; }
  .nsheet-card { width: 100%; border-radius: 28px 28px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); transform: translateY(40px); }
  .nsheet-grab { display: block; width: 42px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.7); margin: 10px auto -4px; position: relative; z-index: 2; }
  .nsheet-art { margin-top: -15px; padding-top: 30px; }
}

.approval-rule { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.approval-rule .rule-count { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; flex-wrap: wrap; }
.approval-rule .rule-count select { width: auto; padding: 8px 32px 8px 14px; min-height: 0; }
.approval-rule .rule-count[hidden] { display: none; }
.nprev-thumb { object-position: 8% 70%; }

.locnote { background: var(--ink); color: #fff; font-size: 13.5px; }
.locnote .wrap { display: flex; align-items: center; gap: 8px; padding: 8px 0; flex-wrap: wrap; }
.locnote svg { width: 15px; height: 15px; color: var(--lemon); }
.locnote a { margin-left: auto; font-weight: 700; color: var(--lemon); text-decoration: underline; }

/* ---------- verification, rules, newsletter ---------- */
.verifynote { background: #FFF1C9; color: #5E4300; font-size: 13.5px; }
.verifynote .wrap { display: flex; align-items: center; gap: 8px; padding: 9px 0; flex-wrap: wrap; }
.verifynote svg { width: 15px; height: 15px; }
.verifynote a { margin-left: auto; font-weight: 800; text-decoration: underline; }
.verify-card { text-align: center; }
.verify-card h1 { font-size: 34px; margin: 10px 0 12px; }
.verify-card p { color: var(--ink-2); font-size: 16px; }
.verify-ico { width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; background: var(--splash); color: #fff; display: grid; place-items: center; }
.verify-ico svg { width: 30px; height: 30px; }
.codeform { margin: 26px 0 4px; }
.codeboxes { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.codebox { width: 54px; height: 66px; border: 2px solid var(--line-2); border-radius: 14px; background: #fff; text-align: center;
  font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--ink); caret-color: var(--tangerine); transition: border-color .15s, box-shadow .15s; }
.codebox:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(26, 23, 37, .08); }
.codebox:not(:placeholder-shown), .codebox[value]:not([value=""]) { border-color: var(--ink); }
.codeboxes .codebox:nth-child(3) { margin-right: 14px; }
@media (max-width: 460px) { .codebox { width: 44px; height: 56px; font-size: 25px; } .codeboxes { gap: 7px; } .codeboxes .codebox:nth-child(3) { margin-right: 9px; } }
.news-form { display: flex; flex-direction: column; gap: 10px; max-width: 380px; margin: 18px auto 0; }
.rules-box { background: #fff; border: 1.5px solid var(--line-2); border-radius: 16px; padding: 14px 16px; margin: 6px 0 0; }
.rules-box > b { font-family: var(--display); font-size: 16px; }
.rules-box ul { margin: 8px 0 12px 18px; padding: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.rules-confirm { background: #FFF8E0; border: 1px solid #FFE08A; border-radius: 14px; padding: 12px 14px; margin: 6px 0 14px; font-size: 14.5px; }
.footer .news-link { color: var(--lemon); font-weight: 700; }
