/* Brand tokens matched to the live site (www.timeboss.us/styles.css, "Editorial Warmth" v4) */
:root {
  --gap: 27px; /* space between containers */
  --bg: #F7F3ED;
  --card: #FEFCF8;
  --ink: #15253c;
  --heading: #15253c;
  --muted: #5a6a7a;
  --line: #E5DDD3;
  --line-strong: #d3c6b6;
  --navy: #15253c;
  --navy-deep: #0a1520;
  --navy-2: #1f2f44;
  --teal: #3c768d;
  --teal-2: #9fc2d0;
  --teal-hover: #4a8aa3;
  --teal-soft: #EEF4F7;
  --warm-accent: #E8D9C8;
  --paper: #F5EFE4;
  --good: #3c768d;
  --danger: #c0392b;
  --radius: 16px;
  --radius-sm: 8px;
  --pad: 24px; /* one inner padding for every card, panel and window */
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-head: "Playfair Display", Georgia, serif;
  --font-label: var(--font-body);
  --shadow: 0 1px 2px rgba(14, 27, 46, .04);
  --shadow-hover: 0 22px 48px -22px rgba(14, 27, 46, .28);
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.7 var(--font-body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--teal); text-decoration: none; }
/* The serif headline face is for page titles (h1) only; every other heading uses the sans */
h1, h2, h3, h4 { margin: 0 0 .3em; line-height: 1.2; color: var(--heading); font-family: var(--font-body); font-weight: 700; letter-spacing: -.01em; }
h1 { font-family: var(--font-head); line-height: 1.15; font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
h4 { font-weight: 700; font-family: var(--font-body); letter-spacing: 0; }
p { margin: 0 0 .8em; }
small { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sm { font-size: 13px; }
.grow { flex: 1; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 8px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--teal); margin-bottom: 10px; }
.ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* layout */
#app:not(.logged-out) { display: grid; grid-template-columns: 288px 1fr; min-height: 100vh; }
/* Wide screens: the sidebar and content stay together as one centered column, like x.com */
@media (min-width: 761px) { #app:not(.logged-out) { max-width: 1488px; margin: 0 auto; } }
/* Past that width, paint the gap left of the sidebar navy so the sidebar reaches the screen edge */
@media (min-width: 1489px) {
  body:has(#app:not(.logged-out)) { background: linear-gradient(to right, var(--navy) calc((100% - 1488px) / 2 + 1px), var(--bg) 0); }
  /* and carry the footer band to the right edge */
  html { overflow-x: clip; }
  .site-footer { position: relative; }
  .site-footer::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: calc((100vw - 1488px) / 2); background: var(--navy-deep); }
}
.content { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: none; }
.sidebar { background: var(--navy); color: rgba(255, 255, 255, .7); padding: 34px 14px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.brand { display: flex; gap: 10px; align-items: center; color: #fff; }
.brand b { display: block; font-family: var(--font-label); font-size: 17px; font-weight: 800; letter-spacing: .08em; line-height: 1.1; }
.brand small { color: rgba(255, 255, 255, .5); font-size: 12px; letter-spacing: .04em; }
.brand .logo { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--teal); display: grid; place-items: center; color: #fff; }
.brand .logo .ic { width: 22px; height: 22px; }
.brand-wrap { display: block; width: fit-content; padding: 0 6px; margin-bottom: 16px; border-radius: var(--radius-sm); }
/* Let the sidebar scroll rather than squeeze (and clip) the cards inside it */
.sidebar > * { flex-shrink: 0; }
@supports (height: 100dvh) { .sidebar { height: 100dvh; } }
.brand-img { width: 160px; height: auto; display: block; }
.brand-sub { color: rgba(255, 255, 255, .5); font-size: 13px; font-weight: 600; margin-top: 6px; }
.login-top { background: var(--navy); margin: -28px -28px 20px; padding: 24px 28px; }
.login-top .brand-img { width: 180px; }
nav { display: grid; gap: 2px; }
nav a { color: rgba(255, 255, 255, .7); padding: 9px 14px; border-radius: 100px; display: flex; gap: 12px; align-items: center; font-weight: 500; font-size: 15px; line-height: 1.3; }
nav a .ic { color: var(--teal-2); }
nav a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
nav a.active { background: var(--teal); color: #fff; }
nav a.active .ic { color: #fff; }
.navlabel { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .45); margin: 14px 12px 4px; }
.me { display: flex; gap: 10px; align-items: center; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 14px; margin-top: auto; }
.me b { color: #fff; display: block; font-size: 14px; }
.me small { color: rgba(255, 255, 255, .5); font-size: 12px; }
.me button { margin-left: auto; color: rgba(255, 255, 255, .7); }
main { padding: 36px clamp(16px, 3vw, 48px) 64px; max-width: 1200px; width: 100%; flex: 1; }

/* components */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--pad); box-shadow: var(--shadow); margin-bottom: var(--gap); transition: border-color .2s, box-shadow .2s; }
.grid { display: grid; gap: var(--gap); margin-bottom: var(--gap); }
.grid > .card { margin: 0; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.section { font-size: 15px; font-weight: 700; color: var(--heading); margin: 36px 0 14px; }
.back { display: inline-block; margin-bottom: 14px; font-weight: 700; }

.btn, button { font: inherit; cursor: pointer; border: 0; }
/* .btn = site .btn-primary (navy pill, teal hover); .btn.accent = site .btn-white for dark panels */
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; padding: 12px 26px; border-radius: 100px; font-weight: 600; font-size: 15px; transition: background .2s; }
.btn:hover { background: var(--teal); }
.btn.accent { background: #fff; color: var(--navy); font-weight: 700; }
.btn.accent:hover { background: var(--teal-soft); }
.btn.big { padding: 16px 36px; font-size: 15px; }
.btn.sm { padding: 8px 18px; font-size: 13.5px; }
.btn.ghost, button.ghost { background: transparent; color: var(--heading); border: 1px solid var(--line-strong); padding: 10px 22px; border-radius: 100px; font-weight: 600; }
.btn.ghost:hover, button.ghost:hover { background: var(--teal-soft); }
button.ghost.sm { padding: 5px 14px; font-size: 13px; }
.sidebar button.ghost { border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .7); }
.sidebar button.ghost:hover { background: rgba(255, 255, 255, .08); }
.danger { color: var(--danger) !important; }
button.link { background: none; padding: 0; margin-top: 16px; font-size: 13px; }
.liked { color: var(--danger) !important; border-color: #ecc3be !important; }

input, textarea, select { font: inherit; font-size: 15px; width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(60, 118, 141, .14); border-color: var(--teal); }
label { display: block; font-weight: 700; font-size: 14px; color: var(--heading); margin-bottom: 16px; }
label input, label textarea { margin-top: 6px; font-weight: 400; }
input[type=range] { padding: 0; accent-color: var(--teal); border: 0; }
output { color: var(--teal); font-weight: 900; }

.avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; flex: none; letter-spacing: .02em; }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; vertical-align: middle; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.ring-p1 { box-shadow: 0 0 0 2px var(--gap, var(--card)), 0 0 0 4px #d3c6b6; }
.avatar.ring-p2 { box-shadow: 0 0 0 2px var(--gap, var(--card)), 0 0 0 4px var(--teal-2); }
.avatar.ring-p3 { box-shadow: 0 0 0 2px var(--gap, var(--card)), 0 0 0 4px var(--teal); }
.avatar.ring-coach { box-shadow: 0 0 0 2px var(--gap, var(--card)), 0 0 0 4px var(--navy); }
.avatar.sm.ring-coach { box-shadow: 0 0 0 1.5px var(--gap, var(--card)), 0 0 0 3px var(--navy); }
.topbar .avatar.ring-coach, .sidebar .avatar.ring-coach, .prompt-card .avatar.ring-coach { box-shadow: 0 0 0 2px var(--navy), 0 0 0 4px rgba(255, 255, 255, .7); }
.avatar.sm[class*="ring-p"] { box-shadow: 0 0 0 1.5px var(--gap, var(--card)), 0 0 0 3px var(--ring, #d3c6b6); }
.avatar.sm.ring-p2 { --ring: var(--teal-2); }
.avatar.sm.ring-p3 { --ring: var(--teal); }
.sidebar .avatar, .prompt-card .avatar, .topbar .avatar { --gap: var(--navy); }
.login .avatar { --gap: #fff; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 100px; background: var(--teal-soft); color: var(--teal); margin-left: 6px; }
.tag.core { background: var(--navy); color: #fff; margin: 0; }
.tag.mini { margin: 0; }

.bar { height: 6px; background: var(--warm-accent); border-radius: 100px; overflow: hidden; margin: 12px 0 6px; }
.bar span { display: block; height: 100%; background: var(--teal); border-radius: 100px; transition: width .4s; }
.bar.thin { height: 5px; margin: 0; }

.stat b { display: block; font-family: var(--font-body); font-size: clamp(36px, 3.6vw, 48px); font-weight: 800; color: var(--navy); margin: 2px 0 4px; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: lining-nums; }
.stat .chain { margin: 4px 0 8px; }
.stat .streak-num { display: flex; align-items: baseline; gap: 10px; }
.stat .streak-num span { font-size: 15px; color: var(--muted); }
.stat > span.muted { font-size: 14px; font-weight: 600; color: var(--muted); }
.stat .bar { margin: 6px 0; }
.card.stat { container-type: inline-size; }
.stat b.stat-word { font-size: min(30px, 15cqi); margin: 10px 0 8px; } /* sized to the card so long words like Overcapacity always fit */
.stat b.peace-tag.p1 { color: var(--muted); }
.prompt-card { background: var(--navy); color: #fff; border: 0; }
.prompt-card h3, .prompt-card h4 { color: #fff; margin: 8px 0 12px; }
.prompt-card .eyebrow { color: var(--teal-2); }
.prompt-card .muted { color: rgba(255, 255, 255, .55); }
.prompt-card .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.prompt-card .btn.ghost:hover { background: var(--navy-2); }

.list { list-style: none; margin: 4px 0 14px; padding: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li b { color: var(--heading); }
.list li:last-child { border: 0; }


/* feed */
.feed-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 310px; grid-template-rows: auto 1fr; grid-template-areas: "main glb" "main side"; column-gap: var(--gap); align-items: start; }
.feed-main { grid-area: main; min-width: 0; }
.feed-glb { grid-area: glb; }
.side { grid-area: side; }
/* Community leaderboard: always open beside the feed; collapsed at the top on phones */
.glb-toggle { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: default; }
.glb-toggle h3 { margin: 0 0 10px; }
.glb-title { display: grid; gap: 2px; }
.glb-toggle .muted { display: none; font-size: 13px; }
.glb-chev { display: none; margin-left: auto; transition: transform .2s; }
.glb .lb-cols { grid-template-columns: 1fr; gap: 6px; }
.lb .grow small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.post-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.post-head b { margin-right: 2px; color: var(--heading); }
.post-body p:last-child { margin: 0; }
.post-actions { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.comments { margin-top: 8px; }
.note { display: flex; gap: 10px; padding: 8px 0; font-size: 15px; }
.note-main { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.note-actions { display: flex; gap: 2px; margin: 2px 0 -4px -9px; }
.note-act { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 4px 9px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--muted); font: 600 13px/1 var(--font-body); font-variant-numeric: lining-nums tabular-nums; cursor: pointer; }
@media (hover: hover) { .note-act:hover { background: var(--paper); color: var(--heading); } }
.note-act.liked { color: var(--danger); }
.note-replies { margin-left: 44px; }
.note-replies .note { padding: 6px 0; }
.note-replies .note:last-child { padding-bottom: 8px; }
.note-reply-form { margin: 6px 0 2px; }
/* Highlight for the comment a notification opened: inside the comment's own box, so it never covers the replies below */
.note.target { margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: var(--radius-sm); animation: note-target 2.4s ease-out forwards; }
@keyframes note-target { 0%, 40% { background: var(--teal-soft); } 100% { background: transparent; } }
.replies .note.target { animation-name: note-target-dark; }
@keyframes note-target-dark { 0%, 40% { background: rgba(159, 194, 208, .16); } 100% { background: transparent; } }
.post-time, .post-count { color: inherit; text-decoration: none; }
.post-time:hover, .post-count:hover { text-decoration: underline; }
.view-all { display: inline-block; padding: 6px 0 4px; font-size: 14px; font-weight: 700; }
.past-prompt { display: block; color: inherit; text-decoration: none; }
.past-prompt:hover b { text-decoration: underline; }
.past-prompt small { display: block; }
.detail { max-width: 760px; }
/* Notifications */
.hdr-right { display: flex; align-items: center; gap: 10px; }
.bell { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius); color: var(--heading); background: var(--card); border: 1px solid var(--line); -webkit-tap-highlight-color: transparent; }
.bell:hover { border-color: var(--line-strong); background: #fff; }
.bell .ic { width: 22px; height: 22px; }
.bell-n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; display: grid; place-items: center; border-radius: 100px; background: var(--danger); color: #fff; font: 800 11px/1 var(--font-body); font-variant-numeric: lining-nums tabular-nums; box-shadow: 0 0 0 2px var(--paper); }
.notif-list { padding: 6px; }
.notif { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 34px 12px 10px; border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.notif + .notif { margin-top: 2px; }
.notif:hover { background: var(--paper); }
.notif.unread { background: var(--teal-soft); }
.notif-av { position: relative; flex: none; }
.notif-av .avatar { display: grid; }
.notif-ic { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; background: var(--teal); box-shadow: 0 0 0 2px var(--card); }
.notif-ic.like { background: var(--danger); }
.notif-ic .ic { width: 11px; height: 11px; stroke: currentColor; fill: none; }
.notif-ic.like .ic { fill: currentColor; }
.notif-main { min-width: 0; display: grid; gap: 3px; font-size: 15px; line-height: 1.4; }
.notif-text b { color: var(--heading); }
.notif-snip { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-dot { position: absolute; right: 14px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--teal); }
.pav-sm { --s: 30px; --b: 15px; --bf: 8.5px; --pw: 58px; }
.pav-sm .avatar { font-size: 11px; }
.comment b { color: var(--heading); }
.company-tile { color: var(--ink); }
.company-tile:hover, .card.course:hover { border-color: var(--line-strong); box-shadow: var(--shadow-hover); }

/* learn */
.course { color: var(--ink); display: flex; flex-direction: column; }
.course h3 { margin-top: 14px; }
.course p { flex: 1; font-size: 15px; }
.lessons { list-style: none; padding: 0; margin: 14px 0 0; }
.lessons a { display: flex; gap: 14px; align-items: center; padding: 14px 6px; border-bottom: 1px solid var(--line); color: var(--ink); }
.lessons a b { color: var(--heading); }
.lessons a:hover { background: var(--paper); }
.check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 13px; flex: none; }
.done .check { background: var(--teal); border-color: var(--teal); color: #fff; }
.lesson { max-width: 780px; padding: 36px; }
.lesson p { font-size: 17px; line-height: 1.75; }
.video { aspect-ratio: 16/9; background: var(--navy); border-radius: var(--radius); display: grid; place-items: center; color: rgba(255, 255, 255, .5); font-weight: 600; margin: 18px 0 24px; }
.action-box { background: var(--teal-soft); border-radius: var(--radius-sm); padding: 16px 18px; margin: 24px 0; }
.action-box b { color: var(--heading); font-size: 14px; }
.action-box p { margin: 6px 0 0; font-size: 16px; }

/* events */
.event { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.event-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.event-actions .btn { justify-content: center; }
.event p { margin: 2px 0; }
.date-chip { width: 62px; text-align: center; background: var(--navy); border-radius: var(--radius-sm); padding: 10px 0; flex: none; }
.date-chip b { font-family: var(--font-label); font-size: 24px; font-weight: 800; display: block; color: #fff; line-height: 1.1; }
.date-chip small { color: var(--teal-2); font-weight: 600; font-size: 12px; }

/* tools */
.steps-preview { padding-left: 22px; margin: 0 0 20px; }
.steps-preview li { margin-bottom: 12px; }
.steps-preview li::marker { color: var(--teal); font-weight: 800; font-family: var(--font-label); }
.steps-preview b { color: var(--heading); }
.stepper { display: flex; gap: 6px; margin: -8px 0 20px; }
.stepper span { flex: 1; height: 5px; border-radius: 100px; background: var(--warm-accent); }
.stepper .done { background: var(--teal); }
.stepper .cur { background: var(--teal); }
.timer { font: 800 28px/1 var(--font-label); letter-spacing: .02em; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); font-variant-numeric: tabular-nums; }
.timer.over { background: var(--danger); }
.guide { font-size: 16px; background: var(--teal-soft); border-radius: var(--radius-sm); padding: 14px 16px; }
.warn { background: #f6ebe0; color: #8a4b1f; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; font-weight: 700; }
.ai details { margin: 10px 0 14px; }
/* Same as the timeboss.us blog prompt boxes: copy, then "and paste in" the assistant logos */
.ai-note { margin: 0; font-size: 14px; line-height: 1.6; }
button.link.ai-preview { display: block; margin: 10px 0 14px; font-size: 14px; font-weight: 700; }
.prompt-modal { width: min(720px, calc(100% - 32px)); padding-bottom: 18px; }
.prompt-text { flex: 1; min-height: 0; overflow: auto; margin: 0 0 14px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-actions { align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.ai-paste { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.ai-paste img { height: 34px; width: auto; }
pre { white-space: pre-wrap; font: 12.5px/1.55 ui-monospace, Menlo, monospace; background: var(--paper); border-radius: var(--radius-sm); padding: 14px; max-height: 320px; overflow: auto; }
summary { cursor: pointer; font-weight: 700; color: var(--heading); }
.run summary { font-weight: 400; }

/* cohort */
.cohort-hero { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(28px, 5vw, 64px); max-width: 880px; position: relative; overflow: hidden; }
.cohort-hero .eyebrow { color: var(--teal-2); }
.cohort-hero h1 { font-size: clamp(36px, 5.4vw, 68px); color: #fff; line-height: 1.05; letter-spacing: -.02em; }
.cohort-hero .lead { font-size: 18px; color: rgba(255, 255, 255, .7); max-width: 620px; }
.cohort-hero .muted { color: rgba(255, 255, 255, .55); }
.checks { list-style: none; padding: 0; margin: 22px 0 30px; }
.checks li { padding: 7px 0 7px 30px; position: relative; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: 17px; width: 16px; height: 2px; background: var(--teal-2); border-radius: 2px; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); }
.login-card { border: 1px solid var(--line); box-shadow: var(--shadow-hover); }
.login-card { background: var(--card); border-radius: var(--radius); padding: var(--pad); overflow: hidden; width: min(760px, 100%); }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.login-group { margin-top: 16px; }
.login-group h4 { font-size: 14px; font-weight: 700; color: var(--teal); }
.user-pick { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; margin: 0; transition: border-color .2s, box-shadow .2s; }
.user-pick b { color: var(--heading); }
.user-pick:hover { border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
.join { margin-top: 18px; }
.join form { margin-top: 10px; }

/* Habits: the WPM + DRM chains. The one bold element; everything else stays quiet. */
.habits { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: var(--gap); gap: var(--gap); position: relative; }
.habits-half { background: var(--navy); color: #fff; border-radius: var(--radius); padding: var(--pad); overflow: hidden; } /* Weekly Planning and Daily Review each get their own card */
.habits-half { position: relative; display: flex; flex-direction: column; gap: 10px; }
.habits-count { display: flex; align-items: baseline; gap: 10px; }
.habits-count b { font-family: var(--font-body); font-size: clamp(56px, 6vw, 80px); font-weight: 800; line-height: .9; letter-spacing: -.03em; color: #fff; font-variant-numeric: lining-nums; }
.habits-count span { color: var(--teal-2); font-size: 15px; }
/* Who else ran it: below a rule at the bottom of each habit */
.habits-proof { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); }
.habits-proof:empty { display: none; }
.celebrate h1 + .big-wrap { margin-top: 22px; }
.celebrate .chain-label { margin: -18px 0 26px; text-align: center; } /* the chain above keeps a 28px bottom margin */
.chain-label { display: block; margin-top: -4px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.habits-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 4px; } /* button, then its note underneath, the same in both halves */
.habits-foot small { color: rgba(255, 255, 255, .55); }
.habits .btn { background: #fff; color: var(--navy); }
.habits .btn:hover { background: var(--teal-2); }
.habits .btn.ghost { background: transparent; color: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .25); }
.chain { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pip { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .22); flex: none; position: relative; }
.pip.on { background: var(--teal-2); border-color: var(--teal-2); }
.pip.on + .pip.on::before { content: ""; position: absolute; right: 100%; top: 50%; width: 8px; height: 2px; background: var(--teal-2); transform: translateY(-50%); }
.pip.now { border-style: dashed; border-color: rgba(255, 255, 255, .55); }
.chain.light .pip { border-color: var(--line-strong); }
.stat .chain { gap: 4px; flex-wrap: nowrap; }
.stat .pip { width: 12px; height: 12px; }
.stat .pip.on + .pip.on::before { width: 4px; }
.chain.light .pip.on { background: var(--teal); border-color: var(--teal); }
.chain.light .pip.on + .pip.on::before { background: var(--teal); }
.chain.light .pip.now { border-color: var(--teal); }

/* Completion moment after a meeting is saved */
.celebrate { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(32px, 6vw, 64px); text-align: center; max-width: 720px; margin: 0 auto 18px; position: relative; overflow: hidden; }
.celebrate > * { position: relative; }
.celebrate h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); margin-bottom: 6px; }
.celebrate p { color: rgba(255, 255, 255, .72); margin: 0 auto 22px; max-width: 46ch; }
.celebrate .big { font-family: var(--font-body); font-weight: 800; font-size: clamp(96px, 14vw, 160px); line-height: .9; letter-spacing: -.04em; display: block; font-variant-numeric: lining-nums tabular-nums; }
.celebrate .unit { color: var(--teal-2); font-size: 17px; display: block; margin: 6px 0 24px; }
.celebrate .chain { justify-content: center; margin-bottom: 28px; }
.celebrate .pip { width: 22px; height: 22px; }
.celebrate .pip.new { animation: pip-drop .7s cubic-bezier(.2, 1.4, .4, 1) .5s both; }
.celebrate .pip.new::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--teal-2); opacity: 0; animation: pip-ring .9s ease-out 1s; }
.celebrate .row { justify-content: center; }
.celebrate .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.celebrate .btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.celebrate.settled *, .celebrate.settled *::after { animation: none !important; }
.celebrate.settled .plus-one, .celebrate.settled .milestone { opacity: 1; }
.celebrate .big-wrap { position: relative; display: inline-block; }
.celebrate .plus-one { position: absolute; top: 4px; right: -44px; font-family: var(--font-body); font-size: 22px; font-weight: 800; color: var(--navy); background: var(--teal-2); border-radius: 100px; padding: 4px 10px; opacity: 0; animation: plus-pop 1.4s cubic-bezier(.2, 1.4, .4, 1) .95s forwards; }
@keyframes plus-pop { 0% { opacity: 0; transform: translateY(14px) scale(.4); } 30% { opacity: 1; transform: translateY(-6px) scale(1.1); } 60%, 100% { opacity: 1; transform: translateY(0) scale(1); } }
/* A badge, not a button: outlined, small caps-free label with a medal */
.celebrate .milestone { display: inline-flex; align-items: center; gap: 7px; margin: -10px 0 22px; padding: 5px 12px 5px 8px; border: 1.5px solid var(--teal-2); border-radius: var(--radius-sm); background: rgba(159, 194, 208, .12); color: var(--teal-2); font: 700 13px/1.2 var(--font-body); letter-spacing: .01em; animation: plus-pop 1s ease-out 1.3s both; }
.celebrate .milestone .ic { width: 17px; height: 17px; stroke-width: 2; }
.confetti { position: absolute; left: 50%; top: 42%; width: 0; height: 0; pointer-events: none; z-index: 2; }
.confetti i { position: absolute; left: 0; top: 0; opacity: 0; animation: confetti-burst 2.6s cubic-bezier(.15, .7, .3, 1) var(--d) forwards; }
@keyframes confetti-burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  35% { opacity: 1; transform: translate(var(--x), var(--y)) rotate(calc(var(--r) * .5)); }
  100% { opacity: 0; transform: translate(calc(var(--x) * 1.2), calc(var(--y) + var(--fall))) rotate(var(--r)); }
}
.celebrate .big.bump { animation: bump .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes bump { 50% { transform: scale(1.12); color: var(--teal-2); } }
@keyframes pip-drop { from { transform: translateY(-28px) scale(.4); opacity: 0; background: transparent; } }
@keyframes pip-ring { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }
@media (prefers-reduced-motion: reduce) { .celebrate .pip.new, .celebrate .pip.new::after, .celebrate .big.bump, .note.fresh, .note.target { animation: none; } .celebrate .plus-one, .celebrate .milestone { animation: none; opacity: 1; } .confetti { display: none; } }

/* Master Your Week CTA: one look everywhere (sidebar, home, community) */
.myw { background: var(--teal); color: #fff; border-radius: var(--radius); padding: var(--pad); margin-bottom: var(--gap); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; }
.myw .myw-head { align-self: stretch; font-family: var(--font-body); font-size: 20px; font-weight: 700; color: #fff; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .2); position: relative; }
/* The Home phase card's next step uses the same teal Your Next Step panel */
.phase-card .myw { border-radius: 0; margin: 0; padding: var(--pad); }
.phase-card .myw h2 { color: #fff; }
.phase-card .myw p { color: rgba(255, 255, 255, .85); font-size: 15.5px; }
.myw .btn:not(.accent):not(.ghost) { background: #fff; color: var(--navy); }
.myw .btn:not(.accent):not(.ghost):hover { background: var(--teal-soft); }
.myw .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.myw .btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.myw .bar { background: rgba(255, 255, 255, .25); align-self: stretch; }
.myw .bar span { background: #fff; }
.myw .row { position: relative; z-index: 1; }
.sidebar .myw .myw-head { font-size: 17px; padding-bottom: 8px; margin-bottom: 10px; }
.myw h3 { color: #fff; font-size: 24px; margin: 2px 0 4px; }
.myw p { color: rgba(255, 255, 255, .85); font-size: 14px; margin-bottom: 14px; }
.sidebar .myw { margin: 10px 0 0; padding: 16px; } /* sits right under the menu; the user row stays at the bottom */
.sidebar .myw h3 { font-size: 19px; }
.sidebar .myw p { font-size: 12.5px; }
.myw:not(.phase-body) .cohort-facts { gap: 8px 20px; margin-bottom: 14px; }
.myw:not(.phase-body) .cohort-facts dt { font-size: 11.5px; }
.myw:not(.phase-body) .cohort-facts dd { font-size: 14px; }
.myw:not(.phase-body) .bar { margin-bottom: 14px; }
.grid > .myw { margin: 0; justify-content: center; }

/* footer (mirrors timeboss.us) */
.site-footer { background: var(--navy-deep); padding: 36px clamp(16px, 3vw, 48px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-logo { display: block; margin-right: auto; opacity: .6; border: 0; }
.footer-logo .brand-img { width: 120px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; color: rgba(255, 255, 255, .4); white-space: nowrap; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: rgba(255, 255, 255, .55); display: inline-flex; }
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

/* community */
.pinned-label { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-2); font-size: 13px; font-weight: 600; }
.ic.pin { width: 15px; height: 15px; }
.prompt-date { display: block; color: rgba(255, 255, 255, .6); font-size: 13.5px; margin-top: 2px; }
.pinned h3 { font-size: clamp(21px, 2.3vw, 27px); margin: 8px 0 16px; max-width: 30ch; }
/* Writing box: posts, comments, prompt replies */
.compose-row { display: flex; gap: 10px; align-items: flex-start; }
.compose-row .avatar { margin-top: 9px; }
.compose textarea { resize: none; overflow: hidden; line-height: 1.5; max-height: 320px; }
.compose textarea:focus { overflow-y: auto; }
.compose textarea[rows="2"] { min-height: 66px; }
.compose textarea[rows="1"] { min-height: 44px; padding-top: 9px; padding-bottom: 9px; }
.compose-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin: 8px 0 4px; }
.compose-actions .btn { flex: none; }
.char-count { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.char-count.near { color: #b0612a; }
.comment-form { margin-top: 8px; }
/* Writing tools: image, emoji, GIF. Shown while the box is in use */
.compose-field { flex: 1; min-width: 0; display: grid; gap: 8px; }
.compose-actions { position: relative; }
.compose-tools { display: none; gap: 2px; margin: 0 auto 0 26px; } /* icons line up with the text box */
.compose.active .compose-tools, .compose.has-att .compose-tools { display: flex; }
.tool { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; color: var(--teal); cursor: pointer; font: 800 11px/1 var(--font-label); letter-spacing: .04em; }
.tool .ic { width: 19px; height: 19px; }
.tool-gif { border: 1.5px solid currentColor; width: auto; height: 22px; padding: 0 6px; margin: 6px 4px; border-radius: var(--radius-sm); }
@media (hover: hover) { .tool:hover { background: var(--teal-soft); } .tool-gif:hover { background: var(--teal-soft); } }
.reply-form .tool { color: var(--teal-2); }
@media (hover: hover) { .reply-form .tool:hover { background: rgba(255, 255, 255, .08); } }
.picker { display: grid; gap: 4px; margin: 8px 0 0 34px; padding: 8px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-hover); }
.picker-emoji { grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); }
.picker-gif { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick-emoji { height: 36px; border: 0; border-radius: var(--radius-sm); background: none; font-size: 22px; cursor: pointer; }
.pick-gif { padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: none; }
.pick-gif img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
@media (hover: hover) { .pick-emoji:hover { background: var(--teal-soft); } .pick-gif:hover { outline: 2px solid var(--teal); } }
.att-preview { position: relative; width: min(240px, 100%); }
.att-preview:empty { display: none; }
.att-preview .att { margin: 0; }
.att-preview .att img { width: 100%; max-width: none; }
.att-remove { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(10, 21, 32, .75); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.att { margin: 10px 0 2px; width: min(520px, 100%); }
.att img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.att-gif, .note .att-gif { width: min(280px, 100%); }
.note .att { width: min(360px, 100%); }
.att img { cursor: zoom-in; }
.att-preview .att img { cursor: default; }
/* Full-screen image view */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(8, 14, 22, .92); cursor: zoom-out; }
.lightbox img { width: 100%; height: 100%; min-height: 0; object-fit: contain; } /* scaled up or down to fill the screen, never cropped */
.lightbox-close { position: absolute; top: max(12px, env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.post-box .compose-actions { margin-bottom: 0; }
.reply-form { margin: 24px 0 18px; } /* room around the answer box on the prompt card */
.reply-form textarea { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; resize: none; overflow: hidden; line-height: 1.5; min-height: 66px; max-height: 320px; }
.reply-form textarea:focus { overflow-y: auto; }
.reply-form textarea::placeholder { color: rgba(255, 255, 255, .5); }
.reply-form .char-count { color: rgba(255, 255, 255, .5); }
.reply-form .char-count.near { color: #f3c98b; }
/* Equal space on both sides of each divider: Reply text to the line, and the line to the next avatar ring */
.replies .note-thread { padding: 9px 0 1px; border-top: 1px solid rgba(255, 255, 255, .08); }
.replies .reply { color: rgba(255, 255, 255, .85); }
.replies .note-act { color: rgba(255, 255, 255, .55); }
@media (hover: hover) { .replies .note-act:hover { background: rgba(255, 255, 255, .08); color: #fff; } }
.replies .note-act.liked { color: #f2a59c; }
.note.fresh { animation: reply-in .5s ease-out; }
@keyframes reply-in { from { opacity: 0; transform: translateY(-6px); background: rgba(159, 194, 208, .15); } }
.replies b { color: #fff; }
.replies small.muted { display: inline; color: rgba(255, 255, 255, .45); }
.replies summary { color: var(--teal-2); font-weight: 600; padding: 10px 0 2px; }
.comment small.meta, .reply small.meta { display: block; margin: 1px 0 3px; font-size: 13px; color: var(--muted); }
.reply small.meta { color: rgba(255, 255, 255, .5); }

/* team space */
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "act side"; column-gap: var(--gap); align-items: start; }
.tg-act { grid-area: act; }
.tg-side { grid-area: side; }
.vs-label { display: grid; line-height: 1.3; }
.vs-label small { color: var(--muted); font-size: 13px; }
.act-list { list-style: none; margin: 0; padding: 0; }
.act { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.act + .act { border-top: 1px solid var(--line); }
.act .av-stack { flex: none; padding-top: 4px; min-width: 40px; }
.act-av { flex: none; }
.act-main { min-width: 0; display: grid; gap: 2px; font-size: 15px; }
.act-main p { margin: 0; color: var(--ink); }
/* Team members table: picture and name on one line with a clear gap */
table.team td.t-name a { display: inline-flex; align-items: center; gap: 10px; vertical-align: middle; }
table.team td.t-name .avatar { flex: none; }
.act-name { color: var(--heading); font-weight: 700; text-decoration: none; }
.act-name:hover { text-decoration: underline; }
.act-snip { color: var(--muted); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.act-when { font-size: 13px; color: var(--muted); text-decoration: none; }
.team-activity .btn { margin-top: 10px; }
.act-group { cursor: pointer; border-radius: var(--radius-sm); }
@media (hover: hover) { .act-group:hover { background: var(--paper); } }
.act-group .act-main p::after { content: " · See who"; color: var(--teal); font-weight: 600; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: 20px; }
.seg { display: flex; width: 100%; border: 1px solid var(--line-strong); border-radius: 100px; padding: 2px; margin-bottom: 8px; }
.seg button { flex: 1; }
.seg button { background: none; padding: 6px 12px; border-radius: 100px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--navy); color: #fff; }
.lb { list-style: none; padding: 0; margin: 0 0 12px; }
.lb-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 24px; }
.lb-col .card-hd { margin-bottom: 4px; }
.lb .avatar.sm { width: 30px; height: 30px; font-size: 11px; flex: none; }
.lb-title { display: grid; gap: 2px; margin-bottom: 10px; }
.lb-title h3 { margin: 0; }
.lb-title .muted { font-size: 13px; }
.lb-gap { text-align: center; color: var(--muted); line-height: 1; padding: 4px 0; }
@media (max-width: 760px) { .lb-cols { grid-template-columns: 1fr; gap: 8px; } }
.lb li > * { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14.5px; }
.lb li a:hover { background: var(--paper); }
.lb li.you > * { background: var(--teal-soft); border-radius: var(--radius-sm); font-weight: 700; }
.lb .rank { min-width: 28px; margin-right: 4px; text-align: right; font-family: var(--font-body); font-weight: 800; color: var(--muted); font-size: 15px; font-variant-numeric: lining-nums tabular-nums; }
.lb li:nth-child(-n+3):not(.lb-me) .rank { color: var(--teal); font-size: 16px; }
.lb .lb-me .rank { font-size: 13px; }
.lb .num { width: 42px; flex: none; text-align: right; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb .num.hi { color: var(--navy); font-weight: 800; }
.lb .num small { display: inline; font-size: 11px; margin-left: 2px; font-weight: 500; }
.vs { margin: 16px 0 20px; }
.vs .row { flex-wrap: nowrap; font-size: 15px; align-items: baseline; gap: 12px; }
.vs .row > span { white-space: nowrap; }
.vs-bar { position: relative; overflow: visible; margin-top: 8px; }
.vs-bar .avg-fill { background: var(--teal-2); }
.vs-bar i { position: absolute; top: -4px; width: 3px; height: 14px; background: var(--navy); border-radius: 2px; transform: translateX(-1px); }
.vs-bar i::before { content: ""; position: absolute; inset: -6px -8px; } /* bigger hover target for the thin marker */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
/* Team space sub menu: Activity | Manage (company) */
.subnav { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; margin: -6px 0 22px; background: #fff; border: 1px solid var(--line); border-radius: 100px; max-width: 100%; }
.subnav a { padding: 9px 20px; border: 0; border-radius: 100px; font-weight: 700; font-size: 14px; color: var(--muted); text-decoration: none; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subnav a.on { background: var(--navy); color: #fff; }
@media (hover: hover) { .subnav a:not(.on):hover { color: var(--heading); background: var(--paper); } }
@media (max-width: 760px) { .subnav { display: flex; width: 100%; } .subnav a { flex: 1 1 auto; padding: 10px 14px; } }
.roster-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.roster-head h3 { margin: 0; }
.roster-tools { display: flex; gap: 10px; margin: 14px 0 6px; flex-wrap: wrap; }
.roster-tools input { flex: 1 1 220px; margin: 0; }
.roster-tools select { display: none; margin: 0; }
.th-sort { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; white-space: nowrap; }
.th-sort.on { color: var(--heading); font-weight: 700; }
.t-lab { display: none; }
.admin-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--line); color: var(--heading); font-size: 14px; font-weight: 500; }
.admin-bar .ic { width: 16px; height: 16px; flex: none; }
.sub-lock { display: inline-flex; vertical-align: -2px; margin-left: 6px; cursor: help; }
.th-help { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 3px; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; font-weight: 700; line-height: 1; vertical-align: 1px; cursor: help; }
@media (hover: hover) { .th-sort:hover { color: var(--teal); } }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.pager .muted { margin-right: auto; font-size: 13px; }
.pager .btn[disabled] { opacity: .4; pointer-events: none; }
.modal.add-users { width: min(900px, calc(100% - 32px)); overflow-y: auto; }
.add-users-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; }
.add-ai { border-left: 2px solid var(--line-strong); padding-left: 28px; width: 280px; align-self: stretch; }
.add-ai .nowrap { white-space: nowrap; }
.add-ai h3 { margin: 0 0 6px; font-size: 18px; }
.add-ai p { margin: 0 0 14px; font-size: 14px; }
.add-ai img { width: 100%; height: auto; }
@media (max-width: 760px) { .add-users-body { grid-template-columns: 1fr; gap: 18px; } .add-ai { width: auto; border-left: 0; border-top: 2px solid var(--line-strong); padding: 18px 0 16px; } }
.add-users-form .add-one { gap: 12px; flex-wrap: wrap; }
.add-users-form .add-one label { flex: 1 1 200px; }
.add-users-form small { display: block; margin-top: 4px; font-weight: 500; }
table.team { width: 100%; border-collapse: collapse; font-size: 14px; }
table.team th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
table.team td { padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
table.team td a { color: var(--heading); font-weight: 600; }
table.team td a:hover { color: var(--teal); }
table.team td small { padding-left: 32px; }
table.team td small.t-when { display: block; padding-left: 0; margin-top: 2px; font-size: 12px; color: var(--muted); }
.pct.good { color: var(--teal); font-weight: 700; }
.pct.low { color: var(--danger); font-weight: 700; }
.member-head .row { gap: 16px; flex-wrap: nowrap; }
.member-head h1 { margin: 0; }
.member-head p { margin: 0 0 8px; }
.member-head .phase-pill { font-size: 13px; padding: 4px 12px; display: inline-block; white-space: normal; line-height: 1.35; }
.col-stack { display: grid; gap: 20px; align-content: start; }
.pp-open { width: 14px; height: 14px; border: 1.5px solid var(--line-strong); border-radius: 50%; flex: none; margin: 0 1px; }
.course-row { margin: 10px 0; font-size: 14.5px; }
.course-row .bar { margin-top: 6px; }

/* tools */
.check-row { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 15.5px; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.check-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal); flex: none; }
.check-row:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.steps-preview .phase-label { list-style: none; margin: 20px 0 8px -22px; font-family: var(--font-body); font-size: 19px; font-weight: 700; color: var(--teal); }
.steps-preview .phase-label:first-child { margin-top: 0; }
.share-btn { margin-bottom: 18px; }
details.run { padding: 9px 0; border-bottom: 1px solid var(--line); }
details.run summary small { display: inline; margin-left: 6px; }
.card details.run:last-child { border: 0; }
/* History rows that are their own cards keep the card padding on the sides */
details.card.run { padding: 14px 20px; margin-bottom: 10px; }
details.card.run summary { cursor: pointer; }
.tool-intro { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }

/* office hours */
.calendly { padding: 0; overflow: hidden; }
.calendly iframe { display: block; width: 100%; height: 760px; border: 0; }

/* keyboard focus */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 2px; border-radius: var(--radius-sm); }

/* Phases: 1 Unlock Your Week Workshop → 2 Master Your Week Cohort → 3 Maximize Your Week */
.card.phase-card { padding: 0; overflow: hidden; }
.phase-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); background: var(--paper); }
.phase-title { display: flex; align-items: center; gap: 10px; padding: 14px 20px; font-weight: 700; color: var(--heading); border-bottom: 1px solid var(--line); }
.phase-title .ic { color: var(--teal); }
.phase-track li { position: relative; color: var(--muted); }
.phase-btn { display: flex; gap: 12px; align-items: center; width: 100%; height: 100%; padding: 16px 20px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
@media (hover: hover) { .phase-track li:not(.selected) .phase-btn:hover { background: rgba(255, 255, 255, .55); } }
.phase-track li + li { border-left: 1px solid var(--line); }
.phase-track li.selected { background: var(--card); color: var(--ink); }
.phase-name { display: flex; flex-direction: column; min-width: 0; }
.phase-name b { font-size: 14.5px; line-height: 1.25; color: inherit; }
.phase-track li.selected .phase-name b { color: var(--heading); }
.phase-name small { font-size: 12.5px; }
.phase-track li.selected .phase-name small { color: var(--teal); font-weight: 600; }
.phase-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-family: var(--font-body); font-weight: 700; font-size: 14px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; border: 2px solid var(--line-strong); color: var(--muted); background: var(--card); }
.done > .phase-n, .done .phase-n { background: var(--teal); border-color: var(--teal); color: #fff; font-family: var(--font-body); font-size: 14px; }
.current > .phase-n, .current .phase-n { background: var(--navy); border-color: var(--navy); color: #fff; }
.phase-body { padding: var(--pad); }
.phase-body h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 8px; }
.phase-body p { color: var(--muted); max-width: 64ch; }
.phase-body .bar { max-width: 420px; margin-bottom: 18px; }
.phase-body .row { gap: 10px; }
.prompt-cta { align-items: center; gap: 14px; margin-top: 4px; }
/* Space under the question matches the card's bottom padding */
.prompt-card > h3 { margin-bottom: 0; }
.prompt-card > .prompt-cta { margin-top: 24px; }
@media (max-width: 760px) { .prompt-card > .prompt-cta { margin-top: 20px; } }
.prompt-cta .muted { font-size: 14px; }
/* Private team space marker under the company name */
.private-team { margin: 4px 0 0; font-size: 14px; }
.cohort-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 20px; }
.cohort-facts div { display: grid; gap: 2px; }
.cohort-facts dt { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.cohort-facts dd { margin: 0; font-size: 17px; font-weight: 700; color: #fff; font-variant-numeric: lining-nums; }

/* Courses page, one section per phase */
.level { margin: 0 0 34px; }
.level-head { display: flex; align-items: center; gap: 14px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; margin: 0 0 14px; }
.level-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.level-head small { display: inline-block; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--teal); background: var(--teal-soft); padding: 3px 10px; border-radius: 100px; letter-spacing: 0; }
.level.ahead .level-head { color: var(--muted); }
.level-note { margin: -4px 0 14px; }
.sublevel { font-size: 17px; margin: 18px 0 10px; color: var(--muted); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.level-cohort { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin: 0 0 14px; }
.level-cohort p { margin: 0; }
.course.locked { opacity: .62; background: var(--paper); box-shadow: none; cursor: not-allowed; }
.course.locked h3 { color: var(--muted); }
.ic.lock { width: 14px; height: 14px; vertical-align: -2px; }
.ic.lock.big { width: 36px; height: 36px; color: var(--teal); margin-bottom: 8px; }
.locked-card { text-align: center; max-width: 560px; margin: 0 auto; }
.locked-card .myw { text-align: left; margin: 18px 0 0; }
.phase-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 100px; background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.phase-pill.p2 { background: var(--teal-soft); color: var(--teal); border-color: transparent; }
.phase-pill { white-space: nowrap; }
.phase-pill.p3 { background: var(--teal); color: #fff; border-color: transparent; }
.course .series { margin: -2px 0 8px; color: var(--teal); font-weight: 600; }
.course .series + .course.locked .series { color: var(--muted); }
.lesson-question { font-family: var(--font-body); font-size: clamp(19px, 2vw, 22px); font-weight: 600; color: var(--teal); line-height: 1.35; margin: 4px 0 0; max-width: 36ch; }
.level .grid { margin-top: 0; }
.demo-link { color: rgba(255, 255, 255, .55); text-decoration: underline; text-underline-offset: 3px; margin-top: 18px; }

/* Habits locked until Master Your Week */
nav a.locked { color: rgba(255, 255, 255, .45); }
nav a.locked .ic:first-child { color: rgba(159, 194, 208, .5); }
.nav-lock { margin-left: auto; width: 14px; height: 14px; color: rgba(255, 255, 255, .4); }
.level-sub { display: flex; align-items: center; flex-wrap: wrap; row-gap: 4px; font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.level-sub small { margin-left: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Locked features: a dimmed example of the real thing with the lock message on top */
.locked-wrap { position: relative; margin-bottom: var(--gap); }
.locked-preview { filter: blur(1.5px) saturate(.7); opacity: .55; pointer-events: none; user-select: none; }
.locked-preview .habits, .locked-preview .events-card { margin-bottom: 0; }
/* The example is blurred, which softens its outer edge; draw a crisp outline over it */
.habits-lock::after, .events-lock::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none; }
.events-lock::after { border: 1.5px solid #b9aa97; }
.habits-lock::after { border: 1.5px solid #0f1b2c; }
.locked-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; }
.locked-msg { background: var(--card); border: 1.5px solid #b9aa97; border-radius: var(--radius); box-shadow: var(--shadow-hover); padding: var(--pad); max-width: 460px; text-align: center; }
.locked-msg h2 { font-size: clamp(21px, 2.3vw, 26px); margin: 10px 0 8px; }
.locked-msg p { font-size: 15px; margin-bottom: 16px; }
.locked-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--teal); background: var(--teal-soft); padding: 4px 12px; border-radius: 100px; }
.habits-lock .locked-preview { filter: blur(.6px) saturate(.8); opacity: .8; }
/* Locked examples: the message floats near the top, the example shows below it */
.habits-lock .locked-overlay, .events-lock .locked-overlay { place-items: start center; padding: 64px 20px 20px; }
.habits-lock .locked-preview .habits { min-height: 260px; }
.habits-lock .locked-msg { display: flex; align-items: center; gap: 16px; text-align: left; max-width: none; padding: 14px 16px 14px 20px; flex-wrap: wrap; justify-content: center; }
.habits-lock .locked-msg h2 { font-size: 19px; margin: 0; }
.habits-lock .locked-msg .btn { flex: none; }
.locked-wrap.page .locked-preview { max-height: 760px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.locked-wrap.page .locked-overlay { place-items: start center; padding-top: 140px; }

/* Who ran it: avatar stack, count, View all */
.proof { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 16px; font-size: 14.5px; color: var(--ink); }
.proof .proof-text { flex: 1; min-width: 180px; }
.proof.center { justify-content: center; text-align: center; margin: 4px 0 14px; }
.proof.center .proof-text { flex: 0 1 auto; min-width: 0; color: var(--muted); font-size: 14px; }
.av-stack { display: inline-flex; align-items: center; }
.av-stack .avatar { margin-left: -4px; --gap: var(--card); }
.av-stack .avatar:first-child { margin-left: 0; }
.stack-more { margin-left: -4px; height: 24px; min-width: 24px; padding: 0 6px; border-radius: 100px; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 700; background: var(--paper); color: var(--heading); border: 1.5px solid var(--card); }
.proof-all { display: inline; margin: 0 0 0 2px; padding: 0; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.proof.compact { flex-direction: column; align-items: flex-start; margin: 2px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .78); gap: 8px; } /* faces above the line, the same in both halves */
.proof.compact .proof-text { min-width: 0; }
.proof.compact .av-stack .avatar { --gap: var(--navy); }
.proof.compact .stack-more { background: rgba(255, 255, 255, .12); color: #fff; border-color: var(--navy); }
.proof .proof-all { margin: 0 0 0 2px; line-height: inherit; vertical-align: baseline; }
.proof.compact .proof-all { color: var(--teal-2); font-size: 13.5px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 21, 32, .55); z-index: 60; }
.modal { position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 32px)); max-height: min(720px, calc(100dvh - 48px)); display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(10, 21, 32, .5); padding: var(--pad); }
.photo-modal { width: auto; align-items: center; gap: 14px; padding: var(--pad); }
.photo-modal b { color: var(--heading); font-size: 18px; }
.avatar.xxl { width: min(288px, 70vw); height: min(288px, 70vw); font-size: min(96px, 23vw); }
.pp-photo { padding: 0; border: 0; background: none; border-radius: 50%; cursor: zoom-in; flex: none; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.modal-head h2 { font-size: clamp(20px, 2.4vw, 24px); margin: 0; }
.modal .seg { margin-bottom: 10px; }
.ran-list { list-style: none; margin: 0 -22px; padding: 0 22px 12px; overflow-y: auto; }
.ran-list li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ran-list li b { color: var(--heading); }
/* Lock scrolling on the page itself, not the body, so the sticky sidebar stays put */
html:has(> body.modal-open), html:has(> body.lightbox-open) { overflow: hidden; }

/* Profile menu (top right) */
.content-top { display: flex; justify-content: flex-end; padding: 16px clamp(16px, 3vw, 48px) 0; max-width: 1200px; }
.content-top + main { padding-top: 8px; }
/* Desktop: the bell and profile sit on the page title's row instead of a row of their own */
@media (min-width: 1081px) {
  .content { position: relative; }
  .content-top { position: absolute; top: 0; left: 0; right: 0; z-index: 20; padding-top: 16px; pointer-events: none; }
  .content-top .hdr-right { pointer-events: auto; }
  /* Title capitals, bell and profile center on the sidebar logo (center 55px); the title size follows h1 */
  .content-top + main { padding-top: calc(55px - .634 * clamp(28px, 3.4vw, 44px)); }
  .content-top + main > .page-head:first-child { padding-right: 190px; }
  .content-top + main > :first-child:not(.page-head) { margin-top: 81px; } /* pages without a title start below the profile */
}
.pm { position: relative; }
/* The profile button is one outlined box around the picture, its numbers, and the arrow */
.pm-btn { display: flex; align-items: center; gap: 8px; padding: 12px 8px 8px; /* extra top: the avatar ring draws 4px outside the picture */ border-radius: var(--radius); color: var(--heading); background: var(--card); border: 1px solid var(--line); -webkit-tap-highlight-color: transparent; }
.pm-btn:hover, .pm-btn[aria-expanded="true"] { border-color: var(--line-strong); background: #fff; }
.pm-chev { width: 16px; height: 16px; }
.pav.pav-menu-av { --s: 36px; --b: 16px; --bf: 9px; gap: 3px; width: auto; }
.pav.pav-menu-av .pbs { gap: 2px; }
.pm-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 260px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 22px 48px -18px rgba(14, 27, 46, .35); padding: 8px; display: grid; }
.pm-who { display: flex; gap: 10px; align-items: center; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.pm-who b { color: var(--heading); display: block; font-size: 14.5px; }
.pm-who small { overflow-wrap: anywhere; }
.pm-menu a, .pm-menu .pm-item { display: block; text-align: left; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 500; background: none; font-size: 15px; }
.pm-menu a:hover, .pm-menu .pm-item:hover { background: var(--paper); }
.avatar.photo { background-size: cover !important; background-position: center !important; }
.avatar.xl { width: 96px; height: 96px; font-size: 32px; }
.avatar.md { width: 40px; height: 40px; font-size: 13px; }
.avatar.lgp { width: 48px; height: 48px; font-size: 16px; }
/* Profile picture with three badges beneath it: phase (left), Weekly Planning Meeting streak (middle, set a little lower), Daily Review Meeting streak (right) */
/* Fixed column width per size so names and text line up whatever the badges hold */
.pav { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; flex: none; align-self: flex-start; --s: 38px; --b: 18px; --bf: 10px; width: var(--pw, 64px); }
.pav-md { --s: 40px; --pw: 66px; }
.pav-lgp { --s: 50px; --b: 20px; --bf: 11px; --pw: 74px; }
.pav-lg { --s: 72px; --b: 24px; --bf: 12.5px; --pw: 90px; }
.pav .avatar { display: grid; width: var(--s); height: var(--s); }
.pav-lgp .avatar { font-size: 16px; }
.pav-lg .avatar { font-size: 24px; }
.pbs { display: flex; align-items: flex-start; gap: 3px; }
.pb { display: inline-grid; place-items: center; min-width: var(--b); height: var(--b); padding: 0 4px; box-sizing: border-box; border-radius: 100px; font-size: var(--bf); font-weight: 800; line-height: 1; font-family: var(--font-body); font-variant-numeric: lining-nums tabular-nums; color: #fff; background: var(--navy); }
.pb-c { margin-top: 4px; }
/* Always circles; three-digit streaks shrink to fit */
.pb:not(.coach-pb) { width: var(--b); min-width: 0; padding: 0; }
.pb.pb-3 { font-size: calc(var(--bf) - 2.5px); letter-spacing: -.03em; }
.tip { position: fixed; z-index: 100; max-width: 240px; padding: 7px 10px; border-radius: var(--radius-sm); background: var(--navy); color: #fff; font: 500 13px/1.35 var(--font-body); box-shadow: 0 10px 24px -10px rgba(14, 27, 46, .45); pointer-events: none; }
.tip[hidden] { display: none; }
.pb.phase.p1 { background: #ece3d8; color: var(--heading); }
.pb.phase.p2 { background: var(--teal-2); color: var(--navy); }
.pb.phase.p3 { background: var(--teal); }
.pb.wpm, .pb.drm { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--teal); }
.pb.coach-pb { margin-top: 5px; background: var(--navy); color: #fff; padding: 0 7px; font-size: calc(var(--bf) + .5px); letter-spacing: .02em; }
.sidebar .pb.coach-pb, .prompt-card .pb.coach-pb, .topbar .pb.coach-pb { background: #fff; color: var(--navy); }
.pb.locked { background: var(--paper); color: var(--muted); }
.pb-lock { width: calc(var(--bf) + 1px); height: calc(var(--bf) + 1px); stroke-width: 2.4; }
.sidebar .pb.locked, .prompt-card .pb.locked { background: #2b3a52; color: rgba(255, 255, 255, .6); }
/* Profile and Settings */
.profile-form, .settings-form { max-width: 640px; }
.photo-row { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.photo-row .stack { gap: 8px; justify-items: start; }
.photo-row small { max-width: 26ch; }
.file-btn { position: relative; margin: 0; cursor: pointer; white-space: nowrap; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.settings-form h3 { margin-bottom: 10px; }
.settings-gap { margin-top: 26px; }
.settings-form .check-row { margin-bottom: 8px; }
.settings-form .check-row small { display: block; margin-top: 2px; }
.settings-form .check-row b { color: var(--heading); }
/* Save button: the same space above it as the card has below it */
.profile-form > .row:last-child, .settings-form > .row:last-child { margin-top: 24px; }
.remind-card { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 16px; }
.tz-field { margin: 4px 0 18px; display: grid; gap: 6px; max-width: 360px; }
.tz-field select { margin: 0; }
.tz-field small { font-weight: 400; }
.remind-card:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.remind-head { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-weight: 500; cursor: pointer; }
.remind-head input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); flex: none; }
.remind-head b { color: var(--heading); display: block; }
.remind-head small { display: block; margin-top: 2px; }
.remind-time { margin: 0; display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); border-left: 1px solid var(--line); padding-left: 14px; }
.remind-time select { margin: 0; background: #fff; }

/* Celebration preview */
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; max-width: 720px; margin: 0 auto 18px; }
.preview-bar b { color: var(--heading); display: block; }
.preview-bar .row { gap: 6px; }
.preview-bar .btn.ghost.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.preview-link { font-size: 14px; font-weight: 600; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* Card header mirroring the menu item: icon, title, divider */
.card-hd { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--heading); font-weight: 600; font-size: 15px; align-self: stretch; }
.card-hd .ic { color: var(--teal); }
a.card-hd:hover span { text-decoration: underline; text-underline-offset: 3px; }
.prompt-card .card-hd, .habits .card-hd { color: #fff; border-bottom-color: rgba(255, 255, 255, .14); }
.prompt-card .card-hd .ic, .habits .card-hd .ic { color: var(--teal-2); }
.habits-half .card-hd { margin-bottom: 4px; }

/* Home: Upcoming Events card */
.events-card { margin-bottom: var(--gap); }
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ev-row:last-child { border-bottom: 0; }
.ev-main { flex: 1; min-width: 0; }
.ev-main b { color: var(--heading); display: block; line-height: 1.3; }
.ev-row .btn { flex: none; }
.date-chip.sm { width: 48px; padding: 6px 0; border-radius: var(--radius-sm); }
.date-chip.sm b { font-size: 18px; }
.date-chip.sm small { font-size: 9.5px; }
.link-all { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.office-card { display: flex; flex-direction: column; align-items: flex-start; }
.office-card h3 { margin-bottom: 4px; }
.events-lock .locked-msg { display: flex; align-items: center; gap: 16px; text-align: left; max-width: none; padding: 14px 16px 14px 20px; flex-wrap: wrap; justify-content: center; }
.events-lock .locked-msg h2 { font-size: 19px; margin: 0; }

/* Public profile */
.pav-link { display: block; flex: none; align-self: flex-start; color: inherit; border-radius: var(--radius); }
.pav-link:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 2px; }
.pp-hero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.pp-hero h1 { margin: 0 0 2px; font-size: clamp(28px, 3vw, 38px); }
.pp-hero p { margin: 0 0 10px; }
.pp-hero .phase-pill { font-size: 13px; padding: 4px 12px; white-space: normal; display: inline-block; line-height: 1.35; }
.pp-note { margin: 12px 0 0 !important; font-size: 14px; color: var(--muted); }
.pp-note a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pp-group { padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.pp-group:last-child { border-bottom: 0; padding-bottom: 0; }
.pp-group b { color: var(--heading); }
.pp-courses { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.pp-courses li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.ic.pp-check { width: 16px; height: 16px; color: var(--teal); }
.pp-group .muted.sm { margin: 6px 0 0; }

#toast { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%, 16px); display: flex; align-items: flex-start; gap: 10px; width: max-content; max-width: min(420px, calc(100% - 32px)); background: #fff; color: var(--heading); border: 1px solid var(--line); padding: 12px 16px 12px 12px; border-radius: var(--radius); box-shadow: 0 12px 32px rgba(15, 30, 50, .22); font-size: 14px; line-height: 1.35; transition: transform .25s, opacity .25s; opacity: 0; pointer-events: none; z-index: 50; }
#toast b { display: block; font-weight: 700; }
#toast small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
#toast .toast-ic { flex: none; width: 20px; height: 20px; color: var(--teal); stroke-width: 2.2; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1000px) {
  .team-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "act"; }
  .feed-wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "glb" "main" "side"; }
  .glb { padding-block: 16px; }
  .glb-toggle { cursor: pointer; align-items: center; }
  .glb-toggle h3 { margin: 0; font-size: 18px; }
  .glb-toggle .muted { display: block; }
  .glb-chev { display: inline-block; flex: none; }
  .glb:not(.open) .glb-body { display: none; }
  .glb.open .glb-body { margin-top: 12px; }
  .glb.open .glb-chev { transform: rotate(180deg); }
  .glb .lb-cols { grid-template-columns: 1fr; }
  .grid.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phones and every iPad held upright (up to the 13-inch at 1032px): top bar with a slide-out menu instead of the sidebar */
@media (max-width: 1080px) {
  #app:not(.logged-out) { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } /* the top bar keeps its height on short pages */
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 40; transform: translateX(-100%); transition: transform .25s; }
  body.menu-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); }
  .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; background: var(--navy); padding: 10px 16px; }
  .topbar-logo .brand-img { width: 116px; }
  .topbar-logo .brand small { display: none; }
  .menu-btn { display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; width: 40px; height: 40px; border-radius: 100px; }
  .menu-btn .ic { width: 22px; height: 22px; }
  .content-top { display: none; }
  /* iOS Safari zooms into any field under 16px when it gets focus */
  input, textarea, select { font-size: 16px !important; }
  .content-top + main { padding-top: 28px; }
  .topbar .hdr-right { margin-left: auto; gap: 8px; }
  .topbar .bell { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); width: 44px; height: 44px; }
  .topbar .bell:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); }
  .topbar .bell-n { box-shadow: 0 0 0 2px var(--navy); }
  .topbar .pm-btn { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); }
  .topbar .pm-btn:hover, .topbar .pm-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); }
  .topbar .avatar { --gap: var(--navy); }
  .pm-menu { width: min(280px, calc(100vw - 32px)); }
}
/* iPads held sideways and small laptops: a narrower sidebar leaves room for two content columns */
@media (min-width: 1081px) and (max-width: 1279px) {
  #app:not(.logged-out) { grid-template-columns: 240px 1fr; }
  .feed-wrap { grid-template-columns: minmax(0, 1fr) 280px; }
  .team-grid { grid-template-columns: minmax(0, 1fr) 300px; }
}
/* Phones */
@media (max-width: 760px) {
  .remind-card { grid-template-columns: 1fr; }
  /* Team members table becomes one card per person */
  table.team thead { display: none; }
  .roster-tools select { display: block; flex: 1 1 100%; }
  table.team, table.team tbody { display: block; }
  table.team tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  table.team td { padding: 0; border: 0; white-space: normal; font-size: 14px; }
  table.team td.t-name { grid-column: 1; font-size: 15px; }
  table.team td.t-phase { grid-column: 2; justify-self: end; text-align: right; }
  table.team td[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
  table.team tr { grid-auto-flow: row dense; }
  table.team td.c-wp { grid-column: 1; }
  table.team td.c-pc { grid-column: 2; }
  table.team .t-lab { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
  table.team td.t-wide { grid-column: 1 / -1; }
  .stat .chain { gap: 2px; }
  .stat .pip { width: 9px; height: 9px; border-width: 1.5px; }
  .stat .pip.on + .pip.on::before { width: 2px; }
  table.team tr { gap: 8px 12px; padding: 12px 2px; }
  .seg button { font-size: 12.5px; line-height: 1.2; padding: 7px 8px; border-radius: 100px; }
  .seg { border-radius: 100px; }
  .remind-time { border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
  main { padding: 24px 16px 48px; }
  .team-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "act"; }
  .phase-track { grid-template-columns: 1fr; }
  /* Phones: Your Next Step sits right under the current phase, later phases below it */
  .phase-card { display: flex; flex-direction: column; }
  .phase-card .phase-track { display: contents; }
  .phase-card .phase-track li { background: var(--paper); }
  .phase-card .phase-track li.selected { background: var(--card); }
  .phase-card .phase-track li.below { order: 2; }
  .phase-card .phase-body { order: 1; }
  .locked-wrap.page .locked-overlay { padding-top: 90px; }
  .habits-lock .locked-overlay, .events-lock .locked-overlay { padding: 60px 16px 16px; }
  .habits-lock .locked-preview .habits { min-height: 485px; }
  .events-lock .locked-msg { text-align: center; }
  .ev-row { gap: 10px; }
  .habits-lock .locked-msg { text-align: center; }
  .phase-track li + li { border-left: 0; border-top: 1px solid var(--line); }
  .habits { grid-template-columns: 1fr; }
  .event { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; }
  .event-actions { grid-column: 1 / -1; flex-direction: row; }
  .event-actions .btn { flex: 1; }
  .date-chip { width: 56px; }
  .calendly iframe { height: 1000px; }
  .site-footer { justify-content: center; text-align: center; }
  .footer-logo { margin-right: 0; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; }
  :root { --pad: 20px; }
  .profile-form > .row:last-child, .settings-form > .row:last-child { margin-top: 20px; }
  .lesson { padding: 22px; }
}

/* Home: faces strip under the greeting */
.faces-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin: -8px 0 var(--gap); }
.faces-strip p { margin: 0; font-size: 15px; color: var(--heading); }
.faces-strip a { font-weight: 700; color: var(--teal); white-space: nowrap; }
.faces { display: inline-flex; align-items: center; padding: 4px; }
.faces .avatar { --gap: var(--bg); width: 44px; height: 44px; font-size: 14px; margin-left: -6px; }
.faces .avatar:first-child { margin-left: 0; }
.face-more { margin-left: -6px; height: 44px; min-width: 44px; padding: 0 10px; box-sizing: border-box; border-radius: 100px; display: inline-grid; place-items: center; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 0 0 2px var(--bg); }
@media (max-width: 760px) { .faces-strip { flex-direction: column; align-items: flex-start; gap: 8px; } .faces .avatar { width: 36px; height: 36px; font-size: 12px; } .face-more { height: 36px; min-width: 36px; font-size: 12px; } }

/* Page flourish (see reveal() in app.js): sections fade up; avatars in a row pop in one by one, left to right */
.rv-row:not(.in) > * { opacity: 0; }
.rv-row.in > * { animation: rv-pop .42s cubic-bezier(.3, 1.5, .5, 1) calc(var(--d, 0ms) + 120ms + var(--i, 0) * 65ms) both; }
@keyframes rv-pop { from { opacity: 0; transform: translateX(-10px) scale(.6); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rv-row:not(.in) > * { opacity: 1; } .rv-row.in > * { animation: none; } }
.habits-note { margin: 4px 0 0; color: rgba(255, 255, 255, .6); font-size: 14px; }

/* ---------- Master Your Week: Cohort or Self-Directed ---------- */
.track h2 { display: flex; align-items: center; gap: 4px; font-size: 26px; }
.track > p { color: var(--muted); }
.track .checks { margin: 18px 0 22px; }
.track .cohort-facts dt { color: var(--muted); }
.track .cohort-facts dd { color: var(--ink); }
.track .row { gap: 18px; align-items: center; margin-top: auto; }
.track { display: flex; flex-direction: column; }
.badge-preview { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }

/* Solo badges: merit badge patches. Earned ones are filled teal with a stitched ring; the rest are dashed outlines. */
.badge-m { --s: 76px; position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center;
  background: var(--card); border: 2px dashed var(--line-strong); color: var(--muted); }
.badge-m > .ic { width: 42%; height: 42%; }
.badge-m.got { background: var(--teal); border: 2px solid var(--teal); color: #fff; outline: 1.5px dashed rgba(255, 255, 255, .6); outline-offset: -8px; }
.badge-m.got .badge-m.sm { --s: 38px; border-width: 1.5px; }
.badge-m.sm.got { outline-offset: -5px; outline-width: 1px; }
.badge-m.sm .badge-m.lg { --s: 120px; }
.badge-m.lg.got { outline-offset: -11px; outline-width: 2px; }
.badge-m.lg 

.badge-group { margin-top: calc(var(--gap) * 1.5); }
.badge-group .section { margin: 0 0 4px; font-size: 20px; }
.badge-group > p { margin: 0 0 18px; }
.badge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 920px; }
.badge-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 22px 14px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.badge-tile:hover { border-color: var(--teal-2); }
.badge-tile b { font-size: 15px; line-height: 1.3; }
.badge-tile small { font-size: 13px; color: var(--muted); margin-top: auto; }
.badge-tile.got small { color: var(--teal); font-weight: 600; }
.badge-group + .demo-link, .badge-group ~ .demo-link { color: var(--muted); display: inline-block; margin-top: 28px; }
@media (max-width: 760px) { .badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .badge-tile { padding: 18px 10px 14px; } .badge-m { --s: 64px; } }

.badge-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 28px; margin-bottom: var(--gap); }
.badge-hero h1 { margin-bottom: 8px; }
.badge-hero .lead { font-size: 17px; color: var(--muted); margin: 0; }
.badge-hero .earned { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; color: var(--teal); font-weight: 700; }
.badge-hero .earned .ic { width: 18px; height: 18px; }
@media (max-width: 600px) { .badge-hero { flex-direction: column; align-items: flex-start; gap: 18px; } .badge-m.lg { --s: 96px; } }
.section.first { margin-top: 0; }
.reqs { list-style: none; padding: 0; margin: 0 0 22px; }
.reqs li + li { border-top: 1px solid var(--line); }
.req { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; font-weight: 600; }
label.req { cursor: pointer; }
.req input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal); }
.req > .ic { flex: none; width: 20px; height: 20px; color: var(--teal); margin-top: 1px; }
.req-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px dashed var(--line-strong); margin-top: 1px; }
.req small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.badge-m.md { --s: 48px; }
.badge-m.md.got { outline-offset: -6px; outline-width: 1px; }
.badge-m.md .pp-badges-note { margin: 0 0 14px; }
.pp-badges { display: grid; grid-template-columns: repeat(6, 48px); gap: 12px; }
.pp-badge { display: block; line-height: 0; }
a.pp-badge:hover .badge-m:not(.got) { border-color: var(--teal-2); }
@media (max-width: 760px) { .pp-badges { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; } .pp-badges .badge-m { --s: 100%; aspect-ratio: 1; height: auto; } }
.t-badges { display: block; font-size: 12.5px; color: var(--muted); }

/* Option C: the phase panel is blue only for your current phase; tapping another phase shows it on the plain card */
.phase-body.plain .myw-head { display: block; font-size: 20px; font-weight: 700; color: var(--heading); padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.phase-body.plain .row { margin-top: 6px; }
/* Home: Office Hours and Upcoming Events side by side */
.home-live { margin-bottom: var(--gap); align-items: stretch; }
.home-live > .card { margin: 0; }
/* Self-Directed: the badge you're working on, and your small cohort's weekly meeting */
.badge-tile.current { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.badge-tile.current small { color: var(--teal); font-weight: 600; }
.badge-note { color: var(--muted); }
.badge-note b { color: var(--heading); }
.badge-group ~ .demo-link + .level-note { margin-top: 24px; }
.next-meet { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0 0 16px; color: var(--ink); }
.next-meet span { flex-basis: 100%; font-size: 13px; font-weight: 600; color: var(--muted); }
.next-meet b { font-size: 16px; color: var(--heading); }
.next-meet a { font-size: 14px; font-weight: 600; color: var(--teal); text-decoration: underline; }
.myw .next-meet span { color: rgba(255, 255, 255, .75); }
.myw .next-meet b, .myw .next-meet a { color: #fff; }
.sidebar .next-meet b { font-size: 14px; }
.pod-card .next-meet { margin-top: 12px; }
.pod-list { margin: 0; }
.login-group h4 .tag { font-size: 12px; padding: 2px 9px; margin-left: 8px; }
@media (min-width: 761px) { .badge-grid.system { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 690px; } } /* nine badges, three rows of three */
.course-series { margin-bottom: 26px; }
.course-series .section { margin: 0 0 4px; font-size: 20px; }
.course-series > p { margin: 0 0 16px; }
@media (min-width: 1300px) { .course-series .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } } /* four root causes in one row */

/* Pace Check: the first step of the Weekly Planning Meeting, and the team's totals on Manage */
.pace-set { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.pace-set legend { padding: 0; margin-bottom: 10px; font-weight: 600; color: var(--heading); }
.pace-list { margin: 0 0 12px; padding-left: 20px; color: var(--muted); }
.pace-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pace-opts.count { display: flex; flex-wrap: wrap; }
.pace-opt { position: relative; display: block; margin: 0; cursor: pointer; }
.pace-opt input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; }
.pace-opt span { display: block; padding: 12px 10px; min-width: 46px; box-sizing: border-box; text-align: center; font-weight: 600; font-size: 15px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.pace-opt input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pace-opt input:focus-visible + span { outline: 3px solid var(--teal-2); outline-offset: 2px; }
.peace-bar { display: flex; gap: 2px; height: 12px; border-radius: 100px; overflow: hidden; background: var(--line); }
.peace-bar .p1, .peace-key .p1 { background: var(--teal-2); }
.peace-bar .p3, .peace-key .p3 { background: var(--teal); }
.peace-bar .p5, .peace-key .p5 { background: var(--danger); }
.peace-key { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.peace-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.peace-tag { font-weight: 600; color: var(--muted); }
.peace-tag.p3 { color: var(--teal); }
.peace-tag.p5 { color: var(--danger); }
.pace-card { margin-bottom: var(--gap); }
.pace-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 18px 0; }
.pace-stats span { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.pace-stats b { display: block; font-size: 40px; line-height: 1.1; font-weight: 800; color: var(--navy); font-variant-numeric: lining-nums; }
.pace-stats small { color: var(--muted); }
.pace-stats .th-help { display: inline-grid; margin-bottom: 0; font-size: 10px; font-weight: 700; }
.pace-stats .peace-bar { margin-top: 14px; }
.pace-table .t-peace { min-width: 180px; }
.pace-table .t-peace small { padding-left: 0; display: block; margin-top: 4px; color: var(--muted); }
@media (max-width: 760px) {
  .pace-stats { grid-template-columns: 1fr; gap: 18px; }
  .pace-opts:not(.count) { grid-template-columns: 1fr; }
  .pace-table tr { grid-template-columns: 1fr 1fr; }
  .pace-table td.t-name, .pace-table td.t-peace { grid-column: 1 / -1; }
}
