/* The modern design (v0.2.0), loaded after style.css when a club uses it (club_design() in app/design.php).
   Same pages and menus, cleaner: soft cards, the club colour fading across the header, clearer bookings, and on
   phones a tab bar along the bottom (Home, Events, Card, Club, Account). Colours still come from the club. */

body.modern {
  --r-btn: 10px;
  --r-card: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 0 0 1px rgba(16, 24, 40, .06);
  --shadow-up: 0 10px 28px rgba(16, 24, 40, .14);
  --okc: #1f9d68;
  --brand-fade: linear-gradient(120deg, color-mix(in srgb, var(--brand) 86%, #fff) 0%, var(--brand) 45%, color-mix(in srgb, var(--brand) 78%, #000) 100%);
  --tint: color-mix(in srgb, var(--brand) 10%, #fff);
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}
body.modern h1, body.modern h2, body.modern h3 { letter-spacing: -.015em; font-weight: 750; }
body.modern h1 { font-size: 30px; }
body.modern h2 { font-size: 21px; }
body.modern h3 { font-size: 17px; }
body.modern .lbl { letter-spacing: .07em; font-size: 11.5px; }

/* Header: the club colour fading gently across, the accent line kept, a little slimmer */
body.modern .band { background: var(--brand-fade); border-bottom-width: 3px; padding-block: 11px; padding-top: max(11px, env(safe-area-inset-top, 0px)); }
body.modern .hscan, body.modern .nav-btn, body.modern .sm-head { border: 0 !important; background: rgba(255, 255, 255, .14); border-radius: 10px; }
body.modern .hscan:hover, body.modern .nav-btn:hover { background: rgba(255, 255, 255, .22); }
body.modern .hadmin { display: none; }

/* Panels, buttons and fields */
body.modern .panel, body.modern .stat, body.modern .mtablewrap, body.modern .staff-side, body.modern .tier, body.modern .ev-card, body.modern .add-panel {
  border: 0; box-shadow: var(--shadow);
}
body.modern .panel { padding: 18px; }
body.modern .btn { min-height: 44px; font-size: 15.5px; font-weight: 650; padding: 10px 18px; border-width: 0; background: var(--brand); color: var(--on-brand); }
body.modern .btn.ghost { background: var(--surface); color: var(--fg); box-shadow: 0 0 0 1px var(--line); }
body.modern .btn.mini { min-height: 36px; font-size: 14px; }
body.modern .btn:hover { filter: brightness(1.05); }
body.modern .input { border-width: 1px; min-height: 44px; border-radius: 10px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
body.modern .input:focus { border-color: var(--brand); outline: 3px solid color-mix(in srgb, var(--brand) 20%, transparent); outline-offset: 0; }
body.modern .tag { font-weight: 650; font-size: 11.5px; padding: 3px 9px; }
body.modern .tag.ok, body.modern .tag.good { background: #e7f6ec; color: #18794e; }
body.modern .chip { border-width: 0; box-shadow: 0 0 0 1px var(--line); min-height: 36px; font-size: 14px; }
body.modern .chip[aria-current="true"], body.modern .chip[aria-current="page"] { background: var(--fg); color: var(--bg); box-shadow: none; }
body.modern .banner { border-radius: 12px; }
body.modern .stat b { font-family: var(--f-body); font-weight: 750; font-size: 26px; letter-spacing: -.02em; }

/* Switches like List / Week / Month: a soft grey track with a white thumb */
body.modern .ev-toggle, body.modern .seg { background: color-mix(in srgb, var(--fg) 7%, var(--bg)); border: 0; border-radius: 10px; padding: 3px; }
body.modern .ev-toggle button { min-height: 34px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
body.modern .ev-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(16, 24, 40, .1); }

/* Events: a date block in the club colour, softer cards */
body.modern .ev-date { width: 52px; padding: 8px 0; margin-top: 6px; border-radius: 10px; background: var(--tint); align-self: flex-start; }
body.modern .ev-date span { color: var(--brand); font-size: 10.5px; }
body.modern .ev-date b { color: var(--brand); font-family: var(--f-body); font-weight: 750; font-size: 22px; display: block; }
body.modern .ev-card[open] { box-shadow: 0 0 0 2px var(--brand), var(--shadow-up); }
body.modern .ev-title { font-weight: 650; letter-spacing: -.01em; }
body.modern .ev-month { font-family: var(--f-body); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* Booked: impossible to miss. A green band across the top, a green outline and a green date block. */
body.modern .ev-card.booked { background: var(--surface); box-shadow: 0 0 0 2px var(--okc), 0 4px 14px rgba(31, 157, 104, .15); border: 0; }
body.modern .ev-card.booked summary, body.modern .ev-card.static.booked .ev-sum { position: relative; padding-top: 46px; }
body.modern .ev-card.static.booked { position: relative; }
body.modern .ev-card.booked .ev-booked { position: absolute; left: 0; right: 0; top: 0; display: flex; border-radius: 0; margin: 0; background: var(--okc); font-size: 14px; font-weight: 700; padding: 8px 14px; gap: 8px; }
body.modern .ev-date.booked { background: #e3f5ec; }
body.modern .ev-date.booked span, body.modern .ev-date.booked b { color: #18794e; }
body.modern .cal-chip.booked { background: #e3f5ec; color: #18794e; }

/* All events / Booked */
body.modern .ev-filter { display: flex; gap: 8px; flex-wrap: wrap; }
body.modern .ev-filter button { font: inherit; font-size: 14px; font-weight: 650; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--surface); color: var(--fg); box-shadow: 0 0 0 1px var(--line); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
body.modern .ev-filter button[aria-pressed="true"] { background: var(--fg); color: var(--bg); box-shadow: none; }
body.modern .ev-filter i { font-style: normal; font-size: 11.5px; background: var(--okc); color: #fff; border-radius: 999px; padding: 1px 8px; }
body.modern .ev-filter button[aria-pressed="true"] i { background: var(--bg); color: var(--fg); }
body.modern .only-booked .nobk, body.modern .only-booked .ev-card:not(.booked) { display: none !important; }
body.modern .only-booked .ev-toggle { display: none; }
body.modern .ev-none-booked { color: var(--muted); }

/* The membership card keeps its layout; just softer, with the club colour fading across its header strip */
body.modern .pass { box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 12px 28px rgba(16, 24, 40, .16); border-radius: 16px; }
body.modern .pass-head { background: linear-gradient(135deg, color-mix(in srgb, var(--pass-head, var(--brand)) 86%, #fff), color-mix(in srgb, var(--pass-head, var(--brand)) 80%, #000)); border-bottom-width: 4px; }

/* Admin: lighter menu and tables */
body.modern .staff-side { padding: 10px; }
body.modern .staff-side a, body.modern .staff-side button { font-weight: 550; font-size: 14.5px; padding: 9px 11px; }
body.modern .staff-side a[aria-current="page"] { background: var(--tint); color: var(--brand); font-weight: 650; }
body.modern .staff-side a.side-scan { color: var(--on-accent); }
body.modern .mtable th { background: color-mix(in srgb, var(--fg) 3%, var(--surface)); color: var(--muted); font-size: 12.5px; font-weight: 650; border-bottom: 1px solid var(--line); }
body.modern .mtable td { border-top-color: color-mix(in srgb, var(--line) 60%, transparent); padding-block: 11px; }
body.modern .mtable tbody tr:nth-child(even) td { background: transparent; }
body.modern .mtable tbody tr:hover td { background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
body.modern .mtable .acts a, body.modern .mtable .acts button { border: 0; box-shadow: 0 0 0 1px var(--line); }
body.modern .mtabs { border-bottom-width: 1px; }
body.modern .mtabs button, body.modern .mtabs a.tabl { border-bottom-width: 2px; font-weight: 600; font-size: 14.5px; }
body.modern .mtabs .n { font-size: 12px; }
body.modern .mfoot { background: transparent; color: var(--muted); padding: 4px 2px; font-weight: 500; font-size: 14px; }
body.modern .mpager button { box-shadow: 0 0 0 1px var(--line); }
body.modern .mpager button[aria-current="true"] { background: var(--brand); color: var(--on-brand); box-shadow: none; }

/* Home: "Your club this week" */
body.modern .home { display: flex; flex-direction: column; }
body.modern .home { gap: 14px; }
body.modern .home-top { display: flex; flex-direction: column; gap: 1px; }
body.modern .home-hi { color: var(--muted); font-size: 14px; font-weight: 500; }
body.modern .home-top h1 { font-size: 24px; }
body.modern .home-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { body.modern .home-grid { grid-template-columns: 420px 1fr; align-items: start; } body.modern .home-side { margin-top: 0; } }
body.modern .next-card { background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-up); }
body.modern .next-pic { height: 128px; background: var(--brand-fade); background-size: cover; background-position: center; position: relative; }
body.modern .next-pic.noimg { height: auto; min-height: 0; }
body.modern .next-pic.noimg .next-band { position: static; display: block; }
body.modern .next-pic.noimg:not(:has(.next-band)) { height: 6px; }
body.modern .next-pic.noimg .next-tag { position: static; display: inline-block; margin: 12px 0 0 16px; background: var(--tint); color: var(--brand); }
body.modern .next-pic.noimg:has(.next-tag) { height: auto; background: none; }
body.modern .next-band { position: absolute; left: 0; right: 0; bottom: 0; background: var(--okc); color: #fff; font-weight: 700; font-size: 14px; padding: 7px 14px; }
body.modern .next-tag { position: absolute; left: 12px; top: 12px; background: #fff; color: var(--fg); font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
body.modern .next-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
body.modern .next-body h2 { font-size: 19px; }
body.modern .next-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 14px; }
body.modern .next-meta span, body.modern .next-meta .ic { display: inline-flex; align-items: center; gap: 5px; }
body.modern .next-meta .ic { width: 16px; height: 16px; }
body.modern .next-acts { display: flex; gap: 8px; margin-top: 8px; }
body.modern .next-acts .btn { flex: 1; }
body.modern .next-acts .btn.ghost { background: color-mix(in srgb, var(--fg) 6%, var(--surface)); box-shadow: none; }
body.modern .home-side, body.modern #home-all, body.modern .home-day { display: flex; flex-direction: column; gap: 8px; }
/* Computers: "Show my card" under the next event (phones have the Card tab) */
body.modern .home-mycard { display: none; }
@media (min-width: 701px) {
  body.modern .home-mycard { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--brand-fade); color: var(--on-brand); text-decoration: none; box-shadow: var(--shadow); }
  body.modern .home-mycard .li-ic { background: rgba(255, 255, 255, .16); color: inherit; }
  body.modern .home-mycard small { display: block; font-size: 13px; opacity: .85; }
  body.modern .home-mycard > .ic { margin-left: auto; width: 18px; height: 18px; }
}
body.modern #home-all[hidden], body.modern .home-day[hidden] { display: none; }
body.modern .week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
body.modern .wk { text-decoration: none; text-align: center; background: var(--surface); box-shadow: 0 0 0 1px var(--line); border-radius: 12px; padding: 7px 0 6px; font-size: 10.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; }
body.modern .wk b { display: block; font-size: 17px; color: var(--fg); }
body.modern .wk i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin: 3px auto 0; }
body.modern .wk i.no { background: transparent; }
body.modern .wk.on { background: var(--brand); color: var(--on-brand); box-shadow: none; }
body.modern .wk.on b { color: var(--on-brand); }
/* A date tapped on Home: filled in. Today keeps an outline while another day is picked. */
body.modern .week-strip.picked .wk.on:not(.pick) { background: var(--surface); color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
body.modern .week-strip.picked .wk.on:not(.pick) b { color: var(--brand); }
body.modern .wk.pick { background: var(--brand); color: var(--on-brand); box-shadow: none; }
body.modern .wk.pick b { color: var(--on-brand); }
body.modern .day-empty { background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); padding: 14px 16px; color: var(--muted); font-size: 14px; margin: 0 0 10px; }
body.modern .home-h { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
body.modern .home-h h2 { font-size: 17px; }
body.modern .home-h a { color: var(--brand); font-weight: 650; font-size: 14px; text-decoration: none; }
body.modern .home-ev { display: block; text-decoration: none; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
body.modern .home-ev.booked { box-shadow: 0 0 0 2px var(--okc), 0 4px 14px rgba(31, 157, 104, .15); }
body.modern .home-band { display: block; background: var(--okc); color: #fff; font-weight: 700; font-size: 14px; padding: 7px 14px; }
body.modern .home-row { display: flex; align-items: center; gap: 12px; padding: 12px; }
body.modern .home-row > .ic { margin-left: auto; color: var(--muted); width: 18px; height: 18px; }
body.modern .dblock { width: 46px; flex: none; text-align: center; border-radius: 10px; background: var(--tint); color: var(--brand); padding: 6px 0; }
body.modern .home-ev.booked .dblock { background: #e3f5ec; color: #18794e; }
body.modern .dblock b { display: block; font-size: 19px; line-height: 1; }
body.modern .dblock small { font-size: 10px; font-weight: 700; letter-spacing: .05em; }
body.modern .home-txt { min-width: 0; }
body.modern .home-txt b { display: block; font-weight: 650; }
body.modern .home-txt small { display: block; color: var(--muted); font-size: 13px; }

/* Club and Account tabs: simple app-style lists */
body.modern .applist { gap: 10px; }
body.modern .list-h { font-family: var(--f-body); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 10px 4px 0; }
body.modern .list-box { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 2px 14px; }
body.modern .list-box form { margin: 0; }
body.modern .list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border: 0; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); text-decoration: none; color: var(--fg); width: 100%; background: none; font: inherit; text-align: left; cursor: pointer; }
body.modern .list-box > :first-child, body.modern .list-box > :first-child .list-row { border-top: 0; }
body.modern .list-row small { display: block; color: var(--muted); font-size: 13px; }
body.modern .list-row > .ic { margin-left: auto; color: var(--muted); width: 18px; height: 18px; }
body.modern .li-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--tint); color: var(--brand); display: grid; place-items: center; flex: none; }
body.modern .li-ic .ic { width: 19px; height: 19px; }
body.modern .list-row.out { color: #b42318; font-weight: 600; }
body.modern .list-row.out .li-ic { background: #fdecec; color: #b42318; }
body.modern .big-link { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; text-decoration: none; }
body.modern .big-link small { display: block; font-size: 13px; opacity: .85; }
body.modern .big-link > .ic { margin-left: auto; width: 18px; height: 18px; }
body.modern .big-link .bi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); flex: none; }
body.modern .big-link.admin { background: var(--brand-fade); color: var(--on-brand); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 30%, transparent); }
body.modern .big-link.scan { background: var(--accent); color: var(--on-accent); }
body.modern .club-head { display: flex; align-items: center; gap: 12px; }
body.modern .club-logo { min-width: 58px; max-width: 180px; height: 58px; border-radius: 14px; background: var(--brand-fade); display: grid; place-items: center; overflow: hidden; flex: none; padding: 6px; }
body.modern .club-logo img { width: auto !important; height: 42px !important; max-width: 156px; object-fit: contain; }
body.modern .club-logo:has(img) { padding: 8px 12px; }

/* Computers: the app tabs as plain buttons in the header instead of the Menu button (member pages, v0.2.03) */
body.modern .hlinks { display: none; }
@media (min-width: 701px) {
  body.modern.has-tabs .nav-btn, body.modern.has-tabs .nav, body.modern.has-tabs .band .hscan { display: none !important; }
  body.modern.has-tabs .hlinks { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: nowrap; }
  body.modern .hlinks form { margin: 0; display: flex; }
  body.modern .hlinks a, body.modern .hlinks button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .14); color: inherit; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; }
  body.modern .hlinks a:hover, body.modern .hlinks button:hover { background: rgba(255, 255, 255, .22); }
  body.modern .hlinks a.on { background: rgba(255, 255, 255, .30); }
  body.modern .hlinks .ic { width: 18px; height: 18px; flex: none; }
  body.modern .hlinks .hl-ic { padding: 0 13px; }
  body.modern .hlinks .hl-div { width: 1px; height: 28px; background: rgba(255, 255, 255, .3); margin: 0 4px; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  body.modern .hlinks a span { display: none; }
  body.modern .hlinks a { padding: 0 13px; }
}

/* Phones: the tab bar replaces the ☰ menu on member pages */
body.modern .tabbar, body.modern .tb-sign { display: none; }
@media (max-width: 700px) {
  body.modern.has-tabs { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body.modern.has-tabs .nav-btn, body.modern.has-tabs .nav { display: none !important; }
  body.modern.has-tabs .hadmin { display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .14); color: inherit; font-weight: 650; flex: none; }
  body.modern.has-tabs .hadmin .ic { width: 19px; height: 19px; }
  body.modern.has-tabs .hscan + .hadmin { margin-left: 0; }
  body.modern.has-tabs .brand-link + .hadmin { margin-left: auto; }
  body.modern .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding: 8px 4px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 16px rgba(16, 24, 40, .05); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  body.modern .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; font-size: 11px; font-weight: 600; color: #98a2b3; }
  body.modern .tabbar a .ic { width: 23px; height: 23px; }
  body.modern .tabbar a.on { color: var(--brand); }
  body.modern .tabbar a.off { color: #cfd4db; }
  body.modern .tabbar .tb-card em { width: 52px; height: 52px; margin-top: -26px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-fade); color: var(--on-brand); border: 3px solid #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 35%, transparent); }
  body.modern .tabbar .tb-card { color: var(--muted); }
  body.modern .tabbar .tb-card.on em { box-shadow: 0 0 0 3px var(--accent), 0 6px 16px color-mix(in srgb, var(--brand) 35%, transparent); }
  body.modern .tabbar .tb-card.off em { background: #d5d9df; box-shadow: none; }
  body.modern .tb-sign { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 89; align-items: center; gap: 10px; background: #141b26; color: #fff; border-radius: 14px; padding: 11px 14px; box-shadow: 0 8px 20px rgba(16, 24, 40, .22); font-size: 14px; }
  body.modern .tb-sign small { display: block; opacity: .75; font-size: 12.5px; }
  body.modern .tb-sign a { margin-left: auto; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; padding: 8px 14px; border-radius: 10px; }
  body.modern.has-tabs:has(.tb-sign) { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  body.modern.has-tabs .site-foot { padding-bottom: 8px; }
  /* the demo bar sits above the tab bar */
  body.modern.has-tabs .demo-float { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  body.modern .home-top h1 { font-size: 22px; }
}

/* Admin: an event's page in two columns: who's coming on the left; at a glance, incidents and cancelling on the right */
@media (min-width: 1000px) {
  body.modern .evv { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; grid-auto-flow: row dense; }
  body.modern .evv > * { grid-column: 1 / -1; }
  body.modern .evv > #attendance { grid-column: 1; grid-row: span 3; order: 1; }
  body.modern .evv > .ev-glance { grid-column: 2; order: 1; }
  body.modern .evv > #incidents { grid-column: 2; order: 2; }
  body.modern .evv > #manage { grid-column: 2; order: 3; }
}
body.modern .ev-glance { gap: 0; }
body.modern .ev-glance h2, body.modern #incidents h2, body.modern #attendance h2 { font-size: 17px; margin-bottom: 6px; }
body.modern .gl-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); font-size: 14px; }
body.modern .gl-row:first-of-type { border-top: 0; }
body.modern .gl-row span { color: var(--muted); }
body.modern .gl-row b { font-weight: 600; text-align: right; }
body.modern .gl-bar { height: 6px; border-radius: 9px; background: color-mix(in srgb, var(--fg) 8%, var(--surface)); overflow: hidden; margin: 0 0 6px; }
body.modern .gl-bar i { display: block; height: 100%; background: var(--brand); border-radius: 9px; }
body.modern #manage summary { color: #b42318; font-weight: 650; }
body.modern .staffnav { gap: 8px; }
body.modern .staffnav .chip { box-shadow: 0 0 0 1px var(--line); font-weight: 600; }
body.modern .staffnav .chip[href*="event_edit"] { background: var(--brand); color: var(--on-brand); box-shadow: none; }

/* Admin: Club settings in tabs (assets/modern-admin.js); one Save bar that stays at the bottom */
body.modern .set-tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
body.modern .set-tabs button { font: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 9px 12px; cursor: pointer; }
body.modern .set-tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
body.modern .set-pane[hidden] { display: none; }
body.modern .set-pane { display: flex; flex-direction: column; gap: 16px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 18px; }
body.modern .set-pane > h2:first-child { display: none; }
body.modern .set-save { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; padding: 12px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); }
body.modern .set-save .btn { width: auto; min-width: 180px; }

/* Admin: tidier top of page */
body.modern .staff-main h1 { font-size: 26px; }
body.modern .income-ranges .chip, body.modern .cat-chips .chip { min-height: 34px; }
body.modern .rt-bar { background: var(--surface); gap: 2px; }
body.modern .rt-bar button, body.modern .rt-bar select { border-color: transparent; background: transparent; font-weight: 600; min-height: 32px; }
body.modern .rt-bar button:hover, body.modern .rt-bar select:hover { background: color-mix(in srgb, var(--fg) 6%, var(--surface)); }
body.modern .rt-bar select { border-color: var(--line); }

/* Account tab: how the Events page opens. */
body.modern .evpref { display: block; padding: 14px 16px; }
body.modern .evpref small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
body.modern .evpref .ok-text { color: var(--okc); font-weight: 650; }
body.modern .seg { display: flex; background: #eceef2; border-radius: 10px; padding: 3px; gap: 3px; margin-top: 10px; }
body.modern .seg button { flex: 1; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 650; padding: 9px 0; border-radius: 8px; color: var(--muted); cursor: pointer; min-height: 40px; }
body.modern .seg button.on { background: #fff; color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
/* Club credit running out within a month (Account tab, v0.2.05) */
body.modern .list-row.cr-soon .li-ic { background: #fef3c7; color: #b45309; }
body.modern .list-row.cr-soon small { color: #b45309; font-weight: 600; }
/* Account tab: Light or dark (v0.2.06) */
body.modern .appear { display: block; padding: 14px 16px; margin: 0; }
body.modern .appear small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
body.modern .appear .ok-text { color: var(--okc); font-weight: 650; }
body.modern .ap-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--soft, #eef1f5); border-radius: 12px; padding: 4px; margin: 10px 0 8px; }
body.modern .ap-seg button { border: 0; background: transparent; color: var(--fg); font: inherit; font-weight: 600; font-size: 14px; padding: 10px 4px; border-radius: 9px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
body.modern .ap-seg button.on { background: var(--surface); box-shadow: 0 1px 3px rgba(16, 24, 40, .15); }
body.modern .ap-seg svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
