/* Manx Club — club-wide layer. Builds on app.css tokens (navy + gold). */
:root {
  color-scheme: dark;
  --c-line: rgba(255,255,255,0.08);
  --c-ok: #3BC47A;
  --c-soon: #7FB2FF;
  --c-fb: #1877F2;
  --c-gold-soft: rgba(242,183,5,0.14);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.club-bar { display: flex; padding-bottom: var(--safe-bottom); background: var(--bg-2); border-top: 1px solid rgba(255,255,255,0.06); }
.top-bar[hidden], .club-bar[hidden], .tab-bar[hidden] { display: none !important; }
/* Long messages wrap into a rounded box, not a stretched pill (MS-13) */
.toast { border-radius: 16px; }
.tab-count.is-hidden { display: none; }
body.hub-mode .top-bar-logo { cursor: pointer; }

/* Shared bits */
.c-eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.c-sub { color: var(--text-dim); font-size: 14.5px; }
.c-sub.center, .center { text-align: center; display: block; }
.c-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.c-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.c-row.between { justify-content: space-between; flex-wrap: nowrap; }
.c-row.end { align-items: flex-end; }
.c-row.wrap { flex-wrap: wrap; }
.c-flex { flex: 1; }
.c-stack { display: flex; flex-direction: column; gap: 12px; }
.c-empty { color: var(--text-dim); text-align: center; padding: 18px 8px; font-size: 14.5px; }
.c-foot { color: var(--text-dim); font-size: 14px; text-align: center; margin: 26px 0 8px; }
.c-text { white-space: pre-wrap; line-height: 1.55; font-size: 15.5px; margin: 0; overflow-wrap: anywhere; }
.c-text.sm { font-size: 14px; color: var(--text-dim); }
.c-note { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--c-gold-soft); color: var(--text); font-size: 14.5px; line-height: 1.45; }
.c-h2, .view .c-h2, .c-sheet .c-h2 { font-size: 18px; margin: 26px 0 10px; letter-spacing: -0.01em; }
.c-h3 { font-size: 15px; margin: 8px 0 0; color: var(--text-dim); font-weight: 700; letter-spacing: .02em; }
.c-link { background: none; border: 0; color: var(--accent); font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer; padding: 10px 8px; margin: -10px -8px; min-height: 44px; min-width: 44px; }
.c-caret { color: var(--text-dim); font-size: 20px; flex: none; }
.c-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--danger-deep); color: #fff;
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }

.c-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 46px; padding: 11px 16px;
  border: 0; border-radius: 12px; background: var(--accent); color: #1a1a1a; font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1.2; cursor: pointer; text-align: center; }
.c-btn:active { transform: translateY(1px); }
.c-btn.sm { width: auto; min-height: 44px; padding: 9px 14px; font-size: 15px; border-radius: 10px; }
.c-btn.ghost { background: rgba(255,255,255,0.06); color: var(--text); box-shadow: inset 0 0 0 1px var(--c-line); }
.c-btn.danger { color: var(--danger-text); }
.c-btn.fb { background: var(--c-fb); color: #fff; }
.c-btn:disabled { opacity: .45; cursor: not-allowed; }

.c-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.07); color: var(--text-dim); white-space: nowrap; }
.c-chip.ok   { background: rgba(59,196,122,0.12); color: #6BDB9D; }
.c-chip.go   { background: var(--accent); color: #1a1a1a; }
.c-chip.go.hot { background: var(--danger-deep); color: #fff; }
.c-chip.soon { background: rgba(127,178,255,0.10); color: #A6CBFF; }
.c-chip.mute { background: rgba(255,255,255,0.06); color: #BCC8DC; font-weight: 600; }

.c-sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 10px; }
.c-sec-h h2 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.c-sec-link { font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin: -12px -4px; }

.c-banner { display: flex; flex-direction: column; gap: 4px; padding: 13px 14px; border-radius: 14px; margin: 12px 0; color: var(--text); }
.c-banner span { font-size: 14.5px; color: var(--text-dim); }
.c-banner.warn { background: rgba(228,71,60,0.14); box-shadow: inset 0 0 0 1px rgba(228,71,60,0.35); }
.c-banner.warn strong { color: var(--danger-text); }
.c-banner.info { background: var(--surface); box-shadow: inset 0 0 0 1px rgba(242,183,5,0.3); }
.c-banner.info .c-row { margin-top: 8px; }
.c-banner.ig { background: linear-gradient(115deg,#feda75 -20%,#fa7e1e 10%,#d62976 45%,#962fbf 80%,#4f5bd5 120%); margin-top: 22px; }
.c-banner.ig span, .c-banner.ig strong { color: #fff; }

/* Skeleton */
.c-skel { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.c-skel-bar, .c-skel-card { border-radius: 12px; background: linear-gradient(90deg, var(--surface) 0%, var(--elev) 50%, var(--surface) 100%);
  background-size: 200% 100%; animation: c-shimmer 1.2s linear infinite; }
.c-skel-bar { height: 18px; } .c-skel-bar.w60 { width: 60%; } .c-skel-bar.w40 { width: 40%; }
.c-skel-card { height: 150px; } .c-skel-card.short { height: 90px; }
@keyframes c-shimmer { to { background-position: -200% 0; } }

/* Home */
.c-greet { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
.c-greet h1 { margin: 2px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.c-mem-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--surface); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--c-line); }
.c-mem-chip.lifetime { color: var(--accent); box-shadow: inset 0 0 0 1px rgba(242,183,5,.45); }
.c-mem-chip.expired, .c-mem-chip.expiring { background: var(--danger-deep); color: #fff; box-shadow: none; }

.c-hero { position: relative; display: block; overflow: hidden; border-radius: 20px; min-height: 230px; color: #fff; margin: 4px 0 6px;
  background: radial-gradient(120% 120% at 0% 0%, #22406F 0%, #0E1E36 70%); }
.c-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); }
.c-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,17,31,0.45) 0%, rgba(7,17,31,0.6) 45%, rgba(7,17,31,0.95) 100%); }
.c-hero .c-eyebrow { align-self: flex-start; background: rgba(7,17,31,.72); padding: 3px 9px; border-radius: 999px; }
.c-hero .c-chip { background: rgba(14,30,54,.88); }
.c-hero .c-chip.go { background: var(--accent); }
.c-hero-in { position: relative; padding: 70px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.c-hero h2 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; text-wrap: balance; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.c-hero-meta { margin: 0; color: #fff; font-size: 15px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.c-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.c-hero-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.c-hero-cta .c-sub { color: rgba(255,255,255,0.8); }
.c-count-big { display: flex; flex-direction: column; line-height: 1; }
.c-count-big b { font-size: 46px; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.c-count-big span { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.82); margin-top: 4px; }

.c-hubrow, .c-mgr { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 10px; border-radius: 16px; background: var(--surface);
  color: var(--text); box-shadow: inset 0 0 0 1px rgba(242,183,5,0.22); }
.c-hubrow-logo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; background: var(--elev); }
.c-hubrow-m, .c-mgr-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.c-hubrow-m strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-hubrow-go { color: var(--accent); font-weight: 700; font-size: 14px; flex: none; }
.c-mgr { box-shadow: inset 0 0 0 1px var(--c-line); }
.c-mgr-i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--c-gold-soft); flex: none; }
.c-logo-ph { display: grid; place-items: center; } .c-logo-ph img { width: 70%; opacity: .7; }
.c-logo-fallback { object-fit: contain !important; padding: 8px; }

/* Posts */
.c-post { background: var(--surface); border-radius: 16px; padding: 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px;
  position: relative; transition: box-shadow .3s ease; }
.c-post.unread { box-shadow: inset 3px 0 0 var(--accent); }
.c-post.pinned { box-shadow: 0 0 0 1px rgba(242,183,5,0.35); }
.c-post.pinned.unread { box-shadow: 0 0 0 1px rgba(242,183,5,0.35), inset 3px 0 0 var(--accent); }
.c-post.tappable { cursor: pointer; }
.c-post-h { display: flex; align-items: center; gap: 8px; }
.c-cat { font-size: 13.5px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.c-post.cat-urgent .c-cat { color: var(--danger-text); }
.c-post.cat-urgent { box-shadow: inset 3px 0 0 var(--danger); }
.c-post.cat-facebook .c-cat { color: #8AB4FF; }
.c-post.cat-facebook { background: linear-gradient(180deg, rgba(24,119,242,0.14), var(--surface) 70px); }
.c-pin { font-size: 12px; }
.c-when { margin-left: auto; font-size: 13.5px; color: var(--text-dim); white-space: nowrap; }
.c-post-t, .view .c-post-t { margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: -0.005em; text-wrap: balance; }
.c-post-b { white-space: pre-wrap; font-size: 16px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.c-post-b.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.c-post-img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; background: var(--elev); }
.c-more { align-self: flex-start; background: none; border: 0; color: var(--accent); font-family: inherit; font-weight: 600; font-size: 15px; padding: 10px 4px; margin: -10px -4px; min-height: 44px; cursor: pointer; }
.c-post-a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.c-like { margin-left: auto; background: rgba(255,255,255,0.05); border: 0; color: var(--text-dim); border-radius: 999px; padding: 8px 14px; font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer; min-height: 44px; }
.c-like.on { background: var(--c-gold-soft); color: var(--accent); }

/* Store */
.c-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 2px 16px 6px; scroll-padding-inline: 16px; scrollbar-width: none; }
.c-strip::-webkit-scrollbar { display: none; }
.c-strip > * { scroll-snap-align: start; min-width: 0; }
.c-strip > [role=listitem] > .c-prod, .c-grid > [role=listitem] > .c-prod { height: 100%; }
.c-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.c-prod { display: flex; flex-direction: column; gap: 4px; color: var(--text); min-width: 0; }
.c-prod-img { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #fff; }
.c-prod-img img { position: relative; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.c-prod-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; opacity: .35; }
.c-prod strong { font-size: 14.5px; line-height: 1.3; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-price { font-size: 15px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.c-price s { color: var(--text-dim); font-weight: 400; }
.c-new { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #1a1a1a; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.c-sold { position: absolute; inset: auto 0 0 0; background: rgba(14,30,54,0.86); color: #fff; font-size: 13px; font-weight: 700; text-align: center; padding: 6px; }
.c-prod.out img { filter: grayscale(.7); opacity: .75; }
.c-store-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.c-store-h h1 { margin: 2px 0 4px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.c-chips-scroll { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 4px; scrollbar-width: none; }
.c-chips-scroll::-webkit-scrollbar { display: none; }
.c-chips-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.c-fchip { flex: none; padding: 8px 14px; border-radius: 999px; border: 0; background: var(--surface); color: var(--text); font-family: inherit; font-weight: 600; font-size: 14.5px;
  cursor: pointer; box-shadow: inset 0 0 0 1px var(--c-line); white-space: nowrap; min-height: 42px; display: inline-flex; align-items: center; }
.c-fchip.on { background: var(--accent); color: #1a1a1a; box-shadow: none; }

.c-mania { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 12px; border-radius: 16px; background: var(--surface); color: var(--text); }
.c-mania img { width: 68px; height: 88px; object-fit: cover; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.4); flex: none; }
.c-mania div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* Events */
.c-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-2); margin-bottom: 8px; }
.c-seg-b { flex: 1; border: 0; background: none; color: var(--text-dim); font-family: inherit; font-weight: 600; font-size: 15px; padding: 9px 6px; border-radius: 9px; cursor: pointer; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.c-seg-b.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.c-seg-n { font-size: 12.5px; background: var(--elev); padding: 1px 6px; border-radius: 999px; }
.c-month, .view .c-month { font-size: 13.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); margin: 20px 2px 8px; font-weight: 700; }
.c-evrow { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 8px; border-radius: 16px; background: var(--surface); color: var(--text); }
.c-evrow.slim { padding: 12px 14px; }
.c-date { width: 46px; flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.c-date span { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; }
.c-date b { font-size: 24px; font-weight: 800; margin-top: 3px; font-variant-numeric: tabular-nums; }
.c-evrow-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--elev); flex: none; }
.c-evrow-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.c-evrow-m strong { font-size: 15.5px; line-height: 1.25; }
.c-evrow-m .c-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.c-ev-hero { margin: -16px -16px 0; width: calc(100% + 32px); height: min(300px, 56.25vw); background: radial-gradient(120% 120% at 0 0, #22406F, #0E1E36 70%); overflow: hidden; position: relative; }
.c-ev-hero-img { width: 100%; height: 100%; object-fit: cover; }
.c-ev-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, var(--bg)); }
.c-ev-head { position: relative; margin-top: -26px; display: flex; flex-direction: column; gap: 8px; }
.c-ev-head .c-chip { background: rgba(14,30,54,.88); }
.c-ev-head .c-chip.go { background: var(--accent); }
.c-ev-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.c-facts { display: grid; gap: 0; margin: 16px 0 0; background: var(--surface); border-radius: 16px; padding: 4px 14px; }
.c-facts div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--c-line); }
.c-facts div:last-child { border-bottom: 0; }
.c-facts dt { color: var(--text-dim); font-size: 14px; font-weight: 600; }
.c-facts dd { margin: 0; font-size: 16px; min-width: 0; overflow-wrap: anywhere; }
.c-panel { margin-top: 14px; padding: 16px; border-radius: 16px; background: linear-gradient(160deg, rgba(242,183,5,0.12), var(--surface) 55%);
  box-shadow: inset 0 0 0 1px rgba(242,183,5,0.25); display: flex; flex-direction: column; gap: 10px; }
.c-panel > strong { font-size: 17px; }
.c-panel .c-sub { margin: -4px 0 0; }
.c-hub { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--surface); color: var(--text); }
.c-hub > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.c-hub-i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--elev); flex: none; }
.c-hub.open { box-shadow: inset 0 0 0 1px rgba(59,196,122,0.4); }
.c-hub.open .c-hub-i { background: rgba(59,196,122,0.16); }
.c-hub.locked { opacity: .9; }
.c-lodge { padding: 14px; margin-bottom: 10px; border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.c-offer { background: var(--surface); border-radius: 16px; padding: 2px 14px; }
.c-offer-r { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--c-line); font-size: 15.5px; }
.c-offer-r:last-child { border-bottom: 0; }
.c-offer-r b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-offer-r.total { font-size: 17px; font-weight: 800; }
.c-offer-r.total b { color: var(--accent); }

/* Sheets (registration, composer) */
.c-sheet-bg { position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,0.6); display: flex; align-items: flex-end; justify-content: center;
  animation: c-fade .18s ease; }
.c-sheet { width: 100%; max-width: 560px; height: min(92dvh, 900px); background: var(--bg); border-radius: 22px 22px 0 0; display: flex; flex-direction: column;
  animation: c-up .26s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -10px 40px rgba(0,0,0,.45); }
.c-sheet.tall { height: 100dvh; border-radius: 0; padding-top: var(--safe-top); }
.c-sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 8px; }
.c-sheet-h strong { font-size: 17px; display: block; }
.c-sheet-body { flex: 1; overflow-y: auto; padding: 4px 16px 20px; -webkit-overflow-scrolling: touch; }
.c-sheet-body .c-h2 { margin-top: 10px; }
.c-sheet-foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(12px + var(--safe-bottom)); border-top: 1px solid var(--c-line); background: var(--bg-2); }
.c-sheet-foot .c-btn { flex: 1; }
.c-sheet-foot .c-btn.ghost { flex: 0 0 auto; width: auto; padding: 11px 16px; }
.c-sheet-foot .c-btn:not(.ghost) { white-space: nowrap; }
.c-total { display: flex; flex-direction: column; line-height: 1.1; min-width: 64px; }
.c-total span { font-size: 12.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; }
.c-total b { font-size: 20px; color: var(--accent); font-variant-numeric: tabular-nums; }
@keyframes c-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes c-fade { from { opacity: 0; } to { opacity: 1; } }
.c-prog { display: flex; gap: 6px; padding: 0 16px 10px; }
.c-prog-s { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.c-prog-s::before { content: ""; height: 4px; border-radius: 4px; background: var(--elev); }
.c-prog-s.on::before, .c-prog-s.done::before { background: var(--accent); }
.c-prog-s span { display: none; }
.c-prog-s em { font-style: normal; font-size: 13px; color: var(--text-dim); font-weight: 600; }
.c-prog-s.on em { color: var(--text); }

.c-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--surface); border-radius: 14px; }
.c-step > div:first-child { display: flex; flex-direction: column; }
.c-step-c { display: flex; align-items: center; gap: 4px; }
.c-step-b { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--elev); color: var(--text); font-size: 22px; cursor: pointer; }
.c-step-b:disabled { opacity: .35; }
.c-step-v { min-width: 34px; text-align: center; font-size: 20px; font-variant-numeric: tabular-nums; }
.c-contact { padding: 14px; background: var(--surface); border-radius: 14px; display: flex; flex-direction: column; gap: 8px; }
.c-contact .form-row { margin-bottom: 4px; }
.c-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.c-grid3 { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 10px; }
@media (max-width: 380px) { .c-grid2 { grid-template-columns: 1fr; } }
/* Post editor: two columns cut values off on phones (MGR-21, UX-17) */
@media (max-width: 480px) { .c-sheet .c-grid2 { grid-template-columns: 1fr; } }
.c-choice { display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: var(--surface); border-radius: 14px; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--c-line); }
.c-choice.on { box-shadow: inset 0 0 0 2px var(--accent); }
.c-choice input { accent-color: var(--accent); width: 20px; height: 20px; flex: none; }
.c-choice-m { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.c-choice b { font-variant-numeric: tabular-nums; }
.c-item { padding: 12px; background: var(--surface); border-radius: 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; }
.c-item-img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; background: #fff; grid-row: span 1; }
.c-item-m { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.c-item:not(:has(.c-item-img)) .c-item-m { grid-column: 1 / -1; }
.c-item.out { opacity: .6; }
.c-sizes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.c-size { border: 0; background: var(--elev); color: var(--text); border-radius: 10px; padding: 8px 12px; font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer; min-height: 44px;
  display: inline-flex; align-items: center; gap: 6px; }
.c-size.on { background: var(--accent); color: #1a1a1a; padding: 0; overflow: hidden; }
.c-size.on button { border: 0; background: rgba(0,0,0,0.12); color: inherit; font-family: inherit; font-weight: 700; font-size: 18px; width: 44px; min-height: 44px; cursor: pointer; }
.c-size.on button:disabled { opacity: .35; }
.c-size.on span { padding: 0 4px; }
.c-size:disabled { opacity: .35; }

/* Membership card */
.c-mcard-wrap { perspective: 1200px; margin: 8px auto 10px; max-width: 420px; }
.c-mcard { display: block; width: 100%; aspect-ratio: 1.586; border: 0; padding: 0; background: none; cursor: pointer; color: inherit; font-family: inherit; }
.c-mcard-in { position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.c-mcard.flipped .c-mcard-in { transform: rotateY(180deg); }
.c-mcard-f { position: absolute; inset: 0; border-radius: 18px; padding: 18px 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; text-align: left;
  background: linear-gradient(135deg, #22406F 0%, #0E1E36 55%, #07111F 100%);
  box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 0 0 1px rgba(242,183,5,.35); color: #ECF1FA; }
.c-mcard-f::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 100% 0%, rgba(242,183,5,.22), transparent 60%); pointer-events: none; }
.c-mcard-f > * { position: relative; }
.c-mcard-wrap.lifetime .c-mcard-f.front { background: linear-gradient(135deg, #3A2E0A 0%, #1B1606 55%, #0E0B03 100%); }
.c-mcard-wrap.expired .c-mcard-f.front { filter: grayscale(.6); }
.c-mcard-f.back { transform: rotateY(180deg); align-items: center; justify-content: center; gap: 12px; background: #ECF1FA; color: #0E1E36; }
.c-mcard-brand { font-size: 13px; letter-spacing: .3em; font-weight: 800; color: var(--accent); }
.c-mcard-logo { width: 38px; height: 38px; border-radius: 10px; }
.c-mcard-art { position: absolute; right: 10px; top: 16%; width: 34%; color: var(--accent); }
.c-mcard-art svg { width: 100%; height: auto; display: block; }
.c-mcard-name { font-size: clamp(18px, 5.4vw, 24px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; max-width: 85%; }
.c-mcard-l { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.c-mcard-n { font: 800 20px ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; }
.c-mcard-v { font-size: 14px; font-weight: 700; }
.c-mcard .r { text-align: right; }
.c-qr { width: 52%; aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-radius: 10px; padding: 6px; }
.c-qr svg { width: 100%; height: 100%; }
.c-mcard-f.back .c-mcard-l { opacity: .75; color: #0E1E36; }
@media (prefers-reduced-motion: reduce) { .c-mcard-in, .c-sheet, .c-sheet-bg { transition: none; animation: none; } .c-skel-bar, .c-skel-card { animation: none; } }

.c-toggles { background: var(--surface); border-radius: 16px; padding: 2px 14px; }
.c-toggle { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--c-line); cursor: pointer; font-size: 15px; }
.c-toggles .c-toggle:last-child { border-bottom: 0; }
.c-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.c-switch { flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--elev); position: relative; transition: background .2s; }
.c-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.c-toggle input:checked + .c-switch { background: var(--c-ok); }
.c-toggle input:checked + .c-switch::after { transform: translateX(18px); }
.c-toggle input:disabled + .c-switch { opacity: .55; }
.c-toggle input:focus-visible + .c-switch { outline: 2px solid var(--accent); outline-offset: 2px; }
.c-grid2 > .c-toggle { border: 0; background: var(--surface); border-radius: 12px; padding: 10px 12px; align-self: end; min-height: 48px; }

/* Manage */
.c-mgr-top { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.c-mrow { padding: 14px; margin-bottom: 10px; border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.c-mrow-t { font-size: 16px; line-height: 1.3; }
.c-mrow .c-row.wrap { margin-top: 6px; }
.c-prow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--surface); border-radius: 12px; }
.c-addmgr { display: grid; grid-template-columns: 96px 1fr auto; gap: 8px; }
.c-addmgr input { min-width: 0; min-height: 44px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--c-line); border-radius: 10px; color: var(--text); font-size: 16px; }
.c-imgpick { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-bottom: 14px; }
.c-imgpick img { max-width: 100%; max-height: 220px; border-radius: 12px; }
.c-preview { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--c-line); display: flex; flex-direction: column; gap: 8px; }
.c-sheet textarea, .c-sheet input { font-family: inherit; }
.c-sheet .form-row select { width: 100%; padding: 12px 14px; background: var(--bg-2); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-sm); color: var(--text); font-size: 16px; }

@media (min-width: 720px) {
  .c-strip { grid-auto-columns: 200px; }
  body.club-mode .view { padding-left: max(16px, calc((100% - 760px) / 2)); padding-right: max(16px, calc((100% - 760px) / 2)); }
}

.c-post.tappable .c-post-img { max-height: 210px; }
.c-store-h .c-btn { white-space: nowrap; flex: none; }

/* Renewal */
.c-renew-h { padding: 18px 16px; border-radius: 18px; margin-bottom: 6px; display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(135deg, #22406F 0%, #0E1E36 70%); box-shadow: inset 0 0 0 1px rgba(242,183,5,.3); }
.c-renew-h h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.c-renew-h .c-sub { margin: 0; }
.c-renew-h.expired, .c-renew-h.expiring { box-shadow: inset 0 0 0 1px rgba(228,71,60,.55); }
.c-panel.ok { background: linear-gradient(160deg, rgba(59,196,122,0.14), var(--surface) 60%); box-shadow: inset 0 0 0 1px rgba(59,196,122,0.4); }

/* Manx Mania */
.c-mania.big { margin: 6px 0 4px; }
.c-mania.big img { width: 96px; height: 124px; }
.c-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.c-missue { display: flex; flex-direction: column; gap: 6px; color: var(--text); font-size: 13.5px; font-weight: 600; text-align: center; min-width: 0; }
.c-missue img, .c-mcover-ph { width: 100%; aspect-ratio: 0.77; object-fit: cover; border-radius: 6px; background: var(--elev); box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.c-mcover-ph { display: grid; place-items: center; color: var(--text-dim); font-size: 11px; }
.c-missue.off { opacity: .45; }

/* Contribute */
.tab-plus-btn { display: grid; place-items: center; width: 34px; height: 34px; margin-top: -12px; border-radius: 50%;
  background: var(--accent); color: #1a1a1a; font: 700 26px/1 system-ui, sans-serif; box-shadow: 0 4px 14px rgba(242,183,5,.35), 0 0 0 4px var(--bg-2); }
.tab-plus.active .tab-plus-btn { background: #fff; }
.c-chero { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 6px; }
.c-chero h1 { margin: 2px 0 4px; font-size: 27px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.c-chero .c-sub { margin: 0; }
.c-mine-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 7px 14px; border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 700; font-size: 13.5px; box-shadow: inset 0 0 0 1px var(--c-line); }
.c-mine-chip b { background: var(--accent); color: #1a1a1a; border-radius: 999px; padding: 1px 7px; font-size: 13px; }
.c-cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.c-ccard { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 12px 13px; border-radius: 18px; color: var(--text); min-width: 0; min-height: 118px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 26%, transparent) 0%, var(--surface) 62%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); transition: transform .12s ease; }
.c-ccard:active { transform: scale(.97); }
.c-ccard strong { font-size: 15px; line-height: 1.2; margin-top: 6px; }
.c-ccard .c-sub { font-size: 13.5px; line-height: 1.3; }
.c-cicon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; font-size: 22px; flex: none;
  background: color-mix(in srgb, var(--c, var(--accent)) 24%, var(--elev)); }
.c-cicon.big { width: 58px; height: 58px; border-radius: 17px; font-size: 32px; }
.c-draft { position: absolute; top: 10px; right: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  background: var(--accent); color: #1a1a1a; padding: 2px 7px; border-radius: 999px; }
.c-cban { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; margin: 2px 0 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 34%, var(--surface)) 0%, var(--surface) 75%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.c-cban h1 { margin: 0 0 3px; font-size: 22px; font-weight: 800; letter-spacing: -0.015em; }
.c-cban p { margin: 0; color: var(--text-dim); font-size: 15px; line-height: 1.4; }
.c-cform { display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px; }
.c-field { display: flex; flex-direction: column; gap: 7px; }
.c-flabel { font-size: 15px; font-weight: 700; color: var(--text); display: inline-flex; align-items: baseline; gap: 8px; }
.c-opt { font-size: 13.5px; font-weight: 500; color: var(--text-dim); }
.c-frow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.c-cform input:not([type=checkbox]):not([type=file]), .c-cform textarea {
  width: 100%; padding: 12px 14px; background: var(--bg-2); border: 1px solid rgba(255,255,255,0.09); border-radius: 12px; color: var(--text); font-family: inherit; font-size: 16px; line-height: 1.4; }
.c-cform textarea { min-height: 104px; resize: vertical; }
.c-cform input:focus, .c-cform textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 1px; }
.c-chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.c-optchip { border: 0; border-radius: 999px; padding: 9px 15px; min-height: 42px; background: var(--surface); color: var(--text); font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--c-line); }
.c-optchip.on { background: var(--accent); color: #1a1a1a; box-shadow: none; }
.c-voice { border: 0; border-radius: 999px; padding: 8px 14px; min-height: 44px; background: var(--elev); color: var(--text); font-family: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; flex: none; }
.c-voice.on { background: var(--danger-deep); color: #fff; animation: c-pulse 1.2s ease-in-out infinite; }
@keyframes c-pulse { 50% { box-shadow: 0 0 0 6px rgba(179,38,30,.25); } }
.c-toggle.solo { border: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface); }
.c-tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.c-tray:empty { display: none; }
.c-thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--elev); }
.c-thumb img { width: 100%; height: 100%; object-fit: cover; }
.c-thumb.busy img { opacity: .45; }
.c-thumb.err { box-shadow: inset 0 0 0 2px var(--danger); }
.c-thumb-x { position: absolute; top: 0; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: #fff; font-size: 14px; cursor: pointer; display: grid; place-items: center; }
.c-thumb-x::before { content: ''; position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.7); z-index: -1; }
.c-thumb-x { z-index: 1; isolation: isolate; }
.c-spin { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: c-rot .8s linear infinite; }
@keyframes c-rot { to { transform: rotate(360deg); } }
label.c-btn.off { opacity: .4; pointer-events: none; }
.c-cfoot { position: sticky; bottom: 0; padding: 10px 0 4px; background: linear-gradient(180deg, transparent, var(--bg) 35%); }
body.club-mode .view { scroll-padding-bottom: 90px; scroll-padding-top: 12px; }
.c-thanks { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 40px 6px 10px; }
.c-thanks h1 { margin: 6px 0 0; font-size: 26px; font-weight: 800; }
.c-thanks .c-stack { width: 100%; max-width: 360px; margin-top: 14px; }
.c-thanks-icon { position: relative; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 30px; font-size: 54px;
  background: color-mix(in srgb, var(--c) 30%, var(--surface)); animation: c-pop .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes c-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.c-burst i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 3px; background: var(--c); opacity: 0;
  animation: c-fly .9s ease-out .15s forwards; }
@keyframes c-fly { 0% { transform: translate(-50%,-50%) scale(.6); opacity: 1; } 100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(160deg); opacity: 0; } }
.c-crow { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 9px; border-radius: 16px; background: var(--surface); color: var(--text); }
.c-crow-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.c-crow-m strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-minithumbs { display: flex; gap: 4px; margin-top: 3px; }
.c-minithumbs img { width: 34px; height: 34px; object-fit: cover; border-radius: 7px; }
.c-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-top: 12px; }
.c-pgrid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.c-cteaser { margin-top: 22px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, rgba(242,183,5,.16), var(--surface) 65%); box-shadow: inset 0 0 0 1px rgba(242,183,5,.3); display: flex; flex-direction: column; gap: 12px; }
.c-cquick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.c-cquick a { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--text); font-size: 14px; font-weight: 600; text-align: center; line-height: 1.2; }
.c-cquick a span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--elev); font-size: 24px; }
@media (prefers-reduced-motion: reduce) { .c-thanks-icon, .c-burst i, .c-voice.on, .c-spin { animation: none; } .c-burst i { display: none; } }

/* Community links */
.c-community { display: flex; flex-direction: column; gap: 8px; }
.c-comm { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; background: var(--surface); color: var(--text); }
.c-comm-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.c-comm-i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; font-weight: 800; font-size: 20px; color: #fff; background: var(--elev); }
.c-comm.facebook .c-comm-i { background: #1877F2; font-family: Georgia, 'Times New Roman', serif; font-size: 24px; }
.c-comm.forum .c-comm-i { background: var(--elev); }
.c-comm.instagram .c-comm-i { background: linear-gradient(45deg, #feda75, #fa7e1e 30%, #d62976 60%, #962fbf 85%); font-size: 22px; }
/* Share-the-link block (Invite someone) */
.c-shareblk { display: flex; flex-direction: column; gap: 12px; margin: -4px 0 14px; }
.c-or { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 14px; font-weight: 600; }
.c-or::before, .c-or::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }

.c-morebox { border-radius: 14px; background: var(--surface); padding: 0 14px; }
.c-morebox > summary { list-style: none; cursor: pointer; padding: 13px 0; min-height: 44px; font-weight: 700; color: var(--accent); display: flex; justify-content: space-between; }
.c-morebox > summary::-webkit-details-marker { display: none; }
.c-morebox > summary::after { content: '+'; font-size: 20px; line-height: 1; }
.c-morebox[open] > summary::after { content: '–'; }
.c-morebox[open] { padding-bottom: 14px; }
.c-morebox .c-field + .c-field { margin-top: 14px; }

/* ===================== fixweb (2026-10-11) ===================== */
/* Top bar: visible Back (UIP-5, UX-B1), 44px controls (UIP-10) */
.top-bar .c-back { flex: none; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; min-width: 44px; padding: 0 12px 0 6px;
  border: 0; border-radius: 12px; background: rgba(255,255,255,0.06); color: var(--accent); font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1; cursor: pointer; }
.top-bar .c-back[hidden] { display: none; }
.top-bar .c-back-a { font-size: 28px; line-height: 0.8; margin-top: -3px; }
.top-bar .icon-btn { width: 44px; height: 44px; }
.top-bar-logo { min-width: 32px; }
.top-bar.has-back .title { font-size: 16px; }
.top-bar .title { margin: 0; }
@media (max-width: 360px) { .top-bar.has-back .top-bar-logo { display: none; } }

/* Readable bottom tabs (UIA-11) */
.club-bar .tab { font-size: 12.5px; min-height: 52px; position: relative; }

/* Keyboard focus: visible ring everywhere, incl. photo pickers and links (UIA-08) */
.c-btn:focus-visible, .c-fchip:focus-visible, .c-optchip:focus-visible, .c-seg-b:focus-visible, .c-size:focus-visible,
.c-like:focus-visible, .c-more:focus-visible, .c-link:focus-visible, .c-back:focus-visible, .c-mcard:focus-visible,
a.c-hubrow:focus-visible, a.c-evrow:focus-visible, a.c-post:focus-visible, a.c-crow:focus-visible, a.c-ccard:focus-visible, a.c-prod:focus-visible {
  outline: 3px solid var(--accent-2); outline-offset: 2px; }
.c-filebtn { position: relative; }
.c-filebtn:focus-within { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.c-filebtn input.sr-only { left: 0; top: 0; }
.view [tabindex="-1"]:focus, .c-sheet:focus, .modal:focus, .c-sheet h2[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Links inside text are underlined, not colour-only (UIA-17) */
.c-text a, .c-post-b a, .c-facts dd a, .inline-link, .c-foot a { text-decoration: underline; text-underline-offset: 3px; }
.c-inline-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
.c-nowrap { white-space: nowrap; }
.inline-link { padding: 6px 0; }

/* Error / empty states with a way forward (UX-6, UIP-9, UIA-23) */
.c-err { margin: 28px auto; max-width: 420px; text-align: center; display: flex; flex-direction: column; gap: 16px; }
.c-err > p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text); }
.c-ferr { margin: 2px 0 0; color: var(--danger-text); font-size: 14.5px; font-weight: 600; }
.c-field.invalid input, .c-field.invalid textarea, input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger-text) !important; box-shadow: 0 0 0 1px var(--danger-text); }
.c-field.invalid .c-chipset { box-shadow: 0 0 0 2px var(--danger-text); border-radius: 14px; padding: 4px; }

/* Misc new pieces */
.c-chip.warn { background: rgba(228,71,60,0.16); color: var(--danger-text); }
.c-btn.danger-solid { background: var(--danger-deep); color: #fff; }
.c-qr-wait { color: #0E1E36; font-size: 14px; }
/* Back of the card: QR on the left, who/number/validity on the right (UX-B6) */
.c-mcard-f.back { flex-direction: row; align-items: center; justify-content: center; gap: 14px; padding: 14px 16px; }
.c-mcard-f.back .c-qr { width: auto; height: 100%; max-height: 190px; flex: none; }
.c-mcard-bk { display: flex; flex-direction: column; gap: 4px; min-width: 0; text-align: left; color: #0E1E36; }
.c-mcard-who { font-size: 16px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.c-mcard-bk .c-mcard-n { font-size: 18px; }
.c-mcard-bk .c-mcard-v { font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 400px) { .c-mcard-f.back .c-qr { max-height: 150px; } .c-mcard-f.back { gap: 10px; padding: 12px; } }
.c-toggles.is-off { opacity: .55; }
/* No notifications on this device: the switches must not look ON (R2-8). */
.c-toggles.is-off .c-toggle input:checked + .c-switch { background: var(--elev); }
.c-toggles.is-off .c-toggle input:checked + .c-switch::after { transform: none; }
.c-mrow.busy { opacity: .6; pointer-events: none; }
.view .c-mrow-t { font-size: 16.5px; line-height: 1.3; margin: 0; }
.c-preview .c-post-a a, .c-preview .c-post-a button, .c-preview .c-more { pointer-events: none; }
.c-imgpick label.c-btn.off { opacity: .6; }
.c-ppform { margin: 0; }
.c-renew-h.grace { box-shadow: inset 0 0 0 1px rgba(242,183,5,.55); }
.c-mem-chip.grace { background: var(--danger-deep); color: #fff; box-shadow: none; }
.c-page { min-height: 100%; }

/* Desktop: hero fills the 760px column; hub screens capped too; bars centred (UIA-06/07/19) */
@media (min-width: 720px) {
  .c-ev-hero { margin: 0; width: 100%; height: 300px; border-radius: 16px; }
  .c-ev-hero::after { border-radius: 0 0 16px 16px; }
  body.hub-mode:not(.hub-map) .view { padding-left: max(16px, calc((100% - 900px) / 2)); padding-right: max(16px, calc((100% - 900px) / 2)); }
  body.club-mode .top-bar, body.club-mode .club-bar { padding-left: max(12px, calc((100% - 760px) / 2)); padding-right: max(12px, calc((100% - 760px) / 2)); }
}
@media (hover: hover) and (min-width: 720px) { .c-strip, .c-chips-scroll { scrollbar-width: thin; } .c-strip::-webkit-scrollbar { display: block; height: 8px; } }
/* Bigger centred dialogs on desktop instead of a sheet hanging off the bottom */
@media (min-width: 720px) and (min-height: 560px) { .modal-backdrop { align-items: center; } .modal { border-radius: 20px; } }

/* Short viewports (200% zoom on a laptop, phones in landscape): bars stop
   eating a third of the screen (UIA-10). Tab labels stay for screen readers. */
@media (max-height: 480px) {
  .top-bar { padding-top: calc(var(--safe-top) + 4px); padding-bottom: 4px; }
  .club-bar .tab { min-height: 42px; padding-top: 4px; padding-bottom: 2px; }
  .club-bar .tab > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tab-plus-btn { width: 30px; height: 30px; margin-top: -4px; font-size: 22px; }
  .c-cfoot { position: static; }
}
/* Large text: let crowded rows wrap (UIA-10) */
.c-store-h { flex-wrap: wrap; }
.c-hubrow-m strong { white-space: normal; }

/* Reduced motion also for the forked app layer (UIA-21) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
/* A faded-out error toast kept pointer-events:auto (inline style from app.js
   toast()) and silently blocked taps on whatever sat under it, e.g. Send. */
.toast:not(.show) { pointer-events: none !important; }

/* Round 2 (fix2) */
.c-sheet-h .icon-btn { width: 44px; height: 44px; flex: none; }          /* sheet close: 44px target (R2-10) */
.c-remind-on { margin: 0; font-weight: 700; color: var(--c-ok); }
.c-remind .c-btn.sm { align-self: flex-start; }
.c-size-hint { margin: -4px 0 4px; }
.login-pane .hint { font-size: 14px; line-height: 1.45; }
.login-pane .hint a { text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.c-mcard .r .c-mcard-v { white-space: nowrap; }

/* ---- Sign-in v2: Face ID / password, emailed code, setup, Sign-in & security ---- */
.c-signin { display: flex; flex-direction: column; gap: 14px; }
.c-signin .c-stack { gap: 10px; }
.c-signin-h { margin: 0; font-size: 22px; line-height: 1.25; text-wrap: balance; }
.c-signin .c-ferr { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(228,71,60,.14); color: var(--danger-text); font-size: 15px; line-height: 1.4; }
.c-signin .c-ferr[hidden] { display: none; }
.c-pk-btn { font-size: 17px; min-height: 52px; }
.c-linkbtn { align-self: flex-start; background: none; border: 0; padding: 10px 2px; min-height: 44px; color: var(--accent);
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.c-linkbtn:disabled { color: var(--text-dim); text-decoration: none; cursor: default; }
.c-pw { display: flex; gap: 8px; align-items: stretch; }
.c-pw input { flex: 1; min-width: 0; }
.c-pw-show { flex: none; min-width: 64px; min-height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: transparent;
  color: var(--text); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.c-signin-new, .c-setup-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px;
  background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.c-signin-new span, .c-setup-card > span { color: var(--text-dim); font-size: 15px; line-height: 1.45; }
.c-setup-card strong, .c-signin-new strong { font-size: 17px; }
.c-setup-done { display: flex; flex-direction: column; gap: 10px; }
.c-setup-done[hidden] { display: none; }
.c-ok { margin: 0; color: var(--success); font-weight: 700; font-size: 16px; }
.c-code-in { font-size: 28px !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.c-sec-box { display: flex; flex-direction: column; gap: 10px; }
.c-sec-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.c-sec-row > span:first-child { flex: 1; min-width: 0; font-weight: 600; }
.c-sec-row .c-linkbtn { padding: 6px 2px; min-height: 40px; }
.c-signin > p, .c-signin > .c-sub { margin: 0; }
.c-signin > .c-signin-h { margin-bottom: -6px; }

/* Sign-in v2.1: clear first-time path, steps, no wrapping links */
.c-nowrap { white-space: nowrap; }
.c-break { overflow-wrap: anywhere; }
.c-signin-btn { min-height: 52px; font-size: 17px; }
.c-first { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px;
  background: var(--surface); box-shadow: inset 0 0 0 1px rgba(242,183,5,.35); }
.c-first strong { font-size: 19px; }
.c-first span { color: var(--text-dim); font-size: 15.5px; line-height: 1.45; }
.c-signin .c-or { margin: 6px 0 0; }
.c-steps { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.c-step-dots { display: inline-flex; gap: 6px; }
.c-step-dot { width: 26px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.16); }
.c-step-dot.on { background: var(--accent); }
.c-back-link { padding: 6px 2px; min-height: 40px; text-decoration: none; }
.c-help, .c-terms { margin: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.5; text-align: center; text-wrap: balance; }
.c-terms { font-size: 13.5px; }
.c-help a, .c-terms a { color: var(--accent); }
.c-howto { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--text); font-size: 15.5px; line-height: 1.45; }

/* Setup done: "You're all set" with Continue at the top */
.c-setup { display: flex; flex-direction: column; gap: 14px; }
.c-setup > p { margin: 0; }
.c-success { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 6px 0 2px; }
.c-success .c-sub { margin: 0; font-size: 16px; line-height: 1.45; }
.c-success-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(59,196,122,.16); color: var(--success); font-size: 34px; font-weight: 800; }
.c-setup-extra { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.c-setup-extra .c-sub { font-size: 15px; }
.c-setup-extra .c-setup-card { align-self: stretch; }

/* iOS 26+ home-screen app (viewport-fit=cover + black-translucent status bar):
   100% / 100dvh / 100svh come up short by the top safe-area inset at launch,
   so the bottom bar sat too high until a swipe. 100lvh is the full screen.
   Home-screen app only (class set by club.js); Safari tabs are unaffected. */
@supports (height: 100lvh) {
  html.standalone-app, html.standalone-app body { height: 100lvh; }
  html.standalone-app .app-shell { height: 100lvh; }
}

/* Add the app to your phone */
.c-install-card { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 16px; border-radius: 16px;
  background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.c-install-card.first { box-shadow: inset 0 0 0 1px rgba(242,183,5,.45); }
.c-install-card strong { font-size: 17px; }
.c-install-card > span { color: var(--text-dim); font-size: 15px; line-height: 1.45; }
.c-install-card .c-linkbtn { align-self: center; }
.c-install .c-howto li { line-height: 1.6; }
.c-install-for { margin: 0; color: var(--text-dim); font-size: 14.5px; }
.c-install-for strong { color: var(--text); }
.c-install-switch { justify-content: center; gap: 18px; }
.c-ico { display: inline-flex; vertical-align: -5px; color: var(--accent); }
.c-key { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 6px; text-align: center; font-weight: 800;
  background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }

/* Two-level sign-in: hidden until this phone is confirmed */
.c-verify { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 0 0 14px; border-radius: 14px;
  background: var(--surface); box-shadow: inset 0 0 0 1px rgba(242,183,5,.35); }
.c-verify-i { font-size: 18px; line-height: 1.3; }
.c-verify-m { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.45; }
.c-verify-m .c-linkbtn { padding: 0; }
.c-admin-link { align-self: center; margin-top: -6px; font-size: 12.5px; font-weight: 500; color: var(--text-dim);
  text-decoration: none; opacity: .7; }
