/* Maker Mindz Live Sessions and Opportunities pages */
:root { --ink: #1f2d3a; --muted: #5b6b78; --line: #e3e8e6; --bg: #f4f7f6; --brand: #2c3e50; --green: #27ae60; --green-2: #2ecc71; --green-text: #1e8449;
  --hs: #17b6c0; --hs-text: #0e7f87; --hs-tint: #e6f8f9; --ug: #8e44ad; --ug-text: #6c3483; --ug-tint: #f4ecf7; --pro: #d35400; --pro-text: #a04000; --pro-tint: #fdf0e6; --red: #c0392b; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
a { color: var(--green-text); }
[hidden] { display: none !important; }
button { font: inherit; }

.bar { min-height: 60px; background: var(--brand); color: #fff; display: flex; align-items: center; gap: 10px; padding: 6px 12px; position: sticky; top: 0; z-index: 30; }
.home { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; padding: 6px 10px 6px 6px; border-radius: 999px; white-space: nowrap; }
.home:hover { background: rgba(255,255,255,.1); }
.home img { height: 34px; width: auto; display: block; }
.home .accent { color: var(--green-2); }
.bar .title { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.bar .title a { color: #fff; text-decoration: none; }
.bar-btn { flex: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; }
.bar-btn:hover { background: rgba(255,255,255,.1); }
.bar-btn.green { background: var(--green); border-color: var(--green); }
.host-hint { text-align: center; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 420px) { .bar-btn .hide-sm { display: none; } .bar-btn { padding: 7px 11px; } }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.hero { background: linear-gradient(135deg, var(--brand) 0%, #1f5f46 100%); color: #fff; }
.hero .wrap { padding-top: 32px; padding-bottom: 30px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--green-2); margin-bottom: 6px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 36px); line-height: 1.2; }
.hero p { margin: 0 0 16px; font-size: 17px; line-height: 1.5; color: #dfe9e5; max-width: 760px; }

.searchbox { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 16px; max-width: 640px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.searchbox svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 16px; padding: 8px 0; background: transparent; color: var(--ink); }
.searchbox input:focus { outline: none; border: 0; } /* no box inside the round search bar: the whole bar shows the focus ring instead */
.searchbox:focus-within { box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 0 0 3px rgba(46,204,113,.75); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.grade-filter { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 600; }
.hero .grade-filter select { width: auto; min-width: 140px; padding: 6px 34px 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); -webkit-appearance: none; appearance: none; background: rgba(255,255,255,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.hero .grade-filter select:focus { outline: 2px solid #fff; outline-offset: 2px; }
.hero .grade-filter select option { color: #2c3e50; background: #fff; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip.on { background: #fff; color: var(--brand); border-color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 10px; border: 1px solid #cdd6d3; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover:not(:disabled) { border-color: var(--green); color: var(--green-text); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--green-2); color: #fff; }
.btn.danger { color: var(--red); }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 8px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 6px 20px rgba(20,40,60,.06); }
.section { margin: 28px 0; }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sec-badge { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; }
.sec-head h2 { margin: 0; font-size: 22px; }
.sec-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.hs .sec-badge { background: var(--hs-tint); } .ug .sec-badge { background: var(--ug-tint); } .pro .sec-badge { background: var(--pro-tint); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; color: inherit; }
.card:hover, .card:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20,40,60,.12); outline: none; }
.hs .card:hover { border-color: var(--hs); } .ug .card:hover { border-color: var(--ug); } .pro .card:hover { border-color: var(--pro); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef2f1; color: #3d4b56; }
.req { color: #c0392b; font-weight: 700; margin-left: 2px; }
.badge.grade { background: #e8f1fb; color: #1f4e79; }
.grade-pick { display: flex; align-items: center; gap: 8px; }
.grade-pick { gap: 6px; }
.grade-pick select { flex: 1; min-width: 0; padding-left: 8px; padding-right: 4px; }
.row3.row-tsg { grid-template-columns: 1fr 1fr 1.3fr; }
.grade-pick span { color: #5c6b77; font-size: 14px; }
.hs .badge.kind { background: var(--hs-tint); color: var(--hs-text); } .ug .badge.kind { background: var(--ug-tint); color: var(--ug-text); } .pro .badge.kind { background: var(--pro-tint); color: var(--pro-text); }
.card h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; }
.card .sub { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.card .desc { font-size: 14.5px; line-height: 1.5; color: #33444f; flex: 1; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .host { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; flex: none; }
.avatar.ph { width: 46px; height: 46px; overflow: hidden; background: #eef2f1 !important; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); } .avatar.ph img { width: 100%; height: 100%; object-fit: cover; display: block; } .avatar.ph.big { width: 64px; height: 64px; }
.hs .avatar { background: var(--hs); } .ug .avatar { background: var(--ug); } .pro .avatar { background: var(--pro); }
.about-host { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 14px; background: #fff; } .about-host p { margin: 8px 0 0; white-space: pre-wrap; line-height: 1.55; } .about-host .avatar { background: var(--green, #27ae60); }
.card .next { font-size: 13.5px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 10px; }
.card .next b { color: var(--green-text); }
.empty { color: var(--muted); padding: 18px; text-align: center; background: #fff; border: 1px dashed #cdd6d3; border-radius: 14px; }

.modal { position: fixed; inset: 0; z-index: 100; background: rgba(20,32,44,.6); display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow-y: auto; }
.modal-box { position: relative; background: #fff; border-radius: 18px; width: 100%; max-width: 640px; margin: 24px 0; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.modal-head { padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 21px; padding-right: 36px; }
.modal-body { padding: 18px 22px 22px; }
.x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f0f3f2; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.dates { display: grid; gap: 8px; margin: 10px 0; }
.date { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.date .when { flex: 1; min-width: 180px; font-weight: 600; font-size: 14.5px; }
.date .seats { font-size: 13px; color: var(--muted); }

.field { margin-bottom: 14px; }
.field label, .lbl { display: block; font-size: 13px; font-weight: 700; color: #3d4b56; margin-bottom: 5px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=tel], input[type=url], select, textarea {
  width: 100%; border: 1px solid #cdd6d3; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
textarea { min-height: 90px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; line-height: 1.4; cursor: pointer; }
/* Inside a form field, ".field label" (block, small bold caption) used to win over .check, so the box sat on the text baseline
   and looked too high. A check label is always a row: the box is centered on the first line of its text (and stays at the top
   when the text wraps onto more lines). */
.field label.check, .field .check { display: flex; align-items: flex-start; font-size: 14.5px; font-weight: 400; line-height: 1.4; color: inherit; }
.check > input[type=checkbox], .check > input[type=radio] { font-size: inherit; line-height: inherit; width: 17px; height: 17px; flex: none; accent-color: var(--green);
  margin: calc((1.4em - 17px) / 2) 0 0; margin-top: calc((1lh - 17px) / 2); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tab { padding: 10px 14px; border: 0; background: none; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; font-size: 14.5px; }
.tab.on { color: var(--ink); border-bottom-color: var(--green); }
.msg { padding: 10px 14px; border-radius: 10px; font-size: 14.5px; margin: 10px 0; line-height: 1.45; }
.msg.err { background: #fdecea; color: #922b21; border: 1px solid #f5c6c0; }
.msg.ok { background: #eafaf1; color: #1e6b41; border: 1px solid #b7e4c7; }
.msg.info { background: #eef4fb; color: #1f4e79; border: 1px solid #cfe0f3; }
.note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.ok { background: #eafaf1; color: #1e6b41; } .pill.warn { background: #fef5e7; color: #9a5b00; } .pill.bad { background: #fdecea; color: #922b21; } .pill.grey { background: #eef2f1; color: #5b6b78; }

.account { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.acct-menu { position: relative; flex: none; }
.acct-menu[hidden] { display: none; }
.acct-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 8px; }
.acct-short { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.acct-btn[aria-expanded="true"] { background: rgba(255,255,255,.15); }
.acct-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 290px; max-width: calc(100vw - 24px); background: #fff; color: var(--ink, #1f2d3a); border: 1px solid var(--line, #e3e8ec); border-radius: 14px; box-shadow: 0 14px 36px rgba(0,0,0,.18); padding: 14px; z-index: 40; text-align: left; }
.acct-name { font-weight: 700; font-size: 16px; margin: 2px 0 4px; overflow-wrap: anywhere; }
.acct-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) { .acct-short, .acct-caret { display: none; } .acct-btn { padding: 7px 9px; } }
/* small phones: a signed-in family does not need the Host button (it is also in the sign-in window) */
@media (max-width: 420px) { body.signed-in .bar-host { display: none; } body.signed-in .bar .title { visibility: hidden; } }
.mysess { display: grid; gap: 10px; margin-top: 12px; }
.mysess .item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fbfcfc; }
.mysess .item .info { flex: 1; min-width: 200px; }
.ms-group { display: grid; gap: 8px; }
.ms-group + .ms-group { margin-top: 10px; }
.ms-h { margin: 6px 0 0; font-size: 13px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.ms-n { font-size: 12px; background: #eef2f1; color: #44525d; border-radius: 999px; padding: 1px 8px; letter-spacing: 0; }
.ms-list { display: grid; gap: 8px; }
.ms-live .ms-h { color: #1e8449; } .ms-pay .ms-h { color: #9a5b00; }
.ms-live .item { border-color: #9be2b8; background: #f2fbf6; box-shadow: 0 0 0 3px rgba(46,204,113,.12); }
.ms-pay .item { border-color: #f3d19c; background: #fffaf1; }
.mysess .item.is-past { background: #fff; }
.mysess .item.is-past .ms-title { color: #44525d; }
.ms-date { flex: none; width: 50px; text-align: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 4px 0; line-height: 1.1; }
.ms-date span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: #c0392b; }
.ms-date b { display: block; font-size: 20px; color: var(--ink, #1f2d3a); }
.is-past .ms-date span { color: var(--muted); }
.ms-title { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ms-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ms-more { justify-self: start; }
.bought { margin: 12px 0 0; }
.free-box { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; margin-top: 14px; padding: 12px 14px; border: 2px dashed #b9d8c5; background: #f6fbf8; border-radius: 12px; }
.free-box > div { flex: 1 1 220px; min-width: 0; }
.fr-reasons { display: grid; gap: 6px; margin-top: 4px; }
.fr-reasons .check { margin: 0; }
.field.bad .fr-reasons { outline: 2px solid #e74c3c; outline-offset: 4px; border-radius: 6px; }
.ms-free .item { border-style: dashed; }
@media (max-width: 600px) { .ms-acts { width: 100%; padding-left: 60px; } }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.plan .price { font-size: 26px; font-weight: 800; margin: 4px 0; }

.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 28px 16px 36px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .home .txt { display: none; }
  .bar .title { font-size: 15px; }
  .grid { grid-template-columns: minmax(0, 1fr); } .grid > * { min-width: 0; }
  .row2, .row3, .row3.row-tsg { grid-template-columns: 1fr; }
  .modal { padding: 8px; } .modal-box { margin: 8px 0; border-radius: 14px; }
  .modal-head, .modal-body { padding-left: 16px; padding-right: 16px; }
  .panel { padding: 16px; border-radius: 14px; }
  .hero p { font-size: 15px; }
}

/* Availability grid on the application form */
.avail-wrap { overflow-x: auto; }
.avail { border-collapse: collapse; width: 100%; min-width: 300px; font-size: 14px; }
.avail th, .avail td { border: 1px solid var(--line); padding: 6px 4px; text-align: center; }
.avail thead th { font-weight: 700; font-size: 13px; line-height: 1.25; background: #f6f8f7; }
.avail thead th span { display: block; font-weight: 400; color: var(--muted, #6b7785); font-size: 11.5px; }
.avail tbody th { text-align: left; padding-left: 8px; width: 48px; background: #f6f8f7; }
.avail td label { display: flex; align-items: center; justify-content: center; min-height: 32px; cursor: pointer; }
.avail td input { width: 19px; height: 19px; accent-color: var(--green); }
.avail td:has(input:checked) { background: #eaf7ef; }

/* Cost line on session cards */
.cost { margin-top: 8px; font-size: 13px; font-weight: 700; border-radius: 8px; padding: 6px 10px; line-height: 1.35; }
.cost.free { background: #eaf7ef; color: var(--green-text); }
.cost.paid { background: #fff7e0; color: #7a5a00; }

/* Beta tag in the top bar */
.bar .title:has(.beta) { display: flex; align-items: center; gap: 6px; overflow: visible; }
.bar .title:has(.beta) > :not(.beta) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.beta { flex: none; display: inline-block; vertical-align: middle; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; background: #f1c40f; color: #4a3b00; line-height: 1.5; }

/* Ratings */
.stars { color: #f5a623; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #d9dee2; }
.stars .half { position: relative; display: inline-block; color: #d9dee2; }
.stars .half::before { content: "\2605"; position: absolute; left: 0; top: 0; width: 50%; overflow: hidden; color: #f5a623; }
.rev-more { margin-top: 8px; }
.ratings { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; margin: 2px 0 10px; }
.rev-group { margin-top: 12px; }
.rev-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.rev { border-top: 1px solid var(--line); padding: 8px 0; font-size: 14px; line-height: 1.45; }
.star-pick { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { font-size: 30px; line-height: 1; color: #d9dee2; cursor: pointer; padding: 2px; }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick input:checked ~ label { color: #f5a623; }
.star-pick input:focus-visible + label { outline: 2px solid var(--green); border-radius: 4px; }

/* Host setup guide */
.guide h4 { margin: 20px 0 6px; font-size: 16px; }
.guide ul { padding-left: 20px; line-height: 1.6; margin: 6px 0; }
.guide p { line-height: 1.6; }
.rev-box { background: #fafbfb; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 14px; max-height: 420px; overflow-y: auto; }
.rev-box .ratings { margin-bottom: 4px; }

/* Host portal: All / With sign-ups switch */
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #f4f6f7; }
.seg-btn { border: 0; background: transparent; color: #3d4b56; font: inherit; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.seg-btn:hover { color: #2c3e50; }
.seg-btn.on { background: #fff; color: #1e8449; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.seg-n { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 2px; border-radius: 999px; background: #e3e8ec; font-size: 12px; line-height: 18px; }
.seg-btn.on .seg-n { background: #e6f6ec; }

/* Student code entry */
.code-input { font-size: 24px !important; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; }

/* Notification bell (Live page and host portal) */
.ln-wrap { position: relative; flex: none; }
.ln-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: #e8eef2; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ln-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.ln-btn:focus-visible { outline: 2px solid var(--green-2); outline-offset: 1px; }
.ln-count { position: absolute; top: 1px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px var(--brand); }
.ln-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 380px; background: #fff; color: var(--ink); border: 1px solid #dde3e1; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.22); z-index: 60; overflow: hidden; }
.ln-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.ln-muted { color: var(--muted); font-weight: 400; }
.ln-list { max-height: 65vh; overflow-y: auto; }
.ln-item { display: flex; align-items: flex-start; gap: 8px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--line); }
.ln-item:hover { background: #f7f9f8; }
.ln-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 6px; }
.ln-main { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.ln-title { font-size: 14px; font-weight: 700; }
.ln-detail { font-size: 14px; color: #44525d; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.contact-about { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: #f6f8f7; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; }
.contact-about > div { min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.contact-about .lbl { display: block; font-size: 12px; margin: 0 0 2px; }
@media (max-width: 600px) { .contact-about { grid-template-columns: 1fr; } }
.ln-when { font-size: 12px; color: #8a979f; }
.ln-x { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: none; color: #8a979f; font-size: 20px; line-height: 1; cursor: pointer; }
.ln-x:hover { background: #e9eeec; color: var(--ink); }
.ln-main:focus-visible, .ln-x:focus-visible, .ln-link:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.ln-link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--green-text); cursor: pointer; }
.ln-link:hover { text-decoration: underline; }
.ln-small { font-size: 12px; font-weight: 600; color: var(--muted); }
.ln-foot { padding: 8px; text-align: center; background: #f7f9f8; border-top: 1px solid var(--line); }
.ln-empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.ln-empty div { font-size: 22px; margin-bottom: 4px; }
.ln-flash { box-shadow: 0 0 0 3px var(--green-2) !important; background: #effaf3 !important; transition: box-shadow .3s, background .3s; }
@media (max-width: 600px) { .ln-panel { position: fixed; left: 8px; right: 8px; top: 64px; width: auto; } }
@media (max-width: 420px) { .bar .beta { display: none; } .ln-btn { width: 36px; } }

/* Type, subject and grade filters: a white pill when a filter is chosen */
.hero .grade-filter select.on { background-color: #fff; color: var(--brand); border-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232c3e50' stroke-width='2'/%3E%3C/svg%3E"); }
.clear-filters { background: none; border: 0; padding: 4px 2px; color: #fff; font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; opacity: .9; }
.clear-filters:hover { opacity: 1; }
.clear-filters:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
@media (max-width: 600px) { .filters .grade-filter { flex: 1 1 100%; justify-content: space-between; } .hero .grade-filter select { flex: 1; max-width: 240px; } .filters .grade-filter span { min-width: 58px; } }

/* Month calendar (host portal Schedule and My sessions) */
.view-switch { margin-left: auto; }
.cal { margin-top: 4px; }
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cal-title { flex: 1; margin: 0; font-size: 17px; text-align: center; }
.cal-count { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.cal-nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.cal-nav:hover, .cal-todaybtn:hover { background: #f1f5f3; }
.cal-todaybtn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; padding: 4px 0; text-transform: uppercase; letter-spacing: .03em; }
.cal-cell { min-height: 96px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 5px; text-align: left; display: flex; flex-direction: column; gap: 3px; font: inherit; color: inherit; cursor: pointer; min-width: 0; }
.cal-cell:hover { border-color: #b9d8c5; }
.cal-blank { background: transparent; border: 0; cursor: default; }
.cal-num { font-size: 13px; font-weight: 700; color: #44525d; }
.cal-today .cal-num { background: var(--green); color: #fff; border-radius: 999px; padding: 1px 7px; align-self: flex-start; }
.cal-sel { border-color: var(--green); box-shadow: 0 0 0 2px rgba(39,174,96,.25); }
.cal-chips { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-chip { display: block; font-size: 11.5px; line-height: 1.3; padding: 2px 5px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip.ok { background: #e3f6eb; color: #1e6b3f; } .cal-chip.grey { background: #eef1f3; color: #5b6b78; } .cal-chip.bad { background: #fde8e6; color: #a93226; text-decoration: line-through; } .cal-chip.blue { background: #e6f0fb; color: #1f4e79; }
.cal-more { font-size: 11px; color: var(--muted); padding-left: 3px; }
.cal-dots { display: none; gap: 3px; justify-content: center; }
.cal-dots i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.cal-dots i.ok, .cal-bar.ok { background: var(--green); } .cal-dots i.grey, .cal-bar.grey { background: #a7b3bb; } .cal-dots i.bad, .cal-bar.bad { background: #dc2626; } .cal-dots i.blue, .cal-bar.blue { background: #2563eb; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cal-day { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.cal-day h5 { margin: 0 0 6px; font-size: 15px; }
.cal-item { display: flex; align-items: stretch; gap: 10px; width: 100%; text-align: left; background: #fafbfb; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-top: 6px; font: inherit; color: inherit; cursor: pointer; }
.cal-item:hover { border-color: #b9d8c5; background: #f3fbf6; }
.cal-bar { width: 4px; border-radius: 4px; flex: none; }
.cal-when { flex: none; width: 118px; font-size: 13.5px; font-weight: 600; color: #44525d; }
.cal-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.cal-what span { color: var(--muted); font-size: 13px; }
.cal-cell:focus-visible, .cal-item:focus-visible, .cal-nav:focus-visible, .cal-todaybtn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (max-width: 700px) {
  .cal-cell { min-height: 46px; align-items: center; padding: 4px 2px; }
  .cal-chips { display: none; } .cal-dots { display: flex; }
  .cal-today .cal-num { align-self: center; }
  .cal-when { width: auto; min-width: 74px; }
  .cal-item { flex-wrap: wrap; }
}

/* "Can't find what you're looking for?" box */
.request-box { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border: 2px dashed #b9d8c5; background: #f6fbf8; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
/* Message history above the message box (families: Contact; hosts: Message attendees) */
.thread { border: 1px solid #e3e8e6; border-radius: 12px; background: #f8faf9; padding: 10px; margin: 0 0 14px; max-height: 280px; overflow-y: auto; }
.thread h4 { margin: 0 0 8px; font-size: 14px; color: #5b6b78; }
.thread .tm { background: #fff; border: 1px solid #e3e8e6; border-radius: 10px; padding: 8px 12px; margin: 0 0 8px; max-width: 92%; }
.thread .tm.you { margin-left: auto; background: #eafaf1; border-color: #b7e4c7; }
.thread .tm.host { background: #eef4fb; border-color: #c9dbef; }
.thread .tm .who { font-size: 12.5px; color: #5b6b78; margin-bottom: 2px; }
.thread .tm .who b { color: #2c3e50; }
.thread .tm .tx { font-size: 14.5px; white-space: pre-wrap; word-break: break-word; }
.thread .none { font-size: 14px; color: #5b6b78; margin: 0; }

/* Whole classes (one sign-up for every date) and comments on cards */
.class-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fbfdfc; }
.class-dates { margin: 0 0 10px; padding-left: 22px; font-size: 14.5px; line-height: 1.7; }
.class-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.class-foot .btn { margin-left: auto; }
.card-rev { font-size: 13.5px; line-height: 1.45; color: #33444f; background: #f6f8f9; border-radius: 8px; padding: 7px 10px; margin: -4px 0 10px; text-align: left; }
.card-rev q { font-style: italic; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-rev .stars { font-size: 12px; }
.cancel-pick { display: flex; flex-direction: column; gap: 10px; }
.cancel-pick .btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; white-space: normal; height: auto; padding: 10px 14px; }
.cancel-pick .btn .note { font-weight: 400; }
.cancel-pick .btn.danger b { color: var(--red); }
/* a small spinner inside a busy button (Live.once in index.html) */
.btn .spin { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: liveSpin .7s linear infinite; }
.btn:not(.primary) .spin { border-color: rgba(0,0,0,.2); border-top-color: currentColor; }
.btn[aria-busy=true] { cursor: progress; opacity: .85; }
@keyframes liveSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn .spin { animation-duration: 2s; } }
/* Participation Ground Rules (b164): tabs beside My sessions, the rules text and the agreement form */
.mtabs { margin: 0; border-bottom: 0; }
.mtabs .tab { font-size: 16px; padding: 8px 12px 8px 0; margin-right: 10px; }
.rules-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #fdecea; color: #922b21; font-size: 12px; font-weight: 700; vertical-align: 1px; }
.msg.warn { background: #fef5e7; color: #7a4a00; border: 1px solid #f5d9a8; }
.rules-warn { margin-top: 12px; }
.rules-pane { margin-top: 10px; }
.rules-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; margin: 14px 0 8px; }
.rules-doc { line-height: 1.55; font-size: 15px; }
.rules-doc h4 { margin: 18px 0 6px; font-size: 16px; }
.rules-doc ul { margin: 4px 0 8px; padding-left: 22px; }
.rules-doc li { margin: 3px 0; }
.rules-doc p { margin: 6px 0; }
.rules-agree { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f7faf9; }
.rules-agree .check { margin: 8px 0; }
.train-mod { border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; background: #fff; }
.train-mod > summary { cursor: pointer; padding: 12px 14px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 10px; }
.train-mod > summary::-webkit-details-marker { display: none; }
.train-mod > summary .tm-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #eef2f1; color: #3d4b56; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.train-mod.done > summary .tm-n { background: #27ae60; color: #fff; }
.train-mod > div { padding: 0 16px 12px 50px; }
.train-mod ul { margin: 0 0 8px; padding-left: 18px; line-height: 1.6; }
.train-prog { height: 8px; border-radius: 999px; background: #eef2f1; overflow: hidden; margin: 6px 0 4px; }
.train-prog i { display: block; height: 100%; background: #27ae60; transition: width .3s; }
/* A form that is being sent (form-lock.js): fields and buttons are disabled and nothing in it can be clicked until the answer comes back */
form.mm-sending { cursor: progress; }
form.mm-sending * { pointer-events: none; }
form.mm-sending input:disabled, form.mm-sending select:disabled, form.mm-sending textarea:disabled { opacity: .7; }
