/* =====================================================================
   Naga Bugis member system — the landing page's look on the app shell.
   Anton for display, Manrope for text, cloth-red + logo yellow as accents.
   Light = the landing's "paper" sections; dark = the landing's warm black.
   Everything here overrides assets/css/shopeers.css for the member pages only.
   ===================================================================== */

/* ── 1. Tokens ─────────────────────────────────────────────────────── */
:root, [data-bs-theme="light"] {
  --nb-disp: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --nb-yel: #ffeb00; --nb-yel-2: #f2dc00; --nb-red-hi: #e10600; --nb-ink: #0b0506; --nb-gold: #c9a227;
  --nb-cloth: radial-gradient(120% 140% at 78% 20%, #a8222a 0%, #6b1218 42%, #3e0a0e 78%, #1d0508 100%);
  --nb-ease: cubic-bezier(.22, 1, .36, 1); --nb-ease-io: cubic-bezier(.77, 0, .175, 1);
  --nb-cut: 10px;
  --mb-yel: var(--nb-yel);

  --sp-font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --sp-primary: #c62828; --sp-primary-rgb: 198, 40, 40; --sp-primary-hover: #a81f1f; --sp-primary-active: #8e1a1a;
  --sp-primary-text: #b3201f; --sp-primary-soft: #fbeceb; --sp-primary-soft-2: #f4d3d2; --sp-primary-ring: rgba(198, 40, 40, .2);
  --sp-primary-grad: linear-gradient(180deg, #d0302f 0%, #c62828 60%, #b02222 100%);
  --sp-bar-grad: linear-gradient(180deg, #e0605f 0%, #c62828 100%);
  --sp-premium-grad: var(--nb-cloth);

  --sp-bg: #f4f1ec; --sp-surface: #fffdfa; --sp-surface-2: #f8f5f0; --sp-surface-3: #ede7de; --sp-surface-hover: #f2ede5;
  --sp-border: #e6dfd4; --sp-border-strong: #d5cbbd; --sp-divider: #eee8df; --sp-overlay: rgba(28, 20, 18, .5);
  --sp-text: #1c1917; --sp-text-2: #44403c; --sp-muted: #6b625c; --sp-subtle: #8f857d; --sp-placeholder: #a39890;
  --sp-amber: #b8891c; --sp-amber-soft: #f7efd9;

  --sp-shadow-xs: 0 1px 2px rgba(28, 25, 23, .04);
  --sp-shadow-sm: 0 1px 3px rgba(28, 25, 23, .06), 0 1px 2px rgba(28, 25, 23, .03);
  --sp-shadow-md: 0 14px 30px -12px rgba(60, 20, 20, .18), 0 2px 6px rgba(28, 25, 23, .04);
  --sp-shadow-lg: 0 28px 60px -18px rgba(40, 12, 12, .28), 0 4px 12px rgba(28, 25, 23, .06);
  --sp-shadow-btn: none;

  --bs-primary-rgb: 198, 40, 40; --bs-link-color-rgb: 179, 32, 31;
}
[data-bs-theme="dark"] {
  --sp-primary: #e5393f; --sp-primary-rgb: 229, 57, 63; --sp-primary-hover: #ee5b60; --sp-primary-active: #cf2b31;
  --sp-primary-text: #ff7b7b; --sp-primary-soft: rgba(229, 57, 63, .14); --sp-primary-soft-2: rgba(229, 57, 63, .26); --sp-primary-ring: rgba(229, 57, 63, .34);
  --sp-primary-grad: linear-gradient(180deg, #ee5b60 0%, #e5393f 60%, #cf2b31 100%);
  --sp-bar-grad: linear-gradient(180deg, #ff8f93 0%, #e5393f 100%);

  --sp-bg: #0d0607; --sp-surface: #150b0d; --sp-surface-2: #1b0f12; --sp-surface-3: #2a181c; --sp-surface-hover: #221317;
  --sp-border: #2b1b1f; --sp-border-strong: #3d282d; --sp-divider: #241519; --sp-overlay: rgba(0, 0, 0, .66);
  --sp-text: #f8eeee; --sp-text-2: #e3d3d5; --sp-muted: #bba3a7; --sp-subtle: #8c7579; --sp-placeholder: #7c666a;
  --sp-amber: #e7c75b; --sp-amber-soft: rgba(231, 199, 91, .14);

  --sp-shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --sp-shadow-sm: 0 1px 3px rgba(0, 0, 0, .45);
  --sp-shadow-md: 0 16px 34px -14px rgba(0, 0, 0, .75);
  --sp-shadow-lg: 0 28px 60px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(248, 238, 238, .05);

  --bs-primary-rgb: 229, 57, 63; --bs-link-color-rgb: 255, 123, 123;
}

/* ── 2. Base ───────────────────────────────────────────────────────── */
body { font-feature-settings: normal; letter-spacing: -.003em; }
h1, h2, h3, h4, h5, h6 { font-weight: 800; letter-spacing: -.02em; }
::selection { background: var(--nb-yel); color: var(--nb-ink); }
:focus-visible { outline: 2px solid var(--sp-primary); outline-offset: 2px; }
[data-bs-theme="dark"] :focus-visible { outline-color: var(--nb-yel); }
.min-w-0 { min-width: 0; }

/* the landing's kicker: red / yellow / black flag + spaced caps */
.nb-k { display: inline-flex; align-items: center; gap: 10px; font: 800 .68rem/1.3 var(--sp-font); letter-spacing: .2em; text-transform: uppercase; color: var(--sp-primary-text); }
.nb-k::before { content: ""; width: 31px; height: 9px; flex: none; background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 31 9'%3e%3cpath fill='%23e10600' d='M2.4 0H10L7.6 9H0z'/%3e%3cpath fill='%23ffeb00' d='M12.6 0h7.6l-2.4 9h-7.6z'/%3e%3cpath fill='%230b0506' stroke='%23f8eeee' stroke-opacity='.62' stroke-width='1' stroke-linejoin='round' d='M23.2.5h6.55L27.6 8.5h-6.55z'/%3e%3c/svg%3e") center / contain no-repeat; }
[data-bs-theme="dark"] .nb-k { color: var(--sp-amber); }

/* ── 3. Shell: sidebar ─────────────────────────────────────────────── */
.sp-sidebar { background: var(--sp-surface); }
.sp-brand { padding-left: 18px; }
/* brand: logo + NAGABUGIS lettering sized to each other when open, the logo alone and centred when collapsed */
.sp-brand-link { gap: 12px; }
.sp-logo-img { width: 42px; height: 42px; max-width: none; border-radius: 50%; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .18)); transition: transform .6s var(--nb-ease), width .45s var(--sp-ease), height .45s var(--sp-ease); }
html.sp-mini .sp-brand-link { gap: 0; }
html.sp-mini .sp-logo-img { width: 44px; height: 44px; }
.sp-brand-link:hover .sp-logo-img { transform: rotate(-14deg) scale(1.05); }
/* the NAGABUGIS brush lettering, tinted to the text colour (the name stays in the HTML for screen readers) */
.sp-brand-name { display: block; height: 26px; aspect-ratio: 562 / 134; font-size: 0 !important; color: transparent; background: var(--sp-text);
  -webkit-mask: url("../../naga-bugis-img/brand/nagabugis-wordmark.webp") left center / contain no-repeat; mask: url("../../naga-bugis-img/brand/nagabugis-wordmark.webp") left center / contain no-repeat; }
.sp-brand-name.is-long { max-width: none; }
.sp-brand-toggle { border: 0 !important; }

.sp-nav-cap { font-weight: 800; font-size: .62rem; letter-spacing: .2em; color: var(--sp-subtle); padding-top: 18px; }
.sp-nav-link { position: relative; border-radius: 10px; font-weight: 600; color: var(--sp-text-2); }
.sp-nav-link > iconify-icon { color: var(--sp-muted); }
.sp-nav-link:hover { background: var(--sp-surface-2); }
.sp-nav-link.is-active { background: transparent; color: var(--sp-primary-text); font-weight: 800; }
.sp-nav-ind { border-radius: 10px; }
.sp-nav-link.is-active > iconify-icon { color: var(--sp-primary); }
.sp-nav-ind::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--nb-red-hi), var(--nb-yel)); }
html.sp-mini .sp-nav-ind::before { left: -14px; }

/* "Signed in as" card: cloth red with the dragon crest, like the landing hero */
.sp-signed { isolation: isolate; padding: 16px 14px 14px; border-radius: 16px; background: var(--nb-cloth); box-shadow: 0 16px 30px -16px rgba(107, 18, 24, .8); text-align: left; }
.sp-signed::after { content: ""; position: absolute; z-index: -1; inset: -30% -40% -10% 30%; width: auto; height: auto; border-radius: 0; background: linear-gradient(170deg, rgba(231, 199, 91, .35), rgba(229, 18, 15, .3) 70%);
  -webkit-mask: url("../../naga-bugis-img/jn-crest.webp") center / contain no-repeat; mask: url("../../naga-bugis-img/jn-crest.webp") center / contain no-repeat; opacity: .7; }
.sp-signed .sp-signed-av { margin: 6px 0 0 6px; width: 42px; height: 42px; background: #fff; box-shadow: 0 0 0 2px #fff200, 0 0 0 4px #e5120f, 0 0 0 5.5px #0b0507; }
.sp-signed .sp-signed-av i { box-shadow: 0 0 0 2px #4a0d12; }
.sp-signed .sp-signed-k { margin: 10px 0 1px; font-weight: 800; letter-spacing: .18em; font-size: .58rem; color: rgba(255, 235, 0, .82); }
.sp-signed h6 { font-family: var(--nb-disp); font-weight: 400; font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1.15; margin-bottom: 2px; }
.sp-signed p { color: rgba(255, 255, 255, .7); margin-bottom: 12px; }
.sp-signed .btn-premium { height: 36px; border: 0; border-radius: 0; background: var(--nb-yel); color: var(--nb-ink); box-shadow: none;
  font-weight: 800; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transition: background .2s, color .2s; }
.sp-signed .btn-premium:hover { background: var(--nb-ink); color: var(--nb-yel); filter: none; }
.sp-signed .btn-premium:focus-visible { clip-path: none; outline: 2px solid #fff; }
html.sp-mini .sp-signed .btn-premium { clip-path: none; border-radius: 12px; }

.sp-help { background: var(--sp-surface-2); border-radius: 14px; }
.sp-help-ico, .sp-help-acts a { box-shadow: none; background: var(--sp-surface); color: var(--sp-primary); }
[data-bs-theme="dark"] .sp-help-ico, [data-bs-theme="dark"] .sp-help-acts a { background: var(--sp-surface-3); color: var(--sp-primary-text); }
.sp-help-acts a:hover { background: var(--sp-primary); color: #fff; }

/* ── 4. Shell: top bar (no borders on the round buttons) ───────────── */
.sp-topbar { background: color-mix(in srgb, var(--sp-surface) 84%, transparent); }
.sp-icon-btn, .sp-icon-btn:hover, .sp-icon-btn:focus, .sp-icon-btn.show { border: 0; }
.sp-icon-btn { width: 38px; height: 38px; background: var(--sp-surface-2); color: var(--sp-text-2); font-size: 1.08rem; transition: background .2s, color .2s, transform .15s var(--nb-ease); }
.sp-icon-btn:hover, .sp-icon-btn.show { background: var(--sp-surface-3); color: var(--sp-text); }
.sp-icon-btn:active { transform: scale(.92); }
[data-bs-theme="dark"] .sp-icon-btn { background: var(--sp-surface-3); }
[data-bs-theme="dark"] .sp-icon-btn:hover, [data-bs-theme="dark"] .sp-icon-btn.show { background: #3a2227; }
/* header: dark mode, notifications and the menu button share the "online" pill's colours */
[data-bs-theme="dark"] .sp-topbar .sp-icon-btn { background: var(--sp-surface-2); }
[data-bs-theme="dark"] .sp-topbar .sp-icon-btn:hover, [data-bs-theme="dark"] .sp-topbar .sp-icon-btn.show, [data-bs-theme="dark"] .sp-topbar .sp-icon-btn[aria-expanded="true"] { background: var(--sp-surface-3); }
#spThemeBtn iconify-icon { transition: transform .5s var(--nb-ease); }
#spThemeBtn:hover iconify-icon { transform: rotate(-25deg); }
.sp-dot-badge { top: 8px; right: 9px; width: 8px; height: 8px; background: var(--nb-red-hi); box-shadow: 0 0 0 2px var(--sp-surface-2); }
[data-bs-theme="dark"] .sp-dot-badge { box-shadow: 0 0 0 2px var(--sp-surface-3); }
.sp-search { border: 0; background: var(--sp-surface-2); height: 40px; }
.sp-search:hover { background: var(--sp-surface-3); }
.sp-search:focus-within { box-shadow: 0 0 0 3px var(--sp-primary-ring); }
.sp-search kbd { border: 0; background: var(--sp-surface); color: var(--sp-muted); font-family: var(--sp-font); font-weight: 700; }
[data-bs-theme="dark"] .sp-search { background: var(--sp-surface-2); }
[data-bs-theme="dark"] .sp-search:hover { background: var(--sp-surface-3); }
[data-bs-theme="dark"] .sp-search kbd { background: var(--sp-surface-3); }
/* profile pictures wear the membership card's rings: yellow, red, black (the club logo) */
:root { --nb-rings: 0 0 0 2px #fff200, 0 0 0 4px #e5120f, 0 0 0 5.5px #0b0507; }
.sp-avatar-btn { margin-left: 8px; padding: 6px; border-radius: 50%; }
.sp-avatar-btn img, .sp-avatar-btn .sp-avatar { background: #fff; box-shadow: var(--nb-rings), 0 4px 10px rgba(0, 0, 0, .25); }

/* menus from the top bar: no outline, soft elevation */
.dropdown-menu { border: 0; border-radius: 16px; box-shadow: var(--sp-shadow-lg); background: var(--sp-surface); }
[data-bs-theme="dark"] .dropdown-menu { background: var(--sp-surface-2); box-shadow: 0 28px 60px -18px rgba(0, 0, 0, .9); }
.sp-notif-head { padding: 16px 18px 10px; }
.sp-notif-head b { font-weight: 800; }
.sp-notif-foot { border-top: 0; }
.sp-notif-empty { padding: 26px 20px 30px; text-align: center; }
.sp-notif-empty span { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; color: var(--sp-primary); background: var(--sp-primary-soft); }
.sp-notif-empty b { display: block; font-weight: 800; color: var(--sp-text); }
.sp-notif-empty small { display: block; margin-top: 2px; color: var(--sp-muted); font-size: .78rem; }

/* desktop frame around the page */
@media (min-width: 1200px) {
  /* the frame sits in from the right too, on a strip the colour of the sidebar and top bar */
  .sp-topbar { background: var(--sp-surface); -webkit-backdrop-filter: none; backdrop-filter: none; padding-right: calc(var(--sp-gutter) + var(--nb-frame-r)); }
  .sp-main::before { right: var(--nb-frame-r); border-color: var(--sp-border); border-top-left-radius: 22px; border-top-right-radius: 22px; box-shadow: 0 0 0 40px var(--sp-surface); }
  .sp-content { width: calc(100% - var(--nb-frame-r)); }
  html.sp-mini .sp-content { width: min(1680px, calc(100% - var(--nb-frame-r))); }
}
:root { --nb-frame-r: 14px; }

/* ── 5. Page header ────────────────────────────────────────────────── */
.sp-page-head { margin-bottom: 22px; align-items: flex-end; }
.sp-page-head .nb-k { margin-bottom: 8px; }
.sp-page-title { font: 400 clamp(2rem, 3.4vw, 2.75rem)/.95 var(--nb-disp); letter-spacing: .005em; text-transform: uppercase; }
.sp-page-sub { color: var(--sp-muted); font-size: .92rem; margin: 8px 0 0; max-width: 62ch; }
.sp-page-actions { margin-left: auto; }

/* ── 6. Cards, KPIs, buttons, chips, tables ────────────────────────── */
.sp-card, .card { border-radius: 18px; border-color: var(--sp-border); box-shadow: none; }
[data-bs-theme="dark"] .sp-card, [data-bs-theme="dark"] .card { background: var(--sp-surface); }
.sp-card { padding: 20px 22px; }
.sp-card-head { margin-bottom: 14px; }
.sp-card-title { font-weight: 800; font-size: 1rem; letter-spacing: -.02em; }
.sp-card-sub { font-size: .8rem; }
.sp-table-wrap { margin: 0 -22px; padding: 0 22px; }

.sp-link-arrow { display: inline-flex; align-items: center; gap: 6px; font: 800 .66rem/1 var(--sp-font); letter-spacing: .14em; text-transform: uppercase; color: var(--sp-primary-text); white-space: nowrap; }
.sp-link-arrow iconify-icon { transition: transform .3s var(--nb-ease); }
.sp-link-arrow:hover { color: var(--sp-primary); }
.sp-link-arrow:hover iconify-icon { transform: translateX(4px); }

.sp-kpi { gap: 14px; padding: 18px; transition: transform .25s var(--nb-ease), box-shadow .25s, border-color .25s; }
.sp-kpi:hover { transform: translateY(-2px); box-shadow: var(--sp-shadow-md); border-color: var(--sp-border-strong); }
.sp-kpi-label { font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sp-subtle); }
.sp-kpi-value, .sp-kpi:has(> .sp-ico-tile) .sp-kpi-value { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; }
.sp-kpi-sub { font-size: .76rem; margin-top: 1px; }
.sp-ico-tile { width: 44px; height: 44px; border-radius: 12px; font-size: 1.3rem; }
.sp-ico-tile.amber { background: var(--sp-amber-soft); color: var(--sp-amber); }
.sp-ico-tile.red { background: var(--sp-primary-soft); color: var(--sp-primary); }
@media (max-width: 575.98px) {
  .sp-kpi { padding: 14px; }
  .sp-kpi-value, .sp-kpi:has(> .sp-ico-tile) .sp-kpi-value { font-size: 1.1rem !important; white-space: normal; line-height: 1.15; }
}

/* buttons: the landing's slanted-cut primary with the ink sweep on hover */
.btn { font-weight: 700; }
.btn-primary { border: 0; border-radius: 0 !important; overflow: hidden; clip-path: polygon(0 0, 100% 0, calc(100% - var(--nb-cut)) 100%, 0 100%);
  padding-right: calc(var(--bs-btn-padding-x) + 6px); font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; min-height: 42px; }
.btn-primary::before { background: var(--nb-ink); border-radius: 0; width: 130%; left: -15%; transform: translateX(-101%) skewX(-18deg); transition: transform .5s var(--nb-ease-io); opacity: 1 !important; }
.btn-primary:hover::before { transform: translateX(0) skewX(-18deg); }
.btn-primary:hover { color: var(--nb-yel); }
.btn-primary:focus-visible { clip-path: none; }
.btn-primary:disabled::before { display: none; }
.btn-white, .btn-light, .btn-outline-secondary { box-shadow: none; --bs-btn-border-radius: 10px; }
.btn-white.btn-sm { font-weight: 700; }
[data-bs-theme="dark"] .btn-white { --bs-btn-bg: var(--sp-surface-2); --bs-btn-hover-bg: var(--sp-surface-3); }

.sp-status { font-weight: 700; height: 25px; padding: 0 10px; }
.sp-status.info { color: var(--sp-cyan); background: var(--sp-cyan-soft); }
.form-control, .form-select { border-radius: 10px; border-color: var(--sp-border); background-color: var(--sp-surface); }
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select { background-color: var(--sp-surface-2); }
.form-control:focus, .form-select:focus { border-color: var(--sp-primary); box-shadow: 0 0 0 3px var(--sp-primary-ring); }
.form-label { font-weight: 700; font-size: .8rem; color: var(--sp-text-2); }

.sp-table thead th { font-weight: 800; font-size: .62rem; letter-spacing: .14em; color: var(--sp-subtle); }
.sp-table tbody td { padding-top: 14px; padding-bottom: 14px; }
.sp-table.is-hover tbody tr:hover td { background: var(--sp-surface-2); }
[data-bs-theme="dark"] .sp-table.is-hover tbody tr:hover td { background: var(--sp-surface-hover); }
.sp-table .sp-id { font-weight: 700; color: var(--sp-text-2); }
.sp-table td.nb-lead { white-space: normal; min-width: 260px; }
.nb-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 60ch; margin-top: 2px; }
.sp-table .mb-date { width: 46px; padding: 5px 0 6px; border-radius: 10px; }
.sp-table .mb-date b { font-size: 1.25rem; }

/* phones: table rows become stacked cards (labels come from data-label, set by member.js) */
@media (max-width: 767.98px) {
  .sp-table-wrap { margin: 0; padding: 0; overflow: visible; }
  .sp-table.nb-stack thead { display: none; }
  .sp-table.nb-stack, .sp-table.nb-stack tbody, .sp-table.nb-stack tr, .sp-table.nb-stack td { display: block; width: 100%; }
  .sp-table.nb-stack tr { padding: 12px 0; border-bottom: 1px solid var(--sp-divider); }
  .sp-table.nb-stack tr:last-child { border-bottom: 0; }
  .sp-table.nb-stack tr[hidden] { display: none; }
  .sp-table.nb-stack tbody td { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; padding: 4px 0 !important; border: 0; white-space: normal; text-align: right !important; }
  .sp-table.nb-stack tbody td::before { content: attr(data-label); flex: none; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sp-subtle); text-align: left; padding-top: 2px; }
  .sp-table.nb-stack tbody td.nb-lead { display: block; text-align: left !important; padding-bottom: 6px !important; }
  .sp-table.nb-stack tbody td.nb-lead::before { display: none; }
  .sp-table.is-hover tbody tr:hover td { background: none; }
}

.sp-empty-art { border-radius: 50%; }
.sp-empty h5 { font-weight: 800; }

/* ── 7. Dashboard hero ─────────────────────────────────────────────── */
.mb-hero { position: relative; overflow: hidden; isolation: isolate; border: 0; color: #fff; padding: 0; background: var(--nb-cloth); border-radius: 22px; box-shadow: 0 24px 48px -28px rgba(107, 18, 24, .9); }
.mb-hero::before { content: ""; position: absolute; z-index: -1; inset: -40% -10% -30% 42%; background: linear-gradient(170deg, rgba(231, 199, 91, .32), rgba(229, 18, 15, .28) 70%);
  -webkit-mask: url("../../naga-bugis-img/jn-crest.webp") center / contain no-repeat; mask: url("../../naga-bugis-img/jn-crest.webp") center / contain no-repeat; opacity: .55; pointer-events: none; }
.mb-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.mb-hero-edge { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: min(36%, 300px); opacity: .22; background: url("../../naga-bugis-img/brand/element.webp") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent); mask-image: linear-gradient(to left, #000 30%, transparent); pointer-events: none; }
.mb-hero-body { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 26px; padding: 26px 28px; }
.mb-ava { width: 92px; height: 92px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font: 400 2rem/1 var(--nb-disp); color: #fff; background: rgba(255, 255, 255, .12);
  margin: 8px; box-shadow: 0 0 0 3px #fff200, 0 0 0 6px #e5120f, 0 0 0 8px #0b0507, 0 16px 30px 2px rgba(0, 0, 0, .5); }
.mb-ava img { width: 100%; height: 100%; object-fit: cover; }
.mb-hero .nb-k { color: #e7c75b; }
.mb-hero h1 { color: #fff; margin: 8px 0 0; font: 400 clamp(1.9rem, 3.6vw, 2.9rem)/.95 var(--nb-disp); letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
.mb-hero .mb-sub { margin: 8px 0 0; color: rgba(248, 238, 238, .76); font-size: .92rem; font-weight: 600; }
.mb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; font: 800 .62rem/1.2 var(--sp-font); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 255, 255, .1); color: #fff; clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mb-chip iconify-icon { font-size: .95rem; }
.mb-chip.is-yel { background: var(--nb-yel); color: var(--nb-ink); }
.mb-chip.is-warn { background: #ffad6b; color: var(--nb-ink); }
.mb-chip.is-ok iconify-icon { color: #4fdb8c; }
.mb-hero-body > .min-w-0 { flex: 1 1 300px; }
.mb-rank { margin-left: auto; display: flex; gap: 10px; align-items: stretch; flex: 0 0 auto; }
.mb-rank figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; min-width: 150px; max-width: 190px; padding: 14px 14px 12px;
  background: rgba(13, 6, 7, .38); box-shadow: inset 0 0 0 1px rgba(248, 238, 238, .1); border-radius: 14px; text-align: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mb-rank small { font: 800 .56rem/1 var(--sp-font); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 235, 0, .78); }
.mb-rank img { display: block; max-height: 46px; max-width: 150px; width: auto; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.mb-rank figcaption { font-size: .74rem; font-weight: 700; line-height: 1.3; color: rgba(248, 238, 238, .88); }
@media (max-width: 991.98px) { .mb-rank { margin-left: 0; width: 100%; } .mb-rank figure { flex: 1; max-width: none; min-width: 0; } }
@media (max-width: 575.98px) {
  .mb-hero-body { padding: 22px 18px; gap: 16px; }
  .mb-ava { width: 68px; height: 68px; font-size: 1.5rem; }
  .mb-rank img { max-height: 34px; max-width: 120px; }
}

/* the membership card in the dashboard banner (tap for 3D) */
.mb-hero-card { flex: 0 0 auto; width: min(100%, 340px); margin-left: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mb-hero-card .nbc-open { width: 100%; }
.mb-hero-card .nbc-f { box-shadow: 0 22px 40px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.mb-hero-card-hint { display: inline-flex; align-items: center; gap: 6px; font: 800 .6rem/1 var(--sp-font); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 235, 0, .8); }
@media (max-width: 991.98px) { .mb-hero-card { margin: 4px auto 0; width: min(100%, 380px); } }

/* "Next up": the next session as a feature card with the category team band (as in the app) */
.mb-next { position: relative; display: flex; flex-direction: column; height: 100%; padding: 0; overflow: hidden; }
.mb-next.is-today { border-color: color-mix(in srgb, var(--sp-primary) 40%, var(--sp-border)); }
.mb-next-top { display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px 18px; }
.mb-next .mb-date { width: 64px; padding: 9px 0 10px; }
.mb-next .mb-date b { font-size: 1.9rem; }
.mb-next-when { font: 800 .64rem/1.2 var(--sp-font); letter-spacing: .16em; text-transform: uppercase; color: var(--sp-muted); }
.mb-next.is-today .mb-next-when { color: var(--sp-primary-text); }
.mb-next h3 { margin: 6px 0 0; font: 400 1.35rem/1.08 var(--nb-disp); letter-spacing: .01em; text-transform: uppercase; }
.mb-next-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: .82rem; color: var(--sp-muted); font-weight: 600; }
.mb-next-meta span { display: inline-flex; align-items: center; gap: 5px; }
.mb-next-meta iconify-icon { color: var(--sp-primary); font-size: 1rem; }
.mb-band { position: relative; margin-top: auto; height: 92px; border-top: 1px solid var(--sp-divider); background: linear-gradient(90deg, color-mix(in srgb, var(--tone, var(--sp-primary)) 22%, transparent), color-mix(in srgb, var(--tone, var(--sp-primary)) 6%, transparent) 60%, transparent); }
[data-bs-theme="dark"] .mb-band { background: linear-gradient(90deg, color-mix(in srgb, var(--tone, var(--sp-primary)) 34%, transparent), color-mix(in srgb, var(--tone, var(--sp-primary)) 8%, transparent) 60%, transparent); }
.mb-band.is-seni { --tone: var(--nb-gold); }
.mb-band img { position: absolute; left: 6px; bottom: 0; height: 112px; width: auto; -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); }
.mb-band-txt { position: absolute; left: 140px; right: 18px; top: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mb-band-txt small { display: block; font: 800 .58rem/1 var(--sp-font); letter-spacing: .2em; text-transform: uppercase; color: var(--sp-subtle); margin-bottom: 5px; }
.mb-band-txt b { font: 400 1.1rem/1 var(--nb-disp); letter-spacing: .02em; text-transform: uppercase; }
.mb-band-txt a { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sp-surface); color: var(--sp-text-2); transition: background .2s, color .2s; }
.mb-band-txt a:hover { background: var(--sp-primary); color: #fff; }
.mb-next .sp-empty { margin: auto 0; }

/* ── 8. Lists, notes, picture cards, people ────────────────────────── */
.mb-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: #fff4e0; color: #5a3a00; margin-bottom: 18px; font-size: .88rem; }
[data-bs-theme="dark"] .mb-note { background: rgba(255, 173, 107, .1); color: #ffd8b0; }
.mb-note iconify-icon { font-size: 22px; flex: none; margin-top: 1px; color: #e07b1f; }
[data-bs-theme="dark"] .mb-note iconify-icon { color: #ffad6b; }
.mb-note b { display: block; font-weight: 800; }
.mb-note a { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }

.mb-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--sp-divider); }
.mb-row:first-child { border-top: 0; padding-top: 2px; }
.mb-row:last-child { padding-bottom: 0; }
a.mb-row { color: inherit; margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 12px; transition: background .15s; }
a.mb-row:hover { background: var(--sp-surface-2); color: inherit; }
a.mb-row + a.mb-row { border-top-color: transparent; }
.mb-date { flex: none; width: 52px; text-align: center; border-radius: 12px; padding: 6px 0 7px; background: var(--sp-primary-soft); color: var(--sp-primary-text); line-height: 1; }
.mb-date b { display: block; font: 400 1.5rem/1 var(--nb-disp); letter-spacing: .01em; }
.mb-date small { display: block; margin-top: 3px; font-size: .6rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.mb-date.is-today { background: var(--sp-primary); color: #fff; box-shadow: 0 8px 16px -8px rgba(var(--sp-primary-rgb), .8); }
.mb-date.is-past { background: var(--sp-surface-3); color: var(--sp-muted); }
.mb-row .t { font-weight: 800; line-height: 1.3; font-size: .9rem; }
.mb-row .s { font-size: .8rem; color: var(--sp-muted); margin-top: 1px; }
.mb-row .mb-go { flex: none; color: var(--sp-subtle); font-size: 1.1rem; transition: transform .25s var(--nb-ease), color .2s; }
a.mb-row:hover .mb-go { color: var(--sp-primary); transform: translateX(3px); }

/* the club's pictures carry a white band above and below the photo: cover the frame and zoom in until it is gone */
.mb-card-img, .mb-card-img.is-contain { aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 49%; width: 100%; background: #1d0508; display: block; transform: scale(1.55); transition: transform .6s var(--nb-ease); }
.mb-card-pic { position: relative; overflow: hidden; background: url("../../naga-bugis-img/babydragon/images/logo-160.webp") center / 64px no-repeat, var(--nb-cloth); }
.mb-card-img.is-broken { visibility: hidden; }
.mb-card-pic .mb-card-date { z-index: 1; position: absolute; left: 12px; top: 12px; padding: 5px 10px 5px 9px; font: 800 .6rem/1.2 var(--sp-font); letter-spacing: .12em; text-transform: uppercase; background: var(--nb-yel); color: var(--nb-ink); clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.mb-card { display: flex; flex-direction: column; height: 100%; padding: 0; overflow: hidden; transition: transform .3s var(--nb-ease), box-shadow .3s, border-color .3s; }
.mb-card:hover { transform: translateY(-3px); box-shadow: var(--sp-shadow-md); border-color: var(--sp-border-strong); }
.mb-card:hover .mb-card-img { transform: scale(1.62); }
.mb-card .mb-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mb-card h3 { margin: 0; font-size: 1rem; font-weight: 800; line-height: 1.3; letter-spacing: -.015em; }
.mb-card p { margin: 0; font-size: .84rem; color: var(--sp-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mb-card .btn { margin-top: auto; align-self: flex-start; }
.mb-thumb { width: 52px; height: 52px; flex: none; border-radius: 12px; overflow: hidden; background: #1d0508; }
.mb-thumb.is-empty { background: url("../../naga-bugis-img/babydragon/images/logo-64.png") center / 30px no-repeat, var(--nb-cloth, #1d0508); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.mb-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 49%; transform: scale(2.3); }

.mb-mini { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-size: .76rem; font-weight: 800; color: var(--sp-primary-text); background: var(--sp-primary-soft); }
.mb-mini img { width: 100%; height: 100%; object-fit: cover; }
.mb-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 0 0 16px; }
.sp-card > .mb-filters:first-child { margin-top: -2px; }
.mb-filters .sp-input-icon { flex: 1 1 240px; min-width: 200px; }
.mb-filters .form-select { width: auto; }
.mb-search-solo { max-width: 420px; margin-bottom: 18px; }
.mb-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -22px -20px; padding: 14px 22px; border-top: 1px solid var(--sp-divider); font-size: .82rem; color: var(--sp-muted); }
.mb-kv { display: grid; grid-template-columns: 150px 1fr; gap: 0; margin: 0; }
.mb-kv dt, .mb-kv dd { padding: 11px 0; border-top: 1px solid var(--sp-divider); }
.mb-kv dt:first-of-type, .mb-kv dd:first-of-type { border-top: 0; padding-top: 2px; }
.mb-kv dt { color: var(--sp-subtle); font-weight: 800; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; padding-top: 14px; }
.mb-kv dt:first-of-type { padding-top: 5px; }
.mb-kv dd { margin: 0; font-weight: 700; word-break: break-word; }
@media (max-width: 575.98px) { .mb-kv { grid-template-columns: 1fr; } .mb-kv dd { border-top: 0; padding-top: 2px; } .mb-kv dt { padding-top: 12px; } }
.mb-seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--sp-surface-2); gap: 2px; }
[data-bs-theme="dark"] .mb-seg { background: var(--sp-surface-3); }
.mb-seg button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: .8rem; color: var(--sp-muted); transition: background .2s, color .2s; }
.mb-seg button:hover { color: var(--sp-text); }
.mb-seg button.is-on { background: var(--sp-surface); color: var(--sp-text); box-shadow: var(--sp-shadow-sm); }
[data-bs-theme="dark"] .mb-seg button.is-on { background: var(--sp-surface-hover); }

/* profile card on Account */
.mb-id { display: flex; align-items: center; gap: 16px; }
.mb-id .mb-ava { width: 64px; height: 64px; margin: 6px; font-size: 1.4rem; box-shadow: 0 0 0 2.5px #fff200, 0 0 0 5px #e5120f, 0 0 0 7px #0b0507; background: #fff; }
.mb-id h3 { margin: 0; font: 400 1.4rem/1 var(--nb-disp); text-transform: uppercase; letter-spacing: .01em; }
.mb-id p { margin: 4px 0 0; font-size: .82rem; color: var(--sp-muted); }

.mb-skel { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--sp-surface-3), var(--sp-surface-2), var(--sp-surface-3)); background-size: 200% 100%; animation: mbSk 1.2s linear infinite; }
@keyframes mbSk { to { background-position: -200% 0; } }

/* gentle rise when a page is drawn */
.mb-in > * { animation: mbIn .5s var(--nb-ease) both; }
.mb-in > *:nth-child(2) { animation-delay: .04s; } .mb-in > *:nth-child(3) { animation-delay: .08s; } .mb-in > *:nth-child(4) { animation-delay: .12s; } .mb-in > *:nth-child(5) { animation-delay: .16s; }
@keyframes mbIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Membership card (the app's membership_card.dart, as on the landing page): 1.5 : 1, sized in app pixels at 360 wide (--u) ── */
.nbc-open { display: block; width: min(100%, 420px); padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; border-radius: 6%; transition: transform .5s var(--nb-ease); }
@media (hover: hover) and (pointer: fine) { .nbc-open:hover { transform: translateY(-4px) rotate(-.6deg); } }
.nbc-open:active { transform: scale(.985); transition-duration: .12s; }
.nbc-open:focus-visible { outline: 2px solid var(--nb-yel); outline-offset: 6px; }
.nbc { --u: calc(100cqw / 360); display: block; position: relative; width: 100%; aspect-ratio: 1.5; container-type: inline-size; color: #fff; font-family: var(--sp-font); line-height: 1.2; }
.nbc-f { position: absolute; inset: 0; overflow: hidden; border-radius: calc(var(--u) * 22); background: url("../../naga-bugis-img/weave.webp") center / cover, linear-gradient(to bottom right, #9a1c22, #6b1218 55%, #3e0a0e); box-shadow: 0 calc(var(--u) * 22) calc(var(--u) * 44) calc(var(--u) * -14) rgba(0,0,0,.65); }
.nbc-f::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom left, rgba(255,255,255,.13), transparent 45%, rgba(0,0,0,.22)); }
.nbc-edge { position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.nbc-f, .nbc-p { display: block; }
.nbc-p { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(var(--u) * 14) calc(var(--u) * 14) calc(var(--u) * 14) calc(var(--u) * 16); }
.nbc-top { display: flex; align-items: center; gap: calc(var(--u) * 8); }
.nbc-top img { width: calc(var(--u) * 28); height: calc(var(--u) * 28); flex: none; }
.nbc-top > span { flex: 1; min-width: 0; }
.nbc-top b { display: block; font-size: calc(var(--u) * 11); font-weight: 800; letter-spacing: calc(var(--u) * 1); line-height: 1.1; }
.nbc-top small { display: block; margin-top: calc(var(--u) * 2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: calc(var(--u) * 9.5); font-weight: 600; color: rgba(255,255,255,.75); }
.nbc-top iconify-icon { width: calc(var(--u) * 20); height: calc(var(--u) * 20); flex: none; color: rgba(255,255,255,.8); }
.nbc-mid { flex: 1; min-height: 0; display: flex; align-items: center; gap: calc(var(--u) * 10); margin-top: calc(var(--u) * 8); }
.nbc-who { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: calc(var(--u) * 4); padding-block: calc(var(--u) * 4); }
.nbc-nm { display: block; }
.nbc-nm b { display: block; font-size: calc(var(--u) * 18); font-weight: 800; line-height: 1.2; text-shadow: 0 0 calc(var(--u) * 6) rgba(0,0,0,.25); }
.nbc-nm span { display: block; margin-top: calc(var(--u) * 4); font-size: calc(var(--u) * 11.5); font-weight: 600; color: rgba(255,255,255,.9); text-shadow: 0 0 calc(var(--u) * 6) rgba(0,0,0,.25); }
.nbc-id { align-self: flex-start; padding: calc(var(--u) * 4) calc(var(--u) * 10); border-radius: calc(var(--u) * 8); background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); font-size: calc(var(--u) * 13); font-weight: 800; letter-spacing: calc(var(--u) * 1.3); }
.nbc-ph { position: relative; width: calc(var(--u) * 96); height: calc(var(--u) * 96); flex: none; display: grid; place-items: center; }
.nbc-ini { display: grid; place-items: center; overflow: hidden; width: calc(var(--u) * 81.4); height: calc(var(--u) * 81.4); border-radius: 50%; background: #7f1d1d; font-size: calc(var(--u) * 34.6); font-weight: 800; color: #fff; box-shadow: 0 0 0 calc(var(--u) * 3.07) #fff200, 0 0 0 calc(var(--u) * 5.76) #e5120f, 0 0 0 calc(var(--u) * 7.3) #0b0507, 0 calc(var(--u) * 7) calc(var(--u) * 16) calc(var(--u) * 7.3) rgba(0,0,0,.38); }
.nbc-ini img { width: 100%; height: 100%; object-fit: cover; object-position: top; background: #fff; }
.nbc-ph > img { width: calc(var(--u) * 81.4); height: calc(var(--u) * 81.4); border-radius: 50%; object-fit: cover; object-position: top; background: #fff; box-shadow: 0 0 0 calc(var(--u) * 3.07) #fff200, 0 0 0 calc(var(--u) * 5.76) #e5120f, 0 0 0 calc(var(--u) * 7.3) #0b0507, 0 calc(var(--u) * 7) calc(var(--u) * 16) calc(var(--u) * 7.3) rgba(0,0,0,.38); }
.nbc-st { position: absolute; left: 50%; bottom: calc(var(--u) * -6); transform: translateX(-50%); display: inline-flex; align-items: center; gap: calc(var(--u) * 5); padding: calc(var(--u) * 3) calc(var(--u) * 8); border-radius: 99px; background: rgba(0,0,0,.72); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); font-size: calc(var(--u) * 9); font-weight: 800; letter-spacing: calc(var(--u) * .7); line-height: 1.1; white-space: nowrap; }
.nbc-st i { width: calc(var(--u) * 6); height: calc(var(--u) * 6); border-radius: 50%; background: #4ade80; }
.nbc-st.is-off i { background: #fbbf24; }
.nbc-rk { display: flex; gap: calc(var(--u) * 12); margin-top: calc(var(--u) * 10); }
.nbc-rk > * { flex: 1; min-width: 0; }
.nbc-rk > * > span { display: block; font-size: calc(var(--u) * 8.5); font-weight: 700; letter-spacing: calc(var(--u) * .8); text-transform: uppercase; color: rgba(255,255,255,.6); }
.nbc-rk img { display: block; height: calc(var(--u) * 22); width: auto; max-width: 100%; margin: calc(var(--u) * 3) 0; object-fit: contain; object-position: left; }
.nbc-rk b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: calc(var(--u) * 10); font-weight: 700; line-height: 1.15; }
.nbc-bp { position: absolute; inset: 0; display: flex; flex-direction: column; }
.nbc-strip { height: calc(var(--u) * 30); margin-top: calc(var(--u) * 16); flex: none; background: rgba(0,0,0,.55); }
.nbc-brow { display: flex; gap: calc(var(--u) * 14); padding: calc(var(--u) * 12) calc(var(--u) * 16) 0; }
.nbc-qr { width: calc(var(--u) * 92); height: calc(var(--u) * 92); flex: none; padding: calc(var(--u) * 7); border-radius: calc(var(--u) * 12); background: #fff; }
.nbc-qr canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.nbc-facts { flex: 1; min-width: 0; height: calc(var(--u) * 92); display: flex; flex-direction: column; justify-content: space-between; }
.nbc-facts span { display: block; font-size: calc(var(--u) * 9.5); font-weight: 700; letter-spacing: calc(var(--u) * .7); text-transform: uppercase; color: rgba(255,255,255,.6); }
.nbc-facts b { display: block; margin-top: calc(var(--u) * 2); font-size: calc(var(--u) * 12); font-weight: 700; line-height: 1.25; }
.nbc-reg { margin-top: auto; padding: 0 calc(var(--u) * 16) calc(var(--u) * 12); font-size: calc(var(--u) * 8.5); font-weight: 700; letter-spacing: calc(var(--u) * .3); line-height: 1.35; color: rgba(255,255,255,.8); }
@supports not (width: 1cqw) { .nbc { --u: calc(min(420px, 100vw - 84px) / 360); } .nbc-3d { --u: calc(min(400px, 100vw - 40px) / 360); } }
.mcs { position: fixed; inset: 0; z-index: var(--sp-z-modal); display: grid; place-items: center; }
.mcs[hidden] { display: none; }
.mcs-bg { position: absolute; inset: 0; background: rgba(0,0,0,.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity .26s; }
.mcs-c { position: relative; width: min(100%, 440px); padding: 0 20px; display: flex; flex-direction: column; align-items: center; opacity: 0; transform: translateY(14px); transition: opacity .26s, transform .5s var(--nb-ease); }
.mcs.is-on .mcs-bg, .mcs.is-on .mcs-c { opacity: 1; transform: none; }
.mcs-hit { width: 100%; perspective: 909px; touch-action: none; cursor: grab; border-radius: 6%; -webkit-tap-highlight-color: transparent; }
.mcs-hit:active { cursor: grabbing; }
.mcs-hit:focus-visible { outline: 2px solid var(--nb-yel); outline-offset: 10px; }
.nbc-3d { transform-style: preserve-3d; transform: scale(var(--s, .88)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.nbc-3d .nbc-f { -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 calc(var(--u) * 40) calc(var(--u) * 70) calc(var(--u) * -20) rgba(0,0,0,.75); }
.nbc-3d .nbc-back { transform: rotateY(180deg); }
.nbc-3d [style*="--z"] { transform: translate(calc(var(--dx, 0) * var(--z) * var(--u)), calc(var(--dy, 0) * var(--z) * var(--u))); }
.nbc-3d .nbc-edge { background: linear-gradient(125deg, transparent 20%, rgba(255,255,255,.07) 50%, transparent 80%) calc(100% - var(--lx, 30%)) calc(100% - var(--ly, 20%)) / 200% 200% no-repeat; box-shadow: inset calc(var(--bx, 0) * -3 * var(--u)) calc(var(--by, 0) * -3 * var(--u)) calc(var(--u) * 4) rgba(255,255,255,.2), inset calc(var(--bx, 0) * 3 * var(--u)) calc(var(--by, 0) * 3 * var(--u)) calc(var(--u) * 4) rgba(0,0,0,.28); }
.nbc-3d .nbc-edge::before, .nbc-3d .nbc-edge::after { content: ""; position: absolute; inset: 0; border-radius: inherit; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.nbc-3d .nbc-edge::before { padding: calc(var(--u) * 1.6); background: radial-gradient(circle calc(var(--u) * 162) at var(--fx, 70%) var(--fy, 80%), rgba(255,255,255,.3), transparent), radial-gradient(circle at var(--lx, 30%) var(--ly, 20%), rgba(255,255,255,.95), rgba(255,255,255,.5) 28%, rgba(255,255,255,.14) 62%, rgba(255,255,255,.06)); }
.nbc-3d .nbc-edge::after { padding: calc(var(--u) * 4); background: radial-gradient(circle calc(var(--u) * 108) at var(--lx, 30%) var(--ly, 20%), rgba(255,255,255,.85), rgba(255,255,255,.3) 40%, transparent); opacity: .8; }
.mcs-hint { margin-top: 28px; font: 600 .8rem/1.2 var(--sp-font); color: rgba(255,255,255,.7); }
.mcs-flip { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 99px; background: none; color: #fff; font: 700 .9rem/1 var(--sp-font); cursor: pointer; transition: background-color .2s; }
.mcs-flip:hover, .mcs-flip:focus-visible { background: rgba(255,255,255,.1); }
.mcs-flip iconify-icon { width: 20px; height: 20px; }
.mcs-x { position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; transition: background-color .2s; }

.nbc-top iconify-icon, .mcs-flip iconify-icon, .mcs-x iconify-icon { font-size: 1.3rem; }
.nbc-top iconify-icon { font-size: calc(var(--u) * 20); }
.mcs-x iconify-icon { font-size: 26px; }
.mcs-flip iconify-icon { font-size: 20px; }

/* Profile: the card on a stage, with the app's detail rows */
.mb-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 22px 22px; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 55% at 50% 38%, rgba(198, 40, 40, .14), transparent 70%), radial-gradient(circle, color-mix(in srgb, var(--sp-text) 9%, transparent) .9px, transparent 1.3px) 6px 6px / 18px 18px, var(--sp-surface); }
.mb-stage .nbc-open { width: min(100%, 420px); }
.mb-stage-hint { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: .8rem; font-weight: 700; color: var(--sp-muted); }
.mb-stage-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mb-list { margin: -4px 0 -6px; }
.mb-li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--sp-divider); }
.mb-list .mb-li:first-child { border-top: 0; }
.mb-li small { display: block; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sp-subtle); }
.mb-li b { display: block; font-weight: 700; word-break: break-word; }
.mb-li .sp-icon-btn { opacity: .7; }
.mb-li:hover .sp-icon-btn { opacity: 1; }
#mbTheme button { display: inline-flex; align-items: center; gap: 6px; }


/* ── Posters gallery ── */
.gx-tag { display: inline-flex; align-self: flex-start; padding: 3px 9px 3px 7px; font: 800 .56rem/1.2 var(--sp-font); letter-spacing: .14em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%); background: var(--sp-primary-soft); color: var(--sp-primary-text); }
.gx-tag.is-seni { background: var(--sp-amber-soft); color: var(--sp-amber); }
.gx-tag.is-senjata { background: var(--sp-surface-3); color: var(--sp-text-2); }
.gx-tag.is-club { background: var(--sp-cyan-soft); color: var(--sp-cyan); }

/* tile: the poster, a zoom badge on hover, caption under */
.gx-tile { display: flex; flex-direction: column; gap: 10px; width: 100%; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: zoom-in; }
.gx-tile[hidden], .gx-group[hidden] { display: none; }
.gx-pic { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: var(--sp-surface-3); box-shadow: 0 0 0 1px var(--sp-border), 0 1px 2px rgba(0, 0, 0, .04); transition: box-shadow .35s var(--nb-ease), transform .35s var(--nb-ease); }
.gx-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--nb-ease), filter .4s; }
.gx-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(13, 6, 7, .45)); opacity: 0; transition: opacity .35s; }
.gx-zoom { position: absolute; z-index: 1; right: 10px; bottom: 10px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--nb-yel); color: var(--nb-ink); font-size: 1.05rem; opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .3s, transform .35s var(--nb-ease); }
.gx-tile:hover .gx-pic { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--sp-border-strong), var(--sp-shadow-md); }
.gx-tile:hover .gx-pic img { transform: scale(1.05); }
.gx-tile:hover .gx-pic::after, .gx-tile:hover .gx-zoom { opacity: 1; transform: none; }
.gx-tile:focus-visible { outline: 0; }
.gx-tile:focus-visible .gx-pic { box-shadow: 0 0 0 3px var(--sp-primary); }
.gx-cap { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 0 2px; }
.gx-cap b { font-weight: 800; font-size: .88rem; line-height: 1.3; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gx-cap small { font-size: .76rem; color: var(--sp-muted); font-weight: 600; }

/* "This month" spread: a big title on cloth red, the lead poster, the rest beside it */
.gx-spread { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.6fr); gap: 28px; align-items: center; padding: 28px; margin-bottom: 22px; border-radius: 22px; color: #fff; background: var(--nb-cloth); box-shadow: 0 24px 48px -28px rgba(107, 18, 24, .9); }
.gx-spread::before { content: ""; position: absolute; z-index: -1; inset: -30% 40% -20% -20%; background: linear-gradient(170deg, rgba(231, 199, 91, .3), rgba(229, 18, 15, .26) 70%); -webkit-mask: url("../../naga-bugis-img/jn-crest.webp") center / contain no-repeat; mask: url("../../naga-bugis-img/jn-crest.webp") center / contain no-repeat; opacity: .5; }
.gx-spread .nb-k { color: #e7c75b; }
.gx-spread h2 { margin: 14px 0 0; color: #fff; font: 400 clamp(3rem, 6.5vw, 5.6rem)/.86 var(--nb-disp); text-transform: uppercase; letter-spacing: .005em; }
.gx-spread h2 span { display: block; }
.gx-spread h2 em { display: block; font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--nb-yel); }
.gx-spread p { margin: 16px 0 20px; max-width: 34ch; color: rgba(248, 238, 238, .78); font-size: .9rem; font-weight: 600; }
.gx-spread .btn-primary { background: var(--nb-yel); color: var(--nb-ink); }
.gx-spread .btn-primary:hover { color: var(--nb-yel); }
.gx-spread-art { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-auto-rows: 1fr; gap: 14px; }
.gx-spread-art .is-lead { grid-row: span 2; }
.gx-spread .gx-cap { display: none; }
.gx-spread .gx-pic { border-radius: 14px; box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08); }
.gx-spread .gx-tile { height: 100%; }
.gx-spread .is-lead .gx-pic { height: 100%; }
@media (max-width: 1199.98px) { .gx-spread { grid-template-columns: 1fr; } }
/* phone: the lead poster full width, the three others in one row under it; rows as tall as their own posters
   (equal 1fr rows made every row as tall as the lead and left gaps) */
@media (max-width: 575.98px) { .gx-spread { padding: 22px 18px; } .gx-spread-art { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: 10px; } .gx-spread-art .is-lead { grid-column: 1 / -1; grid-row: auto; } .gx-spread-art .gx-tile:not(.is-lead) { height: auto; } .gx-spread-art .gx-tile:not(.is-lead) .gx-pic { border-radius: 10px; } }

/* filter chips, sticky under the top bar */
.gx-bar { position: sticky; top: calc(var(--sp-topbar-h) + 8px); z-index: 5; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px; margin: 0 -8px 10px; border-radius: 16px; background: color-mix(in srgb, var(--sp-bg) 82%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.gx-bar::-webkit-scrollbar { display: none; }
.gx-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 14px; border: 0; border-radius: 999px; background: var(--sp-surface); color: var(--sp-text-2); font-weight: 700; font-size: .82rem; box-shadow: inset 0 0 0 1px var(--sp-border); transition: background .2s, color .2s, box-shadow .2s; }
.gx-chip span { min-width: 24px; height: 24px; padding: 0 7px; display: grid; place-items: center; border-radius: 999px; background: var(--sp-surface-2); color: var(--sp-muted); font-size: .7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.gx-chip:hover { box-shadow: inset 0 0 0 1px var(--sp-border-strong); color: var(--sp-text); }
.gx-chip.is-on { background: var(--sp-text); color: var(--sp-surface); box-shadow: none; }
.gx-chip.is-on span { background: var(--nb-yel); color: var(--nb-ink); }

/* month sections with a big outlined number */
.gx-group { padding: 26px 0 6px; border-top: 1px solid var(--sp-divider); }
.gx-group:first-child { border-top: 0; padding-top: 10px; }
.gx-group-h { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.gx-num { flex: none; min-width: 64px; font: 400 3.4rem/.8 var(--nb-disp); color: transparent; -webkit-text-stroke: 1.5px var(--sp-primary); letter-spacing: .01em; }
.gx-num.is-ig { -webkit-text-stroke: 0; color: var(--sp-primary); font-size: 2.6rem; display: grid; place-items: center; }
.gx-group-h h3 { margin: 0; font: 400 1.7rem/1 var(--nb-disp); text-transform: uppercase; letter-spacing: .01em; }
.gx-group-h small { display: block; margin-top: 4px; font-size: .78rem; font-weight: 700; color: var(--sp-muted); }
.gx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 18px; }
.gx-grid .is-feat { grid-column: span 2; grid-row: span 2; }
.gx-grid .is-feat .gx-cap b { font-size: 1rem; }
@media (max-width: 575.98px) { .gx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } .gx-num { min-width: 48px; font-size: 2.6rem; } .gx-group-h h3 { font-size: 1.4rem; } }
/* phone, two columns: the first poster is shown big only when the rest fill whole rows (an odd count in all);
   with an even count every poster is the same size, so no row is left half empty */
@media (max-width: 575.98px) { .gx-grid > .is-feat:first-child:nth-last-child(even) { grid-column: auto; grid-row: auto; } .gx-grid > .is-feat:first-child:nth-last-child(even) .gx-cap b { font-size: .88rem; } }

/* Instagram */
.gx-ig { margin-top: 18px; padding: 24px; border-radius: 22px; background: var(--sp-surface); box-shadow: inset 0 0 0 1px var(--sp-border); }
.gx-ig-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(150px, 1fr); gap: 12px; }
.gx-gram { position: relative; overflow: hidden; border-radius: 14px; background: #1d0508; color: #fff; isolation: isolate; aspect-ratio: 1; }
.gx-gram.is-big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gx-gram img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--nb-ease); }
.gx-gram::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(13, 6, 7, .85)); transition: opacity .3s; }
.gx-gram:hover { color: #fff; }
.gx-gram:hover img { transform: scale(1.06); }
.gx-gram-ico { position: absolute; z-index: 1; top: 10px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(13, 6, 7, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 1rem; }
.gx-gram-cap { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 11px; }
.gx-gram-cap b { display: block; font-weight: 800; font-size: .84rem; line-height: 1.25; }
.gx-gram.is-big .gx-gram-cap b { font: 400 1.5rem/1 var(--nb-disp); text-transform: uppercase; }
.gx-gram-cap small { display: block; margin-top: 3px; font-size: .7rem; color: rgba(248, 238, 238, .75); font-weight: 600; }
.gx-gram.is-follow { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 16px; background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 55%, #6228d7 100%); }
.gx-gram.is-follow::after { display: none; }
.gx-gram.is-follow iconify-icon { position: absolute; top: 14px; left: 14px; font-size: 1.8rem; }
.gx-gram.is-follow b { font: 400 1.35rem/1 var(--nb-disp); text-transform: uppercase; }
.gx-gram.is-follow small { font-weight: 700; font-size: .72rem; opacity: .85; }
@media (max-width: 767.98px) { .gx-ig { padding: 18px 14px; } .gx-ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; } }

/* viewer: the poster over a blurred copy of itself, a filmstrip below */
.gx-lb { position: fixed; inset: 0; z-index: var(--sp-z-modal); display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: 14px 76px 16px; opacity: 0; transition: opacity .22s; color: #f8eeee; }
.gx-lb[hidden] { display: none; }
.gx-lb.is-on { opacity: 1; }
.gx-lb-amb { position: absolute; inset: -10%; z-index: -2; background: #0d0607 center / cover no-repeat; filter: blur(60px) saturate(1.4) brightness(.45); transform: scale(1.1); transition: background-image .4s; }
.gx-lb-bg { position: absolute; inset: 0; z-index: -1; background: rgba(8, 3, 4, .55); }
.gx-lb-top { justify-self: stretch; display: flex; align-items: center; justify-content: space-between; margin: 0 -60px; }
.gx-lb-n { font: 400 1.1rem/1 var(--nb-disp); letter-spacing: .08em; color: rgba(248, 238, 238, .8); }
.gx-lb-acts { display: flex; gap: 8px; }
.gx-lb-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.25rem; transition: background .2s; }
.gx-lb-btn[hidden] { display: none; }
.gx-lb-btn:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.gx-lb-nav { position: absolute; top: 50%; z-index: 1; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.5rem; transform: translateY(-50%); transition: background .2s; }
.gx-lb-nav:hover { background: rgba(255, 255, 255, .22); }
.gx-lb-nav.is-prev { left: 14px; } .gx-lb-nav.is-next { right: 14px; }
.gx-lb-fig { align-self: center; margin: 10px 0; display: flex; flex-direction: column; align-items: center; min-height: 0; max-height: 100%; transform: scale(.97); transition: transform .35s var(--nb-ease); }
.gx-lb.is-on .gx-lb-fig { transform: none; }
.gx-lb-fig img { display: block; width: auto; height: auto; max-width: min(100%, 760px); max-height: calc(100vh - 250px); max-height: calc(100dvh - 250px); aspect-ratio: 1; object-fit: contain; border-radius: 14px; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .85); touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.gx-lb-fig figcaption { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 14px; text-align: center; }
.gx-lb-fig figcaption b { font-weight: 800; }
.gx-lb-fig figcaption small { color: rgba(248, 238, 238, .66); font-weight: 600; }
.gx-lb-strip { justify-self: stretch; display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: 0 -60px; }
.gx-lb-strip::-webkit-scrollbar { display: none; }
.gx-lb-strip button { flex: none; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #1d0508; opacity: .45; transition: opacity .2s, transform .2s, box-shadow .2s; }
.gx-lb-strip button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gx-lb-strip button:hover { opacity: .8; }
.gx-lb-strip button.is-on { opacity: 1; box-shadow: 0 0 0 2px var(--nb-yel); transform: translateY(-2px); }
@media (max-width: 575.98px) {
  .gx-lb { padding: 12px 12px 14px; }
  .gx-lb-top, .gx-lb-strip { margin: 0; }
  .gx-lb-nav { top: auto; bottom: 86px; transform: none; width: 44px; height: 44px; }
  .gx-lb-fig img { max-height: calc(100vh - 300px); max-height: calc(100dvh - 300px); }
}
@media (prefers-reduced-motion: reduce) { .gx-pic, .gx-pic img, .gx-gram img { transition: none; } }

/* ── 9. Phone tab bar (Home · Activity · Syllabus · Events · Account), as in the app ── */
.nb-tabbar { display: none; }
@media (max-width: 1199.98px) {
  .nb-tabbar { position: fixed; z-index: var(--sp-z-sticky); left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; justify-content: space-around; gap: 2px; padding: 6px;
    max-width: 520px; margin: 0 auto; border-radius: 20px; background: color-mix(in srgb, var(--sp-surface) 90%, transparent); box-shadow: var(--sp-shadow-lg), inset 0 0 0 1px var(--sp-border);
    -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); }
  .nb-tabbar a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px 6px; border-radius: 14px; color: var(--sp-muted); font-size: .64rem; font-weight: 800; letter-spacing: .02em; transition: color .2s, background .2s; }
  .nb-tabbar a iconify-icon { font-size: 1.35rem; }
  .nb-tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nb-tabbar a:hover { color: var(--sp-text); }
  .nb-tabbar a[aria-current="page"] { color: var(--sp-primary-text); background: var(--sp-primary-soft); }
  .sp-content { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media print { .nb-tabbar { display: none !important; } }
/* Swipe between tab bar pages (swipeNav): the chip at the side naming where the swipe goes; red once letting go goes there */
.nb-swipe { position: fixed; z-index: calc(var(--sp-z-sticky) + 2); top: 50%; display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 99px; background: var(--sp-surface); color: var(--sp-text); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45), 0 0 0 1px var(--sp-border); font: 800 .7rem/1 var(--sp-font); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; opacity: 0; transform: translateY(-50%) scale(.92); transition: opacity .12s linear, transform .22s var(--nb-ease), background-color .15s, color .15s; }
.nb-swipe iconify-icon { font-size: 1rem; }
.nb-swipe.is-l { left: 14px; }
.nb-swipe.is-r { right: 14px; }
.nb-swipe.is-ready { background: var(--sp-primary); color: #fff; transform: translateY(-50%) scale(1); box-shadow: 0 12px 30px -10px rgba(198, 40, 40, .6); }
@media (min-width: 1200px) { .nb-swipe { display: none; } }
/* Phone top bar: menu, a real search box, the account picture. Dark mode and notifications move into the account
   menu (.sp-menu-m, after My profile); the bell stays in place, invisible, so its list still drops from the right. */
.sp-menu-m { display: none; }
.dropdown-item.sp-menu-m { align-items: center; gap: 10px; width: 100%; }
.sp-menu-sw { position: relative; width: 34px; height: 20px; margin-left: auto; flex: none; border-radius: 99px; background: var(--sp-surface-3); transition: background .2s; }
.sp-menu-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s var(--nb-ease); }
[data-bs-theme="dark"] .sp-menu-sw { background: var(--sp-primary); }
[data-bs-theme="dark"] .sp-menu-sw::after { transform: translateX(14px); }
@media (max-width: 767.98px) {
  .dropdown-item.sp-menu-m { display: flex; }
  .sp-topbar #spThemeBtn { display: none; }
  .sp-topbar-right { position: relative; }
  .sp-topbar .sp-notif-dd { position: absolute; right: 0; top: 0; bottom: 0; width: 1px; }
  .sp-topbar .sp-notif-dd > .sp-icon-btn { position: absolute; right: 0; top: 0; width: 1px; height: 100%; padding: 0; opacity: 0; pointer-events: none; }
  .sp-topbar .sp-notif-dd .sp-notif-menu.show { position: fixed !important; inset: calc(var(--sp-topbar-h, 64px) + 6px) 12px auto 12px !important; transform: none !important; width: auto !important; max-width: none; margin: 0 !important; }
  .sp-topbar.is-centered .sp-search { flex: 1 1 auto; width: auto; min-width: 0; height: 40px; padding: 0 14px; margin: 0 10px; justify-content: flex-start; border-radius: 99px; }
  .sp-topbar .sp-search input { display: block; font-size: 16px !important; }
  .sp-topbar .sp-search kbd { display: none; }
}

/* Pull to refresh (pullRefresh): the badge under the top bar; arrow turns when letting go refreshes, then a spinner, then a tick */
@media (max-width: 1199.98px) { html { overscroll-behavior-y: contain; } }   /* the browser's own pull-to-refresh stays off */
.nb-ptr { position: fixed; z-index: calc(var(--sp-z-sticky) + 3); left: 50%; top: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--sp-surface); color: var(--sp-primary); box-shadow: 0 8px 22px -6px rgba(0, 0, 0, .4), 0 0 0 1px var(--sp-border); opacity: 0; pointer-events: none; transform: translate(-50%, -60px) scale(.6); }
.nb-ptr-in { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.nb-ptr iconify-icon { font-size: 1.15rem; transition: color .15s; }
.nb-ptr i { position: absolute; inset: 9px; border-radius: 50%; border: 2.5px solid var(--sp-primary-soft-2, rgba(198, 40, 40, .2)); border-top-color: var(--sp-primary); opacity: 0; }
.nb-ptr.is-ready { background: var(--sp-primary); color: #fff; }
.nb-ptr.is-spin iconify-icon, .nb-ptr.is-done i { opacity: 0; }
.nb-ptr.is-spin i { opacity: 1; animation: nbPtrSpin .7s linear infinite; }
.nb-ptr.is-done { background: var(--sp-success); color: #fff; }
.nb-ptr.is-done iconify-icon { display: none; }
/* the tick: centred on its own (the arrow above no longer takes a row); the box is a little wider than tall and
   lifted, so the drawn check sits optically in the middle */
.nb-ptr.is-done .nb-ptr-in::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 8px; border: 2.5px solid #fff; border-top: 0; border-right: 0; border-radius: 0 0 0 2px; transform: translate(-50%, -70%) rotate(-45deg); animation: nbPtrTick .25s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes nbPtrTick { from { transform: translate(-50%, -70%) rotate(-45deg) scale(.4); opacity: 0; } }
@keyframes nbPtrSpin { to { transform: rotate(360deg); } }
@media (min-width: 1200px) { .nb-ptr { display: none; } }

/* phone: who is online stays off the top bar (the presence ping still runs, so others see this member) */
@media (max-width: 767.98px) { .nb-on { display: none !important; } }


@media (prefers-reduced-motion: reduce) {
  .mb-skel, .mb-in > * { animation: none; }
  .btn-primary::before { transition: none; }
}

/* Protect pictures and text: no dragging, no long-press save menu, no text selection outside form fields (with guard() in member.js) */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img { -webkit-user-drag: none; user-drag: none; }

/* Sidebar + top bar: the fine diagonal lines from the sign-in page's brand panel, over the usual surface.
   Fixed to the screen so the lines run on unbroken from the sidebar into the top bar. */
:root, [data-bs-theme="light"] { --nb-lines: linear-gradient(transparent, transparent); } /* light mode: plain, no lines */
[data-bs-theme="dark"] { --nb-lines: repeating-linear-gradient(115deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 7px) fixed; }
.sp-sidebar, .sp-topbar { background: var(--nb-lines), var(--sp-surface); }

/* Profile picture editor: round frame cropper + memoji */
.pe { position: fixed; inset: 0; z-index: var(--sp-z-modal); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s; }
.pe[hidden] { display: none; }
.pe.is-on { opacity: 1; }
.pe-bg { position: absolute; inset: 0; background: var(--sp-overlay); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pe-card { position: relative; width: min(100%, 440px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 20px 22px 18px; border-radius: 22px; background: var(--sp-surface); box-shadow: var(--sp-shadow-lg); transform: translateY(10px) scale(.98); transition: transform .3s var(--nb-ease); }
.pe.is-on .pe-card { transform: none; }
.pe-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pe-head h2 { margin: 8px 0 0; font: 400 1.8rem/1 var(--nb-disp); text-transform: uppercase; letter-spacing: .01em; }
.pe-tabs { display: flex; width: 100%; margin-bottom: 16px; }
.pe-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pe-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 1; width: min(100%, 300px); margin: 0 auto; border-radius: 50%; cursor: pointer; text-align: center; padding: 30px;
  background: var(--sp-surface-2); box-shadow: inset 0 0 0 2px var(--sp-border); transition: background .2s, box-shadow .2s; }
.pe-drop[hidden] { display: none; }
.pe-drop iconify-icon { font-size: 2.2rem; color: var(--sp-primary); margin-bottom: 4px; }
.pe-drop b { font-weight: 800; }
.pe-drop small { color: var(--sp-muted); font-size: .76rem; }
.pe-drop:hover, .pe-drop.is-over { background: var(--sp-primary-soft); box-shadow: inset 0 0 0 2px var(--sp-primary); }
.pe-crop { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pe-crop[hidden] { display: none; }
.pe-stage { position: relative; width: min(100%, 300px); aspect-ratio: 1; overflow: hidden; border-radius: 18px; background: #111; cursor: grab; touch-action: none; }
.pe-stage:active { cursor: grabbing; }
.pe-stage:focus-visible { outline: 3px solid var(--sp-primary); outline-offset: 3px; }
.pe-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; -webkit-user-select: none; user-select: none; }
/* everything outside the circle is dimmed; the circle wears the card's rings */
.pe-ring { position: absolute; inset: 0; pointer-events: none; border-radius: 18px; background: radial-gradient(circle closest-side, transparent calc(100% - 1px), rgba(13, 6, 7, .62) 100%); }
.pe-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px #fff200, inset 0 0 0 4px #e5120f, inset 0 0 0 5.5px #0b0507; }
.pe-zoom { display: flex; align-items: center; gap: 10px; width: min(100%, 300px); color: var(--sp-muted); }
.pe-zoom input { flex: 1; accent-color: var(--sp-primary); }
.pe-hint { margin: 0; font-size: .78rem; color: var(--sp-muted); text-align: center; }
.pe-memo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.pe-memo button { aspect-ratio: 1; padding: 6px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--sp-border); transition: transform .2s var(--nb-ease), box-shadow .2s; }
.pe-memo button img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pe-memo button:hover { transform: translateY(-2px); }
.pe-memo button.is-on { box-shadow: 0 0 0 2px #fff200, 0 0 0 4px #e5120f, 0 0 0 5.5px #0b0507; }
.pe-err { margin-top: 12px; }
.pe-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--sp-divider); }
.pe-foot .is-busy { opacity: .7; cursor: progress; }

/* banner v2: name and actions on the left, the membership card (the only photo) tilted on the right */
.mb-hero-body { padding: 30px 32px; gap: 24px 40px; }
.mb-hero h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.mb-hero-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; }
.mb-hero-acts .btn-primary { background: var(--nb-yel); color: var(--nb-ink); }
.mb-hero-acts .btn-primary:hover { color: var(--nb-yel); }
.mb-hero-link { display: inline-flex; align-items: center; gap: 7px; font: 800 .68rem/1 var(--sp-font); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .86); }
.mb-hero-link iconify-icon { font-size: 1.05rem; }
.mb-hero-link:hover { color: #fff; }
.mb-hero-card { width: min(100%, 360px); perspective: 1000px; }
.mb-hero-card .nbc-open { transform: rotateY(-14deg) rotateX(5deg) rotate(1.5deg); transform-style: preserve-3d; transition: transform .7s var(--nb-ease); }
.mb-hero-card .nbc-open:hover, .mb-hero-card .nbc-open:focus-visible { transform: rotateY(-4deg) rotateX(2deg) translateY(-4px); }
.mb-hero-card .nbc-f { box-shadow: -24px 30px 50px -18px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .1); }
@media (max-width: 991.98px) { .mb-hero-card .nbc-open { transform: none; } .mb-hero-body { padding: 24px 20px; } }
@media (prefers-reduced-motion: reduce) { .mb-hero-card .nbc-open { transition: none; } }
/* Idle motion (NBCard.idle): the card floats and sways a few degrees in 3D, a glare sweeps across as it turns, and the
   name, photo and ranks shift by their depth (--z) with the tilt. Runs only while on screen (.is-moving). */
.nbc-idle .nbc { animation: nbc-idle 9s ease-in-out infinite both; animation-play-state: paused; }
.nbc-idle.is-moving .nbc { animation-play-state: running; }
.nbc-idle .nbc-edge { overflow: hidden; }
.nbc-idle .nbc-edge::after { content: ""; position: absolute; inset: -20% -60%; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .2) 47%, rgba(255, 240, 200, .32) 50%, rgba(255, 255, 255, .2) 53%, transparent 62%); transform: translateX(-75%); animation: nbc-glare 9s ease-in-out infinite both; animation-play-state: paused; }
.nbc-idle.is-moving .nbc-edge::after { animation-play-state: running; }
.nbc-idle.has-px .nbc [style*="--z"] { transform: translate(calc(var(--ix) * var(--z) * var(--u) * .7), calc(var(--iy) * var(--z) * var(--u) * .7)); }
.nbc-idle .nbc-open:hover .nbc, .nbc-idle .nbc-open:focus-visible .nbc { animation-play-state: paused; }
@keyframes nbc-idle {
  0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); --ix: 0; --iy: 0; }
  22% { transform: translateY(-6px) rotateX(5deg) rotateY(-7deg); --ix: -1; --iy: .7; }
  48% { transform: translateY(-3px) rotateX(-3deg) rotateY(6deg); --ix: 1; --iy: -.5; }
  74% { transform: translateY(-7px) rotateX(-5deg) rotateY(-3deg); --ix: -.4; --iy: -.9; }
}
@keyframes nbc-glare { 0%, 24% { transform: translateX(-75%); opacity: 0; } 28% { opacity: 1; } 46% { opacity: 1; } 50%, 100% { transform: translateX(75%); opacity: 0; } }
.mb-hero-txt { flex: 1 1 320px; }

/* Account */
.ac-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; padding: 22px 26px; margin-bottom: 18px; border-radius: 22px; color: #fff; background: var(--nb-cloth); box-shadow: 0 24px 48px -28px rgba(107, 18, 24, .9); }
.ac-hero::before { content: ""; position: absolute; z-index: -1; inset: -60% -10% -60% 55%; background: linear-gradient(170deg, rgba(231, 199, 91, .3), rgba(229, 18, 15, .26) 70%); -webkit-mask: url("../../naga-bugis-img/jn-crest.webp") center / contain no-repeat; mask: url("../../naga-bugis-img/jn-crest.webp") center / contain no-repeat; opacity: .5; }
.ac-hero .mb-ava { width: 64px; height: 64px; margin: 7px; font-size: 1.4rem; background: #fff; box-shadow: 0 0 0 2.5px #fff200, 0 0 0 5px #e5120f, 0 0 0 7px #0b0507; }
.ac-hero .nb-k { color: #e7c75b; }
.ac-hero h2 { margin: 6px 0 0; color: #fff; font: 400 clamp(1.6rem, 3vw, 2.2rem)/1 var(--nb-disp); text-transform: uppercase; letter-spacing: .01em; }
.ac-hero p { margin: 6px 0 0; color: rgba(248, 238, 238, .76); font-size: .86rem; font-weight: 600; word-break: break-all; }
.ac-hero-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.ac-hero .btn-white { --bs-btn-bg: rgba(255, 255, 255, .12); --bs-btn-hover-bg: rgba(255, 255, 255, .2); --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .18); --bs-btn-hover-border-color: rgba(255, 255, 255, .3); }
.ac-hero .btn-primary { background: var(--nb-yel); color: var(--nb-ink); }
.ac-hero .btn-primary:hover { color: var(--nb-yel); }
.ac-pw { position: relative; }
.ac-pw .form-control { padding-right: 46px; height: 46px; }
.ac-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--sp-subtle); font-size: 1.1rem; }
.ac-eye:hover { color: var(--sp-text); background: var(--sp-surface-2); }
.ac-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: -6px; }
.ac-meter i { height: 5px; border-radius: 3px; background: var(--sp-surface-3); transition: background .25s; }
.ac-meter i.is-1 { background: #e5393f; } .ac-meter i.is-2 { background: #ffad3b; } .ac-meter i.is-3 { background: #8bc34a; } .ac-meter i.is-4 { background: var(--sp-success); }
.ac-meter-tx { margin-top: -10px; font-size: .74rem; font-weight: 700; color: var(--sp-muted); }
.ac-meter-tx.is-1 { color: #e5393f; } .ac-meter-tx.is-2 { color: #d98a14; } .ac-meter-tx.is-4, .ac-meter-tx.is-3 { color: var(--sp-success-text); }
.ac-rules { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 6px; border-radius: 12px; background: var(--sp-surface-2); font-size: .8rem; font-weight: 600; color: var(--sp-muted); }
.ac-rules li { display: flex; align-items: center; gap: 8px; transition: color .2s; }
.ac-rules li.is-ok { color: var(--sp-success-text); }
.ac-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ac-theme { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 10px; border: 0; border-radius: 16px; background: var(--sp-surface-2); color: inherit; text-align: left; box-shadow: inset 0 0 0 1.5px var(--sp-border); transition: box-shadow .2s, transform .2s var(--nb-ease); }
.ac-theme:hover { transform: translateY(-2px); }
.ac-theme.is-on { box-shadow: inset 0 0 0 2px var(--sp-primary); }
.ac-theme-pv { display: grid; grid-template-columns: 28% 1fr; grid-template-rows: repeat(3, 1fr); gap: 5px; height: 78px; padding: 7px; border-radius: 10px; }
.ac-theme-pv i { grid-row: span 3; border-radius: 6px; }
.ac-theme-pv b { border-radius: 5px; }
.ac-theme.is-light .ac-theme-pv { background: #f4f1ec; } .ac-theme.is-light .ac-theme-pv i { background: #fffdfa; box-shadow: inset 0 0 0 1px #e6dfd4; } .ac-theme.is-light .ac-theme-pv b { background: #fffdfa; box-shadow: inset 0 0 0 1px #e6dfd4; } .ac-theme.is-light .ac-theme-pv b:first-of-type { background: #c62828; box-shadow: none; }
.ac-theme.is-dark .ac-theme-pv { background: #0d0607; } .ac-theme.is-dark .ac-theme-pv i { background: #150b0d; box-shadow: inset 0 0 0 1px #2b1b1f; } .ac-theme.is-dark .ac-theme-pv b { background: #150b0d; box-shadow: inset 0 0 0 1px #2b1b1f; } .ac-theme.is-dark .ac-theme-pv b:first-of-type { background: #e5393f; box-shadow: none; }
.ac-theme-tx b { display: block; font-weight: 800; font-size: .88rem; }
.ac-theme-tx small { display: block; font-size: .74rem; color: var(--sp-muted); }
.ac-theme-ok { position: absolute; top: 14px; right: 14px; font-size: 1.25rem; color: var(--sp-primary); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--nb-ease); }
.ac-theme.is-on .ac-theme-ok { opacity: 1; transform: none; }
.ac-help { margin: 0 0 14px; font-size: .86rem; color: var(--sp-muted); }
/* username on Account: free / taken (with a free one to tap) */
.ac-un-hint { min-height: 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--sp-muted); line-height: 1.4; }
.ac-un-hint iconify-icon { font-size: 1.05rem; flex: none; }
.ac-un-hint br { flex-basis: 100%; content: ""; }
.ac-un-hint.is-ok { color: var(--bs-success, #16a34a); }
.ac-un-hint.is-bad { color: var(--bs-danger, #dc2626); }
.ac-un-try { display: inline-flex; align-items: center; gap: 8px; }
.ac-un-sug { min-height: 32px; padding: 0 12px; border: 0; border-radius: 99px; background: var(--sp-surface-2, rgba(0,0,0,.06)); color: var(--sp-text, inherit); font-weight: 800; font-size: .82rem; cursor: pointer; transition: filter .15s; }
.ac-un-sug:hover { filter: brightness(.95); }
.ac-un-sug:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
/* saved sign-in (passkeys) on Account */
#acPk > .ac-pk-row:first-child { border-top: 0; padding-top: 0; }
.ac-pk-when { display: block; margin-top: 2px; font-size: .78rem; color: var(--sp-muted); }
@media (max-width: 575.98px) { .ac-hero { padding: 20px 18px; } .ac-hero-acts { width: 100%; } .ac-hero-acts .btn { flex: 1; } }

/* ── Attendance ── */
.at-check { position: relative; isolation: isolate; overflow: hidden; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 26px 28px; border-radius: 22px; color: #fff; background: var(--nb-cloth); box-shadow: 0 24px 48px -28px rgba(107, 18, 24, .9); }
.at-check::before { content: ""; position: absolute; z-index: -1; inset: -40% -10% -40% 50%; background: linear-gradient(170deg, rgba(231, 199, 91, .3), rgba(229, 18, 15, .26) 70%); -webkit-mask: url("../../naga-bugis-img/jn-crest.webp") center / contain no-repeat; mask: url("../../naga-bugis-img/jn-crest.webp") center / contain no-repeat; opacity: .5; }
.at-check .nb-k { color: #e7c75b; }
.at-check h2 { margin: 10px 0 0; color: #fff; font: 400 clamp(2rem, 3.6vw, 2.9rem)/.92 var(--nb-disp); text-transform: uppercase; }
.at-check p { margin: 12px 0 0; max-width: 44ch; color: rgba(248, 238, 238, .78); font-size: .88rem; font-weight: 600; }
.at-check-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.at-check .btn-primary { background: var(--nb-yel); color: var(--nb-ink); min-height: 46px; }
.at-check .btn-primary:hover { color: var(--nb-yel); }
.at-link { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .86); font: 800 .66rem/1 var(--sp-font); letter-spacing: .14em; text-transform: uppercase; }
.at-link:hover { color: #fff; }
.at-today { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 14px; border-radius: 14px; background: rgba(13, 6, 7, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); max-width: 460px; }
.at-today small { display: block; font: 800 .56rem/1 var(--sp-font); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 235, 0, .8); }
.at-today b { display: block; margin-top: 3px; font-weight: 800; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-today > span:last-child { margin-left: auto; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.at-today-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #ffad6b; box-shadow: 0 0 0 4px rgba(255, 173, 107, .2); }
.at-today-dot.is-attended { background: #4fdb8c; box-shadow: 0 0 0 4px rgba(79, 219, 140, .2); }
.at-check-art { display: grid; place-items: center; }
.at-frame { position: relative; width: 150px; height: 150px; display: grid; place-items: center; font-size: 4.6rem; color: rgba(255, 255, 255, .9); }
.at-frame i { position: absolute; width: 34px; height: 34px; border: 4px solid var(--nb-yel); }
.at-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.at-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.at-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.at-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
@media (max-width: 575.98px) { .at-check { grid-template-columns: 1fr; padding: 22px 18px; } .at-check-art { display: none; } }

.at-stats { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.at-ring { position: relative; width: 150px; height: 150px; }
.at-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.at-ring circle { fill: none; stroke-width: 10; }
.at-ring .tr { stroke: var(--sp-surface-3); }
.at-ring .br { stroke: var(--sp-primary); stroke-linecap: round; transition: stroke-dashoffset 1s var(--nb-ease); }
.at-ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.at-ring b { font: 400 2.6rem/1 var(--nb-disp); }
.at-ring b small { font-size: 1.2rem; }
.at-ring span { font-size: .62rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sp-subtle); }
.at-nums { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; text-align: center; }
.at-nums > div + div { border-left: 1px solid var(--sp-divider); }
.at-nums b { display: block; font-size: 1.35rem; font-weight: 800; }
.at-nums span { font-size: .72rem; font-weight: 700; color: var(--sp-muted); }
.at-row .btn { flex: none; }
.at-row[hidden] { display: none; }
.at-yes { background: var(--sp-success-soft) !important; color: var(--sp-success-text) !important; }
.at-no { background: var(--sp-danger-soft) !important; color: var(--sp-danger-text) !important; }



/* admin register (tick attendance) */
.rg { position: fixed; inset: 0; z-index: var(--sp-z-modal); display: flex; justify-content: flex-end; }
.rg-bg { position: absolute; inset: 0; background: var(--sp-overlay); opacity: 0; transition: opacity .22s; }
.rg-panel { position: relative; width: min(100%, 520px); height: 100%; display: flex; flex-direction: column; background: var(--sp-surface); box-shadow: var(--sp-shadow-lg); transform: translateX(30px); opacity: 0; transition: transform .35s var(--nb-ease), opacity .22s; }
.rg.is-on .rg-bg { opacity: 1; }
.rg.is-on .rg-panel { transform: none; opacity: 1; }
.rg-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--sp-divider); }
.rg-head h2 { margin: 8px 0 0; font: 400 1.6rem/1 var(--nb-disp); text-transform: uppercase; letter-spacing: .01em; }
.rg-head p { margin: 6px 0 0; font-size: .8rem; color: var(--sp-muted); font-weight: 600; }
.rg-head .sp-icon-btn { margin-left: auto; flex: none; }
.rg-tools { display: flex; gap: 8px; align-items: center; padding: 12px 22px; }
.rg-tools[hidden] { display: none; }
.rg-list { flex: 1; overflow-y: auto; padding: 0 14px 10px; }
.rg-row { display: flex; align-items: center; gap: 12px; padding: 10px 10px; margin: 2px 0; border-radius: 12px; cursor: pointer; transition: background .15s; }
.rg-row:hover { background: var(--sp-surface-2); }
.rg-row input { position: absolute; opacity: 0; pointer-events: none; }
.rg-row b { display: block; font-weight: 800; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-row small { display: block; font-size: .74rem; color: var(--sp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-tick { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--sp-border-strong); color: transparent; font-size: .95rem; transition: background .15s, box-shadow .15s, color .15s; }
.rg-row.is-on { background: var(--sp-success-soft); }
.rg-row.is-on .rg-tick { background: var(--sp-success); box-shadow: none; color: #fff; }
.rg-row:focus-within { outline: 2px solid var(--sp-primary); outline-offset: -2px; }
.rg-foot { display: flex; align-items: center; gap: 10px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sp-divider); }
.rg-count { margin-right: auto; line-height: 1.15; }
.rg-count b { font: 400 1.6rem/1 var(--nb-disp); margin-right: 6px; }
.rg-count span { font-size: .78rem; font-weight: 700; color: var(--sp-muted); }
.rg-count small { display: block; font-size: .72rem; font-weight: 800; color: var(--sp-warning-text); }

/* ── Attendance QR (the app's live QR screen) ── */
.aq { position: fixed; inset: 0; z-index: var(--sp-z-modal); display: flex; flex-direction: column; gap: 18px; padding: 22px clamp(16px, 4vw, 48px) 24px; overflow-y: auto; color: #f8eeee;
  background: radial-gradient(70% 60% at 30% 30%, rgba(198, 40, 40, .22), transparent 70%), #0d0607; }
.aq-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.aq .nb-k { color: #e7c75b; }
.aq-lead { margin: 6px 0 0; font-size: .86rem; color: #b9a0a4; font-weight: 600; }
.aq-icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.3rem; }
.aq-icon:hover { background: rgba(255, 255, 255, .16); }
.aq-main { flex: 1; display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 380px); gap: clamp(18px, 3vw, 32px); align-items: start; justify-content: center; }

/* the stage card: dotted backdrop with a soft red glow (the app's _StagePainter) */
.aq-stage { display: flex; flex-direction: column; align-items: center; padding: 18px; border-radius: 22px;
  background: radial-gradient(70% 45% at 50% 40%, rgba(198, 40, 40, .12), transparent 70%), radial-gradient(circle, rgba(248, 238, 238, .07) .9px, transparent 1.3px) 6px 6px / 18px 18px, #231418; box-shadow: inset 0 0 0 1px #47292f; }
.aq-head { align-self: stretch; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.aq-head > div { flex: 1; }
.aq-head b, .aq-head small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.aq-head b { font-weight: 800; font-size: .95rem; }
.aq-head small { font-size: .78rem; color: #b9a0a4; }
.aq-live { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: rgba(79, 219, 140, .14); color: #4fdb8c; font: 700 .74rem/1 var(--sp-font); }
.aq-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: aqPulse 1.6s ease-in-out infinite; }
.aq-live.is-paused { background: rgba(255, 173, 107, .14); color: #ffad6b; }
.aq-live.is-off { background: rgba(248, 113, 113, .14); color: #f87171; }
.aq-live.is-paused i, .aq-live.is-off i { animation: none; }
@keyframes aqPulse { 50% { opacity: .35; } }

/* LiveQrPlate: rounded-square ring that drains from 12 o'clock, white face, red rounded code */
.lq-plate { --p: 1; --ring: #eebfbf; --track: #5b4145; position: relative; width: 100%; aspect-ratio: 1; container-type: inline-size; border-radius: 13.85%; background: conic-gradient(var(--ring) calc(var(--p) * 360deg), var(--track) 0); }
.lq-plate.is-low { --ring: #ffad6b; --track: #5e3e33; }
.aq.is-paused .lq-plate { --track: #3a2a2e; }
.lq-face { position: absolute; inset: 2.69%; border-radius: 12.2%; background: #fff; box-shadow: 0 4.6cqw 10.8cqw rgba(198, 40, 40, .22); }
.lq-plate canvas { position: absolute; inset: 7.31%; width: 85.38%; height: 85.38%; }
.aq.is-paused .lq-plate canvas { opacity: .18; filter: grayscale(1); transition: opacity .3s; }
.aq-plate { width: min(100%, 440px); }
.lq-tag { margin-top: 16px; padding: 6px 16px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px rgba(198, 40, 40, .28); font: 800 1rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 1.2px; color: #c62828; }
.lq-tag.swap { animation: tagIn .3s cubic-bezier(.22, 1, .36, 1); }
@keyframes tagIn { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
.lq-meta { margin: 12px 0 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: .8rem; color: #b9a0a4; }
.lq-meta b { min-width: 38px; height: 38px; padding: 0 8px; display: grid; place-items: center; border-radius: 12px; background: #311e23; color: #f8eeee; font: 800 .82rem/1 var(--sp-font); font-variant-numeric: tabular-nums; transition: background-color .3s, color .3s; }
.lq-meta.is-low b { background: rgba(255, 173, 107, .16); color: #ffad6b; }
.aq-acts { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.aq-btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; background: transparent; color: #f8eeee; font: 800 .86rem/1 var(--sp-font); box-shadow: inset 0 0 0 1px #5b4145; transition: background .2s; }
.aq-btn:hover { background: rgba(255, 255, 255, .06); }
.aq-btn.is-fill { background: #c62828; box-shadow: none; color: #fff; }
.aq-btn.is-fill:hover { background: #d63a3a; }
.aq-btn iconify-icon { font-size: 1.1rem; }

/* side: Present + Code lifetime tiles, who checked in */
.aq-side { display: flex; flex-direction: column; gap: 14px; }
.aq-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aq-tile { padding: 12px 14px; border-radius: 16px; background: #231418; box-shadow: inset 0 0 0 1px #47292f; }
.aq-tile.is-accent { background: rgba(198, 40, 40, .16); box-shadow: inset 0 0 0 1px rgba(229, 57, 63, .4); }
.aq-tile span { display: flex; align-items: center; justify-content: space-between; font-size: .76rem; font-weight: 600; color: #b9a0a4; }
.aq-tile span iconify-icon { font-size: 1.1rem; color: #8c7579; }
.aq-tile.is-accent span iconify-icon { color: #ff7b7b; }
.aq-tile b { display: block; margin-top: 6px; font-weight: 800; font-size: 1.7rem; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.aq-tile b small { margin-left: 3px; font-size: .9rem; color: #b9a0a4; font-weight: 700; }
.aq-ins { padding: 14px; border-radius: 18px; background: #231418; box-shadow: inset 0 0 0 1px #47292f; }
.aq-ins-h { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.aq-ins-h span { font-weight: 800; font-size: .92rem; }
.aq-ins-h b { font-size: .76rem; font-weight: 700; color: #b9a0a4; }
.aq-list { display: grid; gap: 6px; max-height: 46vh; overflow-y: auto; }
.aq-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #311e23; animation: tagIn .4s cubic-bezier(.22, 1, .36, 1); }
.aq-row img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #fff; }
.aq-row b { flex: 1; min-width: 0; font-weight: 700; font-size: .86rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.aq-row time { font-size: .74rem; color: #b9a0a4; font-variant-numeric: tabular-nums; }
.aq-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #4fdb8c; }
.aq-empty { margin: 4px 0; font-size: .82rem; color: #b9a0a4; }

/* QR only: the plate alone, as big as the screen allows */
.aq.is-solo .aq-top, .aq.is-solo .aq-side, .aq.is-solo .aq-head { display: none; }
.aq.is-solo { justify-content: center; }
.aq.is-solo .aq-main { grid-template-columns: 1fr; flex: 0 1 auto; }
.aq.is-solo .aq-stage { background: transparent; box-shadow: none; padding: 0; }
.aq.is-solo .aq-plate { width: min(88vw, calc(100vh - 210px)); width: min(88vw, calc(100dvh - 210px)); }
.aq.is-solo .aq-acts { width: min(88vw, 440px); align-self: center; }
@media (max-width: 991.98px) { .aq-main { grid-template-columns: minmax(0, 560px); } }
@media (prefers-reduced-motion: reduce) { .aq-live i, .aq-row, .lq-tag.swap { animation: none; } }

/* attendance page v2 */
.at-stats { padding: 20px 22px; justify-content: space-between; align-items: stretch; gap: 18px; }
.at-stats-top { display: flex; align-items: center; gap: 22px; }
.at-stats .at-ring { width: 132px; height: 132px; flex: none; }
.at-kv { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.at-kv b { display: flex; align-items: center; gap: 5px; font-size: 1.45rem; font-weight: 800; line-height: 1; }
.at-kv span { display: block; margin-top: 4px; font-size: .72rem; font-weight: 700; color: var(--sp-muted); }
.at-streak b { color: #e8590c; }
.at-strip-w { padding-top: 14px; border-top: 1px solid var(--sp-divider); }
.at-strip-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sp-subtle); }
.at-legend { display: inline-flex; align-items: center; gap: 6px; letter-spacing: .04em; text-transform: none; font-size: .7rem; }
.at-legend i { width: 9px; height: 9px; border-radius: 3px; margin-left: 4px; }
.at-strip { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; }
.at-strip i { aspect-ratio: 1; border-radius: 4px; }
.at-strip i, .at-legend i { background: var(--sp-surface-3); }
.at-strip i.is-attended, .at-legend i.is-attended { background: var(--sp-success); }
.at-strip i.is-pending, .at-legend i.is-pending { background: #ffad3b; }
.at-strip i.is-rejected { background: var(--sp-danger-soft); box-shadow: inset 0 0 0 1.5px var(--sp-danger); }
.at-strip i:hover { transform: scale(1.25); }
.at-tools { margin-bottom: 1rem; }
.at-tools-h { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.at-badge { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--sp-warning-soft); color: var(--sp-warning-text); font-weight: 800; font-size: .76rem; }
.at-badge.is-calm { background: var(--sp-success-soft); color: var(--sp-success-text); }
.at-tools-row { display: flex; flex-wrap: wrap; gap: 10px; }
.at-tools-row .form-select { flex: 1 1 320px; min-width: 0; height: 42px; }
#atReq:not(:empty) { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sp-divider); }
.at-req-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.at-req-h b { font-weight: 800; }
.at-req-h span { font-size: .78rem; color: var(--sp-warning-text); font-weight: 700; }
.at-month + .at-month { margin-top: 22px; }
.at-month[hidden] { display: none; }
.at-month-h { position: sticky; top: calc(var(--sp-topbar-h) - 1px); z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; margin-bottom: 4px; background: var(--sp-surface); border-bottom: 1px solid var(--sp-divider); }
.at-month-h h3 { margin: 0; font: 400 1.35rem/1 var(--nb-disp); text-transform: uppercase; letter-spacing: .01em; }
.at-month-h h3 span { color: var(--sp-subtle); }
.at-month-sum { display: flex; align-items: center; gap: 10px; font-size: .76rem; font-weight: 700; color: var(--sp-muted); }
.at-month-sum i { width: 90px; height: 6px; border-radius: 3px; background: var(--sp-surface-3); overflow: hidden; }
.at-month-sum i b { display: block; height: 100%; background: var(--sp-success); border-radius: inherit; }
.at-month .mb-row:first-of-type { border-top: 0; }
@media (max-width: 575.98px) { .at-stats-top { flex-direction: column; } .at-strip { grid-template-columns: repeat(12, minmax(0, 1fr)); } .at-month-sum i { display: none; } }

/* attendance v3: no art in the check-in banner; GitHub-style year; admin session overview */
.at-check { grid-template-columns: 1fr; }
.at-stats .at-strip-w { display: none; }
.yr-scroll { overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.yr { --c: 13px; --g: 3px; display: inline-block; min-width: 100%; }
.yr-months { display: grid; grid-auto-flow: column; grid-auto-columns: calc(var(--c) + var(--g)); margin-left: 34px; height: 16px; font-size: .66rem; font-weight: 700; color: var(--sp-muted); }
.yr-months span { white-space: nowrap; overflow: visible; }
.yr-body { display: flex; gap: 6px; }
.yr-days { width: 28px; flex: none; display: grid; grid-template-rows: repeat(7, var(--c)); row-gap: var(--g); font-size: .62rem; font-weight: 700; color: var(--sp-subtle); }
.yr-days span { line-height: var(--c); }
.yr-cols { display: flex; gap: var(--g); }
.yr-cols > div { display: grid; grid-template-rows: repeat(7, var(--c)); row-gap: var(--g); }
.yr-cols i, .yr-legend i { width: var(--c, 13px); height: var(--c, 13px); border-radius: 3px; background: var(--sp-surface-3); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
.yr-cols i.is-out { background: transparent; box-shadow: none; }
.yr-cols i.is-attended, .yr-legend i.is-attended { background: var(--sp-success); }
.yr-cols i.is-missed, .yr-legend i.is-missed { background: color-mix(in srgb, var(--sp-primary) 38%, var(--sp-surface-3)); }
.yr-cols i.is-pending, .yr-legend i.is-pending { background: #ffad3b; }
.yr-cols i.is-upcoming, .yr-legend i.is-upcoming { background: transparent; box-shadow: inset 0 0 0 1.5px var(--sp-border-strong); }
.yr-cols i.is-today { outline: 2px solid var(--sp-text); outline-offset: 1px; }
.yr-cols i:not(.is-out):hover { transform: scale(1.35); position: relative; z-index: 1; }
[data-bs-theme="dark"] .yr-cols i { box-shadow: none; }
.yr-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 10px; font-size: .74rem; font-weight: 700; color: var(--sp-muted); }
.yr-foot iconify-icon { color: #e8590c; vertical-align: -2px; }
.yr-legend { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.yr-legend i { display: inline-block; --c: 11px; margin-right: 6px; }

.at-ov:not(:empty) { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--sp-divider); }
.at-ov-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.at-ov-sk1 { aspect-ratio: 1; height: auto; border-radius: 14px; }
.at-ov-poster { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--sp-surface-3); box-shadow: 0 0 0 1px var(--sp-border); cursor: zoom-in; }
.at-ov-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--nb-ease); }
.at-ov-poster:hover img { transform: scale(1.04); }
.at-ov-poster span { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 9px; background: rgba(13, 6, 7, .72); color: #fff; font-size: .7rem; font-weight: 700; text-align: left; }
.at-ov-poster.is-none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: default; color: var(--sp-subtle); font-size: .78rem; font-weight: 700; text-align: center; padding: 16px; background: var(--sp-surface-2); }
.at-ov-poster.is-none iconify-icon { font-size: 2rem; }
.at-ov-poster.is-none span { position: static; background: none; color: inherit; padding: 0; justify-content: center; }
.at-ov-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.at-ov-head b { display: block; font-weight: 800; font-size: 1rem; }
.at-ov-head small { display: block; margin-top: 2px; font-size: .78rem; color: var(--sp-muted); font-weight: 600; }
.at-ov-big { flex: none; text-align: right; line-height: 1; }
.at-ov-big b { font: 400 2.6rem/1 var(--nb-disp); color: var(--sp-success-text); }
.at-ov-big span { display: block; font-size: .74rem; font-weight: 700; color: var(--sp-muted); margin-top: 2px; }
.at-ov-bar { height: 8px; margin-top: 12px; border-radius: 4px; background: var(--sp-surface-3); overflow: hidden; }
.at-ov-bar i { display: block; height: 100%; border-radius: inherit; background: var(--sp-success); transition: width .6s var(--nb-ease); }
.at-ov-pct { margin: 6px 0 12px; font-size: .76rem; font-weight: 700; color: var(--sp-muted); }
.at-ov-tabs { margin-bottom: 12px; }
.at-ov-tabs span { margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: var(--sp-surface-3); font-size: .7rem; }
.at-ov-people { display: flex; flex-wrap: wrap; gap: 8px; max-height: 236px; overflow-y: auto; }
.at-ov-p { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 99px; background: var(--sp-surface-2); box-shadow: inset 0 0 0 1px var(--sp-border); font-size: .78rem; }
.at-ov-p img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #fff; }
.at-ov-p b { font-weight: 700; max-width: 120px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.at-ov-none { margin: 4px 0; font-size: .82rem; color: var(--sp-muted); }
@media (max-width: 767.98px) { .at-ov-grid { grid-template-columns: 1fr; } .at-ov-poster { max-width: 240px; } }
.at-pv { position: fixed; inset: 0; z-index: var(--sp-z-modal); display: grid; place-items: center; padding: 20px; background: rgba(8, 3, 4, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: zoom-out; }
.at-pv figure { margin: 0; text-align: center; color: #f8eeee; }
.at-pv img { max-width: min(92vw, 760px); max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); border-radius: 14px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8); }
.at-pv figcaption { margin-top: 12px; font-weight: 800; }
.at-pv-x { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.3rem; }

/* ── Tab bar as the app's: four tabs and the raised scan button in the logo's rings ── */
@media (max-width: 1199.98px) {
  .nb-tabbar { align-items: flex-end; padding: 6px 6px 7px; }
  .nb-tabbar a { color: var(--sp-muted); }
  .nb-tabbar .nb-ti { display: grid; place-items: center; width: 26px; height: 26px; }
  .nb-tabbar .nb-ti svg { width: 24px; height: 24px; display: block; }
  .nb-tabbar .nb-ti iconify-icon { font-size: 1.4rem; }
  .nb-tabbar a[aria-current="page"] { color: var(--sp-primary-text); background: transparent; }
  .nb-tabbar a[aria-current="page"] span:last-child { font-weight: 800; }
  .nb-tabbar a.nb-fab { flex: 0 0 72px; align-self: center; padding: 0; margin-top: -30px; background: none; }
  .nb-fab-in { position: relative; width: 50px; height: 50px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: #8e1b20; color: #fff;
    box-shadow: 0 0 0 1.8px #ffeb00, 0 0 0 2.5px #0b0506, 0 0 0 4.3px #e10600, 0 0 0 5.5px #0b0506, 0 0 0 8.5px var(--sp-surface), 0 10px 22px -6px rgba(0, 0, 0, .5); transition: transform .2s var(--nb-ease); }
  .nb-fab-in svg { width: 26px; height: 26px; }
  .nb-fab:active .nb-fab-in { transform: scale(.94); }
  .nb-fab[aria-current="page"] .nb-fab-in { background: #a3232a; }
}

/* ── QR scanner (qr_scan_page.dart) ── */
.qs { position: fixed; inset: 0; z-index: var(--sp-z-modal); background: #000; color: #fff; overflow: hidden; --win: min(72vw, 290px); --tone: #fff; }
.qs.is-ok { --tone: #4fdb8c; }
.qs.is-bad { --tone: #f87171; }
.qs video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qs-win { position: absolute; left: 50%; top: 38%; width: var(--win); height: var(--win); transform: translate(-50%, -50%); border-radius: 28px; box-shadow: 0 0 0 200vmax rgba(0, 0, 0, .62); pointer-events: none; }
.qs-win i { position: absolute; width: 36px; height: 36px; border: 4px solid var(--tone); transition: border-color .25s; }
.qs-win i:nth-child(1) { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-radius: 28px 0 0 0; }
.qs-win i:nth-child(2) { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-radius: 0 28px 0 0; }
.qs-win i:nth-child(3) { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-radius: 0 0 0 28px; }
.qs-win i:nth-child(4) { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-radius: 0 0 28px 0; }
.qs-top { z-index: 3; position: absolute; top: calc(env(safe-area-inset-top) + 8px); left: 12px; right: 12px; display: flex; justify-content: space-between; }
.qs-round { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; font-size: 1.35rem; }
.qs-round[hidden] { display: none; }
.qs-round.is-on { background: #fff; color: #000; }
.qs-note { position: absolute; left: 24px; right: 24px; top: calc(38% + var(--win) / 2 + 28px); max-width: 420px; margin: 0 auto; text-align: center; }
.qs-note h2 { margin: 0; color: #fff; font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.qs-note p { margin: 8px 0 0; color: rgba(255, 255, 255, .72); font-size: .9rem; line-height: 1.45; }
.qs-spin { display: inline-block; width: 20px; height: 20px; margin-top: 10px; border-radius: 50%; border: 2.4px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: qsSpin .8s linear infinite; }
@keyframes qsSpin { to { transform: rotate(1turn); } }
.qs-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 16px; text-align: left; animation: qsIn .32s cubic-bezier(.34, 1.56, .64, 1); }
.qs-card.is-ok { --t: #4fdb8c; } .qs-card.is-bad { --t: #f87171; }
.qs-card { background: color-mix(in srgb, var(--t) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 35%, transparent); }
.qs-card > span { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--t); color: #000; font-size: 1.05rem; }
.qs-card b { display: block; color: var(--t); font-weight: 800; font-size: .95rem; }
.qs-card p { margin: 2px 0 0; color: rgba(255, 255, 255, .82); font-size: .82rem; line-height: 1.4; }
@keyframes qsIn { from { opacity: 0; transform: translateY(8px); } }
.qs-bottom { position: absolute; left: 24px; right: 24px; bottom: calc(env(safe-area-inset-bottom) + 20px); max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qs-bottom small { color: rgba(255, 255, 255, .6); font-size: .8rem; }
.qs-outline { width: 100%; min-height: 48px; border: 0; border-radius: 14px; background: transparent; color: #fff; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.qs-outline:hover { background: rgba(255, 255, 255, .06); }
.qs-done { width: 100%; min-height: 50px; border: 0; border-radius: 14px; background: #4fdb8c; color: #0b3d20; font-weight: 800; }
.qs-err { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px; background: #000; text-align: center; }
.qs-err[hidden] { display: none; }
.qs-err iconify-icon { font-size: 2.8rem; color: rgba(255, 255, 255, .7); margin-bottom: 8px; }
.qs-err h2 { margin: 0; color: #fff; font-weight: 800; font-size: 1.25rem; }
.qs-err p { margin: 0 0 10px; max-width: 34ch; color: rgba(255, 255, 255, .7); line-height: 1.45; }
.qs-err .qs-outline { width: auto; padding: 0 22px; }
@media (prefers-reduced-motion: reduce) { .qs-spin { animation-duration: 2s; } .qs-card { animation: none; } }

/* responsive: card headers wrap and segmented filters scroll inside their space instead of widening the page */
.sp-card-head { flex-wrap: wrap; }
.sp-card-tools { max-width: 100%; min-width: 0; }
.mb-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.mb-seg::-webkit-scrollbar { display: none; }
.mb-seg button { flex: none; white-space: nowrap; }
@media (max-width: 575.98px) { .sp-card-head > .sp-card-tools { margin-left: 0; width: 100%; } }

/* Profile: your photo above the card; tapping it is how the picture is changed */
.pf-me { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 6px; text-align: center; }
.pf-photo { position: relative; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.pf-ava { display: block; width: 112px; height: 112px; margin: 10px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 3px #fff200, 0 0 0 6.5px #e5120f, 0 0 0 9px #0b0507, 0 18px 34px -10px rgba(0, 0, 0, .45); transition: transform .3s var(--nb-ease); }
.pf-ava img { width: 100%; height: 100%; object-fit: cover; }
.pf-cam { position: absolute; right: 6px; bottom: 6px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--nb-yel); color: var(--nb-ink); font-size: 1.15rem; box-shadow: 0 0 0 3px var(--sp-surface), 0 6px 14px -4px rgba(0, 0, 0, .4); transition: transform .25s var(--nb-ease); }
.pf-photo:hover .pf-ava { transform: scale(1.03); }
.pf-photo:hover .pf-cam { transform: scale(1.1) rotate(-8deg); }
.pf-photo:focus-visible { outline: 3px solid var(--sp-primary); outline-offset: 6px; }
.pf-me-tx b { display: block; font: 400 1.5rem/1 var(--nb-disp); text-transform: uppercase; letter-spacing: .01em; }
.pf-me-tx small { display: block; margin-top: 4px; font-size: .78rem; font-weight: 700; color: var(--sp-muted); }

/* page skeletons: a soft shimmer in the brand's warm tones */
.mb-skel { position: relative; overflow: hidden; height: 14px; border-radius: 8px; background: var(--sp-surface-3); animation: none; }
.mb-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--sp-surface) 70%, transparent), transparent); animation: skSweep 1.3s ease-in-out infinite; }
[data-bs-theme="dark"] .mb-skel { background: #24151a; }
[data-bs-theme="dark"] .mb-skel::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent); }
@keyframes skSweep { to { transform: translateX(100%); } }
.sk { animation: skIn .3s ease both; }
@keyframes skIn { from { opacity: 0; } }
.sk-head { margin-bottom: 24px; }
.sk-kpi { display: flex; align-items: center; gap: 14px; padding: 18px; }
.sk-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; }
.sk-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--sp-divider); }
.sk-row:first-of-type { border-top: 0; }
.sk-date { width: 52px; height: 52px; flex: none; border-radius: 12px; }
.sk-chip { width: 74px; height: 24px; flex: none; border-radius: 99px; }
.sk-hero { height: 260px; border-radius: 22px; margin-bottom: 1rem; }
.sk-block { height: 100%; min-height: 230px; border-radius: 18px; }
.sk-band { height: 120px; border-radius: 22px; margin-bottom: 1rem; }
.sk-img { height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
.sk-sq { height: auto; aspect-ratio: 1; border-radius: 16px; }
.sk-circle { width: 120px; height: 120px; margin: 8px auto 0; border-radius: 50%; }
.sk-cardimg { height: auto; aspect-ratio: 1.5; max-width: 420px; margin: 0 auto; border-radius: 22px; }
@media (prefers-reduced-motion: reduce) { .mb-skel::after { animation: none; } }

/* ── Admin editing ── */
.ad-btns { display: inline-flex; gap: 6px; }
.ad-btns .sp-icon-btn { width: 32px; height: 32px; font-size: .95rem; }
.ad-btns .ad-del:hover { background: var(--sp-danger-soft); color: var(--sp-danger-text); }
.mb-card { position: relative; }
.mb-card > .ad-btns { position: absolute; z-index: 2; top: 10px; right: 10px; }
.mb-card > .ad-btns .sp-icon-btn { background: rgba(255, 255, 255, .92); color: #1c1917; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .4); }
.mb-card > .ad-btns .ad-del:hover { background: #fde8e8; color: #b91c1c; }

.fp { position: fixed; inset: 0; z-index: var(--sp-z-modal); display: flex; justify-content: flex-end; }
.fp-bg { position: absolute; inset: 0; background: var(--sp-overlay); opacity: 0; transition: opacity .22s; }
.fp-panel { position: relative; width: min(100%, 560px); height: 100%; display: flex; flex-direction: column; margin: 0; background: var(--sp-surface); box-shadow: var(--sp-shadow-lg); transform: translateX(30px); opacity: 0; transition: transform .35s var(--nb-ease), opacity .22s; }
.fp.is-on .fp-bg { opacity: 1; }
.fp.is-on .fp-panel { transform: none; opacity: 1; }
.fp-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 24px 14px; border-bottom: 1px solid var(--sp-divider); }
.fp-head h2 { margin: 8px 0 0; font: 400 1.7rem/1 var(--nb-disp); text-transform: uppercase; letter-spacing: .01em; }
.fp-head .sp-icon-btn { margin-left: auto; flex: none; }
.fp-body { flex: 1; overflow-y: auto; padding: 18px 24px; display: grid; gap: 16px; align-content: start; }
.fp-f { margin: 0; padding: 0; border: 0; min-width: 0; }
.fp-opt { font-weight: 600; color: var(--sp-subtle); font-size: .72rem; }
.fp-help { display: block; margin-top: 5px; font-size: .74rem; color: var(--sp-muted); }
.fp-f .form-control, .fp-f .form-select { min-height: 44px; }
.fp-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; max-height: 240px; overflow-y: auto; padding: 8px; border-radius: 12px; background: var(--sp-surface-2); }
.fp-checks label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: .8rem; font-weight: 600; cursor: pointer; }
.fp-checks label:hover { background: var(--sp-surface-3); }
/* Checkboxes, after the buildwithluke style: a rounded square with a thin border that fills with the brand colour and
   a bold rounded white tick when ticked (a dash when partly), a soft focus ring, a small press, dimmed when off-limits,
   and a sunken box in dark mode. Switches (.form-switch, .cx-sw) and hidden inputs that draw their own (.rg-row) keep theirs. */
.fp-checks input[type="checkbox"], .form-check:not(.form-switch) .form-check-input[type="checkbox"], .form-check-input[type="checkbox"]:not(.form-switch *), .nb-check {
  -webkit-appearance: none; appearance: none; flex: none; width: 18px; height: 18px; margin: 0; padding: 0; border-radius: 5px; vertical-align: middle;
  border: 1.5px solid var(--sp-border-strong); background: var(--sp-surface) center / 100% 100% no-repeat; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .12s ease, filter .15s ease;
}
.fp-checks input[type="checkbox"]:hover:not(:checked):not(:disabled), .form-check-input[type="checkbox"]:hover:not(:checked):not(:disabled):not(.form-switch *), .nb-check:hover:not(:checked):not(:disabled) { border-color: var(--sp-primary); }
.fp-checks input[type="checkbox"]:checked, .form-check-input[type="checkbox"]:checked:not(.form-switch *), .nb-check:checked { background-color: var(--sp-primary); border-color: var(--sp-primary); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e"); animation: nbTick .2s var(--nb-ease); }
.fp-checks input[type="checkbox"]:indeterminate, .form-check-input[type="checkbox"]:indeterminate:not(.form-switch *), .nb-check:indeterminate { background-color: var(--sp-primary); border-color: var(--sp-primary); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e"); }
.fp-checks input[type="checkbox"]:focus-visible, .form-check-input[type="checkbox"]:focus-visible:not(.form-switch *), .nb-check:focus-visible { outline: 0; border-color: var(--sp-primary); box-shadow: 0 0 0 3px var(--sp-primary-ring); }
.fp-checks input[type="checkbox"]:focus:not(:focus-visible), .form-check-input[type="checkbox"]:focus:not(:focus-visible):not(.form-switch *) { box-shadow: none; }
.fp-checks input[type="checkbox"]:active:not(:disabled), .form-check-input[type="checkbox"]:active:not(:disabled):not(.form-switch *), .nb-check:active:not(:disabled) { transform: scale(.9); filter: brightness(.92); }
.fp-checks input[type="checkbox"]:disabled, .form-check-input[type="checkbox"]:disabled:not(.form-switch *), .nb-check:disabled { opacity: .5; cursor: default; }
[data-bs-theme="dark"] .fp-checks input[type="checkbox"]:not(:checked):not(:indeterminate), [data-bs-theme="dark"] .form-check-input[type="checkbox"]:not(:checked):not(:indeterminate):not(.form-switch *), [data-bs-theme="dark"] .nb-check:not(:checked):not(:indeterminate) { background-color: var(--sp-surface-2); border-color: var(--sp-border-strong); }
.fp-checks label:has(input:checked) { color: var(--sp-text); background: var(--sp-surface); box-shadow: inset 0 0 0 1px var(--sp-primary-ring); }
@keyframes nbTick { 0% { transform: scale(.75); } 60% { transform: scale(1.08); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .fp-checks input[type="checkbox"]:checked, .form-check-input[type="checkbox"]:checked, .nb-check:checked { animation: none; } }
@media (pointer: coarse) { .fp-checks input[type="checkbox"], .form-check-input[type="checkbox"]:not(.form-switch *), .nb-check { width: 20px; height: 20px; } }
.fp-img { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; background: var(--sp-surface-2); box-shadow: inset 0 0 0 1.5px dashed var(--sp-border); cursor: pointer; outline: 1.5px dashed var(--sp-border-strong); outline-offset: -1.5px; }
.fp-img:hover { background: var(--sp-surface-3); }
.fp-img-pv { width: 72px; height: 72px; flex: none; display: grid; place-items: center; border-radius: 10px; overflow: hidden; background: var(--sp-surface); color: var(--sp-subtle); font-size: 1.8rem; }
.fp-img-pv img { width: 100%; height: 100%; object-fit: cover; }
.fp-img-tx b { display: block; font-weight: 800; font-size: .86rem; word-break: break-all; }
.fp-img-tx small { display: block; font-size: .74rem; color: var(--sp-muted); }
.fp-err { padding: 0 24px 6px; }
.fp-foot { display: flex; align-items: center; gap: 10px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sp-divider); }
.fp-del { color: var(--sp-danger-text) !important; }
.fp-del:hover { background: var(--sp-danger-soft) !important; }

.cf { position: fixed; inset: 0; z-index: calc(var(--sp-z-modal) + 5); display: grid; place-items: center; padding: 16px; }
.cf-bg { position: absolute; inset: 0; background: var(--sp-overlay); }
.cf-box { position: relative; width: min(100%, 400px); padding: 24px; border-radius: 20px; background: var(--sp-surface); box-shadow: var(--sp-shadow-lg); text-align: center; animation: cfIn .25s var(--nb-ease); }
@keyframes cfIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.cf-ico { width: 52px; height: 52px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: var(--sp-danger-soft); color: var(--sp-danger-text); font-size: 1.5rem; }
.cf-box h2 { margin: 0; font-weight: 800; font-size: 1.15rem; }
.cf-box p { margin: 8px 0 18px; color: var(--sp-muted); font-size: .88rem; }
.cf-acts { display: flex; gap: 10px; justify-content: center; }
.cf-acts .btn { flex: 1; }

/* ── Certificates ── */
.ct-sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-bottom: 18px; padding: 16px 20px; border-radius: 18px; color: #fff; background: var(--nb-cloth); }
.ct-sum b { font: 400 2.4rem/1 var(--nb-disp); color: var(--nb-yel); margin-right: 8px; }
.ct-sum span { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }
.ct-sum .mb-seg { background: rgba(13, 6, 7, .35); }
.ct-sum .mb-seg button { color: rgba(255, 255, 255, .8); }
.ct-sum .mb-seg button span { margin-left: 4px; padding: 1px 6px; border-radius: 99px; background: rgba(255, 255, 255, .14); font-size: .66rem; letter-spacing: 0; text-transform: none; }
.ct-sum .mb-seg button.is-on { background: #fff; color: #1c1917; }
.ct-sum .mb-seg button.is-on span { background: var(--nb-yel); }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.ct[hidden] { display: none; }
.ct { display: flex; flex-direction: column; border-radius: 18px; background: var(--sp-surface); box-shadow: inset 0 0 0 1px var(--sp-border); overflow: hidden; transition: transform .3s var(--nb-ease), box-shadow .3s; }
.ct:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--sp-border-strong), var(--sp-shadow-md); }
.ct-paper { position: relative; display: block; aspect-ratio: 297 / 210; margin: 12px 12px 0; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35); container-type: inline-size; }
.ct-border { position: absolute; inset: 0; width: 100%; height: 100%; }
.ct-in { position: absolute; inset: 9% 12%; display: flex; flex-direction: column; align-items: center; text-align: center; color: #b3171d; }
.ct-in img { width: 13cqw; height: 13cqw; }
.ct-in b { margin-top: 1.5cqw; font: 700 6.4cqw/1 Helvetica, Arial, sans-serif; letter-spacing: .5cqw; }
.ct-in i { font: italic 3cqw/1.3 Helvetica, Arial, sans-serif; }
.ct-ev { margin-top: auto; font: 700 3.6cqw/1.2 'Times New Roman', serif; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ct-in small { margin-top: 1cqw; margin-bottom: 6cqw; font: 3cqw/1.2 'Times New Roman', serif; color: #44403c; }
.ct-meta { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.ct-meta b { display: block; font-weight: 800; font-size: .9rem; line-height: 1.3; }
.ct-meta small { display: block; margin-top: 2px; font-size: .76rem; color: var(--sp-muted); }
.ct-meta code { display: inline-block; margin-top: 6px; font-size: .7rem; }
.ct-acts { display: flex; gap: 8px; }
.ct-acts .btn { flex: 1; }

/* admin export */
.at-export { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--sp-surface-2); }
.at-export-l { display: inline-flex; align-items: center; gap: 7px; margin-right: auto; font-weight: 800; font-size: .86rem; }
.at-export-l iconify-icon { font-size: 1.15rem; color: var(--sp-primary); }
.at-export .form-control, .at-export .form-select { width: auto; flex: 0 1 180px; height: 40px; }
.at-ov-ex { display: flex; gap: 8px; margin-top: 10px; }
@media (max-width: 575.98px) { .at-export-l { width: 100%; } .at-export .form-control, .at-export .form-select { flex: 1 1 140px; } }
.at-check > * { min-width: 0; }
.at-check h2 { overflow-wrap: anywhere; }

/* ── Users (admin) ── */
.us-filters .form-select { flex: 0 1 150px; }
.us-row { cursor: pointer; }
.us-row:focus-visible td { background: var(--sp-primary-soft); }
.us-panel .fp-panel { width: min(100%, 520px); }
.us-head { align-items: center; }
.us-ava { width: 64px; height: 64px; margin: 6px; box-shadow: 0 0 0 2.5px #fff200, 0 0 0 5px #e5120f, 0 0 0 7px #0b0507; }
.us-head h2 { margin: 6px 0 0; font: 400 1.5rem/1 var(--nb-disp); text-transform: uppercase; letter-spacing: .01em; }
.us-head p { margin: 3px 0 0; font-size: .8rem; color: var(--sp-muted); font-weight: 600; }
.us-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 14px; background: var(--sp-surface-2); overflow: hidden; }
.us-stats > div { padding: 12px; text-align: center; }
.us-stats > div + div { border-left: 1px solid var(--sp-divider); }
.us-stats b { display: block; font: 400 1.6rem/1 var(--nb-disp); }
.us-stats span { font-size: .72rem; font-weight: 700; color: var(--sp-muted); }
.us-g h3 { margin: 6px 0 4px; font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sp-subtle); }

/* attendance stats card v2: fills its height, tiles, month / year progress */
.at-stats { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 20px 22px; }
.at-stats-hd { display: flex; align-items: center; justify-content: space-between; }
.at-stats-hd span { font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sp-subtle); }
.at-stats-top { flex: 1; display: flex; align-items: center; gap: 22px; }
.at-stats .at-ring { width: 148px; height: 148px; flex: none; }
.at-kv { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.at-kv > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 11px 12px; border-radius: 14px; background: var(--sp-surface-2); }
.at-kv iconify-icon { grid-row: span 2; font-size: 1.45rem; }
.at-kv b { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1; }
.at-kv span { display: block; margin-top: 3px; font-size: .7rem; font-weight: 700; color: var(--sp-muted); }
.at-kv .is-in { background: var(--sp-success-soft); } .at-kv .is-in iconify-icon, .at-kv .is-in b { color: var(--sp-success-text); }
.at-kv .is-out iconify-icon { color: var(--sp-subtle); }
.at-kv .is-wait { background: var(--sp-warning-soft); } .at-kv .is-wait iconify-icon, .at-kv .is-wait b { color: var(--sp-warning-text); }
.at-kv .is-fire { background: rgba(232, 89, 12, .12); } .at-kv .is-fire iconify-icon, .at-kv .is-fire b { color: #e8590c; }
.at-prs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 14px; border-top: 1px solid var(--sp-divider); }
.at-pr-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; font-size: .72rem; font-weight: 700; color: var(--sp-muted); }
.at-pr-h b { font-size: .95rem; font-weight: 800; color: var(--sp-text); }
.at-pr-h small { font-size: .74rem; color: var(--sp-subtle); font-weight: 700; }
.at-pr i { display: block; height: 7px; border-radius: 4px; background: var(--sp-surface-3); overflow: hidden; }
.at-pr i b { display: block; height: 100%; border-radius: inherit; background: var(--sp-primary); }
@media (max-width: 575.98px) { .at-stats-top { flex-direction: column; } .at-kv { width: 100%; } }

/* year grid: the weeks stretch to the card's full width (squares grow with it), scroll sideways on small screens */
.yr { --g: 4px; display: block; width: 100%; min-width: calc(34px + var(--n, 53) * 13px); }
.yr-months { display: grid; grid-template-columns: repeat(var(--n, 53), minmax(0, 1fr)); grid-auto-flow: row; column-gap: var(--g); margin-left: 34px; height: 18px; }
.yr-months span { min-width: 0; overflow: visible; }
.yr-body { display: flex; gap: 6px; }
.yr-days { width: 28px; grid-template-rows: repeat(7, minmax(0, 1fr)); }
.yr-days span { line-height: 1; display: flex; align-items: center; }
.yr-cols { flex: 1; display: grid; grid-template-columns: repeat(var(--n, 53), minmax(0, 1fr)); gap: var(--g); }
.yr-cols > div { display: grid; grid-template-rows: repeat(7, auto); row-gap: var(--g); }
.yr-cols i { width: 100%; height: auto; aspect-ratio: 1; border-radius: 22%; }

/* themed dropdowns (sp-select, as procust): menu at least as wide as its options, scrolls when long, brand surfaces */
.sp-select-menu { right: auto; min-width: 100%; width: max-content; max-width: min(360px, 90vw); max-height: 320px; overflow-y: auto; border: 0; border-radius: 14px; }
[data-bs-theme="dark"] .sp-select-menu { background: var(--sp-surface-2); }
.sp-select-opt { white-space: nowrap; }
.sp-select-btn { border-radius: 10px; box-shadow: none; }
.mb-filters .sp-select, .at-tools-row .sp-select, .at-export .sp-select { flex: 0 1 180px; min-width: 0; }
.at-tools-row .sp-select { flex: 1 1 320px; }
.mb-filters .sp-select:last-of-type .sp-select-menu { left: auto; right: 0; }

/* phones: the page itself never pans sideways (only tables, the year grid and chip rows scroll inside their cards).
   clip, not hidden, so the sticky top bar and headers keep working; hidden is the fallback for older browsers. */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.sp-main, .sp-content { min-width: 0; max-width: 100%; overflow-x: clip; }

/* ── Date / month picker, in the buildwithluke template's daterangepicker style ── */
.dp { position: relative; min-width: 0; }
.dp-btn { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--sp-border); border-radius: 10px; background: var(--sp-surface); color: var(--sp-text); font-size: var(--sp-fs-sm); font-weight: 600; text-align: left; transition: border-color .15s, box-shadow .15s; }
[data-bs-theme="dark"] .dp-btn { background: var(--sp-surface-2); }
.dp-btn:hover { border-color: var(--sp-border-strong); }
.dp-btn[aria-expanded="true"], .dp-btn:focus-visible { border-color: var(--sp-primary); box-shadow: 0 0 0 3px var(--sp-primary-ring); outline: 0; }
.dp-btn iconify-icon { margin-left: auto; font-size: 1.1rem; color: var(--sp-muted); flex: none; }
.dp-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-ph { color: var(--sp-placeholder); font-weight: 500; }
.at-export .dp { flex: 0 1 190px; }
.at-export .dp-btn { min-height: 40px; }
.dp-card { position: absolute; z-index: var(--sp-z-popover); left: 0; top: calc(100% + 6px); width: 284px; padding: 10px; border: 1px solid var(--sp-border); border-radius: var(--sp-radius-lg); background: var(--sp-surface); box-shadow: var(--sp-shadow-lg); color: var(--sp-text); font-family: var(--sp-font); animation: dpIn .16s var(--nb-ease); }
[data-bs-theme="dark"] .dp-card { background: var(--sp-surface-2); }
.dp-card.is-up { top: auto; bottom: calc(100% + 6px); }
.dp-card.is-right { left: auto; right: 0; }
@keyframes dpIn { from { opacity: 0; transform: translateY(-4px); } }
.dp-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 8px; }
.dp-head b { font-size: var(--sp-fs-sm); font-weight: 700; }
.dp-nav { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: var(--sp-radius-sm); background: transparent; color: var(--sp-text-2); font-size: 1rem; }
.dp-nav:hover { background: var(--sp-surface-3); color: var(--sp-text); }
.dp-week, .dp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-week span { height: 28px; display: grid; place-items: center; font-size: var(--sp-fs-2xs); font-weight: 600; color: var(--sp-muted); }
.dp-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 2px 0 4px; }
.dp-c { height: 34px; border: 0; border-radius: var(--sp-radius-sm); background: transparent; color: var(--sp-text-2); font-size: var(--sp-fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; }
.dp-months .dp-c { height: 40px; font-size: var(--sp-fs-sm); }
.dp-c:hover { background: var(--sp-surface-3); color: var(--sp-text); }
.dp-c.is-off { color: var(--sp-subtle); font-weight: 500; }
.dp-c.is-now { box-shadow: inset 0 0 0 1.5px var(--sp-primary-soft-2); color: var(--sp-primary-text); }
.dp-c.is-on, .dp-c.is-on:hover { background: var(--sp-primary); color: #fff; box-shadow: none; }
.dp-c:focus-visible { outline: 2px solid var(--sp-primary); outline-offset: 1px; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--sp-divider); }
.dp-foot button { min-height: 30px; padding: 4px 12px; border: 0; border-radius: var(--sp-radius-sm); background: transparent; color: var(--sp-text-2); font-size: var(--sp-fs-xs); font-weight: 700; }
.dp-foot button:hover { background: var(--sp-surface-3); color: var(--sp-text); }
.dp-foot button[data-v] { background: var(--sp-primary-soft); color: var(--sp-primary-text); }
@media (max-width: 575.98px) { .dp-card { width: min(300px, calc(100vw - 32px)); } }

/* ── Export preview (as procust's report preview) ── */
.xp .modal-content { border: 0; border-radius: 20px; background: var(--sp-surface); box-shadow: var(--sp-shadow-lg); }
[data-bs-theme="dark"] .xp .modal-content { background: var(--sp-surface-2); }
.xp .modal-header, .xp .modal-footer { border-color: var(--sp-divider); }
.xp .modal-title { font-weight: 800; }
[data-bs-theme="dark"] .xp .btn-close { filter: invert(1) grayscale(1) brightness(1.6); }
.xp-badge { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; font-size: 1.35rem; }
.xp-badge.is-xl { background: rgba(33, 115, 70, .14); color: #217346; }
.xp-badge.is-pdf { background: var(--sp-danger-soft); color: var(--sp-danger-text); }
[data-bs-theme="dark"] .xp-badge.is-xl { background: rgba(79, 219, 140, .14); color: #4fdb8c; }
.xp-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.xp-sum > div { min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--sp-surface-2); box-shadow: inset 0 0 0 1px var(--sp-border); }
[data-bs-theme="dark"] .xp-sum > div { background: var(--sp-surface-3); }
.xp-sum small { display: block; font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sp-subtle); }
.xp-sum b { display: block; margin-top: 2px; font-size: .86rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the sheet: light like Excel in both themes */
.xp-wrap { max-height: 52vh; overflow: auto; border-radius: 10px; border: 1px solid #c9d1dd; background: #fff; color-scheme: light; }
.xp-sheet { border-collapse: collapse; font: 12px/1.35 Calibri, 'Segoe UI', Arial, sans-serif; width: max-content; min-width: 100%; color: #212529; font-variant-numeric: tabular-nums; }
.xp-sheet th, .xp-sheet td { padding: 4px 9px; border: 1px solid #e3e6eb; white-space: nowrap; background: #fff; }
.xp-sheet thead th, .xp-sheet tbody th { position: sticky; z-index: 1; background: #f1f3f6; color: #5b6472; font-weight: 600; text-align: center; }
.xp-sheet thead th { top: 0; }
.xp-sheet tbody th { left: 0; min-width: 34px; }
.xp-sheet thead th.x-corner { left: 0; z-index: 2; }
.xp-sheet td.x-title { font-size: 16px; font-weight: 700; color: #8f1d0c; border-color: transparent; }
.xp-sheet td.x-muted { font-size: 11px; color: #6c757d; border-color: transparent; }
.xp-sheet td.x-sec { background: #8f1d0c; color: #fff; font-size: 13px; font-weight: 700; border-color: #8f1d0c; }
.xp-sheet td.x-lab { background: #f8f9fa; color: #495057; font-weight: 700; font-size: 11px; }
.xp-sheet td.x-val { background: #f8f9fa; }
.xp-sheet td.x-head { background: #8f1d0c; color: #fff; font-weight: 700; text-align: center; border-color: #a33a2a; }
.xp-sheet td.x-none { color: #6c757d; font-style: italic; text-align: center; }
.xp-pdf { height: 62vh; border-radius: 12px; overflow: hidden; background: #2a1a1e; box-shadow: inset 0 0 0 1px var(--sp-border); }
.xp-pdf iframe { width: 100%; height: 100%; border: 0; }
.xp-note { display: flex; align-items: flex-start; gap: 6px; margin: 10px 0 0; font-size: .78rem; color: var(--sp-muted); }
.xp-note iconify-icon { flex: none; margin-top: 2px; }
@media (max-width: 575.98px) { .xp-pdf { height: 58vh; } }

/* year grid hover card: the template's chart tooltip (.sp-chart-tip) */
.yr-tip { position: fixed; z-index: var(--sp-z-popover); max-width: 300px; min-width: 170px; padding: 10px 12px; background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-radius); box-shadow: var(--sp-shadow-md); font-family: var(--sp-font); pointer-events: none; animation: dpIn .12s ease; }
[data-bs-theme="dark"] .yr-tip { background: var(--sp-surface-2); }
.yr-tip[hidden] { display: none; }
.yr-tip-date { font-size: var(--sp-fs-2xs); font-weight: 600; color: var(--sp-text-2); margin-bottom: 6px; }
.yr-tip-ses + .yr-tip-ses { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--sp-divider); }
.yr-tip-row { display: flex; align-items: center; gap: 8px; font-size: var(--sp-fs-xs); color: var(--sp-muted); line-height: 1.5; }
.yr-tip-row b { color: var(--sp-text); font-weight: 700; }
.yr-tip-row.is-none { font-style: italic; }
.yr-tip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--sp-surface-3); }
.yr-tip-dot.is-attended { background: var(--sp-success); }
.yr-tip-dot.is-missed, .yr-tip-dot.is-rejected { background: color-mix(in srgb, var(--sp-primary) 70%, var(--sp-surface-3)); }
.yr-tip-dot.is-pending { background: #ffad3b; }
.yr-tip-dot.is-upcoming { background: transparent; box-shadow: inset 0 0 0 1.5px var(--sp-border-strong); }
.yr-tip-meta { margin: 2px 0 0 16px; font-size: var(--sp-fs-2xs); color: var(--sp-muted); }
.yr-tip-st { font-weight: 700; }
.yr-tip-st.is-attended { color: var(--sp-success-text); }
.yr-tip-st.is-missed, .yr-tip-st.is-rejected { color: var(--sp-primary-text); }
.yr-tip-st.is-pending { color: var(--sp-warning-text); }
.yr-cols i[data-k] { cursor: default; }
.yr-cols i[tabindex] { cursor: pointer; }
.yr-cols i.is-hover { outline: 2px solid var(--sp-text); outline-offset: 1px; position: relative; z-index: 1; }
.yr-cols i:focus-visible { outline: 2px solid var(--sp-primary); outline-offset: 1px; }

/* ── Bengkong & Sandang ─────────────────────────── */
.rk-you { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.rk-you-item { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; border-radius: var(--sp-radius-lg, 18px); overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--sp-primary) 30%, transparent), transparent 60%), linear-gradient(135deg, #1a0d0e, #2b1214);
  color: #fff; box-shadow: var(--sp-shadow-md); isolation: isolate; }
.rk-you-item::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08; background: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 12px); }
.rk-you-k { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffad3b; }
.rk-you-art { display: flex; align-items: center; height: 74px; margin: 8px 0 10px; }
.rk-you-art.is-none { justify-content: center; width: 74px; border-radius: 50%; background: rgba(255,255,255,.08); font-size: 2rem; color: rgba(255,255,255,.6); }
.rk-you-img { max-width: 100%; max-height: 74px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); }
.rk-you-item b { font-family: 'Anton', var(--sp-font); font-weight: 400; font-size: 1.25rem; letter-spacing: .01em; line-height: 1.2; }
.rk-you-item small { color: rgba(255,255,255,.7); font-weight: 600; }
.rk-bar { margin-bottom: 16px; flex-wrap: wrap; }
.rk-bar .mb-seg span { margin-left: 4px; font-size: .7rem; opacity: .6; }
.rk-fam { margin-bottom: 26px; }
.rk-fam[hidden], .rk-part[hidden], .rk-tile[hidden] { display: none !important; }
.rk-fam-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rk-fam-head h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.rk-fam-head p { margin: 0; font-size: var(--sp-fs-xs); color: var(--sp-muted); }
.rk-sw { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), var(--sp-shadow-sm); display: grid; place-items: center; }
.rk-sw.is-crown { background: linear-gradient(135deg, #ffcf5a, #f08a24); color: #3a1a00; font-size: 1.1rem; }
.rk-fam-n { margin-left: auto; min-width: 30px; padding: 3px 9px; border-radius: 99px; background: var(--sp-surface-2); font-size: .75rem; font-weight: 800; color: var(--sp-muted); text-align: center; }
.rk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.rk-tile { position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--sp-border); border-radius: var(--sp-radius); background: var(--sp-surface); overflow: hidden; cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s; color: inherit; }
.rk-tile:hover { transform: translateY(-2px); box-shadow: var(--sp-shadow-md); border-color: var(--sp-border-strong); }
.rk-tile:focus-visible { outline: 2px solid var(--sp-primary); outline-offset: 2px; }
.rk-tile.is-mine { border-color: color-mix(in srgb, var(--sp-success) 60%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sp-success) 18%, transparent); }
.rk-tile.is-extra { border-style: dashed; }
.rk-stage { display: flex; align-items: center; justify-content: center; height: 86px; padding: 14px 16px;
  background: linear-gradient(180deg, var(--sp-surface-2), color-mix(in srgb, var(--sp-surface-2) 50%, var(--sp-surface))); }
[data-bs-theme="dark"] .rk-stage { background: radial-gradient(90% 120% at 50% 40%, #5a5153, #353032); }
[data-bs-theme="dark"] .rk-img { filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)) drop-shadow(0 0 1px rgba(255,255,255,.35)); }
.rk-you-img, .rk-lb-img { filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)) drop-shadow(0 0 1.5px rgba(255,255,255,.55)) !important; }
.rk-img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)) drop-shadow(0 0 1px rgba(0,0,0,.35)); transition: transform .25s; pointer-events: none; }
.rk-tile:hover .rk-img { transform: scale(1.04); }
.rk-img.is-broken { width: 70%; height: 30px; border-radius: 6px; background: var(--sp-surface-3); }
.rk-body { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px 13px; }
.rk-body b { font-weight: 800; font-size: .9rem; line-height: 1.3; }
.rk-body small { color: var(--sp-muted); font-size: var(--sp-fs-2xs); font-weight: 600; }
.rk-n { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: var(--sp-fs-2xs); font-weight: 700; color: var(--sp-text-2); }
.rk-n.is-soft { color: var(--sp-muted); font-weight: 600; }
.rk-mine { position: absolute; top: 8px; right: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; background: var(--sp-success); color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.rk-none[hidden] { display: none; }
/* viewer */
.rk-lb { position: fixed; inset: 0; z-index: 1085; display: grid; place-items: center; padding: 16px; }
.rk-lb[hidden] { display: none; }
.rk-lb-bg { position: absolute; inset: 0; background: rgba(10,6,7,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: dpIn .15s ease; }
.rk-lb-card { position: relative; width: min(640px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--sp-surface); border-radius: var(--sp-radius-lg, 18px); box-shadow: var(--sp-shadow-lg, 0 30px 80px rgba(0,0,0,.4)); overflow: hidden; animation: dpIn .18s ease; }
.rk-lb-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.rk-lb-in { overflow-y: auto; }
.rk-lb-stage { display: grid; place-items: center; min-height: 190px; padding: 34px 28px; background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--sp-primary) 28%, transparent), transparent 65%), linear-gradient(135deg, #1a0d0e, #2b1214); }
.rk-lb-img { width: 100%; max-height: 160px; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0,0,0,.55)) drop-shadow(0 0 1px rgba(255,255,255,.25)); }
.rk-lb-meta { padding: 18px 22px 8px; }
.rk-lb-meta h3 { margin: 4px 0 10px; font-family: 'Anton', var(--sp-font); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.rk-lb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rk-who { margin-top: 16px; }
.rk-who-h { font-size: var(--sp-fs-xs); font-weight: 800; color: var(--sp-text-2); margin-bottom: 8px; }
.rk-who-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.rk-who-row { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 10px; background: var(--sp-surface-2); min-width: 0; }
.rk-who-row span { display: flex; flex-direction: column; min-width: 0; }
.rk-who-row b { font-size: .8rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-who-row small { font-size: var(--sp-fs-2xs); color: var(--sp-muted); }
.rk-lb-nav { display: flex; align-items: center; gap: 10px; padding: 12px 22px 18px; border-top: 1px solid var(--sp-divider); margin-top: 12px; }
.rk-lb-nav .btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.rk-lb-nav .btn:last-child { margin-left: auto; }
.rk-lb-pos { flex: 1; text-align: center; font-size: var(--sp-fs-xs); color: var(--sp-muted); font-weight: 700; }
body.rk-open { overflow: hidden; }
@media (max-width: 575.98px) {
  .rk-you { grid-template-columns: 1fr; gap: 10px; }
  .rk-you-art { height: 56px; margin: 6px 0 8px; } .rk-you-img { max-height: 56px; }
  .rk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rk-stage { height: 64px; padding: 10px; }
  .rk-body { padding: 9px 10px 11px; } .rk-body b { font-size: .8rem; }
  .rk-lb { padding: 0; align-items: end; }
  .rk-lb-card { width: 100%; border-radius: 20px 20px 0 0; max-height: 92dvh; }
  .rk-lb-nav .btn { padding-inline: 10px; }
}

/* ── Who is online (top bar) ─────────────────────── */
.nb-on-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 6px; border: 0; border-radius: 99px; background: var(--sp-surface-2); color: var(--sp-text); font-weight: 700; font-size: .78rem; transition: background .2s; }
.nb-on-btn:hover, .nb-on-btn[aria-expanded="true"] { background: var(--sp-surface-3); }
.nb-on-faces { display: inline-flex; }
.nb-on-faces:empty { display: none; }
.nb-on-faces .nb-on-av { width: 26px; height: 26px; font-size: .6rem; box-shadow: 0 0 0 2px var(--sp-surface-2); }
.nb-on-faces .nb-on-av + .nb-on-av { margin-left: -9px; }
.nb-on-faces .nb-on-av::after { display: none; }
.nb-on-count { display: inline-flex; align-items: center; gap: 5px; }
.nb-on-count i { width: 8px; height: 8px; border-radius: 50%; background: var(--sp-success); animation: nbPulse 2s infinite; }
@keyframes nbPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sp-success) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.nb-on-av { position: relative; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--sp-surface-3); display: inline-grid; place-items: center; font-weight: 800; font-size: .72rem; color: var(--sp-text-2); }
.nb-on-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.nb-on-av::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--sp-border-strong); box-shadow: 0 0 0 2px var(--sp-surface); }
.nb-on-av.is-on::after { background: var(--sp-success); }
.nb-on-menu { width: 330px; }
.nb-on-list { max-height: min(60vh, 420px); overflow-y: auto; padding: 4px 6px 6px; }
.nb-on-cap { padding: 10px 8px 6px; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sp-muted); }
.nb-on-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; }
.nb-on-row:hover { background: var(--sp-surface-2); }
.nb-on-row > span.min-w-0 { flex: 1; display: flex; flex-direction: column; }
.nb-on-row b { font-size: .82rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-on-row b em { font-style: normal; font-size: .62rem; font-weight: 800; padding: 1px 6px; border-radius: 99px; background: var(--sp-surface-3); color: var(--sp-muted); vertical-align: 1px; }
.nb-on-row small { font-size: var(--sp-fs-2xs); color: var(--sp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-on-when { flex-shrink: 0; font-size: var(--sp-fs-2xs); font-weight: 700; color: var(--sp-muted); }
.nb-on-when.is-on { color: var(--sp-success-text); }
.nb-on-foot { padding: 9px 14px; border-top: 1px solid var(--sp-divider); font-size: var(--sp-fs-2xs); color: var(--sp-muted); text-align: center; }
@media (max-width: 575.98px) {
  .nb-on-faces { display: none; }
  .nb-on-btn { padding: 0 10px; }
  .nb-on-menu { width: min(330px, calc(100vw - 24px)); }
}

/* ── Connection toast (member.js NET): offline / reconnecting / slow / back online, one toast changed in place ── */
.sp-toast.nb-net { max-width: 380px; }
.sp-toast.nb-net .nb-net-text { color: var(--sp-muted); font-size: var(--sp-fs-sm); line-height: 1.45; }
.sp-toast.nb-net [data-act] { font-weight: 700; text-decoration: none; }
.sp-toast.nb-net.is-spin .sp-toast-ico iconify-icon { animation: nb-net-spin 1.1s linear infinite; }
@keyframes nb-net-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sp-toast.nb-net.is-spin .sp-toast-ico iconify-icon { animation: none; } }
@media (max-width: 1199.98px) {
  .sp-toasts { left: 12px; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); align-items: center; }
  .sp-toasts .sp-toast { width: 100%; max-width: 520px; }
}
/* who's online while the connection is down: grey, no pulse */
.nb-on.is-off .nb-on-count i { background: var(--sp-subtle) !important; box-shadow: none !important; animation: none !important; }
.nb-on.is-off .nb-on-count, .nb-on.is-off .nb-on-faces { opacity: .55; }

/* ── YouTube player over the page (syllabus lessons, event videos) ── */
html.yt-lock, html.yt-lock body { overflow: hidden; }
.yt { position: fixed; inset: 0; z-index: 1090; display: grid; place-items: center; padding: 24px; }
.yt-bg { position: absolute; inset: 0; background: rgba(10, 6, 7, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s ease; }
.yt-box { position: relative; width: min(1040px, 100%, calc((100vh - 140px) * 16 / 9)); width: min(1040px, 100%, calc((100dvh - 140px) * 16 / 9)); min-width: min(320px, 100%); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .22s ease, transform .28s var(--sp-ease, ease); }
.yt.is-on .yt-bg, .yt.is-on .yt-box { opacity: 1; }
.yt.is-on .yt-box { transform: none; }
.yt-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #fff; }
.yt-ico { width: 32px; height: 32px; flex: none; display: inline-grid; place-items: center; border-radius: 10px; background: #ff0033; color: #fff; font-size: 1.15rem; }
.yt-t { flex: 1; min-width: 0; font-weight: 800; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yt-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: .85rem; text-decoration: none; transition: background .15s; }
.yt-btn:hover, .yt-btn:focus-visible { background: rgba(255,255,255,.22); color: #fff; }
.yt-btn.is-x { width: 36px; padding: 0; justify-content: center; font-size: 1.1rem; }
.yt-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-load { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 3px solid rgba(255,255,255,.18); border-top-color: #fff; animation: nb-net-spin .8s linear infinite; }
.yt.is-ready .yt-load { display: none; }
@media (max-width: 575.98px) {
  .yt { padding: 12px; align-content: center; }
  .yt-btn span { display: none; }
  .yt-btn { width: 36px; padding: 0; justify-content: center; }
  .yt-frame { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) { .yt-bg, .yt-box { transition: none; } .yt-load { animation: none; } }

/* ── Card link: play bar (YouTube, plays in the page) / open bar (other sites), and a play button on the picture ── */
.mb-watch { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 14px; text-decoration: none; color: var(--sp-text);
  background: var(--sp-surface-2); box-shadow: inset 0 0 0 1px var(--sp-border); position: relative; overflow: hidden; isolation: isolate;
  transition: color .25s, box-shadow .25s, transform .25s var(--nb-ease); }
.mb-watch::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--nb-cloth); opacity: 0; transition: opacity .3s var(--nb-ease); }
.mb-watch-play { width: 38px; height: 38px; flex: none; display: inline-grid; place-items: center; border-radius: 11px; background: var(--nb-red-hi); color: #fff; font-size: 1rem;
  box-shadow: 0 8px 16px -8px rgba(225, 6, 0, .8); transition: background .25s, color .25s, transform .3s var(--nb-ease); }
.mb-watch-play iconify-icon { transform: translateX(1px); }
.mb-watch-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.mb-watch-txt b { font-size: .86rem; font-weight: 800; letter-spacing: -.01em; }
.mb-watch-txt small { margin-top: 2px; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sp-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .25s; }
.mb-watch-go { margin-left: auto; flex: none; font-size: 1rem; color: var(--sp-subtle); transition: transform .3s var(--nb-ease), color .25s; }
.mb-watch:hover, .mb-watch:focus-visible { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 24px -14px rgba(143, 29, 12, .9); }
.mb-watch:hover::before, .mb-watch:focus-visible::before { opacity: 1; }
.mb-watch:hover .mb-watch-play, .mb-watch:focus-visible .mb-watch-play { background: var(--nb-yel); color: var(--nb-ink); transform: scale(1.06); }
.mb-watch:hover small, .mb-watch:focus-visible small { color: rgba(255, 255, 255, .7); }
.mb-watch:hover .mb-watch-go, .mb-watch:focus-visible .mb-watch-go { color: var(--nb-yel); transform: translateX(4px); }
.mb-watch:active { transform: scale(.985); }
.mb-watch.is-ext .mb-watch-play { background: var(--sp-surface); color: var(--sp-text); box-shadow: inset 0 0 0 1px var(--sp-border); }
.mb-card .mb-watch { align-self: stretch; }
/* the picture plays too */
.mb-card-play { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; text-decoration: none; }
.mb-card-play span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; font-size: 1.35rem; color: #fff; background: rgba(225, 6, 0, .9);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .18), 0 14px 30px -10px rgba(0, 0, 0, .7); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .35s var(--nb-ease), background .25s, color .25s; }
.mb-card-play span iconify-icon { transform: translateX(2px); }
.mb-card:hover .mb-card-play span, .mb-card-play:focus-visible span { opacity: 1; transform: none; }
.mb-card-play:hover span { background: var(--nb-yel); color: var(--nb-ink); }
@media (hover: none) { .mb-card-play span { opacity: .95; transform: scale(.86); } }
@media (prefers-reduced-motion: reduce) { .mb-watch, .mb-watch-play, .mb-watch-go, .mb-card-play span { transition: none; } }

/* export preview: the attendance report's extra cell styles (band, figures, session date, stripes, badge, sign-off) */
.xp-sheet td.x-band { background: #8f1d0c; color: #fff; font-size: 18px; font-weight: 700; border-color: #8f1d0c; padding-left: 14px; }
.xp-sheet td.x-band-sub { background: #8f1d0c; color: #ffe3de; font-size: 11px; border-color: #8f1d0c; padding-left: 14px; }
.xp-sheet td.x-kl { background: #fff8f0; color: #8a6f6a; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-align: center; border-color: #eadbd8; }
.xp-sheet td.x-kv { background: #fff8f0; color: #8f1d0c; font-size: 17px; font-weight: 700; text-align: center; border-color: #eadbd8; }
.xp-sheet td.x-date { background: #2b0a0e; color: #ffeb00; font-weight: 700; text-align: center; border-color: #2b0a0e; }
.xp-sheet td.x-z { background: #fbf5f4; }
.xp-sheet td.x-badge { background: #ffeb00; color: #0b0506; font-weight: 700; text-align: center; border-color: #ffeb00; }
.xp-sheet td.x-sign { border-color: transparent; border-bottom: 2px solid #212529; }
.xp-sheet td.x-note { color: #6c757d; font-size: 11px; border-color: transparent; }
.xp-sheet td.x-sl { font-weight: 700; color: #212529; border-color: transparent; }

/* ── Tables (procust style): No. column, sortable headings, pager ── */
.sp-table th.nb-no, .sp-table td.nb-no { width: 52px; padding-right: 4px; font-variant-numeric: tabular-nums; color: var(--sp-muted); font-size: var(--sp-fs-xs); }
.sp-table thead th[data-sort] { cursor: pointer; -webkit-user-select: none; user-select: none; white-space: nowrap; }
.sp-table thead th[data-sort]:hover .sp-th-sort { color: var(--sp-text); }
.sp-table thead th[data-sort]:hover .sp-th-sort iconify-icon { opacity: 1; }
.sp-table thead th.is-sorted .sp-th-sort { color: var(--sp-primary-text); }
.sp-table thead th.is-sorted .sp-th-sort iconify-icon { opacity: 1; color: var(--sp-primary); }
.sp-th-sort:focus-visible { outline: 2px solid var(--sp-primary); outline-offset: 3px; border-radius: var(--sp-radius-xs); }
.sp-table thead th.text-end .sp-th-sort { flex-direction: row-reverse; }
.nb-pager .pagination .page-link { background: var(--sp-surface); }
.nb-pager .pagination .page-item.active .page-link { font-weight: 600; }
.nb-pager[hidden] { display: none; }
.nb-pager .form-select { min-width: 74px; }
@media (max-width: 767.98px) {
  .nb-pager { justify-content: center; }
  .nb-pager > div:first-child { width: 100%; justify-content: center; }
  .sp-table.nb-stack td.nb-no { display: none; }
}
/* ── Sign-in log: guest face, error rows, the error panel ── */
.mb-mini.is-guest { background: var(--sp-surface-3); color: var(--sp-subtle); font-size: 1.1rem; }
.er-tabs .sp-count { margin-left: 6px; height: 18px; min-width: 18px; font-size: var(--sp-fs-3xs); }
.er-tabs .sp-count.danger { background: var(--sp-danger-soft); color: var(--sp-danger); }
.er-row { cursor: pointer; }
.er-ico { width: 30px; height: 30px; flex: none; display: inline-grid; place-items: center; border-radius: 9px; font-size: 1rem; }
.er-ico.is-bug { background: var(--sp-danger-soft); color: var(--sp-danger); }
.er-ico.is-lock { background: var(--sp-warning-soft); color: var(--sp-warning); }
.er-msg { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 520px; word-break: break-word; }
.er-box { padding: 14px 16px; border-radius: 12px; background: var(--sp-danger-soft); color: var(--sp-text); font-size: .9rem; line-height: 1.5; word-break: break-word; }
.er-break { word-break: break-all; font-weight: 600; }
.er-h { margin: 18px 0 8px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sp-muted); }
.er-trace { margin: 0; padding: 12px 14px; max-height: 320px; overflow: auto; border-radius: 12px; background: #120709; color: #f3d9d4; font-size: .74rem; line-height: 1.55; white-space: pre-wrap; word-break: break-all; }

/* ── Cancelled sessions and the cancel dialog (with the push preview) ── */
.is-cxl .ac-subj, .mb-row.is-cxl .t { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--sp-danger) 70%, transparent); text-decoration-thickness: 2px; color: var(--sp-muted) !important; }
.ac-why { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: .78rem; font-weight: 600; color: var(--sp-danger-text, var(--sp-danger)); }
.ac-cx { color: var(--sp-danger-text, var(--sp-danger)); font-weight: 800; }
.mb-row.is-cxl .mb-date { opacity: .55; }
.ad-btns .ad-cxl:hover { background: var(--sp-danger-soft); color: var(--sp-danger); }
.ad-btns .ad-restore:hover { background: var(--sp-success-soft); color: var(--sp-success); }
.cx-box { width: min(100%, 440px); text-align: left; }
.cx-box h2, .cx-box > p { text-align: center; }
.cf-ico.is-ok { background: var(--sp-success-soft); color: var(--sp-success); }
.cx-ses { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 10px 12px; border-radius: 14px; background: var(--sp-surface-2); box-shadow: inset 0 0 0 1px var(--sp-border); }
.cx-ses b { display: block; font-size: .9rem; line-height: 1.25; }
.cx-ses small { display: block; margin-top: 2px; color: var(--sp-muted); font-size: .76rem; }
.cx-lab { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 700; }
.cx-lab span { font-weight: 500; color: var(--sp-muted); }
.cx-box textarea { resize: vertical; min-height: 64px; }
.cx-tg { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; cursor: pointer; }
.cx-tg input { position: absolute; opacity: 0; pointer-events: none; }
.cx-sw { width: 40px; height: 22px; flex: none; border-radius: 99px; background: var(--sp-surface-3); position: relative; transition: background .2s; }
.cx-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s var(--nb-ease); }
.cx-tg input:checked + .cx-sw { background: var(--sp-success); }
.cx-tg input:checked + .cx-sw::after { transform: translateX(18px); }
.cx-tg input:focus-visible + .cx-sw { box-shadow: 0 0 0 3px var(--sp-primary-ring); }
.cx-tg input:disabled + .cx-sw { opacity: .5; }
.cx-tg b { display: block; font-size: .86rem; }
.cx-tg small { display: block; color: var(--sp-muted); font-size: .76rem; }
.cx-prev { margin-bottom: 14px; padding: 12px; border-radius: 16px; background: linear-gradient(160deg, #2a1416, #120709); }
.cx-prev[hidden] { display: none; }
.cx-n { display: flex; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.94); color: #1c1917; box-shadow: 0 8px 20px -10px rgba(0,0,0,.6); }
.cx-n img { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.cx-n-top { display: flex; justify-content: space-between; font-size: .68rem; color: #78716c; margin-bottom: 2px; }
.cx-n b { display: block; font-size: .82rem; line-height: 1.25; }
.cx-n p { margin: 2px 0 0; font-size: .76rem; color: #44403c; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cx-err { margin: 0 0 12px; color: var(--sp-danger); font-size: .82rem; text-align: center; }

/* attendance overview: no poster, the discipline's picture on its colour (as the app's category band) */
.at-ov-poster.is-art { cursor: default; --tone: var(--sp-primary); background: radial-gradient(110% 90% at 30% 100%, color-mix(in srgb, var(--tone) 45%, transparent), transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--tone) 18%, var(--sp-surface-2)), var(--sp-surface-2)); }
.at-ov-poster.is-art.is-seni { --tone: var(--nb-gold); }
.at-ov-poster.is-art img { position: absolute; left: 50%; bottom: 0; width: auto; height: 92%; transform: translateX(-50%); object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.at-ov-poster.is-art:hover img { transform: translateX(-50%); }
.at-art-tag { position: absolute; left: 10px; top: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(13, 6, 7, .62); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.at-art-tag small { display: block; font: 800 .52rem/1 var(--sp-font); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 4px; }
.at-art-tag b { font: 400 .95rem/1 var(--nb-disp); letter-spacing: .02em; text-transform: uppercase; }

/* activity: rows open the session; the session panel */
.ac-row { cursor: pointer; }
.ac-head .mb-date { flex: none; margin-top: 4px; }
.ac-head h2.is-cx { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--sp-danger) 70%, transparent); color: var(--sp-muted); }
.ac-pic .at-ov-poster { aspect-ratio: 16 / 10; max-width: none; }
.ac-pic .at-ov-poster.is-art img { height: 96%; }
.ac-note { margin-bottom: 14px; }
.ac-text { white-space: pre-wrap; word-break: break-word; font-size: .9rem; line-height: 1.6; color: var(--sp-text-2); padding: 12px 14px; border-radius: 12px; background: var(--sp-surface-2); }
.ac-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sp-divider); }
.ac-foot .ac-cx-btn:hover { background: var(--sp-danger-soft); color: var(--sp-danger); border-color: transparent; }

/* receipt preview popup */
.xp-badge.is-rc { background: var(--sp-success-soft); color: var(--sp-success); }
.rc-stage { position: relative; min-height: 260px; max-height: 64vh; overflow: auto; border-radius: 14px; background: repeating-conic-gradient(var(--sp-surface-2) 0 25%, var(--sp-surface-3) 0 50%) 0 0 / 20px 20px; display: grid; place-items: center; padding: 14px; }
.rc-stage img { max-width: 100%; max-height: calc(64vh - 28px); width: auto; height: auto; border-radius: 8px; box-shadow: 0 14px 34px -14px rgba(0,0,0,.5); cursor: zoom-in; opacity: 0; transition: opacity .3s; }
.rc-stage.is-ready img { opacity: 1; }
.rc-stage.is-zoom { place-items: start center; }
.rc-stage.is-zoom img { max-width: none; max-height: none; width: 160%; cursor: zoom-out; }
.rc-load { position: absolute; inset: 14px; border-radius: 10px; }
.rc-stage.is-ready .rc-load { display: none; }
.rc-stage.is-pdf { padding: 0; height: 64vh; }
.rc-stage.is-pdf iframe { width: 100%; height: 100%; border: 0; border-radius: 14px; background: #fff; }

/* ── Tooltips: one look (the chart tooltip of the attendance year grid) for titles, icon buttons and the
   Bootstrap tooltips of the folded sidebar ── */
.nb-tip { position: fixed; z-index: calc(var(--sp-z-popover) + 10); max-width: 260px; padding: 6px 10px; background: var(--sp-surface); color: var(--sp-text); border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm, 8px); box-shadow: var(--sp-shadow-md); font: 600 var(--sp-fs-2xs, .72rem)/1.4 var(--sp-font); pointer-events: none; opacity: 0; transform: translateY(3px); transition: opacity .12s, transform .12s; }
[data-bs-theme="dark"] .nb-tip { background: var(--sp-surface-2); }
.nb-tip.is-below { transform: translateY(-3px); }
.nb-tip.is-on { opacity: 1; transform: none; }
.nb-tip[hidden] { display: none; }
.nb-tip::after { content: ""; position: absolute; left: var(--ax, 50%); width: 8px; height: 8px; margin-left: -4px; background: inherit; border: 1px solid var(--sp-border); transform: rotate(45deg); }
.nb-tip.is-above::after { bottom: -5px; border-top: 0; border-left: 0; }
.nb-tip.is-below::after { top: -5px; border-bottom: 0; border-right: 0; }
@media (prefers-reduced-motion: reduce) { .nb-tip { transition: none; } }
.tooltip { --bs-tooltip-bg: var(--sp-surface); --bs-tooltip-color: var(--sp-text); --bs-tooltip-font-size: var(--sp-fs-2xs, .72rem); --bs-tooltip-padding-x: 10px; --bs-tooltip-padding-y: 6px; --bs-tooltip-border-radius: var(--sp-radius-sm, 8px); --bs-tooltip-opacity: 1; }
[data-bs-theme="dark"] .tooltip { --bs-tooltip-bg: var(--sp-surface-2); --bs-tooltip-color: var(--sp-text); }
.tooltip .tooltip-inner { font-weight: 600; border: 1px solid var(--sp-border); box-shadow: var(--sp-shadow-md); }

/* ── Bengkong & Sandang, v2: the journey hero, a colour ladder, numbered belt cards ── */
.rk-hero { position: relative; overflow: hidden; margin-bottom: 18px; padding: 22px 24px 18px; border-radius: 22px; color: #fff; box-shadow: var(--sp-shadow-md);
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 2px, transparent 2px 8px), var(--nb-cloth); }
.rk-hero .nb-k { color: var(--nb-yel); }
.rk-hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; }
.rk-hero-belt { margin: 12px 0 10px; height: 120px; border-radius: 16px; display: grid; place-items: center; padding: 14px 18px; background: radial-gradient(90% 130% at 50% 40%, rgba(255,255,255,.95), rgba(236,230,226,.9)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), 0 18px 34px -20px rgba(0,0,0,.7); }
.rk-hero-belt img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rk-hero h2 { margin: 0; font: 400 clamp(1.4rem, 2.6vw, 2rem)/1.05 var(--nb-disp); text-transform: uppercase; letter-spacing: .01em; }
.rk-hero-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rk-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.12); font-size: .74rem; font-weight: 700; }
.rk-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.rk-hero-side { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 16px; background: rgba(0,0,0,.24); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.rk-hero-title { margin: 10px 0 8px; height: 64px; border-radius: 12px; display: grid; place-items: center; padding: 8px 12px; background: rgba(255,255,255,.92); }
.rk-hero-title img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rk-hero-side b { font-size: 1rem; } .rk-hero-side small { color: rgba(255,255,255,.7); font-size: .76rem; }
.rk-hero-none { margin: 10px 0 0; color: rgba(255,255,255,.75); font-size: .86rem; }
.rk-next { margin-top: auto; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.18); }
.rk-next small { display: block; font: 800 .6rem/1 var(--sp-font); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 5px; }
.rk-next b { font-size: .9rem; }
.rk-ladder { display: flex; gap: 3px; margin-top: 18px; height: 12px; }
.rk-ladder i { flex: 1; border-radius: 3px; background: color-mix(in srgb, var(--c) 30%, rgba(255,255,255,.08)); opacity: .55; transition: transform .2s; }
.rk-ladder i.is-done { opacity: 1; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.rk-ladder i.is-me { opacity: 1; background: var(--c); transform: scaleY(1.7); box-shadow: 0 0 0 2px var(--nb-yel), 0 0 14px rgba(255,235,0,.5); }
.rk-ladder i:hover { transform: scaleY(1.5); opacity: 1; }
.rk-ladder-cap { display: flex; justify-content: space-between; margin-top: 8px; font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.75); }
@media (max-width: 767.98px) { .rk-hero { padding: 18px 16px 14px; } .rk-hero-grid { grid-template-columns: 1fr; } .rk-hero-belt { height: 92px; } .rk-ladder { gap: 2px; } }

.rk-fam { position: relative; margin-bottom: 26px; }
.rk-fam-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rk-fam .rk-sw { width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 6px 14px -8px var(--c); display: grid; place-items: center; color: #1c1917; font-size: 1.1rem; }
.rk-fam-head h3 { margin: 0; font: 400 1.25rem/1 var(--nb-disp); text-transform: uppercase; letter-spacing: .02em; }
.rk-fam-head p { margin: 3px 0 0; font-size: .8rem; color: var(--sp-muted); }
.rk-fam-n { margin-left: auto; flex: none; padding: 5px 10px; border-radius: 99px; background: var(--sp-surface-2); font-size: .72rem; font-weight: 700; color: var(--sp-text-2); white-space: nowrap; }
.rk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.rk-card { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px 12px; padding: 12px; border: 0; border-radius: 18px; text-align: left; color: inherit; background: var(--sp-surface);
  box-shadow: inset 0 0 0 1px var(--sp-border); transition: transform .25s var(--nb-ease), box-shadow .25s; }
.rk-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--sp-border-strong), var(--sp-shadow-md); }
.rk-card:focus-visible { outline: 2px solid var(--sp-primary); outline-offset: 2px; }
.rk-card[hidden] { display: none; }
.rk-step { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--sp-surface-2); color: var(--sp-muted); font: 400 1.05rem/1 var(--nb-disp); box-shadow: inset 3px 0 0 var(--c, transparent); }
.rk-strip { display: grid; place-items: center; height: 76px; padding: 10px 14px; border-radius: 13px; background: linear-gradient(160deg, #faf8f7, #ebe6e3); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); overflow: hidden; }
[data-bs-theme="dark"] .rk-strip { background: radial-gradient(90% 120% at 50% 40%, #5a5153, #353032); }
.rk-strip img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .4s var(--nb-ease); }
[data-bs-theme="dark"] .rk-strip img { filter: drop-shadow(0 0 1.5px rgba(255,255,255,.55)); }
.rk-card:hover .rk-strip img { transform: scale(1.04); }
.rk-info { grid-column: 2; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rk-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rk-name b { font-size: .92rem; line-height: 1.25; }
.rk-info > small { font-size: .74rem; color: var(--sp-muted); }
.rk-here { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: var(--nb-yel); color: var(--nb-ink); font-size: .66rem; font-weight: 800; }
.rk-note { display: inline-flex; align-items: flex-start; gap: 6px; margin-top: 3px; padding: 6px 9px; border-radius: 10px; background: color-mix(in srgb, var(--nb-gold) 16%, transparent); color: var(--sp-text); font-size: .74rem; font-weight: 600; line-height: 1.35; }
.rk-note iconify-icon { flex: none; margin-top: 1px; color: var(--nb-gold); }
.rk-note.is-big { margin: 10px 0 4px; font-size: .84rem; padding: 9px 12px; }
.rk-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: .74rem; font-weight: 600; color: var(--sp-muted); }
.rk-faces { display: inline-flex; }
.rk-faces img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--sp-surface); background: var(--sp-surface-3); }
.rk-faces img + img { margin-left: -7px; }
.rk-faces em { margin-left: 4px; font-style: normal; font-weight: 700; color: var(--sp-text-2); }
.rk-done { margin-left: auto; padding: 2px 8px; border-radius: 99px; background: var(--sp-success-soft); color: var(--sp-success); font-size: .66rem; font-weight: 800; }
.rk-card.is-done .rk-step { background: var(--sp-success-soft); color: var(--sp-success); font-size: .95rem; }
.rk-card.is-mine { box-shadow: inset 0 0 0 2px var(--nb-gold), 0 14px 30px -18px color-mix(in srgb, var(--nb-gold) 70%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--nb-gold) 9%, var(--sp-surface)), var(--sp-surface) 60%); }
.rk-card.is-mine .rk-step { background: var(--nb-yel); color: var(--nb-ink); box-shadow: none; }
.rk-card.is-special .rk-strip { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nb-gold) 55%, transparent); }
.rk-card.is-t .rk-step { color: var(--nb-gold); }
.rk-fam .rk-card .rk-step { --c: inherit; }
.rk-fam[data-fam] .rk-step { box-shadow: inset 3px 0 0 var(--c); }
.rk-fam[data-fam] .rk-card.is-mine .rk-step, .rk-fam[data-fam] .rk-card.is-done .rk-step { box-shadow: none; }
@media (max-width: 575.98px) { .rk-list { grid-template-columns: 1fr; } .rk-fam-head { flex-wrap: wrap; } .rk-fam-n { margin-left: 48px; } }

/* which silat: Seni Gayong (gold) / Olahraga (blue) */
.nb-cats { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.nb-cat { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 99px; font-size: .72rem; font-weight: 700; white-space: nowrap; background: var(--sp-surface-2); color: var(--sp-text-2); }
.nb-cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.nb-cat.is-seni { background: color-mix(in srgb, #c9a227 18%, transparent); color: #8a6a0b; }
.nb-cat.is-ol { background: color-mix(in srgb, #3a3fe2 15%, transparent); color: #3237c4; }
[data-bs-theme="dark"] .nb-cat.is-seni { background: color-mix(in srgb, #e3c04a 18%, transparent); color: #f0cf5c; }
[data-bs-theme="dark"] .nb-cat.is-ol { background: color-mix(in srgb, #6d72ff 20%, transparent); color: #a4a8ff; }

/* member panel: edit button beside close; locked fields in the edit form */
.us-head .us-edit { margin-left: auto; }
.us-head .us-edit + .sp-icon-btn { margin-left: 6px; }
.fp-f.is-locked .form-select, .fp-f.is-locked .sp-select { opacity: .6; pointer-events: none; }

/* dashboard: Coming up, month by month into next year */
.mb-upc { max-height: 520px; overflow-y: auto; overflow-x: hidden; margin: 0 -10px; padding: 0 10px; scrollbar-width: thin; scrollbar-gutter: stable; }
.mb-upc .mb-row { min-width: 0; }
/* desktop: the list fills the card down to the bottom of the row; stacked (phone / tablet): a set height */
@media (min-width: 1200px) {
  .sp-card.h-100:has(> .mb-upc) { display: flex; flex-direction: column; }
  .sp-card.h-100 > .mb-upc { flex: 1 1 0; min-height: 320px; max-height: none; }
}
.mb-upc-cap { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 10px 2px 6px; background: var(--sp-surface); font: 800 .64rem/1 var(--sp-font); letter-spacing: .16em; text-transform: uppercase; color: var(--sp-subtle); }
.mb-upc-cap.is-year { color: var(--sp-primary-text); }
.mb-upc-cap span { padding: 3px 8px; border-radius: 99px; background: var(--nb-yel); color: var(--nb-ink); letter-spacing: .08em; }

/* footer */
.nb-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin: 8px var(--sp-gutter, 24px) 0; padding: 18px 0 22px; border-top: 1px solid var(--sp-divider); font-size: .78rem; color: var(--sp-muted); }
.nb-foot b { color: var(--sp-text-2); font-weight: 700; }
.nb-foot-r { color: var(--sp-subtle); }
@media (max-width: 1199.98px) { .nb-foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }
@media (max-width: 575.98px) { .nb-foot { flex-direction: column; text-align: center; margin: 4px 16px 0; } }
@media print { .nb-foot { display: none; } }

/* "payment received" email: composer + preview (buildwithluke mail style) */
.xp-badge.is-pm { background: var(--sp-primary-soft); color: var(--sp-primary-text); }
.pm-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 18px; }
.pm-form { display: flex; flex-direction: column; gap: 12px; }
.pm-form small { display: block; margin-bottom: 6px; font: 800 .62rem/1 var(--sp-font); letter-spacing: .14em; text-transform: uppercase; color: var(--sp-subtle); }
.pm-chip { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--sp-surface-2); box-shadow: inset 0 0 0 1px var(--sp-border); }
.pm-chip b { display: block; font-size: .88rem; } .pm-chip em { display: block; font-style: normal; font-size: .76rem; color: var(--sp-muted); overflow: hidden; text-overflow: ellipsis; }
.pm-f { display: block; margin: 0; }
.pm-form textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.pm-form .cx-tg { margin: 2px 0 0; }
.pm-prev { min-width: 0; }
.pm-mail { height: 100%; min-height: 460px; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--sp-surface); box-shadow: inset 0 0 0 1px var(--sp-border), var(--sp-shadow-md); }
.pm-mail-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--sp-surface-2); border-bottom: 1px solid var(--sp-divider); }
.pm-mail-top b { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-dots { display: inline-flex; gap: 5px; } .pm-dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; } .pm-dots i + i { background: #febc2e; } .pm-dots i + i + i { background: #28c840; }
.pm-mail-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 14px; font-size: .76rem; color: var(--sp-muted); border-bottom: 1px solid var(--sp-divider); }
.pm-mail-meta b { color: var(--sp-text-2); font-weight: 600; }
.pm-mail iframe { flex: 1; width: 100%; min-height: 400px; border: 0; background: #f3efee; }
.pm-off { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--sp-warning-text, var(--sp-warning)); max-width: 60%; }
@media (max-width: 991.98px) { .pm-grid { grid-template-columns: 1fr; } .pm-off { max-width: 100%; order: -1; width: 100%; } }

/* member edit: centred popup with tabs */
.eu .modal-content { overflow: visible; }
.eu .modal-header { border-radius: var(--bs-modal-inner-border-radius) var(--bs-modal-inner-border-radius) 0 0; }
.eu-head { gap: 14px; align-items: center; }
.eu-ava { width: 52px; height: 52px; flex: none; border-radius: 50%; overflow: hidden; background: var(--sp-surface-3); box-shadow: 0 0 0 2px var(--sp-surface), 0 0 0 4px var(--nb-gold); }
.eu-ava img { width: 100%; height: 100%; object-fit: cover; }
.eu-head .modal-title { margin: 4px 0 2px; font: 400 1.35rem/1.05 var(--nb-disp); text-transform: uppercase; letter-spacing: .01em; }
.eu-tabs { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--sp-divider); background: var(--sp-surface); overflow-x: auto; scrollbar-width: none; }
.eu-tabs button { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 12px 14px 11px; border: 0; background: none; color: var(--sp-muted); font-weight: 700; font-size: .86rem; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.eu-tabs button:hover { color: var(--sp-text); }
.eu-tabs button[aria-selected="true"] { color: var(--sp-primary-text); border-bottom-color: var(--sp-primary); }
.eu-tabs button:focus-visible { outline: 2px solid var(--sp-primary); outline-offset: -2px; border-radius: 8px; }
.eu-tabs iconify-icon { font-size: 1.05rem; }
.eu-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--nb-yel); box-shadow: 0 0 0 2px var(--sp-surface); }
.eu-dot[hidden] { display: none; }
.eu .modal-body { min-height: 360px; }
.eu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.eu-f.is-wide { grid-column: 1 / -1; }
.eu-f .form-label { display: flex; align-items: center; gap: 4px; }
.eu-lock { color: var(--sp-subtle); }
.eu-f.is-bad .form-control, .eu-f.is-bad .form-select, .eu-f.is-bad .sp-select-btn, .eu-f.is-bad .dp-btn { border-color: var(--sp-danger) !important; box-shadow: 0 0 0 3px var(--sp-danger-soft) !important; }
.eu-err { color: var(--sp-danger); font-size: .82rem; font-weight: 600; }
@media (max-width: 575.98px) { .eu-grid { grid-template-columns: 1fr; } .eu-tabs { padding: 0 8px; } .eu-tabs button { flex: 1; justify-content: center; padding: 12px 8px 11px; } }

/* a popup is open: the phone tab bar steps aside */
body.modal-open .nb-tabbar { display: none; }

/* shared username flag */
.us-dup { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--sp-warning-soft); color: var(--sp-warning-text, var(--sp-warning)); font-size: .64rem; font-weight: 800; vertical-align: 1px; }
.fp-help.is-warn { display: flex; gap: 5px; align-items: flex-start; color: var(--sp-warning-text, var(--sp-warning)); }
.fp-help.is-warn iconify-icon { flex: none; margin-top: 2px; }

/* ── Bengkong & Sandang, fixes: belts sit straight on the card (no grey / white stage), pictures kept inside their
   box at a set height, no colour line beside the step number ── */
.rk-hero-belt, .rk-hero-title, .rk-strip, .rk-lb-stage, [data-bs-theme="dark"] .rk-strip, [data-bs-theme="dark"] .rk-lb-stage { background: none !important; box-shadow: none !important; }
.rk-hero-belt { display: flex; align-items: center; justify-content: flex-start; height: 112px; padding: 0; margin: 14px 0 12px; }
.rk-hero-belt img { width: auto; height: auto; max-width: 100%; max-height: 112px; object-fit: contain; }
.rk-hero-title { display: flex; align-items: center; justify-content: flex-start; height: 60px; padding: 0; margin: 12px 0 10px; }
.rk-hero-title img { width: auto; height: auto; max-width: 100%; max-height: 60px; object-fit: contain; }
.rk-strip { display: flex; align-items: center; justify-content: flex-start; height: 64px; padding: 0; }
.rk-strip img { width: auto; height: auto; max-width: 100%; max-height: 64px; object-fit: contain; }
.rk-step, .rk-fam[data-fam] .rk-step { box-shadow: none !important; }
@media (max-width: 767.98px) { .rk-hero-belt { height: 84px; } .rk-hero-belt img { max-height: 84px; } .rk-strip { height: 56px; } .rk-strip img { max-height: 56px; } }

/* popups (Bootstrap modals): the page behind is dimmed and softly blurred, like the app's other overlays */
.modal-backdrop { --bs-backdrop-bg: #140a0b; --bs-backdrop-opacity: .55; }
[data-bs-theme="dark"] .modal-backdrop { --bs-backdrop-bg: #050203; --bs-backdrop-opacity: .78; }
.modal-backdrop.show { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (prefers-reduced-transparency: reduce) { .modal-backdrop.show { -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ── Smooth pages: skeleton → content rises in once; later redraws crossfade without a blank flash;
   the shell (sidebar, top bar, phone tab bar, footer) stays still while the content changes between pages ── */
.mb-in > * { animation-duration: .38s; }
.mb-re { animation: mbRe .22s ease both; }
@keyframes mbRe { from { opacity: .82; } to { opacity: 1; } }
.sk { animation: skIn .2s ease both; }
@keyframes skIn { from { opacity: 0; } }
.sk-rk { display: flex; gap: 12px; }
.nb-tabbar { view-transition-name: nb-tabbar; }
.nb-foot { view-transition-name: nb-foot; }
::view-transition-old(nb-tabbar), ::view-transition-new(nb-tabbar), ::view-transition-old(nb-foot), ::view-transition-new(nb-foot) { animation: none; }
::view-transition-old(root) { animation: sp-vt-out .14s ease-in both; }
::view-transition-new(root) { animation: nb-vt-in .3s var(--nb-ease) both; }
@keyframes nb-vt-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .mb-re, .sk, ::view-transition-new(root), ::view-transition-old(root) { animation: none !important; } }

/* ── UX pass ──────────────────────────────────────────────────────────────── */
/* readable small labels: dates, figure labels, month headings */
.mb-date small { font-size: .68rem; }
.sp-kpi-label { font-size: .68rem; }
.mb-upc-cap { font-size: .68rem; }
/* touch screens: every tap target at least ~44px (the look stays the same; the hit area grows) */
@media (pointer: coarse) {
  .sp-icon-btn.sm { width: 40px; height: 40px; }
  .pagination .page-link { min-width: 40px; height: 40px; }
  .sp-link-arrow, .mb-hero-link, .lnk, .nb-k + a { position: relative; }
  .sp-link-arrow::after, .mb-hero-link::after { content: ""; position: absolute; inset: -14px -10px; }
  .mb-seg button { min-height: 40px; }
  .btn-sm { min-height: 40px; }
  .mb-band-txt a { width: 42px; height: 42px; }
  .at-link { position: relative; } .at-link::after { content: ""; position: absolute; inset: -14px -8px; }
  .sp-select-btn, .form-control, .form-select, .dp-btn { min-height: 44px; }
}
/* a visible focus ring for keyboard users wherever a control has none of its own */
:where(button, a, [role="button"], [tabindex], summary):focus-visible { outline: 2px solid var(--sp-primary); outline-offset: 2px; }
/* Coming up on phone / tablet: no inner scrolling */
.mb-upc.is-flat { max-height: none !important; overflow: visible !important; margin: 0; padding: 0; }
.mb-upc.is-flat .mb-upc-cap { position: static; }
.mb-upc-more iconify-icon { margin-right: 6px; }
/* back to top */
.nb-top { position: fixed; right: 20px; bottom: 24px; z-index: calc(var(--sp-z-sticky) + 1); width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--sp-surface); color: var(--sp-text); font-size: 1.15rem; box-shadow: var(--sp-shadow-lg), inset 0 0 0 1px var(--sp-border); animation: nbTopIn .22s var(--nb-ease); }
.nb-top:hover { background: var(--sp-primary); color: #fff; }
.nb-top[hidden] { display: none; }
@keyframes nbTopIn { from { opacity: 0; transform: translateY(10px) scale(.9); } }
@media (max-width: 1199.98px) { .nb-top { right: 16px; bottom: calc(104px + env(safe-area-inset-bottom)); } }
body.modal-open .nb-top { display: none; }
@media print { .nb-top { display: none; } }

/* ── Mobile pass ──────────────────────────────────────────────────────────── */
/* phones and tablets: text fields at 16px, so iPhone and iPad do not zoom the page in when one is tapped */
@media (pointer: coarse), (max-width: 767.98px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), select, textarea { font-size: 16px !important; }
}
/* touch: the show-password eye a full finger wide */
@media (pointer: coarse) { .ac-eye { width: 40px; height: 40px; right: 3px; } }
/* phone tab bar labels readable */
@media (max-width: 1199.98px) { .nb-tabbar a span { font-size: 11px; } }
/* stacked table cards on small phones: a long row of action buttons wraps instead of running off the card */
@media (max-width: 575.98px) {
  .sp-table.nb-stack tbody td .ad-btns { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
}
/* the large Instagram tile keeps its square shape when the grid has only two columns (phones) */
.gx-gram.is-big { aspect-ratio: 1; }
/* certificates: Show more */
.ct-more { display: flex; justify-content: center; margin-top: 20px; }
.ct-more .btn iconify-icon { margin-right: 6px; }

/* quick search: the record or tool a search result opened, picked out for a moment */
.qa-flash { animation: qaFlash 1.8s ease; border-radius: var(--sp-radius, 14px); }
@keyframes qaFlash { 0%, 35% { box-shadow: 0 0 0 3px var(--nb-yel, #ffeb00), 0 12px 30px -10px rgba(0, 0, 0, .35); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .qa-flash { animation: none; outline: 3px solid var(--nb-yel, #ffeb00); outline-offset: 2px; } }
.sp-qa-empty iconify-icon[icon="ph:circle-notch"] { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* wide tables (Members): No. and the member's name stay in place while the other columns scroll sideways.
   Tablet and up only: phones show each row as a card. */
@media (min-width: 768px) {
  .sp-table.nb-freeze th.nb-no, .sp-table.nb-freeze td.nb-no,
  .sp-table.nb-freeze thead th:nth-child(2), .sp-table.nb-freeze td.nb-lead { position: sticky; z-index: 2; background: var(--sp-surface); }
  /* the table area has ~22px of side padding; the pinned No. cell covers it (the area clips the rest), so scrolled columns
     do not show through there */
  .sp-table.nb-freeze th.nb-no, .sp-table.nb-freeze td.nb-no { left: 0; box-shadow: -40px 0 0 var(--sp-surface); }
  .sp-table.nb-freeze thead th:nth-child(2), .sp-table.nb-freeze td.nb-lead { left: var(--nb-fz, 52px); max-width: 300px; transition: box-shadow .2s; }
  .sp-table.nb-freeze td.nb-lead { min-width: 220px; }
  .sp-table.nb-freeze.is-hover tbody tr:hover td.nb-no, .sp-table.nb-freeze.is-hover tbody tr:hover td.nb-lead { background: var(--sp-surface-2); }
  [data-bs-theme="dark"] .sp-table.nb-freeze.is-hover tbody tr:hover td.nb-no, [data-bs-theme="dark"] .sp-table.nb-freeze.is-hover tbody tr:hover td.nb-lead { background: var(--sp-surface-hover); }
  /* once scrolled: a soft edge on the pinned name column, so it reads as lying over the rest */
  .sp-table-wrap.is-scrolled .nb-freeze thead th:nth-child(2), .sp-table-wrap.is-scrolled .nb-freeze td.nb-lead { box-shadow: 1px 0 0 var(--sp-divider), 10px 0 14px -10px rgba(0, 0, 0, .28); }
  [data-bs-theme="dark"] .sp-table-wrap.is-scrolled .nb-freeze thead th:nth-child(2), [data-bs-theme="dark"] .sp-table-wrap.is-scrolled .nb-freeze td.nb-lead { box-shadow: 1px 0 0 var(--sp-divider), 10px 0 14px -10px rgba(0, 0, 0, .7); }
}

/* Excel preview: colours of the members register */
.xp-sheet td.x-ok { background: #e7f6ec; color: #1a7f3c; font-weight: 700; text-align: center; }
.xp-sheet td.x-warn { background: #fff4e0; color: #a35b00; font-weight: 700; text-align: center; }
.xp-sheet td.x-name { font-weight: 700; color: #212529; }
.xp-sheet td.x-tot { background: #fff8f0; font-weight: 700; color: #212529; border-top: 2px solid #212529; }
/* member panel: the password, when an admin shows it */

/* ── Pay to switch on (unpaid members, Home and Payment): steps, bank details, the DuitNow QR ── */
.mb-pay { overflow: hidden; }
.mb-pay-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.mb-pay-tx h2 { margin: 8px 0 14px; font: 400 clamp(1.9rem, 3vw, 2.4rem)/1 var(--nb-disp, 'Anton', sans-serif); text-transform: uppercase; letter-spacing: .01em; }
.mb-pay-tx h2 small { font: 700 .8rem/1 var(--sp-font); letter-spacing: .14em; color: var(--sp-muted); margin-left: 6px; vertical-align: middle; }
.mb-pay-steps { counter-reset: st; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.mb-pay-steps li { counter-increment: st; position: relative; padding: 12px 12px 12px 44px; border-radius: 14px; background: var(--sp-surface-2); font-size: .8rem; color: var(--sp-muted); line-height: 1.4; }
.mb-pay-steps li::before { content: counter(st); position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--nb-yel, #ffeb00); color: #0b0506; font-weight: 800; font-size: .74rem; }
.mb-pay-steps b { display: block; color: var(--sp-text); font-size: .86rem; margin-bottom: 2px; }
.mb-pay-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 0 0 16px; }
.mb-pay-row { padding: 8px 0; border-top: 1px solid var(--sp-divider); min-width: 0; }
.mb-pay-row dt { font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sp-subtle); }
.mb-pay-row dd { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; font-weight: 700; word-break: break-word; }
.mb-pay-row dd .sp-icon-btn { margin: -6px 0; }
.mb-pay-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.mb-pay-qr { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mb-pay-qrbtn { position: relative; padding: 0; border: 0; background: none; border-radius: 18px; cursor: zoom-in; transition: transform .25s var(--nb-ease, ease); }
.mb-pay-qrbtn img { display: block; width: 200px; height: auto; border-radius: 18px; box-shadow: 0 18px 36px -18px rgba(214, 24, 88, .55); }
.mb-pay-qrbtn { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mb-pay-qrbtn span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: var(--sp-surface); box-shadow: var(--sp-shadow-sm, 0 4px 12px rgba(0,0,0,.15)); font-size: .7rem; font-weight: 800; white-space: nowrap; color: var(--sp-text); }
.mb-pay-qrbtn:hover { transform: translateY(-2px); }
.mb-pay-qrbtn:focus-visible { outline: 3px solid var(--sp-primary); outline-offset: 4px; }
.mb-qrv .cf-box { width: min(100%, 380px); }
.mb-qrv .cf-box img { display: block; width: min(100%, 300px); margin: 0 auto 18px; border-radius: 16px; }
.mb-qrv-x { position: absolute; top: 12px; right: 12px; }
@media (max-width: 991.98px) { .mb-pay-steps { grid-template-columns: 1fr; } }
@media (max-width: 767.98px) {
  .mb-pay-in { grid-template-columns: 1fr; gap: 20px; }
  .mb-pay-qr { order: -1; }
  .mb-pay-dl { grid-template-columns: 1fr; }
  .mb-pay-acts .btn { flex: 1 1 auto; }
}
.mb-row.is-static { cursor: default; }
.mb-row.is-static:hover { background: transparent; transform: none; }
.mb-row.is-static .mb-go { display: none; }
/* Home: beside the Next up card the four figure tiles fill the column, so both rows grow evenly and the tiles line up with
   the card's top and bottom (the row's negative top margin is the gutter, so its height is the column plus one gutter) */
@media (min-width: 1200px) { .col-xl-7 > .mb-kp { height: calc(100% + var(--bs-gutter-y)); } }
/* Profile: Profile / Account & sign-in tabs */
.pf-tabs [data-tab] { display: inline-flex; align-items: center; gap: 7px; }
.pf-tabs [data-tab] iconify-icon { font-size: 1.05rem; }
/* Audit log: the What column (action, then the line), and the fields sent in the side panel */
.au-what { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 520px; word-break: break-word; }
.au-ch th { width: 38%; font-weight: 700; color: var(--sp-muted); white-space: nowrap; vertical-align: top; }
.au-ch td { word-break: break-word; }
.au-ch code { font-size: .78rem; white-space: pre-wrap; word-break: break-word; }
/* Home, jurulatih tools: requests to approve or decline, then a grid of tools */
.jt-sec { margin-bottom: 16px; }
.jt-cap { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sp-subtle); }
.jt-cap .sp-count { height: 18px; min-width: 18px; font-size: var(--sp-fs-3xs); letter-spacing: 0; }
.jt-cap .sp-count.danger { background: var(--sp-danger-soft); color: var(--sp-danger); }
.jt-cap .sp-link-arrow { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.jt-req { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--sp-divider); transition: opacity .25s, transform .25s; }
.jt-req:first-child { border-top: 0; }
.jt-req.is-done { opacity: 0; transform: translateX(12px); }
.jt-req .sp-icon-btn { flex: none; }
.jt-yes { background: var(--sp-success-soft, rgba(22,163,74,.12)); color: var(--sp-success, #16a34a); }
.jt-no { color: var(--sp-muted); }
.jt-none { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 12px; border-radius: 12px; background: var(--sp-surface-2); font-size: .84rem; color: var(--sp-muted); }
.jt-none iconify-icon { font-size: 1.1rem; color: var(--sp-success, #16a34a); }
.jt-more { display: inline-block; margin-top: 6px; font-size: .8rem; font-weight: 700; }
.jt-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.jt-tool { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border-radius: 14px; background: var(--sp-surface-2); color: inherit; text-decoration: none; transition: background-color .2s, transform .2s; }
.jt-tool:hover { background: var(--sp-surface-hover); transform: translateY(-1px); }
.jt-tool:focus-visible { outline: 2px solid var(--sp-primary); outline-offset: 2px; }
.jt-tool b { display: block; font-size: .86rem; font-weight: 800; }
.jt-tool small { display: block; font-size: .74rem; color: var(--sp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) { .jt-tools { grid-template-columns: 1fr; } }
/* extra belts: ticks in the member edit popup, tags on the membership card, "also holds" on Bengkong & Sandang */
.eu-belts { display: flex; flex-wrap: wrap; gap: 8px; }
.eu-belt { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 12px; background: var(--sp-surface-2); box-shadow: inset 0 0 0 1px var(--sp-border); font-weight: 700; font-size: .86rem; cursor: pointer; }
.eu-belt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--sp-primary); }
.nbc-xb { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; font-style: normal; }
.nbc-xb i { padding: 1px 6px; border-radius: 99px; background: rgba(255, 235, 0, .9); color: #0b0506; font: 800 .5em/1.5 var(--sp-font); letter-spacing: .06em; text-transform: uppercase; font-style: normal; }
.rk-also { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.rk-also > small { width: 100%; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sp-subtle); }
.rk-also-b { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 12px; background: var(--sp-surface-2); }
.rk-also-img { width: 64px; height: 22px; object-fit: contain; }
.rk-also-b b { font-weight: 800; font-size: .86rem; }
