/* The Arena: member portal and staff desk */
body { min-height: 100vh; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.4; transform: scale(0.94); } }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.login::before { content: ''; position: absolute; left: -30%; top: -10%; width: 80%; height: 120%; background: radial-gradient(closest-side, rgba(217, 68, 63, 0.4), transparent 75%); filter: blur(30px); }
.login-card { position: relative; width: 100%; max-width: 400px; }
.login-card .logo { width: 220px; margin: 0 auto 28px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.seg button { border: 0; background: none; padding: 9px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg button.active { background: var(--surface-2); color: var(--text); }
.login-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.login-foot a { color: var(--text-2); }
.pin-input { letter-spacing: 0.5em; font-size: 22px; text-align: center; }

/* shell */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); background: var(--bg-2); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.side .logo { width: 160px; margin: 6px 8px 22px; }
.side a, .side button.navbtn {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text-2);
  font-weight: 500; font-size: 15px; border: 0; background: none; cursor: pointer; text-align: left; width: 100%;
}
.side a:hover, .side button.navbtn:hover { background: var(--surface); color: var(--text); }
.side a.active { background: var(--red-tint); color: var(--text); }
.side a.active svg { fill: var(--red-hi); }
.side svg { width: 19px; height: 19px; fill: currentColor; flex: none; }
.side .count { margin-left: auto; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.side .spacer { flex: 1; }
.main { min-width: 0; padding: 28px 32px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 40px; }
.page-head p { color: var(--muted); margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.topbar { display: none; }

/* member layout */
.mshell { max-width: 640px; margin: 0 auto; padding: 0 16px 100px; }
.mtop { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 12px; }
.mtop .logo { width: 132px; }
.mtabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(24, 24, 26, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.mtabs a { display: grid; justify-items: center; gap: 3px; padding: 10px 0 9px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; }
.mtabs a svg { width: 22px; height: 22px; fill: currentColor; }
.mtabs a.active { color: var(--red-hi); }
.hello { font: 700 34px/1.05 var(--display); text-transform: uppercase; margin: 6px 0 18px; }
.hello span { color: var(--red-hi); }

/* membership card */
.mcard { position: relative; overflow: hidden; border-radius: 18px; padding: 22px; background: linear-gradient(135deg, #2a1414 0%, #1b1b1d 55%); border: 1px solid #3a2523; }
.mcard .helm { position: absolute; right: -24px; bottom: -36px; width: 150px; opacity: 0.09; }
.mcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mcard-plan { font: 700 24px/1.1 var(--display); text-transform: uppercase; }
.mcard-code { color: var(--muted); font-size: 13px; margin-top: 2px; letter-spacing: 0.05em; }
.mcard-body { display: flex; align-items: center; gap: 20px; margin-top: 18px; }
.ring { --p: 50; --c: var(--green); width: 108px; height: 108px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0); position: relative; }
.ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #1e1a1a; }
.ring div { position: relative; text-align: center; }
.ring b { font: 800 38px/1 var(--display); display: block; }
.ring span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.mcard-info { display: grid; gap: 6px; font-size: 15px; color: var(--text-2); }
.mcard-info b { color: var(--text); }
.banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; margin-top: 14px; font-size: 15px; }
.banner.warn { background: var(--amber-tint); border: 1px solid rgba(229, 165, 58, 0.35); }
.banner.bad { background: var(--red-tint); border: 1px solid rgba(217, 68, 63, 0.4); }
.banner.info { background: var(--blue-tint); border: 1px solid rgba(91, 155, 230, 0.35); }
.banner.good { background: var(--green-tint); border: 1px solid rgba(63, 178, 127, 0.35); }

.block { margin-top: 26px; }
.block-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.block-head h2 { font-size: 22px; }
.block-head a, .linkbtn { color: var(--text-2); font-size: 14px; background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }

.list { display: grid; gap: 8px; }
.item { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.item .grow { flex: 1; min-width: 0; }
.item .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .s { color: var(--muted); font-size: 13px; }
.datebox { width: 50px; flex: none; text-align: center; background: var(--surface-2); border-radius: 10px; padding: 6px 0; }
.datebox b { display: block; font: 700 22px/1 var(--display); }
.datebox span { font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.06em; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat b { font: 700 30px/1 var(--display); display: block; }
.stat span { color: var(--muted); font-size: 13px; }

.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 4px; overflow-x: auto; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.heat i { width: 14px; height: 14px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); }
.heat i.on { background: var(--red-hi); }
.heat i.today { outline: 1px solid var(--text-2); }

/* schedule (member) */
.daystrip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.daystrip::-webkit-scrollbar { display: none; }
.daystrip button { flex: 1 0 54px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 4px; cursor: pointer; }
.daystrip button span { display: block; font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.06em; }
.daystrip button b { font: 700 22px/1.1 var(--display); }
.daystrip button.active { background: var(--red); border-color: var(--red); }
.daystrip button.active span { color: rgba(255, 255, 255, 0.85); }
.daystrip button.has::after { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin: 2px auto 0; }
.sess { display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--line)); border-radius: 12px; padding: 14px; }
.sess.mine { background: linear-gradient(90deg, rgba(63, 178, 127, 0.1), var(--surface) 60%); }
.sess.off { opacity: 0.55; }
.sess-time b { font: 700 22px/1 var(--display); display: block; }
.sess-time span { font-size: 12px; color: var(--muted); }
.sess .name { font-weight: 600; }
.sess .meta { font-size: 13px; color: var(--muted); }
.cap { height: 4px; background: rgba(255, 255, 255, 0.08); border-radius: 4px; margin-top: 8px; overflow: hidden; max-width: 160px; }
.cap i { display: block; height: 100%; background: var(--c, var(--text-2)); }

/* staff: kpis */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 22px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; display: block; transition: border-color 0.15s; }
a.kpi:hover { border-color: var(--line-2); }
.kpi span { color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi b { display: block; font: 700 38px/1.1 var(--display); margin-top: 4px; }
.kpi small { color: var(--muted); font-size: 13px; }
.kpi.alert b { color: var(--amber); }
.kpi.bad b { color: #ff8a85; }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.panel h3 { font-size: 20px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel h3 a { font: 500 14px var(--font); text-transform: none; color: var(--text-2); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.bars i { width: 100%; max-width: 30px; background: var(--red); border-radius: 5px 5px 2px 2px; min-height: 3px; }
.bars div.today i { background: var(--red-hi); box-shadow: 0 0 0 2px rgba(217, 68, 63, 0.3); }
.bars span { font-size: 11px; color: var(--muted); }
.bars em { font-style: normal; font-size: 11px; color: var(--text-2); }

/* tables */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .search { flex: 1 1 260px; max-width: 420px; position: relative; }
.toolbar .search input { padding-left: 38px; }
.toolbar .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; fill: var(--muted); }
.tablewrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: rgba(255, 255, 255, 0.025); }
td .t { font-weight: 600; }
td .s { color: var(--muted); font-size: 13px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* reminders */
.rgroup { margin-bottom: 26px; }
.rgroup h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rgroup h3 .n { font: 600 13px var(--font); background: var(--surface-2); padding: 2px 9px; border-radius: 999px; color: var(--text-2); }
.rrow { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.rrow.done { opacity: 0.6; }
.rrow .t { font-weight: 600; }
.rrow .s { color: var(--muted); font-size: 13px; }
.rrow .btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sent { color: var(--green); font-size: 13px; font-weight: 600; }
.btn-wa { background: #1f8f5c; color: #fff; }
.btn-wa:hover { background: #25a56b; }
.btn-wa svg { width: 16px; height: 16px; fill: #fff; }

/* check-in */
.checkin-box { max-width: 680px; }
.checkin-box input.big { font-size: 22px; padding: 16px 18px; border-radius: 14px; }
.result { margin-top: 14px; border-radius: 16px; padding: 18px 20px; display: flex; gap: 16px; align-items: center; }
.result .big { font: 700 28px/1.1 var(--display); text-transform: uppercase; }
.result.good { background: var(--green-tint); border: 1px solid rgba(63, 178, 127, 0.4); }
.result.warn { background: var(--amber-tint); border: 1px solid rgba(229, 165, 58, 0.4); }
.result.bad { background: var(--red-tint); border: 1px solid rgba(217, 68, 63, 0.5); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font: 700 16px var(--display); flex: none; color: var(--text-2); }

/* calendar (staff) */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wday { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; min-height: 240px; }
.wday.today { border-color: var(--red); }
.wday-h { text-align: center; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.wday-h span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.wday-h b { display: block; font: 700 22px/1.1 var(--display); }
.wday.today .wday-h b { color: var(--red-hi); }
.ev { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--c); background: var(--surface-2); border-radius: 8px; padding: 7px 8px; margin-bottom: 6px; cursor: pointer; font-size: 12.5px; }
.ev:hover { background: var(--line-2); }
.ev b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev span { color: var(--muted); }
.ev.full span.cnt { color: var(--amber); }
.ev.cx { opacity: 0.45; text-decoration: line-through; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade 0.15s; backdrop-filter: blur(3px); }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow); animation: rise 0.18s; }
.modal.wide { max-width: 860px; }
.modal-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 0; }
.modal-h h2 { font-size: 28px; }
.modal-h p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.modal-x { border: 0; background: var(--surface); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1; flex: none; }
.modal-b { padding: 18px 22px 22px; }
.modal-f { display: flex; gap: 10px; justify-content: flex-end; padding-top: 6px; flex-wrap: wrap; }
.help { font-size: 13px; color: var(--muted); }
.preview { background: var(--surface); border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--text-2); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }

.mhead { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 6px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.kv div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.kv span { font-size: 12px; color: var(--muted); display: block; }
.kv b { font-size: 15px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 18px 0 14px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 12px; cursor: pointer; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--text); border-color: var(--red); }
.empty-s { padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 12px; font-size: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.full { grid-column: 1 / -1; }
.method-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.sum { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sum div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.sum span { color: var(--muted); font-size: 12px; display: block; }
.sum b { font: 700 24px/1.1 var(--display); }

/* responsive */
@media (max-width: 1100px) { .cols { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 90; transform: translateX(-100%); transition: transform 0.2s; height: auto; }
  .side.open { transform: none; box-shadow: var(--shadow); }
  .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; background: rgba(18, 18, 19, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .topbar .logo { width: 120px; }
  .topbar button { background: none; border: 0; cursor: pointer; padding: 6px; }
  .topbar svg { width: 24px; height: 24px; fill: var(--text); }
  .main { padding: 18px 16px 60px; }
  .page-head h1 { font-size: 32px; }
  .week { grid-template-columns: 1fr; }
  .wday { min-height: 0; }
  .wday-h { display: flex; gap: 8px; align-items: baseline; text-align: left; }
  .scrim { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.5); }
}
@media (max-width: 640px) {
  .grid2, .field-row { grid-template-columns: 1fr; }
  .rrow { grid-template-columns: 1fr; }
  .rrow .btns { justify-content: flex-start; }
  .hide-sm { display: none; }
  .modal-bg { place-items: end center; padding: 0; }
  .modal { border-radius: 18px 18px 0 0; max-height: 92vh; }
  .ring { width: 92px; height: 92px; }
  .ring b { font-size: 32px; }
  .kpi b { font-size: 32px; }
}

/* premium touches */
.hello { font-variation-settings: 'wdth' 108; letter-spacing: -0.01em; }
.hello .serif { color: var(--red-hi); font-size: 1.12em; }
.page-head h1 { font-variation-settings: 'wdth' 106; letter-spacing: -0.015em; }
.login-card .card { background: rgba(23, 23, 26, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line-2); }
.login-card .btn-primary { background: var(--bone); color: var(--ink); }
.login-card .btn-primary:hover { background: #fff; }
.side a.active { background: rgba(236, 232, 225, 0.06); }
.mcard { border-color: rgba(224, 70, 63, 0.25); }

/* member training calendar */
.mtabs { grid-template-columns: repeat(4, 1fr); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head h2 { font-size: 24px; }
.cal-head button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: none; cursor: pointer; font-size: 16px; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell { aspect-ratio: 1; border: 1px solid transparent; border-radius: 10px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; padding: 0; color: var(--text-2); }
.cal-cell.empty { background: none; cursor: default; }
.cal-cell.in { background: rgba(63, 178, 127, 0.1); }
.cal-cell.today { border-color: var(--red-hi); color: var(--text); }
.cal-cell.sel { background: var(--bone); color: var(--ink); }
.cal-cell .n { font: 600 14px var(--font); }
.cal-cell .marks { display: flex; gap: 3px; height: 6px; }
.cal-cell i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.cal-cell i.v { background: var(--text-2); }
.cal-cell.sel i.v { background: var(--ink); }
.cal-cell i.booked { background: var(--blue); }
.cal-cell i.attended { background: var(--green); }
.cal-cell i.no_show { background: #ff8a85; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.cal-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; vertical-align: middle; }
/* bookings list */
tr.grp td { background: var(--bg-2); font-weight: 600; font-size: 13px; color: var(--text-2); }

/* schedule */
.ev-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--line-2)); border-radius: 10px; padding: 10px 12px; cursor: pointer; color: var(--text); }
.ev-row:hover { border-color: var(--line-2); }
.ev-row .ev-time { font: 700 15px/1 var(--display); width: 64px; flex: none; }
.ev-row b { display: block; font-size: 14px; }
.ev-row small { color: var(--muted); font-size: 12px; }
.ev-row .ev-cnt { font-variant-numeric: tabular-nums; font-weight: 600; }
.ev-row .ev-cnt.full { color: var(--amber); }
.ev-row.pt { --c: #b06be0; }
.ev-row.cx { opacity: 0.5; text-decoration: line-through; }
.ev-row.done { opacity: 0.7; }
.b-pt { background: rgba(176, 107, 224, 0.18); color: #cf9df0; }
.ev.pt { --c: #b06be0; border-style: dashed; }
.wday-h.click { display: block; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; color: var(--text); }
.wday-h.click:hover b { color: var(--red-hi); }
.wday-chips { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 8px; min-height: 18px; }
.wday-chips span { font-size: 10.5px; padding: 2px 6px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mgrid .dow { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 4px 0; }
.mcell { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-height: 96px; padding: 8px; text-align: left; cursor: pointer; color: var(--text); display: flex; flex-direction: column; gap: 3px; }
.mcell:hover { border-color: var(--line-2); }
.mcell.out { opacity: 0.4; }
.mcell.today { border-color: var(--red-hi); }
.mcell .n { font: 700 15px/1 var(--display); margin-bottom: 2px; }
.mcell small { display: block; font-size: 11.5px; color: var(--text-2); line-height: 1.3; }
.mcell small.alert { color: var(--amber); }
@media (max-width: 900px) { .mgrid { gap: 4px; } .mcell { min-height: 64px; padding: 5px; } .mcell small { font-size: 10px; } .ev-row .ev-time { width: 52px; font-size: 13px; } }

/* sessions grid, bell, inbox */
.bell { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.bell svg { width: 18px; height: 18px; fill: currentColor; }
.bell i { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font: 700 11px/18px var(--font); font-style: normal; text-align: center; }
.bell.active { color: var(--red-hi); }
.item.unread { border-color: rgba(224, 70, 63, 0.4); background: rgba(224, 70, 63, 0.05); }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot-chip { display: grid; gap: 2px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--line-2)); border-radius: 12px; padding: 10px 12px; cursor: pointer; color: var(--text); }
.slot-chip b { font: 700 17px/1.1 var(--display); }
.slot-chip span { font-size: 12px; color: var(--muted); }
.slot-chip:hover { border-color: var(--line-2); }
.slot-chip.mine { background: rgba(63, 178, 127, 0.12); border-color: rgba(63, 178, 127, 0.5); }
.slot-chip.mine span { color: var(--green); font-weight: 600; }
.slot-chip.full, .slot-chip.off { opacity: 0.45; cursor: not-allowed; }
@media (max-width: 400px) { .slot-grid { grid-template-columns: repeat(2, 1fr); } }
