/* ClubMarque member portal: desktop-first, large type, high contrast. Club colours arrive as CSS variables. */
:root {
  --primary: #3952A0; --gold: #B8964F; --gold-light: #E9D9B0; --cream: #F8F4EA;
  --primary-dark: color-mix(in srgb, var(--primary) 85%, #000);
  --primary-deep: color-mix(in srgb, var(--primary) 60%, #0b1430);
  --primary-soft: color-mix(in srgb, var(--primary) 9%, #fff);
  --cream-dark: color-mix(in srgb, var(--cream) 88%, #6b5a2e);
  --ink: #1b2233; --muted: #4a5468; --line: #d9d3c4; --card: #fff;
  --ok: #1f6b3a; --ok-bg: #e3f2e7; --warn: #8a5a00; --warn-bg: #fdf1d6; --bad: #a12a2a; --bad-bg: #fbe5e3;
  --radius: 16px; --shadow: 0 1px 2px rgba(20, 30, 60, .06), 0 4px 16px rgba(20, 30, 60, .06);
  --sidebar: 272px;
  font-size: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; color: var(--ink);
  background: var(--cream); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--primary-dark); text-underline-offset: 3px; }
a:hover { color: var(--primary-deep); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--primary-deep); line-height: 1.2; margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: 2rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.12rem; }
p { margin: 0 0 .8em; }
.i { vertical-align: -0.2em; flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 16px; z-index: 99; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, var(--primary-deep), var(--primary-dark)); color: #fff; position: sticky; top: 0;
  height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 22px 16px 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding: 4px 8px 18px; border-bottom: 1px solid rgba(255,255,255,.14); margin-bottom: 12px; }
.brand img, .brand .mono { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 0 0 2px var(--gold); flex: none; }
.brand .mono { display: grid; place-items: center; background: var(--primary); font: 700 1.5rem Georgia, serif; color: var(--cream); }
.brand b { font-family: Georgia, serif; font-size: 1.05rem; line-height: 1.2; display: block; }
.brand small { color: var(--gold-light); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; color: #eef1fa; text-decoration: none; padding: 11px 12px; border-radius: 12px; font-size: .98rem; font-weight: 500; min-height: 46px; }
.nav a:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav a.active { background: var(--cream); color: var(--primary-deep); font-weight: 700; box-shadow: inset 4px 0 0 var(--gold); }
.nav a .count { margin-left: auto; background: var(--gold); color: #1d1606; border-radius: 99px; font-size: .75rem; padding: 1px 8px; font-weight: 700; }
.sidebar .foot { margin-top: auto; padding: 16px 8px 4px; font-size: .8rem; color: #c7cfe6; }
.powered { font-size: .8rem; letter-spacing: .01em; }
.powered b { color: inherit; } .powered .ai { color: var(--gold); }
.sidebar .powered b { color: #fff; } .sidebar .powered .ai { color: var(--gold-light); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 12px 32px; min-height: 72px; }
.topbar .title { font-family: Georgia, serif; font-size: 1.3rem; color: var(--primary-deep); font-weight: 700; margin-right: auto; }
.chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 99px; padding: 8px 16px; font-weight: 600; font-size: .92rem; text-decoration: none; border: 1.5px solid var(--line); background: #fff; color: var(--ink); min-height: 44px; }
.chip:hover { border-color: var(--primary); color: var(--primary-deep); }
.chip.balance { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 30%, #fff); color: var(--primary-deep); }
.chip.balance strong { font-size: 1.02rem; }
.bell { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: #fff; color: var(--primary-deep); }
.bell:hover { border-color: var(--primary); }
.bell .dot { position: absolute; top: -4px; right: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--bad); color: #fff; font-size: .78rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.me { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--primary); flex: none; font-size: .95rem; }
.content { padding: 28px 32px 48px; width: 100%; max-width: 1180px; }
.content.wide { max-width: 1480px; }
.footer { padding: 20px 32px 32px; color: var(--muted); font-size: .85rem; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); margin-top: auto; }

/* ---------- building blocks ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }
.card h2 { display: flex; align-items: center; gap: 10px; }
.card .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card .head h2 { margin: 0; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.stack > * + * { margin-top: 18px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.big { font-size: 2.2rem; font-weight: 800; color: var(--primary-deep); letter-spacing: -.01em; line-height: 1.1; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--gold); }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.pagehead p { margin: 0; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 12px;
  font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; border: 2px solid var(--primary); background: var(--primary); color: #fff; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn.secondary { background: #fff; color: var(--primary-dark); }
.btn.secondary:hover { background: var(--primary-soft); color: var(--primary-deep); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1d1606; }
.btn.gold:hover { background: color-mix(in srgb, var(--gold) 85%, #000); color: #fff; }
.btn.danger { background: #fff; border-color: var(--bad); color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.sm { min-height: 40px; padding: 6px 14px; font-size: .9rem; }
.btn.lg { min-height: 56px; padding: 12px 28px; font-size: 1.1rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; color: var(--primary-dark); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 3px 12px; font-size: .8rem; font-weight: 700; background: var(--primary-soft); color: var(--primary-deep); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); } .badge.gold { background: var(--gold-light); color: #4a3a12; }
.badge.demo { background: #fff4d1; color: #6b4b00; border: 1.5px dashed #c9971c; }

.alert { border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; display: flex; gap: 12px; align-items: flex-start; font-weight: 500; border: 1.5px solid; }
.alert.ok { background: var(--ok-bg); color: var(--ok); border-color: #9fd0ae; }
.alert.bad { background: var(--bad-bg); color: var(--bad); border-color: #e9a8a2; }
.alert.warn { background: var(--warn-bg); color: var(--warn); border-color: #ebcd87; }
.alert.info { background: var(--primary-soft); color: var(--primary-deep); border-color: color-mix(in srgb, var(--primary) 25%, #fff); }

label { font-weight: 600; display: block; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=time], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; min-height: 50px; border: 1.5px solid #b9b2a2; border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: 3px solid color-mix(in srgb, var(--primary) 25%, transparent); outline-offset: 0; }
.field { margin-bottom: 16px; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.check { display: flex; gap: 12px; align-items: center; font-weight: 500; min-height: 44px; cursor: pointer; }
.check input { width: 24px; height: 24px; accent-color: var(--primary); }
.radio-card { display: flex; gap: 14px; align-items: center; border: 2px solid var(--line); border-radius: 14px; padding: 14px 18px; cursor: pointer; background: #fff; min-height: 64px; }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.radio-card input { width: 22px; height: 22px; accent-color: var(--primary); }

table.t { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.t th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line); background: #fbf9f4; }
table.t td { padding: 12px; border-bottom: 1px solid #ece7db; vertical-align: top; }
table.t tr:hover td { background: #fcfbf7; }
table.t .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.credit { color: var(--ok); font-weight: 700; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 10px 18px; border-radius: 99px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); background: #fff; font-weight: 600; min-height: 46px; display: inline-flex; align-items: center; gap: 8px; }
.tabs a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.daystrip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; }
.daystrip a { flex: none; min-width: 92px; text-align: center; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); line-height: 1.25; }
.daystrip a b { display: block; font-size: 1.05rem; }
.daystrip a small { color: var(--muted); font-size: .8rem; }
.daystrip a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.daystrip a.on small { color: var(--gold-light); }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid #ece7db; }
.list > li:last-child { border-bottom: 0; }
.list .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.list .grow { flex: 1; min-width: 0; }
.list .t1 { font-weight: 700; }
.list .t2 { color: var(--muted); font-size: .9rem; }
.empty { color: var(--muted); padding: 10px 0; }

/* ---------- dashboard ---------- */
.hero { background: linear-gradient(120deg, var(--primary-deep), var(--primary)); color: #fff; border-radius: 20px; padding: 26px 30px; display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 22px; position: relative; overflow: hidden; }
.hero:after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 28px solid rgba(233,217,176,.12); }
.hero h1 { color: #fff; margin: 0 0 4px; }
.hero p { color: #dfe5f6; margin: 0; }
.hero .wx { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.1); border-radius: 16px; padding: 12px 18px; z-index: 1; color: #fff; text-decoration: none; }
.hero .wx b { font-size: 2rem; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.status-pill:before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: currentColor; }
.st-open { color: var(--ok); } .st-closed { color: var(--bad); } .st-other { color: var(--warn); }
.course-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.course-tile { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fdfcf8; }
.course-tile h3 { margin-bottom: 6px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .95rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.balance-card { background: linear-gradient(160deg, #fff, var(--cream)); border: 1.5px solid var(--gold-light); }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.quick a { display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--primary-deep); font-weight: 700; min-height: 68px; }
.quick a:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.quick .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; }

/* ---------- tee sheet & courts grid ---------- */
.sheet { width: 100%; border-collapse: separate; border-spacing: 0; }
.sheet th { position: sticky; top: 72px; background: var(--primary-deep); color: #fff; padding: 12px 14px; text-align: left; font-size: 1rem; z-index: 2; }
.sheet th:first-child { border-top-left-radius: 12px; } .sheet th:last-child { border-top-right-radius: 12px; }
.sheet td { border-bottom: 1px solid #ece7db; padding: 8px 10px; background: #fff; vertical-align: middle; }
.sheet td.time { font-weight: 800; font-size: 1.05rem; white-space: nowrap; color: var(--primary-deep); width: 120px; background: #fbf9f4; }
.sheet tr.past td { opacity: .5; }
.slot { display: flex; align-items: center; gap: 12px; justify-content: space-between; min-height: 48px; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ok); display: inline-block; }
.dots i.b { background: #8b93a5; border-color: #8b93a5; }
.dots i.me { background: var(--gold); border-color: var(--gold); }
.slot .lab { font-size: .9rem; color: var(--muted); flex: 1; }
.slot.mine { background: var(--gold-light); border-radius: 10px; padding: 0 10px; }
.slot.mine .lab { color: #4a3a12; font-weight: 700; }
.cgrid td.cell { text-align: center; padding: 6px; }
.cell .btn { width: 100%; }
.cell .taken { display: block; padding: 10px; border-radius: 10px; background: #eceae4; color: #6a6f7c; font-size: .85rem; }
.cell .mine { display: block; padding: 10px; border-radius: 10px; background: var(--gold-light); color: #4a3a12; font-weight: 700; font-size: .85rem; }
.scroll-x { overflow-x: auto; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); align-items: center; }

dialog { border: 0; border-radius: 20px; padding: 0; width: min(560px, 92vw); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(14, 22, 48, .55); }
dialog .dlg-h { background: var(--primary-deep); color: #fff; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; }
dialog .dlg-h h2 { color: #fff; margin: 0; font-size: 1.25rem; }
dialog .dlg-b { padding: 22px 24px; }
dialog .dlg-f { padding: 0 24px 22px; display: flex; gap: 10px; justify-content: flex-end; }
.closex { background: none; border: 0; color: #fff; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; }
.closex:hover { background: rgba(255,255,255,.15); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 48px; padding: 0 16px; border: 2px solid var(--line); border-radius: 12px; font-weight: 700; cursor: pointer; background: #fff; }
.seg input:checked + span { border-color: var(--primary); background: var(--primary); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- calendar ---------- */
.month { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; border-radius: 14px; overflow: hidden; }
.month th { background: var(--primary-deep); color: #fff; padding: 10px; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.month td { border: 1px solid #e6e0d2; vertical-align: top; height: 128px; padding: 8px; }
.month td.other { background: #f6f3ec; color: #9a9688; }
.month td.today { box-shadow: inset 0 0 0 3px var(--gold); }
.month .dnum { font-weight: 800; font-size: .95rem; margin-bottom: 4px; display: flex; justify-content: space-between; }
.month .ev { display: block; font-size: .82rem; line-height: 1.25; padding: 5px 7px; border-radius: 8px; margin-top: 4px; background: var(--primary-soft); color: var(--primary-deep); text-decoration: none; font-weight: 600; border-left: 4px solid var(--primary); }
.month .ev:hover { background: color-mix(in srgb, var(--primary) 18%, #fff); }
.month .hh { display: block; font-size: .78rem; line-height: 1.25; padding: 4px 7px; border-radius: 8px; margin-top: 4px; background: #fbf3df; color: #5b4714; border-left: 4px solid var(--gold); }
.month .ev.going { background: var(--gold-light); border-left-color: var(--gold); color: #3f3010; }

/* ---------- directory ---------- */
.dir { display: grid; grid-template-columns: 1fr 52px; gap: 18px; align-items: start; }
.rail { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 8px 4px; }
.rail a, .rail span { display: grid; place-items: center; height: 26px; font-weight: 700; font-size: .85rem; text-decoration: none; border-radius: 8px; color: var(--primary-dark); }
.rail span { color: #c2bcae; }
.rail a:hover { background: var(--primary); color: #fff; }
.letter { font: 700 1.3rem Georgia, serif; color: var(--primary-deep); padding: 14px 4px 8px; border-bottom: 2px solid var(--gold-light); margin-bottom: 10px; scroll-margin-top: 90px; position: sticky; top: 72px; background: var(--cream); z-index: 1; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-bottom: 18px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; }
.person .grow { flex: 1; min-width: 0; }
.person .nm { font-weight: 700; font-size: 1.05rem; }
.person .acts { display: flex; gap: 6px; }
.iconbtn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1.5px solid var(--primary); color: var(--primary-dark); text-decoration: none; background: #fff; }
.iconbtn:hover { background: var(--primary); color: #fff; }

/* ---------- account / statement ---------- */
.stmt { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 44px 52px; box-shadow: var(--shadow); max-width: 920px; margin: 0 auto; }
.stmt-h { display: flex; justify-content: space-between; gap: 20px; border-bottom: 3px solid var(--primary-deep); padding-bottom: 18px; margin-bottom: 20px; }
.stmt-h .logo { display: flex; gap: 14px; align-items: center; }
.stmt-h img { width: 64px; height: 64px; border-radius: 12px; }
.stmt-sum { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; margin: 18px 0 26px; }
.stmt-sum div { padding: 12px 14px; border-right: 1px solid var(--line); }
.stmt-sum div:last-child { border-right: 0; background: var(--primary-soft); }
.stmt-sum small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.stmt-sum b { font-size: 1.15rem; }
.stmt h3 { margin-top: 18px; border-bottom: 1px solid var(--line); padding-bottom: 4px; display: flex; justify-content: space-between; }
.paybox { border: 2px solid var(--gold); border-radius: 18px; padding: 24px; background: #fffdf7; }
.steps { display: flex; gap: 8px; margin-bottom: 22px; list-style: none; padding: 0; }
.steps li { flex: 1; text-align: center; padding: 10px; border-radius: 10px; background: #fff; border: 1.5px solid var(--line); color: var(--muted); font-weight: 600; font-size: .9rem; }
.steps li.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.steps li.done { background: var(--ok-bg); border-color: #9fd0ae; color: var(--ok); }
.receipt { max-width: 640px; margin: 0 auto; text-align: center; }
.receipt .tick { width: 84px; height: 84px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; }
.member-card { width: 480px; max-width: 100%; aspect-ratio: 1.586; border-radius: 22px; padding: 26px 28px; color: #fff; background: linear-gradient(135deg, var(--primary-deep), var(--primary)); position: relative; overflow: hidden; box-shadow: 0 18px 40px rgba(20,30,70,.3); display: flex; flex-direction: column; }
.member-card:after { content: ""; position: absolute; inset: auto -40px -80px auto; width: 240px; height: 240px; border-radius: 50%; border: 26px solid rgba(233,217,176,.18); }
.member-card .nm { font: 700 1.5rem Georgia, serif; margin-top: auto; }
.member-card .no { letter-spacing: .12em; font-weight: 700; color: var(--gold-light); }
.barcode { background: #fff; padding: 14px; border-radius: 12px; display: inline-block; margin-top: 18px; }

/* ---------- messages ---------- */
.inbox { display: grid; grid-template-columns: 380px 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 520px; }
.inbox .lst { border-right: 1px solid var(--line); overflow-y: auto; max-height: 72vh; }
.inbox .lst a { display: block; padding: 14px 18px; border-bottom: 1px solid #ece7db; text-decoration: none; color: var(--ink); }
.inbox .lst a.unread { background: var(--primary-soft); }
.inbox .lst a.unread .t1:before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); margin-right: 8px; }
.inbox .lst a.on { box-shadow: inset 4px 0 0 var(--gold); background: #fbf7ec; }
.inbox .lst .t1 { font-weight: 700; } .inbox .lst .t2 { color: var(--muted); font-size: .85rem; }
.inbox .read { padding: 26px 30px; white-space: pre-line; }

/* ---------- weather ---------- */
.hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.hours div { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 6px; }
.hours b { display: block; font-size: 1.2rem; }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: linear-gradient(150deg, var(--primary-deep), var(--primary)); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art:after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 460px; height: 460px; border-radius: 50%; border: 48px solid rgba(233,217,176,.14); }
.login-art h1 { color: #fff; font-size: 2.6rem; margin-top: 28px; }
.login-art p { color: #dde4f7; font-size: 1.1rem; max-width: 30em; }
.login-art ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.login-art li { display: flex; gap: 12px; align-items: center; font-size: 1.05rem; }
.login-art li .i { color: var(--gold-light); }
.login-form { display: grid; place-items: center; padding: 40px; }
.login-form .card { width: 100%; max-width: 460px; padding: 34px 36px; }
.crest { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 0 0 3px var(--gold); }

/* ---------- responsive: tablet ---------- */
@media (max-width: 1180px) {
  :root { --sidebar: 92px; }
  .sidebar { padding: 18px 10px; }
  .brand { justify-content: center; padding: 4px 0 14px; }
  .brand .txt, .nav a span, .sidebar .foot .txt { display: none; }
  .nav a { justify-content: center; padding: 12px 0; position: relative; }
  .nav a .count { position: absolute; top: 4px; right: 8px; margin: 0; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .content { padding: 22px 22px 40px; }
  .topbar { padding: 10px 22px; }
  .inbox { grid-template-columns: 300px 1fr; }
}
@media (max-width: 900px) {
  .g2, .g3 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .course-tiles { grid-template-columns: 1fr; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .me .nm { display: none; }
  .inbox { grid-template-columns: 1fr; }
  .stmt { padding: 26px; }
  .stmt-sum { grid-template-columns: 1fr 1fr; }
}

/* ---------- print (statements, receipts) ---------- */
@media print {
  :root { font-size: 12pt; }
  body { background: #fff; }
  .sidebar, .topbar, .footer, .noprint, .alert { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; max-width: none; }
  .stmt { box-shadow: none; border: 0; padding: 0; max-width: none; }
  .card { box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}

.sheet.hide-past:not(.show-past) tr.past { display: none; }
