/* Live Ready look: light and quiet. One typeface (Geist), soft off-white background, white panels,
   fine gray lines. Red is reserved for "live" and "needs you". Loaded after styles.css. */

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f1f0ed;
  --ink: #16171a;
  --ink-2: #4a4c52;
  --ink-3: #6f7178;
  --line: #e7e6e3;
  --line-2: #d6d4d0;
  --accent: #d50a00;
  --accent-ink: #a30800;
  --accent-soft: #fdeceb;
  --info: #3c3e44;
  --info-soft: #f1f0ed;
  --radius: 10px;
  --shadow: none;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
}
body { font-size: 14.5px; }

/* Type: one family, hierarchy from size and weight */
h1 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 15.5px; font-weight: 600; }
.eyebrow { font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.page-head { margin: 10px 0 22px; }
.page-head p { color: var(--ink-3); font-size: 14.5px; }

/* Shell */
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 24px 14px; }
.brand-mark, .brand-name, .brand-sub { display: none; }
.side .brand { padding: 0 6px; }
.side .brand .brand-logo { height: 24px; width: auto; display: block; }
.top-brand .brand-logo { height: 20px; }
.client-chip { margin: 18px 6px 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 2px; }
.client-chip span { font-size: 12.5px; color: var(--ink-3); }
.client-chip b { font-size: 14px; font-weight: 600; color: var(--ink); }
.nav { gap: 2px; margin-top: 4px; }
.nav a { border-radius: 7px; font-weight: 500; font-size: 14.5px; color: var(--ink-2); padding: 9px 10px; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { background: var(--surface-2); color: var(--ink); font-weight: 600; box-shadow: none; }
.nav .count { border-radius: 99px; font-weight: 600; }
.me { border-top: 1px solid var(--line); border-radius: 0; padding: 14px 4px 0; }
.avatar { background: var(--surface-2); color: #3c3e44; font-weight: 600; }
.avatar.ink { background: var(--ink); color: #fff; }

.topbar { background: rgba(247, 247, 245, .92); border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--line); }
.crumbs b { font-weight: 600; }
.seg { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.seg button { border-radius: 6px; font-weight: 500; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: #fff; box-shadow: none; }
.icon-btn { border-radius: 8px; }
.page { max-width: 1160px; padding-top: 20px; }

/* Primitives */
.card { border-radius: var(--radius); box-shadow: none; border-color: var(--line); }
.card-head h3 .i { color: var(--ink-3); }
.btn { border-radius: 7px; font-weight: 600; border-color: var(--line-2); }
.btn.primary { background: var(--ink); border-color: var(--ink); }
.btn.primary:hover { background: #2c2d31; }
.btn.live { background: var(--accent); border-color: var(--accent); }
.link { font-weight: 600; }
.tag { border-radius: 99px; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; padding: 3px 9px; background: var(--surface-2); color: var(--ink-2); }
.tag.ok { background: #e9f4ec; color: #1b6b3a; }
.tag.warn { background: #fbf1df; color: #8a5a00; }
.tag.live { background: var(--accent-soft); color: var(--accent-ink); }
.tag.info { background: var(--surface-2); color: var(--ink-2); }
.bar { height: 6px; border-radius: 3px; background: #ebeae6; }
.bar > span { border-radius: 3px; }
.status-ico.done { background: var(--ink); border-color: var(--ink); }
.status-ico.session { border-color: var(--line-2); color: var(--ink-2); background: var(--surface); }
.status-ico.session.done { background: var(--ink); border-color: var(--ink); color: #fff; }
.node.done { background: var(--ink); border-color: var(--ink); }
.node.sess { border-color: var(--line-2); color: var(--ink-2); background: var(--surface); }
.node.sess.done { background: var(--ink); border-color: var(--ink); }
.phase-track.filled::before { background: var(--ink); }

/* Stats: one ruled strip instead of separate tiles */
.grid.g4:has(> .kpi), .grid.g3:has(> .kpi) { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card.kpi { border: 0; border-radius: 0; background: transparent; padding: 16px 18px; }
.grid:has(> .kpi) > .kpi + .kpi { border-left: 1px solid var(--line); }
.kpi > span:first-child { font-size: 13px; color: var(--ink-3); }
.kpi b { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .xs.muted { font-size: 12.5px; color: var(--ink-3); }

/* Tables */
.table th { font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); background: var(--surface); border-bottom: 1px solid var(--line); }

/* Icons: quiet gray, no tinted squares */
.how .ico, .drill .ico, .mini-link .ico { background: transparent; color: var(--ink-3); }

/* Stage bars on the owner view */
.stages span { background: #ebeae6; height: 6px; border-radius: 3px; }
.stages span.on { background: var(--ink); }
.stages span.cur { background: var(--accent); }

/* Home hero and featured drills: light, not black */
.next-up { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.next-up .eyebrow, .next-up .muted, .next-up .meta { color: var(--ink-3); }
.next-up .btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.next-up .bar { background: #ebeae6; }
.next-up .bar > span { background: var(--accent); }
.next-up .tag { background: var(--surface-2) !important; color: var(--ink-2) !important; }
.drill.featured { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.drill.featured .muted { color: var(--ink-3); }
.drill.featured .ico { background: var(--surface-2); color: var(--ink-2); }
.drill.featured .tag { background: var(--surface-2); color: var(--ink-2); }
.drill.featured .btn { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Approval banner + run of show (owner) */
.alert-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; background: #fdf6f5; border-bottom: 1px solid var(--line); }
.alert-row .avatar { background: #f9e1de; color: var(--accent-ink); }
.alert-row h3 { margin: 0; }
.alert-row p { margin: 2px 0 0; color: var(--ink-3); font-size: 13.5px; }
.ros { display: grid; grid-template-columns: 44px 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 16px; }
.ros + .ros { border-top: 1px solid var(--line); }
.ros .t { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.ros img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); padding: 3px; }
.ros b { display: block; font-weight: 600; }
.ros span { color: var(--ink-3); font-size: 13px; }

/* Inputs */
.input { border-radius: 7px; }
.input:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }

/* Mobile tab bar */
@media (max-width: 900px) {
  .tabbar { background: #fff; border-top: 1px solid var(--line); }
  .tabbar a { font-weight: 500; }
  .tabbar a.active { color: var(--ink); font-weight: 600; }
  h1 { font-size: 25px; }
  .grid.g4:has(> .kpi) { grid-template-columns: 1fr 1fr; }
  .grid.g4:has(> .kpi) > .kpi:nth-child(3) { border-left: 0; }
  .grid.g4:has(> .kpi) > .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .kpi b { font-size: 25px; }
}

/* Guided tour */
.tour-btn { border-color: var(--line-2); color: var(--ink); }
.tour-btn:hover { background: var(--surface-2); }
body.touring .tour-btn { visibility: hidden; }
.tour-hole { position: fixed; z-index: 60; border: 2px solid var(--accent); border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(22, 23, 26, .45); transition: top .25s, left .25s, width .25s, height .25s; }
.tour-card { position: fixed; z-index: 61; width: 360px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .18); }
.tour-card.center { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); }
.tour-card.bottom { left: 12px !important; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); top: auto !important; width: auto; max-width: none; }
.tour-card h3 { font-size: 17px; font-weight: 600; margin: 6px 0 6px; }
.tour-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.tour-top { display: flex; justify-content: space-between; align-items: center; }
.tour-step { font-size: 12.5px; color: var(--ink-3); }
.tour-x { border: 0; background: none; color: var(--ink-3); padding: 4px; }
.tour-dots { display: flex; gap: 4px; margin: 14px 0 12px; }
.tour-dots span { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.tour-dots span.done { background: var(--ink); }
.tour-dots span.on { background: var(--accent); }
.tour-nav { display: flex; justify-content: space-between; align-items: center; }
.tour-btn .lbl-short { display: none; }
@media (max-width: 560px) {
  .top-brand .brand-logo { height: 17px; }
  .topbar { gap: 8px; padding: 10px 12px; }
  .seg button { padding: 5px 7px; font-size: 12.5px; }
  .tour-btn { padding: 5px 8px; }
  .tour-btn .lbl-long { display: none; }
  .tour-btn .lbl-short { display: inline; }
  .icon-btn { width: 32px; height: 32px; }
}
@media (max-width: 900px) { #team-grid { grid-template-columns: 1fr !important; } }

/* Hiring scores */
.sc { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.sc.s5 { background: #16171a; color: #fff; } .sc.s4 { background: #4a4c52; color: #fff; } .sc.s3 { background: #dcdad6; color: #16171a; }
.sc.s2, .sc.s1 { background: #f1f0ed; color: #8a8c92; }
@media (max-width: 900px) { #hire-grid { grid-template-columns: 1fr !important; } #cands th:nth-child(n+2):nth-child(-n+6), #cands td:nth-child(n+2):nth-child(-n+6) { display: none; } }
.toast { background: var(--ink) !important; color: #fff !important; }

/* Practical lesson format: the moment, watch it, the move, try it */
.beat { font-size: 12.5px; font-weight: 600; color: var(--accent-ink); margin: 8px 0 10px; display: flex; align-items: center; gap: 10px; }
.beat::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.moment { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.m-stage { position: relative; background: #1b1c20; min-height: 240px; display: grid; place-items: center; padding: 44px 16px 64px; }
.m-stage img { max-height: 150px; max-width: 70%; object-fit: contain; background: #fff; border-radius: 10px; padding: 8px; }
.m-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; }
.m-pill { display: inline-flex; align-items: center; gap: 5px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 99px; }
.m-pill.live { background: var(--accent); }
.m-listing { position: absolute; left: 12px; right: 12px; bottom: 12px; background: #fff; border-radius: 8px; padding: 7px 10px; font-size: 13px; }
.m-listing span { color: var(--ink-3); margin-right: 8px; }
.m-chat { padding: 12px 14px; font-size: 14px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--line); }
.m-chat-h { font-weight: 600; font-size: 13px; color: var(--ink-3); }
.m-chat b { font-weight: 600; }
.m-text { font-size: 17px; line-height: 1.5; margin-top: 14px; }
.clip { display: flex; gap: 12px; align-items: center; border: 1px dashed var(--line-2); border-radius: 10px; padding: 12px 14px; color: var(--ink-3); }
.clip b { display: block; color: var(--ink); font-weight: 600; } .clip span { font-size: 13px; }
.versions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.version { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.v-head { display: flex; gap: 8px; align-items: center; padding: 10px 14px; font-weight: 600; border-bottom: 1px solid var(--line); }
.version.weak .v-head { color: var(--ink-3); } .version.weak .v-head .i { color: var(--accent); }
.version.good .v-head .i { color: #1b6b3a; }
.v-line { display: grid; grid-template-columns: 38px 1fr; gap: 8px; padding: 10px 14px; }
.v-line + .v-line { border-top: 1px solid var(--line); }
.v-line .ts { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.v-line p { margin: 4px 0 2px; }
.v-line em { font-style: normal; font-size: 13px; color: var(--ink-3); }
.version.good .v-line em { color: #1b6b3a; }
.mode { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 99px; }
.mode.screen { background: #e8eef8; color: #2d4a7a; } .mode.cam { background: var(--surface-2); color: var(--ink-2); }
.move { font-size: 19px; line-height: 1.5; font-weight: 500; letter-spacing: -.01em; }
.rule-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 14px; color: var(--ink-2); } .rule-line .i { color: var(--accent); margin-top: 2px; }
.next-line { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 8px; font-weight: 500; }
@media (max-width: 760px) { .moment, .versions { grid-template-columns: 1fr; } .m-chat { border-left: 0; border-top: 1px solid var(--line); } }

/* Academy schedule */
.ac-day { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; }
.ac-day + .ac-day { border-top: 1px solid var(--line); }
.ac-day.today { background: #fdf6f5; box-shadow: inset 3px 0 0 var(--accent); }
.ac-day.done .ac-title { color: var(--ink-2); }
.ac-when { width: 54px; flex: none; } .ac-when b { display: block; font-weight: 600; } .ac-when span { font-size: 12.5px; color: var(--ink-3); }
.ac-title { display: block; font-weight: 600; margin: 4px 0 2px; }
.ac-type { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.ac-type.set { background: var(--ink); color: #fff; } .ac-type.on { border: 1px dashed var(--line-2); color: var(--ink-2); } .ac-type.you { background: var(--accent-soft); color: var(--accent-ink); }
.ac-prep { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 13.5px; }
.ac-prep .check-dot { width: 18px; height: 18px; flex: none; }

/* Lesson interactions: spot, sort, work it out, product card, say line */
.block-beat { margin-top: 30px; }
.m-chat .m-prod { background: var(--surface-2); border-radius: 6px; padding: 4px 7px; margin: 0 -7px; }
.m-chat .m-prod b { color: var(--ink-2); }
.spot { display: flex; flex-direction: column; gap: 6px; }
.spot-line { text-align: left; display: grid; grid-template-columns: minmax(44px, auto) 1fr; gap: 12px; align-items: baseline; border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; padding: 11px 14px; font-size: 14.5px; }
.spot-line .ts { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.spot-line:hover:not(:disabled) { border-color: var(--ink); }
.spot-line:disabled { cursor: default; color: var(--ink); }
.spot-line.fine { opacity: .55; }
.spot-line.bad { border-color: var(--accent); background: var(--accent-soft); }
.sort { display: flex; flex-direction: column; }
.sort-item { display: flex; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.sort-item:first-child { border-top: 0; }
.sort-item .grow > span { font-size: 14.5px; }
.sort-item em { display: block; font-style: normal; font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.sort-item.right em { color: #1b6b3a; } .sort-item.wrong em { color: var(--accent-ink); }
.sort-btns { display: flex; gap: 6px; flex: none; }
.sort-btns button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.sort-btns button:hover:not(:disabled) { border-color: var(--ink); }
.sort-btns button:disabled { cursor: default; }
.sort-item.right .sort-btns button.on { background: var(--ok-soft); border-color: var(--ok); color: #1b6b3a; }
.sort-item.wrong .sort-btns button.on { background: var(--accent-soft); border-color: var(--accent); }
.sort-item.right .sort-btns button:not(.on) { opacity: .4; }
.num-row { display: flex; gap: 10px; align-items: center; }
.num-row input { width: 140px; }
.pct { position: relative; display: inline-block; } .pct input { padding-right: 28px; }
.pct::after { content: "%"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.fact-card { display: grid; grid-template-columns: 170px 1fr; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.fc-img { background: #fff; display: grid; place-items: center; padding: 14px; border-right: 1px solid var(--line); }
.fc-img img { max-width: 100%; max-height: 150px; object-fit: contain; }
.fc-facts { margin: 0; }
.fc-facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 9px 14px; font-size: 14px; }
.fc-facts > div + div { border-top: 1px solid var(--line); }
.fc-facts dt { color: var(--ink-3); } .fc-facts dd { margin: 0; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.fc-facts .warn dd { color: var(--accent-ink); }
.say-line { border-left: 3px solid var(--ink); padding: 4px 0 4px 16px; }
.say-line p { font-size: 18px; font-weight: 500; line-height: 1.45; margin: 4px 0 0; letter-spacing: -.01em; }
.say-line em { display: block; font-style: normal; font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }
.type-decide { background: var(--info-soft) !important; color: var(--info) !important; }
.type-know, .type-calc { background: #efede8 !important; color: var(--ink-2) !important; }
.type-spot { background: var(--warn-soft) !important; color: var(--warn) !important; }
@media (max-width: 760px) {
  .fact-card { grid-template-columns: 1fr; } .fc-img { border-right: 0; border-bottom: 1px solid var(--line); }
  .fc-facts > div { grid-template-columns: 120px 1fr; }
  .sort-item { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Learn: course path */
.cp-week { margin-bottom: 34px; }
.cp-week-head { margin-bottom: 12px; } .cp-week-head h3 { margin-top: 4px; }
.course-path { position: relative; }
.course-path::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.cp-mod { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 6px 0; }
.cp-node { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-2); font-weight: 600; font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.cp-mod.done .cp-node { background: var(--ink); border-color: var(--ink); color: #fff; }
.cp-mod.now .cp-node { border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.cp-body { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.cp-mod.open .cp-body { box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.05); }
.cp-head { display: flex; gap: 16px; align-items: center; padding: 14px 16px; }
.cp-title { display: block; font-weight: 600; font-size: 15.5px; }
.cp-when { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.cp-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12.5px; color: var(--ink-3); flex: none; width: 130px; }
.cp-meta .bar { width: 100%; }
.cp-outcome { display: flex; gap: 8px; align-items: flex-start; margin: 0 16px 10px; font-size: 14px; color: var(--ink-2); }
.cp-lessons { border-top: 1px solid var(--line); padding: 6px 8px 8px; }
.cp-lesson { display: flex; gap: 12px; align-items: center; padding: 9px 8px; border-radius: 8px; }
.cp-lesson:hover { background: var(--surface-2); }
.cp-lesson b { display: block; font-weight: 550; font-size: 14.5px; }
.cp-lesson.done b { color: var(--ink-2); }
.cp-dot { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; border: 1.5px solid var(--line-2); color: var(--ink-3); }
.cp-lesson.done .cp-dot { background: var(--ok-soft); border-color: var(--ok); color: #1b6b3a; }
.cp-lesson.cur .cp-dot { border-color: var(--accent); color: var(--accent-ink); }
.cp-practice { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.cp-practice b { display: block; font-weight: 600; }
@media (max-width: 640px) { .cp-head { flex-direction: column; align-items: flex-start; gap: 8px; } .cp-meta { align-items: flex-start; width: 100%; } }
.reader-foot > * { min-width: 0; }
.reader-foot .btn.ghost { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50%; display: inline-flex; }
@media (max-width: 640px) { .reader-foot .btn.ghost { font-size: 0; gap: 0; padding: 0 12px; } .reader-foot .btn.ghost .i { font-size: initial; } .reader-foot .btn.primary { white-space: normal; text-align: left; } }
