/* broskool chat panel (app.js). Self-contained colours so it looks the same on every broskool page. */
#bsk { --b-bg:#14151B; --b-card:#1E2029; --b-soft:#262836; --b-line:#3B3E4C; --b-text:#F1F1F4; --b-muted:#A4A9BA; --b-ink:#161412;
  --b-pop:#7A4CFF; --b-ok:#19B98A; --b-hot:#FF4D7E; --b-yel:#FFD84D;
  font-family: "Baloo 2", system-ui, sans-serif; color: var(--b-text); position: relative; z-index: 60; }
#bsk *, #bsk *::before { box-sizing: border-box; }
#bsk header, #bsk div, #bsk p, #bsk h3, #bsk h4 { margin: 0; }
#bsk a { color: #C9B8FF; }
.bsk-fab { position: fixed; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 8px; padding: 10px 18px 8px 14px;
  border-radius: 999px; border: 3px solid var(--b-ink); background: var(--b-pop); color: #fff; font: 800 17px "Baloo 2", system-ui, sans-serif;
  box-shadow: 4px 4px 0 var(--b-ink); cursor: pointer; transition: transform .15s; }
.bsk-fab:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--b-ink); }
.bsk-fab-i { width: 38px; height: 38px; margin: -4px 0 -4px -6px; border-radius: 50%; border: 2px solid var(--b-ink); background: #FF9F5A; object-fit: cover; display: block; }
.bsk-dot { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: var(--b-hot); border: 3px solid var(--b-ink);
  color: #fff; font: 800 12px/16px "Baloo 2", system-ui, sans-serif; font-style: normal; text-align: center; }
.bsk-dot:empty { min-width: 16px; width: 16px; height: 16px; padding: 0; top: -3px; right: -3px; }
#bsk.on .bsk-fab { display: none; }
.bsk-panel { position: fixed; right: 18px; bottom: 18px; width: min(400px, calc(100vw - 36px)); height: min(620px, calc(100vh - 36px));
  display: flex; flex-direction: column; background: var(--b-bg); border: 3px solid var(--b-line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.bsk-panel[hidden] { display: none; }
.bsk-hd { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 14px; background: var(--b-card); border-bottom: 2px solid var(--b-line); }
.bsk-hd img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--b-ink); background: var(--b-soft); object-fit: cover; }
.bsk-hd div { flex: 1; min-width: 0; line-height: 1.2; }
.bsk-hd b { display: block; font-size: 17px; }
.bsk-hours { display: block; font-size: 13px; font-weight: 700; color: var(--b-ok); }
.bsk-hours::before { content: "●"; margin-right: 5px; font-size: 10px; vertical-align: 2px; }
.bsk-hours.off { color: var(--b-muted); }
.bsk-hd button { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--b-line); background: var(--b-soft); color: var(--b-text); font-size: 15px; cursor: pointer; }
.bsk-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
.bsk-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.bsk-empty { margin: auto 0; text-align: center; color: var(--b-muted); padding: 10px 14px; }
.bsk-empty b { color: var(--b-text); font-size: 18px; }
.bsk-empty p { margin: 6px 0 0; font-weight: 600; }
.m { max-width: 82%; padding: 8px 12px 5px; border-radius: 16px; font-weight: 600; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.m p { margin: 0; }
.m time { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; opacity: .65; text-align: right; }
.m-user { align-self: flex-end; background: var(--b-pop); color: #fff; border-bottom-right-radius: 5px; }
.m-staff { align-self: flex-start; background: var(--b-card); border: 2px solid var(--b-line); border-bottom-left-radius: 5px; }
#bsk form.bsk-in { flex-direction: row; }
.bsk-in { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 2px solid var(--b-line); background: var(--b-card); }
.bsk-in textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; padding: 9px 12px 7px; border-radius: 14px; border: 2px solid var(--b-line);
  background: var(--b-bg); color: var(--b-text); font: 600 16px/22px "Baloo 2", system-ui, sans-serif; outline: none; }
.bsk-in textarea:focus, #bsk input:focus, #bsk textarea:focus { border-color: var(--b-pop); }
.bsk-in button { width: 44px; height: 42px; border-radius: 14px; border: 2px solid var(--b-ink); background: var(--b-pop); color: #fff; font-size: 17px; cursor: pointer; flex: none; }
.bsk-cerr { margin: 0; padding: 0 14px 8px; background: var(--b-card); }
.bsk-cerr:empty { display: none; }
.bsk-auth, .bsk-acct { padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.bsk-auth h3 { margin: 0; font-size: 24px; line-height: 1.15; }
.bsk-auth p, .bsk-acct p { margin: 0; color: var(--b-muted); font-weight: 600; line-height: 1.45; }
.bsk-auth p b { color: var(--b-text); }
.bsk-auth .bsk-sent { display: flex; flex-direction: column; gap: 2px; }
.bsk-auth .bsk-sent span { font-size: 14px; }
.bsk-auth .bsk-sent b { font-size: 17px; overflow-wrap: anywhere; }
.bsk-tips { list-style: none; margin: 0; padding: 4px 14px; border-radius: 14px; background: var(--b-card); border: 1px solid var(--b-line); }
.bsk-tips li { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--b-muted); font-weight: 600; font-size: 15px; line-height: 1.35; }
.bsk-tips li + li { border-top: 1px solid var(--b-line); }
.bsk-tips b { color: var(--b-text); }
.bsk-tip-i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--b-soft); font-size: 16px; }
.bsk-noacc { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--b-line); color: var(--b-muted); font-weight: 600; font-size: 15px; }
#bsk form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
#bsk label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 14px; color: var(--b-muted); }
#bsk input, #bsk .bk textarea, #bsk .bk-o textarea { width: 100%; padding: 10px 12px 8px; border-radius: 12px; border: 2px solid var(--b-line); background: var(--b-bg);
  color: var(--b-text); font: 600 16px "Baloo 2", system-ui, sans-serif; outline: none; }
.bsk-code { letter-spacing: .3em; font-size: 22px !important; text-align: center; }
.bsk-btn { display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 10px 16px 8px; border-radius: 12px; border: 2px solid var(--b-ink);
  background: var(--b-pop); color: #fff !important; font: 800 16px "Baloo 2", system-ui, sans-serif; text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--b-ink); }
.bsk-btn:disabled { opacity: .6; cursor: wait; }
.bsk-btn.ghost { background: var(--b-soft); border-color: var(--b-line); box-shadow: none; color: var(--b-text) !important; }
.bsk-btn.sm { padding: 5px 12px 3px; font-size: 14px; }
.bsk-err { color: #FF8FAB !important; font-weight: 700; font-size: 14px; margin: 0; }
.bsk-err:empty { display: none; }
.bsk-sw, .bsk-fine, .bk-fine { font-size: 14px !important; }
.bsk-fine { color: var(--b-muted); opacity: .8; }
.bsk-wait { margin: auto; color: var(--b-muted); font-weight: 700; padding: 30px; text-align: center; }
/* booking cards */
.bk { align-self: stretch; padding: 12px 14px; border-radius: 16px; background: var(--b-card); border: 2px solid var(--b-yel); display: flex; flex-direction: column; gap: 8px; }
.bk.ok { border-color: var(--b-ok); }
.bk p { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.4; }
.bk-hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 800; }
.bk-st { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 2px 9px 0;
  background: var(--b-yel); color: var(--b-ink); white-space: nowrap; }
.bk-confirmed { background: var(--b-ok); } .bk-done, .bk-cancelled, .bk-waiting { background: var(--b-soft); color: var(--b-muted); }
.bk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.bk-chip { padding: 3px 10px 1px; border-radius: 999px; border: 2px solid var(--b-line); background: var(--b-soft); color: var(--b-text); font: 700 13px "Baloo 2", system-ui, sans-serif; cursor: pointer; }
.bk-slots { display: flex; flex-direction: column; gap: 6px; }
.bk-slot { text-align: left; padding: 9px 12px 7px; border-radius: 12px; border: 2px solid var(--b-pop); background: rgba(122,76,255,.14); color: var(--b-text);
  font: 800 16px "Baloo 2", system-ui, sans-serif; cursor: pointer; }
.bk-slot:hover { background: var(--b-pop); }
.bk-other summary { cursor: pointer; color: var(--b-muted); font-weight: 700; font-size: 14px; }
.bk-other form { margin-top: 8px !important; }
.bk-when { font-size: 20px !important; font-weight: 800 !important; }
.bk-cal { font-size: 14px !important; }
.bk-fine { color: var(--b-muted); }
/* account */
.bsk-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--b-line); }
.bsk-row small { display: block; color: var(--b-muted); font-weight: 700; }
.bsk-row b { overflow-wrap: anywhere; }
.bsk-acct h4 { margin: 6px 0 0; font-size: 17px; }
.bsk-list { display: flex; flex-direction: column; gap: 8px; }
.pu { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--b-card); border: 2px solid var(--b-line); }
.pu b { display: block; font-size: 15px; } .pu small { color: var(--b-muted); font-weight: 700; font-size: 13px; }
.pu > span { font-weight: 800; font-size: 13px; color: var(--b-yel); text-align: right; }
@media (max-width: 520px) {
  .bsk-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .bsk-fab { right: 14px; bottom: 14px; }
}
/* footer wordmark (word.js): media files (video, audio, image, captions) spelling broskool */
.bsk-word { --w: min(24px, calc((min(100vw, 1100px) - 40px) / var(--cols))); --t: calc(var(--w) * 1.25);
  position: relative; width: calc(var(--cols) * var(--w)); height: calc((var(--rows) + .4) * var(--t)); margin: 0 auto; user-select: none; }
.bw-t, .bw-play { position: absolute; left: calc(var(--c) * var(--w)); top: calc(var(--r) * var(--t)); opacity: 0; }
.bw-t { --body: #8A5CFF; --ear: #C4AEFF; width: calc(var(--w) * 1.06); height: calc(var(--t) * 1.06); overflow: visible; cursor: pointer;
  filter: drop-shadow(1.5px 2px 0 #161412); transform: translate(var(--x), var(--y)) rotate(var(--rot));
  transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.bw-t.p1 { --body: #1FC796; --ear: #9BEFD3; }
.bw-t.p2 { --body: #FF9A5C; --ear: #FFD3B5; }
.bw-body { fill: var(--body); stroke: #161412; stroke-width: 1.4; }
.bw-ear { fill: var(--ear); stroke: #161412; stroke-width: 1.4; stroke-linejoin: round; }
.bw-g { color: #fff; fill: #fff; }
.bw-t:hover { z-index: 3; transform: translate(var(--x), calc(var(--y) - 22%)) rotate(0deg) scale(1.7); }
/* the playhead passing over a column: the files flash bright and bounce */
.bsk-word.go .bw-t.lit { animation: bw-lit .7s ease-out; }
@keyframes bw-lit { 30% { transform: translate(var(--x), calc(var(--y) - 14%)) rotate(0deg) scale(1.12); filter: drop-shadow(1.5px 2px 0 #161412) brightness(1.35); } }
.bw-head { position: absolute; top: calc(var(--t) * -.35); bottom: 0; left: 0; width: 2px; margin-left: -1px; background: #FFD84D; border-radius: 2px;
  opacity: 0; pointer-events: none; z-index: 4; box-shadow: 0 0 12px rgba(255,216,77,.6); }
.bw-head::before { content: ""; position: absolute; top: -2px; left: -6px; width: 14px; height: 12px; background: #FFD84D;
  clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
.bsk-word.sweep .bw-head { animation: bw-sweep var(--sweep, 1800ms) linear forwards; }
@keyframes bw-sweep { 0% { opacity: 1; left: 0; } 92% { opacity: 1; } 100% { opacity: 0; left: calc(var(--span) * var(--w)); } }
.bw-play { width: calc(var(--w) * 1.2); height: calc(var(--w) * 1.2); display: grid; place-items: center; padding: 0; cursor: pointer; color: #161412;
  background: #FFD84D; border: 2px solid #161412; border-radius: 28%; box-shadow: 2px 2px 0 #161412; transform: rotate(6deg); transition: transform .2s; }
.bw-play svg { width: 64%; height: 64%; }
.bw-play:hover { transform: rotate(-4deg) scale(1.15); }
.bsk-word.go .bw-t { opacity: 1; animation: bw-drop .6s cubic-bezier(.3,1.5,.5,1) var(--d) backwards; }
.bsk-word.go .bw-play { opacity: 1; animation: bw-drop .6s cubic-bezier(.3,1.5,.5,1) 1.7s backwards; }
.bsk-word.go .bw-t.hop { animation: bw-hop .45s ease-out; }
@keyframes bw-drop { from { opacity: 0; transform: translateY(calc(var(--t) * -6)) rotate(calc(var(--rot) * 6)); } 60% { opacity: 1; } }
@keyframes bw-hop { 40% { transform: translate(var(--x), calc(var(--y) - 45%)) rotate(calc(var(--rot) * -4)); } }
@media (prefers-reduced-motion: reduce) {
  .bw-t, .bw-play { opacity: 1; }
  .bsk-word.go .bw-t, .bsk-word.go .bw-play, .bsk-word .bw-t.hop, .bw-t.lit { animation: none; }
}
.foot .bsk-word { margin: 44px auto 0; }   /* the animation always closes the page: links and legal sit above it */
/* phones: room under the footer so the floating chat button never covers the links */
body .foot { padding-bottom: 96px; }
@media (max-width: 600px) { body .foot { padding-bottom: 104px; } }
/* ---- page motion (motion.js) ---- */
/* intro loader: the broskool mark breathing over the page colour, with a sweeping bar under it */
html.bm-loading body::before, html.bm-loading body::after { content: ""; position: fixed; z-index: 9999; pointer-events: none;
  transition: opacity .6s ease, transform .7s cubic-bezier(.7,0,.2,1); }
html.bm-loading body::before { inset: 0; background: url("/learn/broskool/mark.svg") center calc(50% - 16px) / 64px no-repeat, var(--bg, #14151B);
  animation: bm-breathe 1.4s ease-in-out infinite; }
html.bm-loading body::after { left: calc(50% - 60px); top: calc(50% + 34px); width: 120px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, transparent 0 30%, #7A4CFF 30% 70%, transparent 70%) 0 0 / 200% 100%, rgba(127,127,127,.22);
  animation: bm-bar 1s cubic-bezier(.6,0,.4,1) infinite; }
/* techstackbro's own pages: his round avatar instead of the broskool mark, an orange bar */
html.bm-loading body[data-brand="tsb"]::before { background: url("/learn/broskool/techstackbro-round.png") center calc(50% - 18px) / 84px no-repeat, var(--bg, #14151B); }
html.bm-loading body[data-brand="tsb"]::after { background: linear-gradient(90deg, transparent 0 30%, #FF9A5C 30% 70%, transparent 70%) 0 0 / 200% 100%, rgba(127,127,127,.22); top: calc(50% + 42px); }
html.bm-done body::before, html.bm-done body::after { opacity: 0; }
html.bm-done body::before { transform: scale(1.04); }
@keyframes bm-breathe { 50% { background-size: 70px, auto; } }
html.bm-loading body[data-brand="tsb"]::before { animation-name: bm-breathe-t; }
@keyframes bm-breathe-t { 50% { background-size: 92px, auto; } }
@keyframes bm-bar { from { background-position: 100% 0, 0 0; } to { background-position: -100% 0, 0 0; } }
/* reveal on scroll: rise, sharpen and fade in, staggered */
/* opacity + translate only: both run on the GPU, so reveals never stutter the scroll (a blur filter did) */
html.bm-motion .bm-rv { opacity: 0; translate: 0 32px;
  transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--bm-d, 0ms), translate 1s cubic-bezier(.16,1,.3,1) var(--bm-d, 0ms); }
html.bm-motion .bm-rv.bm-in { opacity: 1; translate: 0 0; }
/* while the page is scrolling, cards under the cursor don't fire their hover effects (that made the scroll jittery);
   hover works again a moment after scrolling stops. The chat button sits outside <main> and stays clickable. */
html.bm-scrolling main, html.bm-scrolling footer { pointer-events: none; }
/* media placeholders until they load */
.bm-sk { background: linear-gradient(100deg, rgba(127,127,127,.08) 30%, rgba(127,127,127,.2) 50%, rgba(127,127,127,.08) 70%) 0 0 / 250% 100%;
  animation: bm-shim 1.3s linear infinite; }
@keyframes bm-shim { from { background-position: 100% 0; } to { background-position: -150% 0; } }
/* Lenis drives the scrolling: CSS smooth scrolling must be off or the two fight and the page barely moves */
html.lenis, html.lenis body { height: auto; }
html.lenis, .lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  html.bm-loading body::before, html.bm-loading body::after, .bm-sk { animation: none; }
}
/* ---- launch countdown (countdown.js) ---- */
.cd-bar { position: sticky; top: 0; z-index: 55; background: linear-gradient(90deg, #1B1530, #2A1B4D 45%, #1B1530); border-bottom: 1px solid rgba(169,139,255,.28);
  color: #F1F1F4; font-family: "Baloo 2", system-ui, sans-serif; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.cd-in { max-width: 1100px; margin: 0 auto; padding: 8px 16px 7px; display: flex; align-items: center; justify-content: center; gap: 14px; font-weight: 700; font-size: 15px; }
.cd-eb { display: inline-flex; align-items: center; gap: 7px; flex: none; font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  color: #161412; background: linear-gradient(90deg, #FFD84D, #FF9A5C); border: 2px solid #161412; border-radius: 999px; padding: 2px 11px 2px 9px; line-height: 1.2; }
.cd-ebl, .cd-ebs { transform: translateY(1px); }   /* Baloo sets capitals high: nudge the label to the optical centre */
.cd-eb .cd-live { background: #FF4D7E; }
.cd-ebl { display: inline-block; }
.cd-ebs { display: none; }
@media (max-width: 430px) { .cd-ebl { display: none; } .cd-ebs { display: inline-block; } .cd-in { padding-left: 8px; padding-right: 8px; } }
.cd-go s { opacity: .55; font-weight: 700; margin-right: 2px; }
.cd-live { width: 8px; height: 8px; border-radius: 50%; background: #FF4D7E; box-shadow: 0 0 0 0 rgba(255,77,126,.6); animation: cd-ping 1.6s infinite; flex: none; }
@keyframes cd-ping { 70% { box-shadow: 0 0 0 8px rgba(255,77,126,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,126,0); } }
.cd-msg b { font-weight: 800; }
.cd-note { color: #C9B8FF; }
.cd-t { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 16px; letter-spacing: .02em; padding: 2px 10px 0; border-radius: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.cd-t i { font-style: normal; font-size: 12px; color: #A4A9BA; margin-left: 1px; }
.cd-go { color: #161412; background: #FFD84D; border: 2px solid #161412; border-radius: 999px; padding: 3px 12px 1px; font-weight: 800; font-size: 14px;
  text-decoration: none; white-space: nowrap; box-shadow: 2px 2px 0 #161412; transition: transform .15s; }
.cd-go:hover { transform: translate(-1px, -1px); }
@media (max-width: 720px) {
  .cd-in { gap: 8px; font-size: 13px; padding: 7px 12px 6px; justify-content: space-between; }
  .cd-note { display: none; }
  .cd-eb { font-size: 10px; padding: 1px 7px 1px 6px; gap: 5px; letter-spacing: .02em; }
  .cd-ebl, .cd-ebs { transform: none; }   /* at 10px the desktop 1px nudge overshoots: measured centred without it */
  .cd-go s { display: none; }
  .cd-msg b { font-weight: 800; }
  .cd-t { font-size: 13px; padding: 1px 6px 0; }
  .cd-go { font-size: 12px; padding: 2px 9px 0; }
}
.cd-short { display: none; }
@media (max-width: 720px) { .cd-long { display: none; } .cd-short { display: inline; } }
@media (max-width: 980px) and (min-width: 721px) { .cd-note { display: none; } }
@media (max-width: 430px) { .cd-msg { display: none; } }

/* tiles inside the plans / course page */
[data-countdown] { display: flex; gap: 8px; margin: 12px 0 4px; }
[data-countdown][hidden] { display: none; }
.cd-u { flex: 1; max-width: 76px; display: flex; flex-direction: column; align-items: center; padding: 8px 4px 5px; border-radius: 12px;
  background: var(--soft, #252036); border: 2px solid var(--line, #3B3E4C); }
.cd-u b { font-size: 24px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text, #F1F1F4); }
.cd-u small { margin-top: 3px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #A4A9BA); }

/* line icons (app.js ico()) */
#bsk .bi { width: 20px; height: 20px; display: block; flex: none; }
#bsk .bsk-acc, #bsk .bsk-x { display: grid; place-items: center; }
#bsk .bsk-in button { display: grid; place-items: center; }
#bsk .bsk-in button .bi { width: 19px; height: 19px; transform: translate(-1px, 1px); }
#bsk .bsk-tip-i { color: var(--b-ok); }
#bsk .bk-nm { display: inline-flex; align-items: center; gap: 8px; }
#bsk .bk-nm .bi { width: 18px; height: 18px; color: var(--b-pop); }
#bsk .bsk-ok-h { display: flex; align-items: center; gap: 10px; }
#bsk .bsk-ok-h .bi { width: 26px; height: 26px; color: var(--b-ok); }
#bsk input.bsk-ro { opacity: .7; cursor: default; }

/* new-reply bubble above the chat button */
.bsk-pop { position: fixed; right: 18px; bottom: 84px; z-index: 2147483000; display: flex; align-items: flex-start; gap: 10px; width: min(320px, calc(100vw - 36px));
  padding: 12px 34px 10px 12px; text-align: left; border-radius: 18px 18px 6px 18px; border: 3px solid var(--b-ink); background: var(--b-card); color: var(--b-text);
  box-shadow: 4px 4px 0 var(--b-ink); font: 600 15px/1.35 "Baloo 2", system-ui, sans-serif; cursor: pointer;
  opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .2s ease, transform .2s ease; }
.bsk-pop.in { opacity: 1; transform: none; }
.bsk-pop img { width: 36px; height: 36px; border-radius: 50%; flex: none; object-fit: cover; }
.bsk-pop > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bsk-pop b { font-size: 14px; color: var(--b-ok); }
.bsk-pop-t { overflow-wrap: anywhere; }
.bsk-pop-x { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 8px; color: var(--b-muted); }
.bsk-pop-x:hover { background: var(--b-soft); }
.bsk-pop-x .bi { width: 14px; height: 14px; }
#bsk.on .bsk-pop { display: none; }
@media (max-width: 600px) { .bsk-pop { right: 14px; bottom: 76px; } }
@media (prefers-reduced-motion: reduce) { .bsk-pop { transition: none; } }

/* ---------------------------------------------------------------- motion (chat panel, messages, modal) */
@keyframes bsk-pop-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bsk-msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bsk-fade { from { opacity: 0; } to { opacity: 1; } }
.bsk-panel:not([hidden]) { transform-origin: bottom right; animation: bsk-pop-in .22s cubic-bezier(.2,.9,.3,1.2) both; }
.m-in { animation: bsk-msg-in .25s ease-out both; }
.bsk-fab { animation: bsk-pop-in .3s ease-out both; }
.bsk-gate { animation: bsk-fade .2s ease-out both; }

/* ---------------------------------------------------------------- messages on their way */
.m-q time { font-style: italic; }
.m-fail { background: transparent !important; color: var(--b-text) !important; border: 2px dashed var(--b-hot); }
.m-st { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; font-size: 13px; font-weight: 700; color: #FF9AB5; }
.m-st button { padding: 0; border: 0; background: none; color: #C9B8FF; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.bsk-conn { padding: 8px 14px 6px; background: #3A2A12; color: var(--b-yel); font-size: 14px; font-weight: 700; text-align: center; border-bottom: 2px solid var(--b-line); }
.bsk-resend.off { color: var(--b-muted) !important; text-decoration: none; cursor: default; pointer-events: none; }

/* ---------------------------------------------------------------- chat when logged out */
.bsk-gate { margin: auto 0; padding: 26px 22px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }
.bsk-gate-i { align-self: center; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--b-soft); color: var(--b-pop); margin-bottom: 4px; }
.bsk-gate-i .bi { width: 28px; height: 28px; }
.bsk-gate h3 { font-size: 22px; line-height: 1.15; }
.bsk-gate p { margin: 0 0 6px; color: var(--b-muted); font-weight: 600; line-height: 1.45; }
.bsk-gate p b { color: var(--b-text); }
.bsk-body:has(.bsk-gate) { display: flex; flex-direction: column; }

/* ---------------------------------------------------------------- modal (log in, sign up, account, details, pay) */
html.bsk-lock, html.bsk-lock body { overflow: hidden; }
.bsk-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(8,8,14,.62); backdrop-filter: blur(3px); animation: bsk-fade .18s ease-out both; }
.bsk-modal[hidden] { display: none; }
.bsk-mcard { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--b-bg); border: 3px solid var(--b-line); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: bsk-pop-in .24s cubic-bezier(.2,.9,.3,1.15) both; transform-origin: center; }
.bsk-mx { position: absolute; top: 12px; right: 12px; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 2px solid var(--b-line); background: var(--b-soft); color: var(--b-text); cursor: pointer; }
.bsk-mbody .bsk-auth, .bsk-mbody .bsk-acct { padding: 26px 24px 24px; }
.bsk-mbody .bsk-auth h3 { padding-right: 40px; font-size: 24px; }
.bsk-mbody > .bsk-wait { padding: 48px 24px; text-align: center; }
.bsk-mbody > * { animation: bsk-fade .16s ease-out both; }
.bsk-acct .bsk-row { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding-right: 40px; }
.bsk-acct .bsk-row > div { flex: 1; min-width: 0; }
.bsk-acct .bsk-row b { display: block; font-size: 18px; line-height: 1.2; }
.bsk-acct .bsk-row small { display: block; color: var(--b-muted); font-weight: 600; overflow-wrap: anywhere; }
.bsk-acct .bsk-btn .bi { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .bsk-modal { place-items: end center; padding: 0; }
  .bsk-mcard { width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; border-bottom: 0; animation-name: bsk-sheet; }
  @keyframes bsk-sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------------------------------------------------------------- page header: Log in / account menu (uses the page's own colours) */
.bsk-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #7A4CFF; color: #fff; font: 800 15px/1 "Baloo 2", system-ui, sans-serif; padding-top: 2px; flex: none; }
.bsk-av.lg { width: 46px; height: 46px; font-size: 22px; }
.bsk-hdr { position: relative; display: flex; }
.bsk-hb { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 11px; border: 2px solid var(--line, #161412);
  background: var(--card, #fff); color: var(--text, #161412); font: 800 15px "Baloo 2", system-ui, sans-serif; cursor: pointer; white-space: nowrap; transition: border-color .2s, background-color .2s; }
.bsk-hb span:not(.bsk-av) { transform: translateY(1px); }
.bsk-hb:hover { border-color: var(--pop, #7A4CFF); }
.bsk-hb .bi { width: 18px; height: 18px; display: block; }
.bsk-hb.av { width: 36px; height: 36px; padding: 0; border: 0; background: none; border-radius: 50%; }
.bsk-hb.av .bsk-av { width: 36px; height: 36px; font-size: 17px; border: 2px solid var(--line, #161412); transition: box-shadow .15s; }
.bsk-hb.av:hover .bsk-av, .bsk-hb.av[aria-expanded="true"] .bsk-av { box-shadow: 0 0 0 3px color-mix(in srgb, var(--pop, #7A4CFF) 35%, transparent); }
.bsk-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 65; min-width: 230px; padding: 6px; border-radius: 14px; border: 2px solid var(--line, #161412);
  background: var(--card, #fff); color: var(--text, #161412); box-shadow: 4px 4px 0 var(--shadow, #161412); animation: bsk-msg-in .16s ease-out both; }
.bsk-menu[hidden] { display: none; }
.bsk-mh { padding: 8px 10px 10px; border-bottom: 2px solid color-mix(in srgb, var(--line, #161412) 25%, transparent); margin-bottom: 4px; }
.bsk-mh b { display: block; font-size: 16px; line-height: 1.2; }
.bsk-mh small { display: block; font-size: 13px; font-weight: 600; opacity: .7; overflow-wrap: anywhere; }
.bsk-menu button, .bsk-menu .bsk-mi { text-decoration: none; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px 7px; border: 0; border-radius: 10px; background: none; color: inherit;
  font: 700 15px "Baloo 2", system-ui, sans-serif; text-align: left; cursor: pointer; }
.bsk-menu button:hover, .bsk-menu button:focus-visible, .bsk-menu .bsk-mi:hover, .bsk-menu .bsk-mi:focus-visible { background: color-mix(in srgb, var(--pop, #7A4CFF) 14%, transparent); }
.bsk-menu .bi { width: 18px; height: 18px; flex: none; transform: translateY(-1px); }
.bsk-menu .bsk-out { color: var(--hot, #E5396A); }
@media (max-width: 600px) { .bsk-hb:not(.av) span { display: none; } .bsk-hb:not(.av) { padding: 0 8px; height: 32px; } .bsk-hb.av, .bsk-hb.av .bsk-av { width: 32px; height: 32px; } }

@media (prefers-reduced-motion: reduce) {
  .bsk-panel:not([hidden]), .m-in, .bsk-fab, .bsk-gate, .bsk-modal, .bsk-mcard, .bsk-mbody > *, .bsk-menu { animation: none !important; }
}

/* countdown bar, loud version: hot pink -> orange strip with dark ink text, dark chips on top */
.cd-bar { background: linear-gradient(90deg, #FF3D7F, #FF6A3D 50%, #FF3D7F) 0 0 / 200% 100%; color: #161412; border-bottom: 3px solid #161412;
  box-shadow: none; animation: cd-flow 8s linear infinite; }
@keyframes cd-flow { to { background-position: 200% 0; } }
.cd-bar .cd-eb { background: #161412; color: #FFD84D; border-color: #161412; }
.cd-bar .cd-eb .cd-live { background: #FFD84D; box-shadow: 0 0 0 0 rgba(255,216,77,.7); animation-name: cd-ping-y; }
@keyframes cd-ping-y { 70% { box-shadow: 0 0 0 8px rgba(255,216,77,0); } 100% { box-shadow: 0 0 0 0 rgba(255,216,77,0); } }
.cd-bar .cd-msg b { color: #161412; }
.cd-bar .cd-note { color: #161412; opacity: .78; font-weight: 800; }
.cd-bar .cd-t { background: #161412; color: #fff; border: 0; }
.cd-bar .cd-t i { color: #FFD84D; }
.cd-bar .cd-go { background: #FFD84D; color: #161412; border-color: #161412; box-shadow: 3px 3px 0 #161412; }
.cd-bar .cd-go s { opacity: .6; }
@media (prefers-reduced-motion: reduce) { .cd-bar { animation: none; } }
/* small phones (≤360px): the header has the brand, a nav link, the account button and the theme toggle */
@media (max-width: 360px) {
  header.top { gap: 6px; }
  header.top .brand { min-width: 0; }
  header.top .brand small { display: none; }
  header.top .brand b { font-size: 18px; }
  header.top .brand img { width: 30px; height: 32px; }
  header.top .topr { gap: 4px; }
  header.top .navl { padding: 4px 7px 2px; font-size: 12px; }
}

/* light / dark switch, in the footer (it used to sit in the header) */
.foot .ftheme { display: inline-flex; align-items: center; gap: 7px; margin: 14px auto 0; padding: 5px 14px 3px; border-radius: 999px; font-size: 13px; }
.ftheme svg { width: 15px; height: 15px; display: block; transform: translateY(-1px); }
.ftheme .ft-sun { display: none; }
.ftheme .ft-l::after { content: "Light mode"; }
:root[data-theme="dark"] .ftheme .ft-sun, :root:not([data-theme]) .ftheme .ft-sun { display: block; }
:root[data-theme="dark"] .ftheme .ft-moon, :root:not([data-theme]) .ftheme .ft-moon { display: none; }
:root[data-theme="light"] .ftheme .ft-l::after { content: "Dark mode"; }
/* icon buttons: no browser padding, so the icon sits dead centre */
#bsk .bsk-x, #bsk .bsk-mx, #bsk .bsk-in button, .bsk-pop-x { padding: 0; line-height: 0; }
#bsk .bsk-x .bi, #bsk .bsk-mx .bi { width: 18px; height: 18px; margin: auto; }

/* confirmed call: the invite comes by email; "Need a different time?" */
.bk-inv { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 0 !important; padding: 10px 12px 8px; border-radius: 12px; background: var(--b-soft); color: var(--b-muted); font-weight: 600; line-height: 1.4; }
.bk-inv .bi { width: 20px; height: 20px; flex: none; color: var(--b-ok); margin-top: 1px; }
.bk-inv b { color: var(--b-text); }
.bk-move summary { color: #C9B8FF; }

/* what the buyer already has (app.js paintOwned): the course can't be bought twice, so its buy buttons go,
   and [data-if-course] / [data-if-not-course] swap in what fits instead */
html.bsk-owns-course a[href="#buy:vibe-editing-course"], html.bsk-owns-course a[href="#buy:vibe-editing-1on1"],
html.bsk-owns-course [data-if-not-course] { display: none !important; }
html:not(.bsk-owns-course) [data-if-course] { display: none !important; }

/* bought anything (bsk-owns-any): community note; [data-if-any] / [data-if-not-any] */
html:not(.bsk-owns-any) [data-if-any] { display: none !important; }
html.bsk-owns-any [data-if-not-any] { display: none !important; }
.cm-note { display: flex; align-items: flex-start; gap: 9px; margin: 6px 0 0; padding: 9px 12px 7px; border-radius: 12px; background: color-mix(in srgb, #19B98A 14%, transparent);
  border: 1px solid color-mix(in srgb, #19B98A 45%, transparent); font-weight: 600; font-size: 14px; line-height: 1.4; text-align: left; }
.cm-note b { font-weight: 800; }
.cm-note .cm-i { width: 18px; height: 18px; flex: none; color: #19B98A; margin-top: 1px; }
