/* The members' area: the shell (sidebar, light canvas, lesson rows, 16:9 player), the community and the account.
   The colours below are the default; a business lays its own look over them (its folder's platform-core/assets/look.css). */
:root {
  --primary: #33506e; --primary-dark: #263d55; --primary-soft: rgba(51, 80, 110, .12);
  --gold: #c08a1e; --gold-dark: #946913; --gold-soft: rgba(192, 138, 30, .16);
  --ink: #1d2330; --muted: #5f6b7a; --line: #e1e4ea; --bg: #f3f4f7; --card: #fff;
  --night: #1b2430; --night-2: #27313f; --khaki: #cfd6e0;
  --ok: #2f7a3a; --ok-soft: #e3f2e5; --danger: #b42318;
  --coach: #2f5d8c; --support: #7a4fa0;
  --radius: 14px; --shadow: 0 1px 2px rgba(20, 28, 40, .05), 0 1px 3px rgba(20, 28, 40, .07);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1 { font-size: 1.65rem; line-height: 1.2; margin: 0 0 .35em; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin: 0 0 .6em; display: flex; align-items: center; gap: 8px; }
h3 { font-size: .95rem; margin: 0 0 .6em; display: flex; align-items: center; gap: 8px; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); } .small { font-size: .84rem; }
.center { text-align: center; } .mt { margin-top: 1.4em; }
code { background: #eceee4; padding: 1px 6px; border-radius: 5px; font-size: .9em; }
.ic { width: 18px; height: 18px; flex: none; }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1px solid #cfd2c4; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--primary); }

/* the dark band: the sidebar, the hero bands and the sign-in page (a business's look may give it a picture) */
.camo { background-color: var(--night); color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font: inherit; font-weight: 700;
  font-size: .93rem; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-gold { background: var(--gold); color: #1a1a0e; }
.btn-gold:hover { background: #d9b23a; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #c4c8b6; background: #fafaf6; }
.btn-onDark { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.btn-onDark:hover { background: rgba(255, 255, 255, .18); }
.btn-done { background: var(--ok-soft); color: var(--ok); border-color: #c4e0b6; }
.btn-block { width: 100%; }
.ch-body .btn { white-space: normal; text-align: left; max-width: 100%; } .btn-sm { padding: 7px 12px; font-size: .85rem; } .btn-lg { padding: 13px 22px; font-size: 1rem; }
.btn .ic { width: 16px; height: 16px; }
.danger { color: var(--danger) !important; }
.linkbtn, .link { background: none; border: 0; padding: 0; font: inherit; color: var(--primary-dark); cursor: pointer; font-weight: 600; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-center { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.bar { display: block; height: 6px; background: #e6e7dd; border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #6f8f3d); border-radius: 99px; }
.bar.sm { height: 4px; } .bar.lg { height: 8px; margin: 8px 0 14px; }

.eyebrow { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 4px; }
.eyebrow .ic { width: 14px; height: 14px; }
.camo .eyebrow { color: var(--gold); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: .9rem; flex: none; }
.avatar.sm { width: 28px; height: 28px; font-size: .75rem; } .avatar.lg { width: 52px; height: 52px; font-size: 1.25rem; } .avatar.xl { width: 84px; height: 84px; font-size: 2rem; border: 4px solid #fff; }
.avatar.has-photo { background: transparent; overflow: hidden; } .avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.photo-remove { margin-top: 10px; text-align: center; }
.plan-doc-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.avatar.type-house { background: var(--gold); color: #1a1a0e; } .avatar.type-staff { background: var(--coach); } .avatar.type-ai { background: #6d28d9; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.pad { padding: 16px; } .pad-lg { padding: 22px; }
.page-head { margin-bottom: 18px; } .page-head p { margin: 0; }
.badge { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .02em; border-radius: 99px; padding: 2px 8px; vertical-align: middle; text-transform: uppercase; }
.badge-hq { background: var(--gold-soft); color: var(--gold-dark); } .badge-staff { background: #dde9f5; color: var(--coach); }
.badge-support { background: #ece3f5; color: var(--support); } .badge-ai { background: #ede9fe; color: #5b21b6; }
.chip { display: inline-block; font-size: .7rem; border-radius: 99px; padding: 1px 8px; background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.chip.phase { background: #efeee4; color: var(--muted); }
.flag { display: inline-flex; align-items: center; gap: 3px; font-size: .68rem; font-weight: 800; border-radius: 6px; padding: 1px 7px; background: #eceee4; color: var(--muted); margin-right: 4px; vertical-align: middle; text-transform: uppercase; letter-spacing: .02em; }
.flag .ic { width: 11px; height: 11px; }
.flag.pin { background: var(--gold-soft); color: var(--gold-dark); } .flag.ok { background: var(--ok-soft); color: var(--ok); } .flag.open { background: #fdecea; color: var(--danger); }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 8px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.crumbs a { color: var(--primary-dark); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.crumbs span { color: #c2c6b6; }
.help-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-dark); display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* ---- the shell ------------------------------------------------------------------------------------- */
.shell { display: flex; min-height: 100vh; }
.side { width: 256px; flex: none; padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; overflow-y: auto }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.05rem; padding: 0 8px 18px; line-height: 1.15; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--khaki); letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.side-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); padding: 14px 12px 6px; font-weight: 800; }
.side-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: .93rem; color: #dfe3d4; }
.side-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-item.on { background: rgba(201, 162, 39, .18); color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 10px 24px; min-height: 64px;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-brand { display: none; }
.top-brand img { width: 36px; height: 36px; border-radius: 8px; }
.top-title { font-weight: 800; font-size: 1.05rem; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-me { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; }
.bell { position: relative; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.bell:hover, .bell.on { background: var(--primary-soft); color: var(--primary-dark); }
.bell .ic { width: 20px; height: 20px; }
.bell .count { position: absolute; top: 4px; right: 3px; background: var(--danger); color: #fff; border-radius: 99px; font-size: .66rem; font-weight: 800; padding: 0 5px; line-height: 16px; }
.content { flex: 1; padding-bottom: 40px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 26px 24px; }
.wrap.narrow { max-width: 720px; } .wrap.narrow-md { max-width: 860px; }
.tabs { display: none; }

/* ---- the course switcher --------------------------------------------------------------------------- */
.switcher { position: relative; min-width: 0; }
.switcher > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; max-width: 440px; }
.switcher > summary::-webkit-details-marker { display: none; }
.switcher > summary:hover, .switcher[open] > summary { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.switcher > summary .ic { color: var(--muted); transition: transform .15s; }
.switcher[open] > summary .ic { transform: rotate(180deg); }
.sw-thumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(0, 0, 0, .06); }
.sw-thumb img { width: 100%; height: 100%; object-fit: contain; }
.sw-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.sw-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-dark); font-weight: 800; }
.sw-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-menu { position: absolute; top: calc(100% + 8px); left: 0; width: 380px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(25, 33, 15, .18); padding: 8px; z-index: 30; }
.sw-head { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px 6px; }
.sw-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; }
.sw-item:hover { background: var(--bg); }
.sw-item.on { background: var(--primary-soft); }
.sw-item .ic { color: var(--primary-dark); }
.sw-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sw-item-title { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.sw-item-meta { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--muted); }
.sw-item-meta .bar { width: 90px; }
.sw-all { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 11px 10px 7px; border-top: 1px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--primary-dark); }

/* ---- home ------------------------------------------------------------------------------------------ */
.hero { border-radius: 18px; padding: 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 26px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(25, 33, 15, .18); }
.hero h1 { font-size: 1.9rem; margin-bottom: 12px; }
.mission-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; padding: 8px 12px; font-size: .85rem; color: #eef0e6; margin-bottom: 18px; }
.mission-pill .ic { color: var(--gold); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-feed { background: rgba(10, 14, 6, .45); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 8px; backdrop-filter: blur(2px); }
.hero-feed-head { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--khaki); padding: 6px 10px 4px; }
.feed-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; }
.feed-row:hover { background: rgba(255, 255, 255, .08); }
.feed-row.light:hover { background: var(--bg); }
.feed-text { display: flex; flex-direction: column; min-width: 0; }
.feed-title { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-meta { font-size: .76rem; color: #b8bfa8; }
.feed-row.light .feed-meta { color: var(--muted); }
.block { margin-bottom: 34px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.block-head h2 { margin: 0; font-size: 1.2rem; }
.block-head h2 .ic { color: var(--primary); width: 20px; height: 20px; }
.more { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: .88rem; color: var(--primary-dark); }
.more .ic { width: 16px; height: 16px; }

.wins { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.win { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.win:hover { border-color: #d7d2b6; border-top-color: var(--gold); transform: translateY(-1px); }
.win-who { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.win-who .muted { margin-left: auto; }
.win-title { font-weight: 800; line-height: 1.3; }
.win-body { color: var(--muted); font-size: .88rem; flex: 1; }
.win-meta { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); }
.win-meta .ic { width: 14px; height: 14px; margin-left: 6px; } .win-meta .ic:first-child { margin-left: 0; }
.win-share { border: 2px dashed #cfd2c4; border-top: 2px dashed #cfd2c4; background: transparent; box-shadow: none; align-items: flex-start; justify-content: center; }
.win-share:hover { border-color: var(--primary); border-top-color: var(--primary); }
.win-share-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; }

.pickup { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.pickup:hover { border-color: #c9cdb9; border-left-color: var(--primary); }
.pickup-thumb { width: 76px; height: 56px; border-radius: 10px; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.pickup-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pickup-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pickup-title { font-weight: 800; font-size: 1.05rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cc { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.cc:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(25, 33, 15, .12); }
.cc-cover { position: relative; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); }
.cc-cover img, .ch-cover img, .offer-cover img, .op-cover img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }
.cc-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.cc-title { font-weight: 800; font-size: 1.04rem; line-height: 1.25; }
.cc-tag { color: var(--muted); font-size: .87rem; flex: 1; }
.cc-progress { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 10px; }

.calls { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.call { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); }
.call-date { width: 58px; flex: none; text-align: center; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; line-height: 1.1; }
.call-dow { background: var(--primary); color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .08em; padding: 3px 0; }
.call-day { font-size: 1.35rem; font-weight: 800; padding-top: 4px; }
.call-mon { font-size: .66rem; font-weight: 700; color: var(--muted); padding-bottom: 5px; letter-spacing: .06em; }
.call-body { flex: 1; min-width: 0; }
.call-title { font-weight: 800; }
.when { color: var(--primary-dark); font-weight: 700; }
.locked-note { display: inline-flex; align-items: center; gap: 4px; } .locked-note .ic { width: 13px; height: 13px; }
.call.locked { background: #fafaf6; } .call.locked .call-dow { background: #9aa08b; } .call.locked .call-title { color: var(--muted); }
.call.is-live { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180, 35, 24, .1); }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; color: var(--danger); text-transform: uppercase; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.call-act { flex: none; display: flex; align-items: center; gap: 8px; }

.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.offer { display: flex; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.offer:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(25, 33, 15, .12); }
.offer-cover { position: relative; width: 120px; flex: none; border-right: 1px solid var(--line); }
.offer-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; }
.offer-title { font-weight: 800; line-height: 1.25; }
.offer-pitch { font-size: .86rem; color: var(--muted); flex: 1; }
.offer-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.offer-price { font-size: 1.05rem; }

.help-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.help-tile { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.help-tile:hover { border-color: var(--primary); }
.help-tile-head { display: flex; align-items: center; gap: 12px; }
.help-tile-head b { font-size: 1.02rem; }
.res-request { margin-top: 8px; }
.res-request .help-tile { max-width: 420px; }
.faq { border-top: 1px solid var(--line); }
.faq:first-of-type { border-top: 0; }
.faq > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; font-weight: 700; cursor: pointer; }
.faq > summary::-webkit-details-marker { display: none; }
.faq[open] > summary .ic { transform: rotate(180deg); }
.faq p { margin: 0 0 14px; }

/* ---- a course -------------------------------------------------------------------------------------- */
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--primary-dark); font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
.back .ic { width: 16px; height: 16px; }
.course-head { display: flex; gap: 24px; padding: 20px; margin-bottom: 26px; }
.ch-cover { position: relative; width: 300px; flex: none; aspect-ratio: 16 / 10; border-radius: 12px; border: 1px solid var(--line); }
.ch-body { flex: 1; min-width: 0; }
.ch-progress { display: flex; flex-direction: column; max-width: 420px; margin-bottom: 14px; }
.ch-progress .bar { margin: 4px 0 6px; }
.module { margin-bottom: 26px; }
.module-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 2px solid var(--line); }
.module-head h2 { margin: 0; font-size: 1rem; }
.lrow { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.lrow:hover { border-color: #c9cdb9; background: #fbfbf7; }
.lrow > .ic { color: #b6baa8; }
.lrow.current { border-color: var(--primary); background: #f7f9f1; }
.lnum { width: 32px; height: 32px; border-radius: 50%; background: #eceee4; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .84rem; color: var(--muted); flex: none; }
.lrow.current .lnum { background: var(--primary); color: #fff; }
.lrow.done .lnum { background: var(--ok-soft); color: var(--ok); }
.lrow.done .lnum .ic { width: 16px; height: 16px; }
.linfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ltitle { font-weight: 600; }
.lmeta { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.lmeta .ic { width: 14px; height: 14px; }
.discuss { display: flex; align-items: center; gap: 14px; padding: 16px; }
.discuss > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.discuss:hover { border-color: var(--primary); }

/* ---- a lesson -------------------------------------------------------------------------------------- */
.player { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; max-width: 1280px; margin: 0 auto; padding: 24px; align-items: start; }
.lesson-meta { display: flex; align-items: center; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.ok { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 700; }
.ok .ic { width: 14px; height: 14px; }
.lesson figure { margin: 0 0 22px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
figcaption { font-size: .84rem; color: var(--muted); margin-top: 8px; }
.b-image img { border-radius: 12px; border: 1px solid var(--line); background: #fff; margin: 0 auto; max-height: 520px; width: auto; }
.b-image figcaption { text-align: center; }
.b-text { font-size: 1.04rem; margin-bottom: 22px; max-width: 72ch; }
.b-text p { margin: 0 0 14px; }
.b-text ul { padding-left: 1.2em; margin: 0 0 14px; }
.b-text li { margin-bottom: 6px; }
.b-download { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.b-download:hover { border-color: var(--primary); }
.dl-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; flex: none; }
.dl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dl-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--primary-dark); }
.dl-go .ic { width: 16px; height: 16px; }
.b-callout { background: #faf6e6; border: 1px solid #ebdfb0; border-left: 4px solid var(--gold); border-radius: 12px; padding: 16px 18px; margin: 4px 0 22px; }
.b-callout p { margin: 0 0 8px; }
.b-callout a { color: var(--primary-dark); font-weight: 700; }
.lesson-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.lesson-sub { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--muted); flex-wrap: wrap; justify-content: center; }
.lesson-sub a, .lesson-sub .linkbtn { color: var(--primary-dark); font-weight: 600; font-size: .86rem; }

.curriculum { position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.cur-head { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.cur-head .bar { grid-column: 1 / -1; }
.cur-mod { border-bottom: 1px solid var(--line); }
.cur-mod:last-child { border-bottom: 0; }
.cur-mod > summary { list-style: none; display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; cursor: pointer; font-weight: 700; font-size: .88rem; background: #f8f8f3; }
.cur-mod > summary::-webkit-details-marker { display: none; }
.cur-row { display: flex; gap: 10px; padding: 10px 16px; font-size: .88rem; align-items: flex-start; border-left: 3px solid transparent; }
.cur-row:hover { background: var(--bg); }
.cur-row.on { background: var(--primary-soft); border-left-color: var(--primary); font-weight: 700; }
.cur-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cdd1c1; flex: none; margin-top: 2px; display: flex; align-items: center; justify-content: center; }
.cur-row.done .cur-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.cur-row.done .cur-dot .ic { width: 11px; height: 11px; stroke-width: 3.5; }
.cur-row.on .cur-dot { border-color: var(--primary); }
.cur-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cur-text .small { display: flex; align-items: center; gap: 5px; font-weight: 400; }
.cur-text .ic { width: 13px; height: 13px; }

/* ---- order form ------------------------------------------------------------------------------------ */
.demo-note { display: flex; align-items: center; gap: 8px; background: var(--gold-soft); border: 1px solid #e6d79c; color: #6b5610; border-radius: 10px; padding: 9px 12px; font-size: .86rem; font-weight: 600; margin-bottom: 18px; }
.order { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.order-product { overflow: hidden; }
.op-cover { position: relative; aspect-ratio: 16 / 7; border-bottom: 1px solid var(--line); }
.op-body { padding: 22px; }
.checks { list-style: none; padding: 0; margin: 0 0 16px; }
.checks li { display: flex; gap: 10px; padding: 6px 0; }
.checks .ic { color: var(--ok); margin-top: 3px; }
.order-box { padding: 20px; position: sticky; top: 88px; }
.plan { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; }
.plan:has(input:checked) { border-color: var(--primary); background: #f7f9f1; box-shadow: 0 0 0 3px var(--primary-soft); }
.plan-text { flex: 1; display: flex; flex-direction: column; }
.plan-price { font-weight: 800; font-size: 1.05rem; }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.pay-row:last-of-type { margin-bottom: 14px; }
.card-on-file { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.card-brand { background: #1a1f71; color: #fff; font-size: .62rem; font-weight: 900; font-style: italic; padding: 2px 6px; border-radius: 4px; }
.order-box .small.center { margin: 10px 0 0; }
.done-card { padding: 34px 24px; }
.done-badge { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.done-badge .ic { width: 32px; height: 32px; stroke-width: 3; }

/* ---- account, team ------------------------------------------------------------------------------- */
.acct-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.acct-head h1 { margin: 0; font-size: 1.4rem; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.acct-row, .pc-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.acct-row:first-of-type, .pc-row:first-of-type { border-top: 0; }
.acct-text, .pc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.member-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.member-confirm { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 560px) { .member-row { flex-wrap: wrap; } .member-actions { width: 100%; justify-content: flex-end; } }
.searchbar, .filterbar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; }
.searchbar input, .filterbar input { border: 0; box-shadow: none; padding: 6px 0; flex: 1; min-width: 0; }
.filterbar select { width: auto; }
.searchbar > .ic, .filterbar > .ic { color: var(--muted); }
.tm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tm-who { flex: 1; min-width: 0; }
.tm-courses { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tm-course { display: inline-flex; align-items: center; gap: 8px; background: #f6f6f0; border: 1px solid var(--line); border-radius: 99px; padding: 5px 6px 5px 12px; font-size: .86rem; }
.tm-course .linkbtn { font-size: .8rem; padding: 2px 8px; border-radius: 99px; }
.tm-course .linkbtn:hover { background: #fdecea; }
.tm-orders { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tm-grant { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tm-grant select { width: auto; max-width: 260px; padding: 7px 10px; flex: 1 1 180px; min-width: 0; }
.rules-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.rule { padding: 14px 16px; }
.rule.off { opacity: .6; }
.rule-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 6px; }
.rule-n { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; flex: none; }
.rule-text { flex: 1; }
.rule details > summary, .rule.add > summary { list-style: none; cursor: pointer; }
.rule details > summary::-webkit-details-marker, .rule.add > summary::-webkit-details-marker { display: none; }
.rule-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 12px; }
.rf-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.picks { display: flex; flex-direction: column; gap: 4px; }
.pick { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; cursor: pointer; }
.pick input { margin-top: 3px; }
.rule-foot { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.rule-foot label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.rule-foot select { width: auto; max-width: 320px; }
.rule-foot label.check { flex-direction: row; align-items: center; padding-bottom: 8px; }
.preview { position: sticky; top: 88px; }
.pv { padding: 10px 0; border-top: 1px solid var(--line); }

/* ---- community ------------------------------------------------------------------------------------- */
.c-hero { border-radius: 18px; padding: 24px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; }
.c-hero h1 { font-size: 1.9rem; margin-bottom: 6px; }
.c-hero p { margin: 0; color: #e3e6d8; max-width: 52ch; }
.c-hero-call { display: flex; align-items: center; gap: 12px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; padding: 12px 14px; flex: none; }
.c-hero-call > span { display: flex; flex-direction: column; }
.c-hero-call .ic { color: var(--gold); width: 24px; height: 24px; }
.c-hero-call .small { color: var(--khaki); }
.csub { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.csub-tabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.csub-tabs a { padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: .88rem; color: var(--muted); }
.csub-tabs a.on { background: var(--primary); color: #fff; }
.csub-search { flex: 1; min-width: 180px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.csub-search .ic { color: var(--muted); }
.csub-search input { border: 0; box-shadow: none; padding: 9px 0; }
.c-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.forum-list { overflow: hidden; }
.fl-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.fl-row:last-child { border-bottom: 0; }
.fl-row:hover { background: #fafaf5; }
.fl-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; flex: none; }
.fl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fl-name { font-weight: 800; font-size: 1.02rem; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fl-desc { font-size: .88rem; color: var(--muted); }
.fl-latest { font-size: .8rem; color: var(--primary-dark); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-stats { flex: none; text-align: right; font-size: .8rem; color: var(--muted); line-height: 1.5; min-width: 78px; }
.fl-stats b { color: var(--ink); }
.c-side .card h3 { margin-bottom: 8px; }
.mission-card { display: flex; flex-direction: column; gap: 6px; }
.mission-card h3 .ic { color: var(--gold-dark); }
.mission-card .bar { margin: 2px 0; }
.t-row { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.t-row:last-child { border-bottom: 0; }
.t-row:hover { background: #fafaf5; }
.t-row.pinned { background: #fcfaf0; }
.t-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.t-title { font-weight: 700; line-height: 1.35; }
.t-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.t-stats { display: flex; gap: 12px; color: var(--muted); font-size: .82rem; flex: none; }
.t-stats > span { display: inline-flex; gap: 4px; align-items: center; }
.t-stats .ic { width: 15px; height: 15px; }
.pager { display: flex; gap: 6px; margin: 12px 0; }
.pager a { padding: 5px 11px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .86rem; }
.pager a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.thread-title { margin-bottom: 4px; }
.thread-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
.post header { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.post.op { border-top: 3px solid var(--primary); }
.post.type-house { background: #fcfaf0; }
.post.type-staff { border-left: 3px solid var(--coach); }
.post.is-answer { border: 2px solid var(--ok); }
.post.is-hidden { opacity: .55; }
.who { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.who-line { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.who .name { font-weight: 800; }
.who .meta { font-size: .78rem; color: var(--muted); }
.body { margin: 12px 0 8px; overflow-wrap: anywhere; }
.body blockquote { margin: 6px 0; padding: 8px 12px; border-left: 3px solid var(--khaki); background: #f8f7f0; color: #4b5244; font-size: .93rem; border-radius: 0 8px 8px 0; }
.body a { color: var(--primary-dark); font-weight: 600; }
.mention { color: var(--coach) !important; }
.repost-note { font-size: .8rem; color: var(--muted); font-style: italic; }
.actions { display: flex; gap: 4px; flex-wrap: wrap; align-items: flex-start; margin: 0 -6px; }
.actions form { display: inline; }
.actions details[open] { flex-basis: 100%; }
.actions details .stack { margin: 8px 6px; }
.act { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 6px 8px; border-radius: 8px; font: inherit; font-size: .84rem; font-weight: 600; color: var(--muted); cursor: pointer; list-style: none; }
.act::-webkit-details-marker { display: none; }
.act:hover { background: var(--bg); color: var(--ink); }
.act.on { color: var(--primary-dark); }
.act .ic { width: 15px; height: 15px; }
.modbar { display: flex; gap: 4px; align-items: center; padding: 6px 10px; background: #eef3f8; border: 1px solid #cfdeec; border-radius: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.modbar-label { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--coach); margin-right: 6px; }
.modbar-move { display: inline-flex; gap: 4px; align-items: center; }
.modbar select { width: auto; padding: 5px 8px; font-size: .84rem; }
.best { background: var(--ok-soft); border: 1px solid #c4e0b6; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.best-head { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--ok); margin-bottom: 6px; font-size: .9rem; }
.best-head a { margin-left: auto; font-size: .82rem; color: var(--primary-dark); }
.reply-box { padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.reply-who { display: flex; gap: 8px; align-items: center; font-size: .9rem; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .88rem; }
.stack .btn { align-self: flex-start; }
label.check { display: inline-flex; flex-direction: row; gap: 6px; align-items: center; font-weight: 500; }
.celebrate { background: var(--ok-soft); border-color: #c4e0b6; }
.profile-head { overflow: hidden; padding: 0; }
.ph-band { height: 92px; }
.ph-body { display: flex; gap: 18px; padding: 0 22px 20px; align-items: flex-start; }
.ph-body .avatar.xl { margin-top: -42px; }
.ph-text { flex: 1; min-width: 0; padding-top: 12px; }
.ph-text h1 { font-size: 1.45rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.earned { display: inline-flex; align-items: center; gap: 4px; background: var(--gold-soft); color: var(--gold-dark); border-radius: 99px; padding: 3px 10px; font-size: .8rem; font-weight: 700; }
.earned .ic { width: 14px; height: 14px; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.head-row h2 { margin: 0; }
.phase { margin: 16px 0 6px; color: var(--gold-dark); text-transform: uppercase; font-size: .74rem; letter-spacing: .08em; }
.step { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step.done b { color: var(--muted); }
.tick { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #cdd1c1; background: #fff; color: #fff; flex: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.tick .ic { width: 15px; height: 15px; stroke-width: 3; }
.step.done .tick { border-color: var(--ok); background: var(--ok); }
.plain-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.plain-row:first-of-type { border-top: 0; }
.plain-row:hover > span:first-child { color: var(--primary-dark); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.member-card { display: flex; gap: 12px; padding: 14px; align-items: center; margin: 0; }
.member-card:hover { border-color: var(--primary); }
.mc-text { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.notif { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.notif.unread { background: #fbf8ec; }
.notif:last-child { border-bottom: 0; }
.hit { display: flex; flex-direction: column; gap: 4px; }
.hit:hover { border-color: var(--primary); }
.admin .card { padding: 18px; }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.stat b { display: block; font-size: 1.6rem; } .stat span { font-size: .78rem; color: var(--muted); }
.stat.warn { border-color: #f1b3ac; } .stat.warn b { color: var(--danger); }
.admin table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin th, .admin td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin th { font-size: .72rem; text-transform: uppercase; color: var(--muted); }
.admin .row { margin-top: 8px; } .admin .row select, .admin .row input { width: auto; }
.admin ul.plain { list-style: none; padding: 0; margin: 0; } .admin ul.plain li { padding: 4px 0; }
.calendar-form { background: #f8f8f3; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 8px 0; min-width: 520px; }
.calendar-form label { display: block; margin-bottom: 8px; font-weight: 700; font-size: .84rem; }
.qitem { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-top: 12px; }
.qitem label { display: block; margin: 6px 0; font-weight: 700; font-size: .84rem; }
.qitem .original { font-style: italic; margin: 4px 0 8px; }
.table-scroll { overflow-x: auto; }

/* ---- sign in --------------------------------------------------------------------------------------- */
body.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 84px 16px 24px; }
.auth-card { width: 100%; max-width: 460px; background: #fff; color: var(--ink); border-radius: 18px; padding: 32px 28px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); text-align: center; border-top: 4px solid var(--gold); }
.auth-logo { width: 104px; height: 104px; margin: -86px auto 10px; border-radius: 22px; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.auth-card h1 { font-size: 1.45rem; }
.auth-card > p { margin: 0 0 20px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .88rem; }
.auth-forgot { margin: 14px 0 0; }
.auth-alt { margin: 6px 0 0; }
.alert { background: #fdecea; color: var(--danger); border: 1px solid #f6c7c2; border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.demo { margin-top: 24px; padding-top: 18px; border-top: 1px dashed #d4d7c9; text-align: left; }
.demo-head { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.demo-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-btn { display: flex; align-items: center; gap: 10px; padding: 9px 10px; background: #fafaf6; border: 1px solid var(--line); border-radius: 10px; font: inherit; cursor: pointer; text-align: left; }
.demo-btn:hover { border-color: var(--primary); background: #fff; }
.demo-btn > span:last-child { display: flex; flex-direction: column; line-height: 1.25; font-size: .86rem; min-width: 0; }
.demo-btn.team { background: #f4f6fa; }
.demo .avatar { width: 30px; height: 30px; font-size: .8rem; }
.role { font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; border-radius: 99px; padding: 1px 6px; vertical-align: middle; background: var(--primary-soft); color: var(--primary-dark); }
.role-coach { background: #dde9f5; color: var(--coach); } .role-support { background: #ece3f5; color: var(--support); }
.demo p { margin: 10px 0 0; }

/* ---- smaller screens ------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .player, .c-layout, .order, .rules-layout { grid-template-columns: minmax(0, 1fr); }
  .curriculum, .order-box, .preview { position: static; max-height: none; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .side { display: none; }
  .top { padding: 8px 14px; gap: 10px; min-height: 58px; }
  .top-brand { display: block; flex: none; }
  .top-name { display: none; }
  .switcher { flex: 1; min-width: 0; }
  .switcher > summary { max-width: none; }
  .sw-thumb { width: 34px; height: 34px; }
  .sw-menu { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; max-width: none; }
  .wrap, .player { padding: 18px 14px; }
  .content { padding-bottom: 84px; }
  .tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 700; color: var(--muted); padding: 5px 0; }
  .tabs a.on { color: var(--primary); }
  .tabs .ic { width: 22px; height: 22px; }
  h1 { font-size: 1.4rem; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 18px; }
  .hero h1 { font-size: 1.55rem; }
  .course-head { flex-direction: column; padding: 16px; gap: 16px; }
  .ch-cover { width: 100%; }
  .hide-sm { display: none; }
  .btn { white-space: normal; max-width: 100%; }
  .help-tiles { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .rule-grid { grid-template-columns: 1fr; }
  .c-hero { flex-direction: column; align-items: flex-start; padding: 20px; }
  .c-hero h1 { font-size: 1.55rem; }
  .csub-tabs { order: 1; }
  .csub-search { order: 3; flex-basis: 100%; }
  .csub > .btn { order: 2; margin-left: auto; padding: 9px 11px; }
  .csub > .btn span { display: none; }
  .csub-tabs a { padding: 7px 11px; }
  .fl-row { padding: 14px; gap: 12px; }
  .fl-stats { display: none; }
  .t-row { padding: 12px 14px; }

  /* course cards: image on the left spanning the headline, description and progress */
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .cc { flex-direction: row; }
  .cc-cover { width: 112px; flex: none; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .cc-cover img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
  .cc-body { padding: 12px 14px; gap: 3px; }
  .cc-title { font-size: .98rem; }
  .cc-tag { font-size: .82rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cc-progress { margin: 6px 0 0; }
  .cc-btn { display: none; }

  .offers { grid-template-columns: 1fr; }
  .offer-cover { width: 96px; }
  .call { padding: 10px 12px; gap: 12px; }
  .call-date { width: 50px; }
  .pickup { padding: 12px; gap: 12px; }
  .pickup .btn { padding: 9px 12px; }
  .pickup-thumb { width: 56px; height: 44px; }
  .pickup-title { font-size: .95rem; }
  .profile-head .ph-body { flex-direction: column; gap: 6px; }
  .tm-head { flex-wrap: wrap; }
  .admin table { display: block; overflow-x: auto; }
  .calendar-form { min-width: 0; }
}
@media (max-width: 420px) {
  .demo-list { grid-template-columns: 1fr; }
  .pickup .btn span, .pickup .btn { font-size: .85rem; }
}

/* ---- notifications: the bell menu and the page --------------------------------------------------------- */
.bellmenu { position: relative; }
.bellmenu > summary { list-style: none; cursor: pointer; }
.bellmenu > summary::-webkit-details-marker { display: none; }
.bellmenu[open] > summary { background: var(--primary-soft); color: var(--primary-dark); }
.bm-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 360px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 16px 40px rgba(25, 33, 15, .18); z-index: 40; overflow: hidden; }
.bm-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.bm-head .linkbtn { font-size: .82rem; }
.bm-list { max-height: 380px; overflow-y: auto; }
.bm-item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.bm-item:hover { background: var(--bg); }
.bm-item.unread { background: #fbf8ec; }
.bm-item > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.bm-text { font-size: .86rem; line-height: 1.35; }
.bm-ago { font-size: .75rem; color: var(--muted); }
.bm-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; flex: none; }
.bm-ic .ic { width: 15px; height: 15px; }
.bm-ic.t-like { background: #fdecea; color: var(--danger); } .bm-ic.t-mention { background: #dde9f5; color: var(--coach); }
.bm-ic.t-announcement { background: var(--gold-soft); color: var(--gold-dark); } .bm-ic.t-access { background: var(--ok-soft); color: var(--ok); }
.bm-empty { padding: 18px 14px; margin: 0; color: var(--muted); font-size: .86rem; }
.bm-all { display: block; text-align: center; padding: 11px; font-weight: 700; font-size: .86rem; color: var(--primary-dark); }
.notif-ic { position: relative; width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; }
.notif-badge { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.notif-badge .ic { width: 10px; height: 10px; stroke-width: 3; }
.t-like .notif-badge { background: var(--danger); } .t-mention .notif-badge { background: var(--coach); } .t-announcement .notif-badge { background: var(--gold); }
.t-access .notif-badge { background: var(--ok); }
.notif-text { flex: 1; display: flex; flex-direction: column; font-size: .92rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); flex: none; }

/* ---- @mention suggestions ----------------------------------------------------------------------------- */
.mention-wrap { position: relative; width: 100%; }
.mention-menu { position: absolute; left: 0; top: 100%; margin-top: 4px; width: 300px; max-width: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 30px rgba(25, 33, 15, .18); padding: 6px; z-index: 30; }
.mention-item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 7px 8px; border: 0; background: none; border-radius: 8px; font: inherit; text-align: left; cursor: pointer; }
.mention-item.on, .mention-item:hover { background: var(--primary-soft); }
.mi-text { display: flex; flex-direction: column; line-height: 1.25; font-size: .88rem; }
.mi-text span { color: var(--muted); font-size: .8rem; }

/* ---- imported content: sections, audio, tabs, buttons, tools ------------------------------------------- */
.course-section { margin: 30px 0 12px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark);
  display: flex; align-items: center; gap: 10px; }
.course-section::after { content: ""; flex: 1; height: 2px; background: var(--gold-soft); }
.cur-section { padding: 10px 16px 6px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); background: #fff; border-bottom: 1px solid var(--line); }
.b-audio audio { width: 100%; }
.b-tabs { padding: 4px 18px; margin-bottom: 22px; }
.b-tabs .b-text { margin: 0 0 14px; }
.b-button { margin: 4px 0 22px; }
.b-text table { border-collapse: collapse; width: 100%; margin: 0 0 14px; font-size: .92rem; display: block; overflow-x: auto; }
.b-text th, .b-text td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.b-text th { background: #f6f6f0; }
.b-text img { max-width: 100%; height: auto; border-radius: 10px; }
.b-text blockquote { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--gold); background: #faf6e6; border-radius: 0 10px 10px 0; }
.b-text h2, .b-text h3, .b-text h4 { margin: 20px 0 8px; }
.b-text hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.b-text a { color: var(--primary-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.b-embed { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; margin-bottom: 8px; }
.b-embed iframe { display: block; width: 100%; border: 0; }
.resource-page.wide { max-width: 1100px; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.res { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.res:hover { border-color: var(--primary); }
.res-text { display: flex; flex-direction: column; min-width: 0; }
.res.locked, .res.pending { opacity: .7; }
.library { display: flex; gap: 14px; align-items: center; }
.library .acct-text { flex: 1; }
.library:hover { border-color: var(--primary); }
.library.locked { opacity: .75; }
.fl-row.locked { opacity: .7; }
.call-day-ic { display: flex; justify-content: center; padding: 6px 0 2px; }
.call-day-ic .ic { width: 20px; height: 20px; color: var(--primary); }
.picks { max-height: 240px; overflow-y: auto; padding-right: 4px; }
@media (max-width: 860px) {
  .bm-panel { position: fixed; top: 62px; left: 10px; right: 10px; width: auto; }
  .res-grid { grid-template-columns: 1fr; }
}

.help-tile.locked { opacity: .78; }
.locked-res .row { margin-top: 14px; }

/* ---- the account menu (the avatar): profile, account, team links, log out; the only way to them on a phone ---- */
.memenu { position: relative; }
.memenu > summary { list-style: none; cursor: pointer; border-radius: 12px; padding: 2px 2px 2px 8px; }
.memenu > summary::-webkit-details-marker { display: none; }
.memenu > summary:hover, .memenu[open] > summary { background: var(--primary-soft); }
.mm-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(25, 33, 15, .18); z-index: 40; padding: 6px; }
.mm-head { display: flex; flex-direction: column; padding: 10px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; line-height: 1.3; }
.mm-head .small { overflow: hidden; text-overflow: ellipsis; }
.mm-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; font-weight: 600; font-size: .92rem; }
.mm-item:hover { background: var(--bg); }
.mm-item .ic { color: var(--primary-dark); }
.mm-out { border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; color: var(--danger); }
.mm-out .ic { color: var(--danger); }
@media (max-width: 860px) {
  .memenu > summary { padding: 2px; }
  .mm-panel { position: fixed; top: 62px; right: 10px; left: auto; width: min(280px, calc(100vw - 20px)); }
}

/* ---- the page footer (legal-core's, through the app's footer slot): small and muted, under the page ---------------- */
body.auth { flex-direction: column; }
[data-legal-core="footer"] { font-size: .8rem; color: var(--muted); text-align: center; padding: 20px 16px 28px; }
[data-legal-core="footer"] p { margin: 0 0 4px; }
[data-legal-core="footer"] ul { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
[data-legal-core="footer"] a { text-decoration: underline; }
body.auth [data-legal-core="footer"] { color: rgba(255, 255, 255, .78); }
.main > [data-legal-core="footer"] { border-top: 1px solid var(--line); }
@media (max-width: 860px) { .main > [data-legal-core="footer"] { padding-bottom: 92px; } }

/* ---- v0.8.0: Community Wins in the welcome, the War Room, Get Help, the admin dashboard, view-as, the tour ---- */
.hero-feed-head { display: flex; align-items: center; gap: 6px; }
.hero-feed-head .ic { width: 14px; height: 14px; color: var(--gold); }
.win-row .feed-meta b { color: var(--gold); font-weight: 700; }
.feed-share { border: 1px dashed rgba(255, 255, 255, .3); margin-top: 6px; }
.feed-share:hover { border-color: var(--gold); }
.feed-share .win-share-icon { background: var(--gold); color: #1a1a0e; flex: none; }
.hero-feed-all { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: .8rem; color: var(--khaki); padding: 8px 10px 2px; }
.hero-feed-all .ic { width: 14px; height: 14px; }
.wins-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wins-head h1 .ic { color: var(--gold); width: 26px; height: 26px; vertical-align: -3px; }
.win-result { align-self: flex-start; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-dark); background: var(--gold-soft); border-radius: 99px; padding: 2px 10px; }
.notice { background: var(--ok-soft); color: var(--ok); border: 1px solid #c4e0b6; border-radius: 10px; padding: 10px 14px; }
.form-error { background: #fdecea; color: var(--danger); border-radius: 10px; padding: 10px 14px; }
.stack-form { display: grid; gap: 14px; }
.stack-form label { display: grid; gap: 6px; font-weight: 600; }
.stack-form .btn { justify-self: start; }
.stack-form label.check { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 500; }
.stack-form label.check input { margin-top: 3px; flex: none; }
.offer-kinds { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.offer-kinds legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.offer-kinds .small { display: block; }
.offer-send { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }

.war-until { display: flex; align-items: center; gap: 6px; margin: -6px 0 12px; }
.war-until .ic { width: 15px; height: 15px; }
.war-home .calls { margin-bottom: 14px; }
.war-recent, .war-list { display: grid; gap: 10px; }
.war-recent { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.war-call { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.war-call:hover { border-color: var(--primary); }
.war-call-play { width: 38px; height: 38px; border-radius: 50%; background: var(--night); color: var(--gold); display: flex; align-items: center; justify-content: center; flex: none; }
.war-call-text { display: flex; flex-direction: column; min-width: 0; }
.war-call-title { font-weight: 800; line-height: 1.3; }
.war-hero { display: block; }
.war-tagline { margin: 0 0 6px; }
.war-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.war-cat { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.war-cat:hover { border-color: var(--primary); }
.war-cat-band { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 104px; padding: 16px; font-size: 1.15rem; font-weight: 800; text-align: left; }
.war-cat-band .ic { width: 34px; height: 34px; color: var(--gold); }
.war-cat-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; flex: 1; }
.war-cat-meta { color: var(--gold-dark); font-weight: 700; margin-top: auto; }
.war-join { border-radius: 18px; padding: 24px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; box-shadow: 0 10px 30px rgba(25, 33, 15, .18); }
.war-join h2 { font-size: 1.35rem; color: #fff; margin: 4px 0 10px; display: block; }
.war-join-page { margin-bottom: 18px; } .war-join-page h1 { color: #fff; }
.war-pitch { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.war-pitch li { display: flex; gap: 8px; align-items: flex-start; }
.war-pitch .ic { color: var(--gold); width: 16px; height: 16px; margin-top: 4px; }
.war-reply { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.war-reply-body { margin-top: 4px; }
.war-reply-form { display: grid; gap: 10px; margin-top: 14px; } .war-reply-form .btn { justify-self: start; }

.help-tiles .calls-left { margin-top: auto; font-size: .85rem; color: var(--gold-dark); }
.help-tiles .calls-left b { font-size: 1.05rem; }
.book-head { display: flex; align-items: center; gap: 18px; border-radius: 18px; padding: 22px 24px; margin-bottom: 18px; flex-wrap: wrap; }
.book-head h1 { color: #fff; margin: 2px 0 4px; font-size: 1.5rem; }
.book-head p { margin: 0; color: var(--khaki); max-width: 52ch; }
.book-head-text { flex: 1; min-width: 220px; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.4rem; }
.book-left { display: flex; flex-direction: column; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 10px 18px; }
.book-left b { font-size: 2rem; line-height: 1; color: var(--gold); }
.book-left span { font-size: .78rem; color: var(--khaki); }
.book-form { display: grid; gap: 16px; }
.book-days { display: grid; gap: 4px; }
.book-day { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.book-day:first-child { border-top: 0; }
.book-date { width: 64px; flex: none; display: flex; flex-direction: column; line-height: 1.2; }
.book-date b { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.book-date span { font-weight: 800; }
.book-times { display: flex; flex-wrap: wrap; gap: 8px; }
.time-chip { position: relative; cursor: pointer; }
.time-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.time-chip span { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-weight: 700; font-size: .92rem; }
.time-chip:hover span { border-color: var(--primary); }
.time-chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.time-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--primary-soft); }
.book-note { display: grid; gap: 6px; font-weight: 600; }
.book-form .btn { justify-self: start; }
.slots { display: grid; gap: 6px; }
.slot-day { font-weight: 800; margin-top: 8px; }
.slot { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-weight: 400 !important; cursor: pointer; }
.slot:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.slot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.slot-row.past { opacity: .6; }
.slot-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin: 12px 0 16px; }
.pick { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.pick:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.admin-group { margin-top: 18px; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--muted); }
.admin-links { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.admin-link { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.admin-step { width: 26px; height: 26px; border-radius: 50%; background: var(--night); color: var(--gold); font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; flex: none; }
.admin-what { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.admin-link-go { display: flex; gap: 8px; flex: none; }
.viewas-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--gold-soft); border-bottom: 1px solid var(--gold); padding: 10px 24px; font-size: .9rem; }
.viewas-bar form { margin-left: auto; }
/* The member's pending offer (its live offer link): at the top of every screen, counting down. */
.offer-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--danger); color: #fff; padding: 10px 24px; font-size: .95rem; text-decoration: none; }
.offer-bar svg { width: 18px; height: 18px; flex: none; }
.offer-bar__go { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 800; text-decoration: underline; }
.offer-bar:hover .offer-bar__go { text-decoration: none; }
@media (max-width: 760px) { .offer-bar { padding: 10px 16px; font-size: .88rem; } .offer-bar__go { margin-left: 0; } }
.viewas-note { background: #fdecea; border-color: var(--danger); color: var(--danger); }

/* the tour: a dimmed page, the part it is about cut out of the dimming, and a card beside it */
.tour-block { position: fixed; inset: 0; z-index: 90; }
.tour-hole { position: fixed; z-index: 91; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(10, 14, 6, .62); pointer-events: none; transition: all .2s; }
.tour-card { position: fixed; z-index: 92; background: #fff; color: var(--ink); border-radius: 14px; padding: 16px 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.tour-card h3 { font-size: 1.05rem; margin: 6px 0 4px; }
.tour-card p { margin: 0 0 10px; font-size: .92rem; color: var(--muted); }
.tour-top, .tour-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tour-dots { display: flex; gap: 5px; margin-bottom: 12px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.tour-dots i.on { background: var(--gold); } .tour-dots i.done { background: var(--primary); }
@media (max-width: 860px) {
  .war-recent { grid-template-columns: 1fr; }
  .viewas-bar { padding: 10px 16px; }
  .admin-link { flex-direction: column; align-items: flex-start; }
}

/* Home's War Room hero: an ad-style banner. The business's look sets its colours (--war-hero-bg, --war-hero-ink,
   --war-hero-accent); its picture (setting war_room.hero_image) fills the banner, the words sit on its right. */
.war-hero-home { position: relative; display: flex; justify-content: flex-end; align-items: center; min-height: 300px; overflow: hidden;
  border-radius: 18px; margin-bottom: 30px; color: var(--war-hero-ink, #fff); background-color: var(--war-hero-bg, var(--night));
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18); transition: transform .15s, box-shadow .15s; }
.war-hero-home.has-picture { background-image: var(--war-hero-picture); background-size: cover; background-position: left center; }
.war-hero-home:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0, 0, 0, .22); }
.whh-text { width: 46%; padding: 28px 32px 28px 0; display: flex; flex-direction: column; gap: 8px; }
.whh-eyebrow { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--war-hero-accent, var(--gold)); }
.whh-eyebrow .ic { width: 15px; height: 15px; }
.whh-title { font-size: 2.1rem; line-height: 1.08; font-weight: 900; letter-spacing: -.01em; }
.whh-line { font-size: 1.08rem; line-height: 1.45; max-width: 42ch; }
.whh-next { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .92rem; }
.whh-next .ic { width: 17px; height: 17px; color: var(--war-hero-accent, var(--gold)); }
.whh-until { font-size: .84rem; opacity: .75; }
/* Home's pair: the War Room card and the BlackHawk card side by side, each the picture over its words. */
.home-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 30px; }
.home-pair .war-hero-home { flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 0; margin-bottom: 0; }
.home-pair .war-hero-home.has-picture { background-size: 100% auto; background-position: center top; background-repeat: no-repeat; padding-top: 52%; }
.home-pair .whh-text { width: auto; padding: 18px 22px 22px; background: var(--war-hero-bg, var(--night)); flex: 1; justify-content: space-between; gap: 14px; }
.home-pair .whh-title { font-size: 1.45rem; }
.home-pair .whh-line { font-size: .98rem; }
.whh-button { align-self: flex-start; }
.hero-news { margin-top: 6px; }
.hero-blog { margin-top: 10px; }
.announcement h2 { margin-bottom: 4px; }
.announcement-body { margin-top: 10px; }
/* "Show more" under a full page's list (What's New, the Blog, Community Wins): ten more at a time */
.show-more { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .home-pair { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .war-hero-home { flex-direction: column; align-items: stretch; min-height: 0; }
  .war-hero-home.has-picture { background-size: 180% auto; background-position: left top; background-repeat: no-repeat; padding-top: 52%; }
  .whh-text { width: auto; padding: 18px 20px 22px; background: var(--war-hero-bg, var(--night)); }
  .whh-title { font-size: 1.6rem; }
}

/* the menu's unread count (Messages) */
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: #1a1a0e; font-size: .72rem;
  font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.tabs a { position: relative; }
.tabs .nav-count { position: absolute; top: 0; right: calc(50% - 22px); margin: 0; min-width: 17px; height: 17px; font-size: .64rem; }
.pill { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 99px; background: #eef0f3; color: var(--muted); font-size: .72rem; font-weight: 700; }

/* "Have A Question?" at the foot of the War Room's screens and every course module, and its pop-up */
.question { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 14px 0 6px; }
.question-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.module .question { box-shadow: none; background: #fafbfc; margin: 10px 0 0; }
.question-dialog { border: 0; border-radius: var(--radius); padding: 22px; width: min(520px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(20, 28, 40, .3); }
.question-dialog::backdrop { background: rgba(20, 28, 40, .55); }
.question-head { display: flex; align-items: center; justify-content: space-between; }
.question-head h2 { margin: 0; }
.question-head .linkbtn .ic { transform: rotate(45deg); width: 22px; height: 22px; }

/* Messages: the list and one conversation beside it (the phone shows one at a time) */
.msgwrap { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 16px; align-items: start; }
.msgwrap.solo { grid-template-columns: minmax(0, 720px); }
.tlist { padding: 0; overflow: hidden; }
.tlist-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.titem { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.titem:hover { background: #fafbfc; } .titem.on { background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.titem.unread .ti-top b { color: var(--primary-dark); }
.ti-b { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ti-top { display: flex; justify-content: space-between; gap: 8px; }
.ti-subject { font-size: .86rem; font-weight: 600; }
.ti-snip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv { padding: 0; display: flex; flex-direction: column; min-height: 420px; }
.conv-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.conv-h .back { margin: 0; }
.conv-sub { display: block; }
.conv-new { padding: 18px; }
.mob-back { display: none; }
.msgs { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; max-height: 60vh; overflow-y: auto; }
.plan-msgs { max-height: none; padding: 6px 0 12px; }
.msg { display: flex; } .msg.me { justify-content: flex-end; }
.msg .mb { max-width: min(560px, 85%); }
.mtext { background: #f1f3f6; border-radius: 14px 14px 14px 4px; padding: 10px 14px; overflow-wrap: anywhere; }
.msg.me .mtext { background: var(--primary); color: #fff; border-radius: 14px 14px 4px 14px; }
.mb details summary { cursor: pointer; font-weight: 700; padding: 10px 14px; background: var(--primary); color: #fff; border-radius: 14px; }
.mb details[open] summary { border-radius: 14px 14px 0 0; }
.mb details .mtext { border-radius: 0 0 4px 14px; }
.mmeta { font-size: .75rem; color: var(--muted); margin-top: 3px; } .msg.me .mmeta { text-align: right; }
.msys { align-self: center; font-size: .8rem; color: var(--muted); background: var(--gold-soft); border-radius: 99px; padding: 4px 12px; text-align: center; }
.composer { border-top: 1px solid var(--line); padding: 12px 18px; display: grid; gap: 8px; }
.plan-msgs + .composer { padding: 12px 0 0; }
.comp-bar { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.comp-bar .small { margin-right: auto; }

/* My Plan: the intake's progress, its screens, the plan's steps */
.plan-progress { display: grid; gap: 2px; margin: 10px 0 16px; }
.intake-progress { margin: 6px 0 14px; } .intake-progress .row { justify-content: space-between; }
.intake-field { display: grid; gap: 6px; font-weight: 600; border: 0; padding: 0; margin: 0; }
.intake-field legend { padding: 0; margin-bottom: 6px; }
.intake-field.has-error input, .intake-field.has-error select, .intake-field.has-error textarea { border-color: var(--danger); }
.intake-field .form-error { padding: 4px 10px; }
.intake-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.req { color: var(--danger); }
.intake-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; }
.plan-steps { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.plan-step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.plan-step span { display: grid; gap: 2px; }
.plan-step .tick { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.plan-step.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.plan-step.done b { text-decoration: line-through; color: var(--muted); }

.admin-tiles { margin-top: 4px; }

@media (max-width: 860px) {
  .msgwrap { grid-template-columns: 1fr; }
  .msgwrap.has-conv .tlist { display: none; }
  .msgwrap.has-conv .mob-back { display: inline-flex; }
  .msgs { max-height: none; }
  .question { flex-wrap: wrap; }
}

/* ---- The team's workspaces (Workspace): inside the members' area, the team's own colours — a dark teal sidebar, so a
   team member always knows they are working, not looking at the member's site. ---------------------------------------- */
.ws-body { --ws-side: #10302f; --ws-side-2: #18403f; --ws-accent: #1f8a85; --ws-accent-soft: rgba(31, 138, 133, .12); }
.ws-app { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.ws-side { background: var(--ws-side); color: #e6f0ef; display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.ws-side .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; padding: 4px 8px 14px; }
.ws-side .brand img { border-radius: 10px; }
.ws-side .brand small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8fd0c9; }
.ws-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #cfe3e1; font-weight: 600; font-size: .93rem; }
.ws-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.ws-item.on { background: var(--ws-side-2); color: #fff; box-shadow: inset 3px 0 0 var(--ws-accent); }
.ws-item .ic { width: 18px; height: 18px; flex: none; }
.ws-item span { flex: 1; min-width: 0; }
.ws-count { background: var(--ws-accent); color: #fff; border-radius: 99px; font-size: .72rem; padding: 1px 8px; }
.ws-label { margin: 16px 10px 6px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8fd0c9; }
.ws-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 2px; }
.ws-member-site { color: #fff; }
.ws-me { display: flex; align-items: center; gap: 10px; padding: 10px; }
.ws-me small { display: block; color: #8fd0c9; font-size: .75rem; }
.ws-main { display: flex; flex-direction: column; min-width: 0; }
.ws-top { display: flex; align-items: center; gap: 12px; padding: 18px 26px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.ws-top h1 { margin: 0; font-size: 1.4rem; flex: 1; }
.ws-pill { background: var(--ws-accent-soft); color: #145e5a; font-weight: 800; font-size: .75rem; border-radius: 99px; padding: 4px 12px; }
.ws-view { padding: 22px 26px 30px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.ws-body .btn-primary { background: var(--ws-accent); border-color: var(--ws-accent); }
.pill-attn { background: #fde8e8; color: #b42318; }
.pill-ok { background: #e3f4ec; color: #1f7a4c; }
.ws-empty { color: var(--muted); padding: 16px; }
.ws-pad { padding: 0 18px; }
.ws-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ws-inline select { width: auto; max-width: 100%; min-width: 0; padding: 6px 10px; }
/* the inbox: list · conversation · the member */
.ws-inbox { display: grid; grid-template-columns: 300px minmax(0, 1fr) 280px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 70vh; }
.ws-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.ws-seg { display: flex; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ws-seg a { padding: 6px 12px; border-radius: 99px; font-size: .85rem; font-weight: 700; color: var(--muted); background: #f1f3f5; }
.ws-seg a.on { background: var(--ws-side); color: #fff; }
.ws-seg b { margin-left: 4px; }
.ws-scroll { overflow-y: auto; max-height: 72vh; }
.ws-titem { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ws-titem:hover { background: #f7f9f9; }
.ws-titem.on { background: var(--ws-accent-soft); }
.ws-ti { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.ws-ti-top { display: flex; justify-content: space-between; gap: 8px; }
.ws-ti-sub { font-size: .86rem; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ws-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.ws-conv { display: flex; flex-direction: column; min-width: 0; }
.ws-conv-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ws-conv-who { display: flex; flex-direction: column; min-width: 0; }
.ws-actbar { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.ws-msgs { max-height: none; flex: 1; }
.ws-body .msg.me .mtext { background: var(--ws-accent); }
.ws-ctx { border-left: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 14px; background: #fbfcfc; min-width: 0; }
.ws-ctx-h { display: flex; gap: 10px; align-items: center; }
.ws-ctx-h > span:last-child { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.ws-ctx-sec h5 { margin: 0 0 4px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ws-ctx-sec p { margin: 0; }
.ws-res-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 3px 0; }
.ws-drop summary { cursor: pointer; font-weight: 700; color: #145e5a; display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.ws-drop .stack-form { margin-top: 8px; }
/* the other sections */
.ws-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ws-kpi { padding: 14px 16px; display: flex; flex-direction: column; }
.ws-kpi b { font-size: 1.5rem; }
.ws-table-card { padding: 4px 16px; overflow-x: auto; }
.ws-table { width: 100%; border-collapse: collapse; }
.ws-table th, .ws-table td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.ws-table thead th { border-top: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ws-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.ws-h2 { margin: 6px 0 0; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.ws-h3 { margin: 12px 0 4px; font-size: .95rem; }
.ws-answers { display: grid; gap: 6px; margin: 0; }
.ws-answers dd { margin: 0; font-weight: 600; white-space: pre-wrap; }
.ws-step { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 6px; }
.ws-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ws-win h3 { margin: 6px 0; }
.ws-win-result { display: flex; align-items: center; gap: 6px; font-weight: 800; margin: 0 0 6px; }
.ws-fb { border-top: 1px solid var(--line); padding: 10px 0; }
.ws-fb:first-of-type { border-top: 0; }
.ws-fb p { margin: 4px 0 8px; }
.ws-row { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--line); }
.ws-row:first-child { border-top: 0; }
.ws-req-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ws-req-body { white-space: pre-wrap; margin: 8px 0 12px; }
.ws-req.done { opacity: .7; }
/* Requests (the manager): one list worked through, as Wins are; each row its member, the request and Mark handled */
.ws-req-row { gap: 4px; }
.ws-req-line { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.ws-req-line > span { flex: 1 1 260px; min-width: 0; }
.ws-req-line > form { margin-left: auto; flex-shrink: 0; }
.ws-req-row .ws-req-body { margin: 0; }
.ws-search { display: flex; gap: 8px; max-width: 520px; }
@media (max-width: 1180px) {
  .ws-inbox { grid-template-columns: 260px minmax(0, 1fr); }
  .ws-ctx { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .ws-app { grid-template-columns: minmax(0, 1fr); }
  .ws-side { position: static; height: auto; }
  .ws-inbox { grid-template-columns: minmax(0, 1fr); }
  .ws-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .ws-scroll { max-height: 40vh; }
  .ws-view { padding: 16px; }
}
/* the member's site, for a team member: a bar back to their workspace */
.ws-return { display: flex; align-items: center; gap: 10px; background: #10302f; color: #e6f0ef; padding: 8px 16px; font-size: .9rem; }
.ws-return .ic { width: 16px; height: 16px; color: #8fd0c9; }
.ws-return span { flex: 1; }
/* Announcements: members' feedback, under each one */
.feedback-list { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.feedback-row { display: flex; gap: 10px; }
.feedback-row > span:last-child { display: flex; flex-direction: column; }
.feedback-body { white-space: pre-wrap; }
.feedback-form { margin-top: 12px; }
.feedback-form summary { list-style: none; display: inline-flex; cursor: pointer; }
.feedback-form .stack-form { margin-top: 10px; }
/* an admin editing a course or a lesson in place; Export Course Contents */
.admin-edit { margin: 0 0 12px; }
.edit-form > .card { margin-bottom: 0; }
.edit-block { display: grid; gap: 12px; }
.edit-block label, .edit-module label { display: grid; gap: 6px; font-weight: 600; }
.edit-preview { max-width: 420px; }
.edit-tab { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.edit-tab:first-of-type { border-top: 0; padding-top: 0; }
.edit-lessons { margin: 8px 0 4px; padding-left: 22px; color: var(--muted); }
.edit-module + .edit-module { padding-top: 14px; border-top: 1px solid var(--line); }
.edit-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rich { border: 1px solid #cfd2c4; border-radius: 10px; background: #fff; overflow: hidden; }
.rich-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: #fafaf6; }
.rich-bar button { font: inherit; font-size: .85rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.rich-bar button:hover, .rich-bar button.on { border-color: var(--primary); color: var(--primary); }
.rich-area { min-height: 140px; max-height: 520px; overflow: auto; padding: 12px 14px; outline: 0; }
.rich-area[hidden] { display: none; }
/* the Blog's editor shows the post as members see it; a picture in a post fits its column */
.blog-editor { display: grid; gap: 6px; }
.blog-editor .label { font-weight: 600; }
.rich-area.announcement-body { max-height: 70vh; }
.announcement-body img { max-width: 100%; height: auto; border-radius: 8px; }
.rich-src { border: 0; border-radius: 0; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.export-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.export-form > label { display: grid; gap: 6px; font-weight: 600; min-width: 260px; flex: 1; }
.export-type { border: 0; margin: 0; padding: 0; display: flex; gap: 14px; align-items: center; }
.export-type legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
/* Support · Members: a member's tools, purchases and Billing History; every button a pop-up */
.sup-members { display: grid; gap: 14px; max-width: 920px; }
.sup-member { margin-bottom: 0; }
.sup-who { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.sup-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.sup-tools form { display: inline; }
.sup-result { margin: 12px 0 0; }
.sup-copy { display: flex; gap: 6px; margin-top: 8px; }
.sup-copy input { font-size: .85rem; }
.sup-order { border-top: 1px solid var(--line); padding: 12px 0; display: grid; gap: 4px; }
.sup-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.sup-amount { width: 120px; padding: 6px 8px; margin-left: 6px; }
.question-dialog .stack-form label.check { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.sup-choices { display: grid; gap: 8px; }
.sup-choices .btn { flex-direction: column; align-items: flex-start; text-align: left; }
.btn.sup-danger, .sup-danger { color: var(--danger); }
.sup-log summary { cursor: pointer; color: var(--muted); }
.sup-log > div { padding: 4px 0; }
.sup-bill { display: grid; }
.sup-bill-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 100px 150px auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.sup-bill-row > span:last-child { display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 700px) {
  .sup-bill-row { grid-template-columns: 1fr auto; }
  .sup-bill-row > span:nth-child(2) { grid-column: 1 / -1; }
}
/* the customer's flag and refund count; each course's lessons completed and Last Accessed */
.sup-flagline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.sup-flagline:empty { display: none; }
.sup-flag { display: flex; gap: 8px; align-items: flex-start; margin: 0; flex: 1 1 100%; }
.sup-bill-row.sup-course-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.sup-bill-row.sup-course-row > span:last-child { justify-content: flex-start; }
@media (max-width: 700px) {
  .sup-bill-row.sup-course-row { grid-template-columns: 1fr; }
}
.desk-side .sup-bill-row.sup-course-row { grid-template-columns: 1fr; }
/* Support · the desk (the business's old desk, laid out as it was): its bar, the Board's columns, a ticket's thread and
   reply bar, the member on the right */
.ws-body [hidden] { display: none !important; } /* a form, a button: hidden means hidden, whatever its own display */
.desk-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.desk-tabs { padding: 0; border: 0; }
.desk-tabs a { display: inline-flex; align-items: center; gap: 6px; }
.desk-tabs .ic { width: 15px; height: 15px; }
.desk-tools { display: flex; gap: 8px; align-items: center; }
.desk-bell { position: relative; }
.desk-bell > summary { list-style: none; cursor: pointer; }
.desk-bell > summary::-webkit-details-marker { display: none; }
.desk-bell .count { background: var(--danger); color: #fff; border-radius: 99px; font-size: .7rem; padding: 0 6px; }
.desk-bell-list { position: absolute; right: 0; top: calc(100% + 6px); width: min(340px, calc(100vw - 32px)); max-height: 60vh; overflow-y: auto; z-index: 20; padding: 0; margin: 0; }
.desk-bell-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.desk-bell-h form { display: inline; }
.desk-bell-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-bottom: 1px solid var(--line); margin: 0; }
.desk-bell-row.unread { background: var(--ws-accent-soft); }
.desk-clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.desk-toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.desk-toolbar .ws-search { flex: 1; }
.desk-board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.desk-col { flex: 0 0 272px; background: #f3f5f5; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; max-height: 75vh; }
.desk-col.over { border-color: var(--ws-accent); background: var(--ws-accent-soft); }
.desk-col > header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.desk-col > header .pill { margin-left: auto; }
.desk-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.desk-dot.s-new { background: #3b82f6; } .desk-dot.s-new_blackhawk { background: #10b981; } .desk-dot.s-in_progress { background: #eab308; }
.desk-dot.s-billing { background: #a855f7; } .desk-dot.s-waiting { background: #f97316; } .desk-dot.s-escalation { background: #ef4444; }
.desk-dot.s-resolved { background: #22c55e; }
.desk-cards { display: flex; flex-direction: column; gap: 8px; padding: 8px; overflow-y: auto; min-height: 60px; }
.desk-card { display: flex; flex-direction: column; gap: 3px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--ink); cursor: grab; }
.desk-card:hover { border-color: #b9c4c3; }
.desk-card.unread { border-left: 3px solid #22c55e; }
/* a ticket another team member is working in (its hold): another colour on the Board, and the banner on the ticket */
.desk-card.held { background: #fff4e5; border-color: #f0b35a; }
.desk-held-by { display: flex; align-items: center; gap: 4px; color: #9a5b00; font-weight: 700; }
.desk-held-by svg { width: 14px; height: 14px; }
.desk-held { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.desk-held form { margin-left: auto; }
.desk-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; min-width: 0; }
.desk-card-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.desk-card .pill .ic { width: 11px; height: 11px; }
.desk-pri { font-size: .7rem; font-weight: 800; border-radius: 6px; padding: 1px 6px; color: #fff; background: #6b7280; text-transform: lowercase; flex: none; }
.desk-pri-urgent { background: #dc2626; } .desk-pri-high { background: #f97316; } .desk-pri-normal { background: #3b82f6; } .desk-pri-low { background: #6b7280; }
.desk-internal { background: #d946ef; color: #fff; }
.desk-who { background: #4f46e5; color: #fff; }
.desk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.desk-calls { display: grid; gap: 10px; max-width: 760px; }
.desk-call audio { width: 100%; margin: 6px 0; }
.desk-note summary { cursor: pointer; color: var(--muted); }
.desk-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.desk-ticket-h { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 12px 16px; margin: 0; }
.desk-ticket-h label { display: grid; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.desk-ticket-h select, .desk-ticket-h input[type="datetime-local"] { padding: 6px 8px; width: auto; max-width: 100%; }
.desk-ticket-h .desk-int { display: flex; flex-direction: row; align-items: center; gap: 6px; }
.desk-ticket { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 14px; align-items: start; }
.desk-thread { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.desk-msgs { display: flex; flex-direction: column; gap: 10px; padding: 16px; max-height: 60vh; overflow-y: auto; }
.desk-msg { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #f7f8f8; max-width: 92%; }
.desk-msg.d-outbound { margin-left: auto; background: #e8f4f3; border-color: #bfdedb; }
.desk-msg.c-sms.d-outbound { background: #e9f7ee; border-color: #bfe3cc; }
.desk-msg.c-system { background: #fff; color: var(--muted); font-size: .85rem; max-width: 100%; }
.desk-msg.c-voice { background: #eef6f4; }
.desk-msg-h { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.desk-msg-h > span:first-of-type { margin-left: auto; }
.desk-email { overflow-wrap: anywhere; }
.desk-email img { max-width: 100%; height: auto; }
.desk-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.desk-files img { max-height: 140px; border-radius: 8px; border: 1px solid var(--line); }
.desk-files audio { width: 100%; max-width: 320px; }
.desk-notes { border-top: 1px solid var(--line); padding: 10px 16px; background: #fffbea; }
.desk-notes summary { cursor: pointer; font-weight: 700; color: #8a6d00; display: flex; align-items: center; gap: 6px; }
.desk-note-row { border: 1px solid #f0dfa0; background: #fff7d6; border-radius: 10px; padding: 8px 10px; margin-top: 8px; }
.desk-reply { border-top: 1px solid var(--line); padding: 12px 16px; display: grid; gap: 10px; }
.desk-modes { padding: 0; border: 0; }
.desk-send { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; }
.desk-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.desk-side .card { margin: 0; }
.desk-side .sup-member { padding: 14px; }
.desk-side .sup-bill-row { grid-template-columns: 1fr auto; }
.desk-side .sup-bill-row > span:nth-child(2) { grid-column: 1 / -1; }
.desk-member-flag { align-self: flex-start; gap: 4px; margin: 0; }
.desk-member-flag .ic { width: 12px; height: 12px; }
.desk-contact summary { cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.desk-contact .stack-form { margin-top: 10px; }
.desk-timer { font-variant-numeric: tabular-nums; font-weight: 700; }
@media (max-width: 1180px) {
  .desk-ticket { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .desk-col { flex-basis: 240px; max-height: 60vh; }
  .desk-msgs { max-height: none; }
  .desk-msg { max-width: 100%; }
  .desk-ticket-h { padding: 10px 12px; }
  .desk-ticket-h label { flex: 1 1 140px; }
}
/* the Blog */
.blog-card h2 a { color: inherit; }
.blog-excerpt { margin: 6px 0 12px; color: var(--ink); }
.blog-post h1 { margin-bottom: 4px; }
/* Support · Members: several people match — pick one */
.sup-match { color: var(--ink); flex-direction: row; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.sup-match:hover { background: #f7f9f9; }
/* the plan as written (My Plan, and Sales showing it on a call) */
.plan-doc-head { border-bottom: 1px solid var(--line); margin-bottom: 14px; padding-bottom: 8px; }
.plan-doc-title { font-size: 1.5rem; margin: 2px 0 6px; }
.plan-sec { margin: 0 0 18px; }
.plan-sec h3 { font-size: 1.15rem; margin-bottom: .3em; }
.plan-sub { color: var(--gold-dark); font-weight: 700; margin-bottom: .4em; }
.plan-body h4 { font-size: .98rem; margin: .9em 0 .3em; color: var(--primary-dark); }
.plan-body ul { margin: 0 0 .8em; padding-left: 1.2em; }
.plan-body li { margin: .15em 0; }
.plan-edit { margin-top: 8px; border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px; }
.plan-edit label { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.plan-view-bar { margin-bottom: 10px; flex-wrap: wrap; }
/* the plan builder: [ the template, filled ] [ Submit Plan ] [ their answers ] */
.plan-build { display: grid; grid-template-columns: minmax(0, 2fr) minmax(160px, .6fr) minmax(0, 1.2fr); gap: 14px; align-items: start; }
.plan-build-sec { border: 0; border-top: 1px solid var(--line); padding: 12px 0 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.plan-build-sec label { display: flex; flex-direction: column; gap: 4px; }
.plan-blocks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.plan-build-submit { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 1080px) { .plan-build { grid-template-columns: 1fr; } .plan-build-submit { position: static; } }
/* the 1-on-1 call: open times by day; the Sales calendar's weekdays */
.booking-day { border: 0; padding: 0; margin: 0 0 12px; }
.booking-times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.booking-time { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; background: #fff; }
.booking-time:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.sales-day { border: 0; padding: 0; margin: 0; gap: 8px; flex-wrap: wrap; align-items: center; }
.sales-day input[type=time] { width: auto; }
.sales-day label.check { min-width: 120px; }
.sales-call { justify-content: space-between; gap: 10px; }
@media print {
  .side, header.top, nav.tabs, footer, .no-print, .page-head, #talk, .plan-call, .view-bar, [data-legal-core] { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 0; }
  .plan-sec { break-inside: avoid-page; }
}
/* the plan product's sales page: its letter framed edge to edge in the members' area's content column */
.sale-frame { display: block; width: 100%; height: 2400px; border: 0; }

/* BUSY — the design library's block (1.2.0, app/css/blocks-more.css): a button that is working shows a turning ring
   before its label and takes no second press until the answer comes (busy.js sets aria-busy="true"). */
:root { --pe-busy-size: 1em; --pe-busy-line: 2px; --pe-busy-speed: .7s; --pe-busy-dim: .8; }
button[aria-busy="true"], .btn[aria-busy="true"] { cursor: progress; pointer-events: none; opacity: var(--pe-busy-dim); }
button[aria-busy="true"]::before, .btn[aria-busy="true"]::before { content: ""; display: inline-block; flex: none; width: var(--pe-busy-size); height: var(--pe-busy-size); margin-right: .45em;
  vertical-align: -.15em; border: var(--pe-busy-line) solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: pe-busy-turn var(--pe-busy-speed) linear infinite; }
@keyframes pe-busy-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { button[aria-busy="true"]::before, .btn[aria-busy="true"]::before { animation: none; } }
