:root {
  --navy: #0f3d2b;
  --navy-2: #256c4a;
  --ink: #0f2a20;
  --muted: #5d7268;
  --line: #dbe9e3;
  --bg: #f1f7f4;
  --card: #ffffff;
  --gold: #4bd590;
  --gold-2: #2fc67b;
  --gold-soft: #dff8ec;
  --blue: #138a6a;
  --cyan: #2fc4a0;
  --blue-soft: #e3f4ec;
  --green: #17a36b;
  --green-soft: #e1f7ee;
  --amber: #c77d00;
  --amber-soft: #fff1d6;
  --red: #d64545;
  --red-soft: #fde8e8;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 77, 53, .06), 0 6px 20px rgba(11, 77, 53, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.hide { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.center { text-align: center; }

.boot { min-height: 100vh; display: grid; place-items: center; background: var(--navy); }
.boot img { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .7; } }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 600; cursor: pointer;
  background: var(--navy); color: #fff; text-decoration: none; min-height: 44px; transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.98); }
.btn.gold { background: linear-gradient(135deg, #87e3b5, var(--gold) 45%, var(--gold-2)); color: var(--navy); }
.btn.light { background: var(--blue-soft); color: var(--navy); }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn.wa { background: #1fae5b; color: #fff; }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.sm { padding: 7px 12px; min-height: 36px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
.link-btn { background: none; border: 0; color: var(--blue); cursor: pointer; padding: 4px; font-weight: 600; }

label.f { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
label.f > span { display: block; margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=time],
input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 12px;
  padding: 11px 13px; min-height: 46px; outline: none; transition: border-color .15s;
  color: var(--ink); font-weight: 500;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 240, 163, .15); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- auth ---------- */
.auth {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr;
  background: radial-gradient(1200px 600px at 10% 0%, #1a8f64 0%, var(--navy) 55%, #073323 100%);
}
.auth-hero { color: #fff; padding: 56px 48px; display: flex; flex-direction: column; justify-content: safe center; align-items: flex-start; gap: 22px; }
.auth-hero .crest { width: 150px; filter: drop-shadow(0 10px 30px rgba(56, 200, 244, .35)); }
.pill-gold { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 800; font-size: 11px; letter-spacing: .12em; padding: 6px 12px; border-radius: 99px; text-transform: uppercase; }
.auth-hero h1 { font-size: 46px; line-height: 1.05; }
.auth-hero h1 .hl { background: linear-gradient(90deg, var(--cyan), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero p { color: #c8f5e4; font-size: 16px; max-width: 460px; margin: 0; }
.auth-hero .stats { display: flex; gap: 10px; flex-wrap: wrap; }
.auth-hero .stat { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); border-radius: 12px; padding: 8px 14px; text-align: center; }
.auth-hero .stat b { display: block; color: var(--gold); font-size: 20px; }
.auth-hero .stat span { font-size: 12px; color: #c8f5e4; }
.auth-panel { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 22px; padding: 26px; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.seg button { border: 0; background: transparent; padding: 10px; border-radius: 9px; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg button.on { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.err { background: var(--red-soft); color: var(--red); padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.byline { color: #8ed6bc; font-size: 12px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 32px 20px 4px; text-align: center; align-items: center; gap: 14px; }
  .auth-hero .crest { width: 96px; }
  .auth-hero h1 { font-size: 34px; }
  .auth-hero .stats { justify-content: center; }
  .auth-hero .desk { display: none; }
}

/* ---------- shell ---------- */
.top {
  position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff;
  padding: 10px 20px; display: flex; align-items: center; gap: 12px;
}
.top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.top .brand img { width: 34px; height: auto; }
.top .brand b { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.top .brand small { display: block; color: #8ed6bc; font-size: 11px; font-weight: 500; margin-top: -2px; }
.top nav { display: flex; gap: 4px; margin-left: 18px; }
.top nav a { color: #c8f5e4; text-decoration: none; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; position: relative; }
.top nav a.on { background: rgba(255,255,255,.1); color: #fff; }
.top nav a.on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--gold); }
.me-btn { margin-left: auto; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 0; color: #fff; border-radius: 99px; padding: 4px 12px 4px 4px; cursor: pointer; text-decoration: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #fff; flex: none; }
.avatar.lg { width: 52px; height: 52px; font-size: 18px; }
.badge-dot { background: var(--gold); color: var(--navy); border-radius: 99px; font-size: 11px; font-weight: 800; padding: 0 6px; margin-left: 4px; }

main { max-width: 1060px; margin: 0 auto; padding: 22px 20px 110px; }
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .top { padding: 10px 16px; }
  .top nav { display: none; }
  main { padding: 16px 16px 110px; }
  .bottom-nav {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; padding: 6px 0; border-radius: 12px; }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a.on { color: var(--navy); background: var(--gold-soft); }
  .me-btn span.nm { display: none; }
  .me-btn { padding: 4px; }
}

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.hero + .card, .card + .card, .card + .section, .section + .card, .section + .section { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.cols > .card + .card { margin-top: 0; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } .cols > .card + .card { margin-top: 0; } }

/* hero */
.hero {
  background: radial-gradient(700px 300px at 100% 0%, #1fbf84 0%, var(--navy) 60%); color: #fff; border-radius: 20px;
  padding: 20px; display: flex; gap: 18px; align-items: center; box-shadow: var(--shadow);
}
.hero .rank-img { width: 76px; height: 76px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 16px rgba(56,200,244,.35)); }
.hero h1 { font-size: 24px; }
.hero .sub { color: #c8f5e4; font-size: 14px; }
.hero .gold { color: var(--gold); font-weight: 700; }
.bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--gold)); }
.bar.light { background: var(--line); }
.hero .day-big { margin-left: auto; text-align: right; flex: none; }
.hero .day-big b { display: block; font-size: 34px; font-weight: 800; line-height: 1; color: var(--gold); }
.hero .day-big span { font-size: 12px; color: #c8f5e4; }
@media (max-width: 560px) {
  .hero { flex-wrap: wrap; gap: 12px; }
  .hero .rank-img { width: 56px; height: 56px; }
  .hero h1 { font-size: 20px; }
  .hero .day-big b { font-size: 26px; }
}

/* checklist */
.check { display: flex; align-items: flex-start; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.check:last-child { border-bottom: 0; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 24px; height: 24px; flex: none; border: 2px solid #b8e6d5; border-radius: 7px; display: grid; place-items: center; margin-top: 1px; transition: all .15s; background: #fff; }
.check .box svg { width: 15px; height: 15px; opacity: 0; color: #fff; }
.check input:checked + .box { background: var(--green); border-color: var(--green); }
.check input:checked + .box svg { opacity: 1; }
.check input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(31, 240, 163, .3); }
.check .txt { flex: 1; min-width: 0; }
.check input:checked ~ .txt .t { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(91, 133, 118, .4); }
.check .open { font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; background: var(--blue-soft); padding: 3px 9px; border-radius: 99px; color: var(--navy-2); }

.part { border-radius: 14px; padding: 14px 14px 6px; }
.part + .part { margin-top: 12px; }
.part.morning { background: linear-gradient(180deg, #ebfaf2, #d8f6e7); }
.part.day { background: var(--blue-soft); }
.part.night { background: var(--navy); color: #fff; }
.part.night .check { border-color: rgba(255,255,255,.12); }
.part.night .box { background: transparent; border-color: rgba(255,255,255,.4); }
.part.night .check input:checked ~ .txt .t { color: #9fdec7; }
.part .part-h { display: flex; justify-content: space-between; font-weight: 700; }
.part .part-h small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }

/* todo */
.todo { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.todo .x { margin-left: auto; background: none; border: 0; color: #a3c9bb; cursor: pointer; font-size: 20px; line-height: 1; padding: 4px 8px; }
.add-row { display: flex; gap: 8px; margin-top: 10px; }
.add-row input { flex: 1; }

/* chips / stage picker */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.chip { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 7px 12px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); text-align: left; }
.chip b { display: block; color: var(--ink); font-size: 13px; }
.chip.on { border-color: var(--navy); background: var(--navy); color: #c8f5e4; }
.chip.on b { color: #fff; }
.chip.done { border-color: var(--green); }
.chip.now:not(.on) { border-color: var(--gold); }

.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pill.on-track, .pill.graduated { background: var(--green-soft); color: var(--green); }
.pill.watch { background: var(--amber-soft); color: var(--amber); }
.pill.behind { background: var(--red-soft); color: var(--red); }
.pill.not-started { background: #eef7f4; color: var(--muted); }
.pill.role { background: var(--gold-soft); color: #1a7045; text-transform: capitalize; }
.pill.blue { background: var(--blue-soft); color: var(--navy-2); }

/* dots (last 7 days) */
.dots { display: flex; gap: 4px; }
.dots i { width: 12px; height: 12px; border-radius: 4px; background: #e4f3ee; display: block; }
.dots i.l1 { background: #bfffe8; } .dots i.l2 { background: #67f7c2; } .dots i.l3 { background: var(--blue); } .dots i.l4 { background: var(--green); }

/* messages */
.msg { border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: 12px; padding: 12px 14px; }
.msg + .msg { margin-top: 10px; }
.msg .from { font-size: 12px; font-weight: 700; color: #1a7045; }

/* meeting */
.meet { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.meet:last-child { border-bottom: 0; }
.meet.admin { flex-wrap: wrap; }
.meet.admin .acts { flex-basis: 100%; justify-content: flex-start !important; gap: 6px; }
.cal { width: 54px; flex: none; border-radius: 12px; overflow: hidden; text-align: center; background: #fff; border: 1.5px solid var(--line); }
.cal small { display: block; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 0; text-transform: uppercase; }
.cal b { display: block; font-size: 20px; padding: 2px 0; }
.next-meet { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.next-meet .muted { color: #c8f5e4; }

/* stats tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); border: 2px solid transparent; cursor: pointer; text-align: left; }
.tile.on { border-color: var(--navy); }
.tile b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.tile span { font-size: 13px; color: var(--muted); font-weight: 600; }
.tile.green b { color: var(--green); } .tile.amber b { color: var(--amber); } .tile.red b { color: var(--red); } .tile.gold b { color: var(--gold-2); }

/* team list */
.person { display: grid; grid-template-columns: 44px 1.6fr 1.3fr 1fr 112px; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; text-decoration: none; color: inherit; }
.person:hover { background: #f7fffc; }
.person:last-child { border-bottom: 0; }
.person .avatar { width: 40px; height: 40px; }
.person .name { font-weight: 700; }
@media (max-width: 760px) {
  .person { grid-template-columns: 40px 1fr auto; }
  .person > .pill { justify-self: end; }
  .person .hide-m { display: none; }
}

/* table */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 8px 6px; border-bottom: 1.5px solid var(--line); }
.tbl td { padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.scroll-x { overflow-x: auto; }

/* resources */
.res { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.res:last-child { border-bottom: 0; }
.res .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-soft); color: var(--navy-2); flex: none; }
.res .ic svg { width: 20px; height: 20px; }
.res a.t { font-weight: 600; color: var(--ink); text-decoration: none; }
.res a.t:hover { color: var(--blue); }

/* month cards */
.month { border-radius: 16px; padding: 16px; background: #fff; box-shadow: var(--shadow); }
.month.now { outline: 2px solid var(--gold); }
.month .targets { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }

.empty { text-align: center; color: var(--muted); padding: 22px 10px; font-size: 14px; }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; margin-bottom: 12px; }

#toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  transition: all .25s; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.date-nav { display: flex; align-items: center; gap: 6px; }
.date-nav button { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 16px; }
.date-nav button[disabled] { opacity: .35; cursor: default; }

.hit { display: flex; gap: 8px; }
.hit button { flex: 1; border: 1.5px solid rgba(255,255,255,.25); background: transparent; color: #fff; border-radius: 10px; padding: 9px; cursor: pointer; font-weight: 600; }
.hit button.on { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.part.night textarea { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: #fff; min-height: 64px; }
.part.night textarea::placeholder { color: #8ed6bc; }
.part.night label.f { color: #c8f5e4; }

.footer-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 28px; }
.footer-note img { width: 22px; vertical-align: middle; margin-right: 4px; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--blue); list-style: none; }
details.more summary::-webkit-details-marker { display: none; }

/* profile photos */
img.avatar { object-fit: cover; background: var(--line); }
.avatar.xl { width: 84px; height: 84px; font-size: 28px; flex: none; border: 3px solid var(--gold); box-shadow: var(--shadow); }
.hero .avatar.xl { width: 76px; height: 76px; }
.photo-pick { position: relative; cursor: pointer; flex: none; }
.photo-pick .cam { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 15px; box-shadow: var(--shadow); }

/* "Start here" guide card */
.start-here { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.start-here h2 { color: #fff; margin-top: 2px; }
@media (max-width: 560px) { .start-here .btn { display: none; } }

/* podcast players */
.sp-embed { width: 100%; border: 0; border-radius: 12px; display: block; }
.pod-audio { width: 100%; display: block; }
.shows { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.show { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.show img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 4px; }

/* today's thought, celebrations, prospects, whys */
.thought { display: flex; gap: 8px; align-items: center; margin: 14px 2px 0; font-weight: 600; color: var(--navy-2); font-size: 15px; }
.celebrate { display: flex; align-items: center; gap: 14px; color: #fff; background: radial-gradient(500px 200px at 0% 0%, #2ad798 0%, var(--navy) 70%); }
.celebrate h2 { color: #fff; }
.celebrate .avatar.xl { width: 60px; height: 60px; font-size: 20px; }
@media (max-width: 560px) { .celebrate { flex-wrap: wrap; } }
.prospect { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.prospect:last-child { border-bottom: 0; }
.prospect .btn.wa { padding: 6px 10px; }
.whys { display: grid; gap: 6px; }
.why { display: flex; align-items: center; gap: 8px; }
.why span { width: 24px; text-align: right; font-weight: 700; color: var(--muted); font-size: 13px; flex: none; }
.why input { min-height: 40px; padding: 8px 11px; }
a.chip { text-decoration: none; }

/* "Send with…" menu / bottom sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 200; background: rgba(7, 51, 35, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: #fff; width: 100%; max-width: 440px; border-radius: 20px 20px 0 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.2); animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(30px); } }
@media (min-width: 600px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 20px; } }
.sheet-h { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 8px; }
.sheet-h .x { background: none; border: 0; font-size: 24px; color: var(--muted); cursor: pointer; }
.sheet-opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: left; }
.sheet-opt:hover, .sheet-opt:focus-visible { background: var(--bg); }
.sheet-opt .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #e7f8ee; color: #1fae5b; font-size: 18px; flex: none; }
.sheet-opt small { display: block; color: var(--muted); font-size: 12px; }

/* countdown bar */
#countdown:empty { display: none; }
#countdown { position: sticky; top: 54px; z-index: 15; }
.countdown { display: flex; align-items: center; gap: 10px; padding: 8px 20px; background: linear-gradient(90deg, var(--gold), #87e3b5); color: var(--navy); text-decoration: none; font-weight: 600; font-size: 14px; }
.countdown .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.countdown b { font-variant-numeric: tabular-nums; font-size: 16px; background: var(--navy); color: var(--gold); padding: 2px 10px; border-radius: 8px; white-space: nowrap; }
.countdown.late { background: linear-gradient(90deg, #ffb4b4, var(--red-soft)); color: var(--red); }
.countdown.late b { background: var(--red); color: #fff; }
@media (max-width: 760px) { #countdown { top: 52px; } .countdown { padding: 8px 16px; } }

/* at a glance */
.glance { margin-top: 16px; }
.glance-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--line) 0); position: relative; }
.ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.ring b { position: relative; font-size: 15px; }
.glance-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (max-width: 700px) { .glance-list { grid-template-columns: 1fr; } }
.glance-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; text-align: left; }
.glance-row:hover { border-color: var(--blue); }
.glance-row .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #b8e6d5; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; }
.glance-row.ok .dot { background: var(--green); border-color: var(--green); }
.glance-row.ok b { color: var(--muted); }
.glance-row small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.glance-row .grow { min-width: 0; }
.glance-row .go { color: var(--muted); font-size: 18px; }
.flash { animation: flash 1.2s; }
@keyframes flash { 0%, 100% { box-shadow: var(--shadow); } 30% { box-shadow: 0 0 0 4px var(--gold); } }

/* thought: tap to share */
button.thought { background: none; border: 0; cursor: pointer; text-align: left; width: 100%; padding: 0; font-family: inherit; }
button.thought small { margin-left: auto; font-size: 12px; color: var(--blue); font-weight: 600; }

/* missed podcast nudge */
.missed { display: block; width: 100%; margin-top: 10px; text-align: left; border: 0; cursor: pointer; background: var(--amber-soft); color: #1a7045; border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.missed b { color: var(--navy); }

/* member page tabs, read-only lists, templates, timeline */
.tabs { display: flex; gap: 4px; margin-top: 14px; background: #fff; border-radius: 14px; padding: 4px; box-shadow: var(--shadow); overflow-x: auto; }
.tabs button { flex: 1; border: 0; background: none; padding: 10px 14px; border-radius: 10px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button.on { background: var(--navy); color: #fff; }
.ro { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ro:last-child { border-bottom: 0; }
.ro .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b8e6d5; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; margin-top: 1px; }
.ro.ok .dot { background: var(--green); border-color: var(--green); }
.ro.ok .grow { color: var(--muted); }
.tpls { display: flex; flex-wrap: wrap; gap: 6px; }
.tpls .chip { padding: 6px 10px; }
.timeline { display: grid; gap: 4px; }
.tl { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--bg); border-left: 4px solid var(--line); }
.tl .tm { width: 72px; flex: none; font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl .ic { font-size: 18px; width: 24px; text-align: center; }
.tl small { display: block; font-size: 12px; color: var(--muted); }
.tl.class { border-left-color: #8b5cf6; background: #f3efff; }
.tl.office { border-left-color: var(--navy); background: #e8f8f2; }
.tl.task { border-left-color: var(--gold); background: var(--gold-soft); }
.tl.routine { border-left-color: var(--blue); background: var(--blue-soft); }
.tl.free { border-left-color: var(--green); background: var(--green-soft); }
.tl.busy { border-left-color: #94b8ab; }
.tl.sleep { background: var(--navy); color: #fff; border-left-color: var(--gold); }
.tl.sleep small { color: #c8f5e4; }
.tl.nowb { outline: 2px solid var(--gold); }

/* office */
.office-code { background: radial-gradient(500px 220px at 0% 0%, #2ad798 0%, var(--navy) 70%); color: #fff; text-align: center; }
.office-code .code { font-size: 64px; font-weight: 800; letter-spacing: .25em; color: var(--gold); margin: 6px 0; font-variant-numeric: tabular-nums; }
.att { display: flex; align-items: center; gap: 4px; }
.att button { width: 34px; height: 34px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 800; color: var(--muted); }
.att button.on.present { background: var(--green); border-color: var(--green); color: #fff; }
.att button.on.late { background: var(--amber); border-color: var(--amber); color: #fff; }
.att button.on.absent { background: var(--red); border-color: var(--red); color: #fff; }
.sched-card { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; background: #fbfffe; }
.sched-row { display: grid; grid-template-columns: 80px 104px 1fr 32px; gap: 6px; align-items: center; margin-bottom: 6px; }
.sched-row.three { grid-template-columns: 1fr 1fr 1fr; }
.sched-row.two { grid-template-columns: 1fr 1fr; margin-bottom: 0; }
.sched-row input, .sched-row select { min-height: 40px; padding: 6px 8px; }
.sched-row .mini { display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
.sched-row .mini input, .sched-row .mini select { margin-top: 2px; width: 100%; }
.sched-row .mini.chk { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 12px; color: var(--ink); }
.sched-row .mini.chk input { width: auto; min-height: 0; margin: 0; }
@media (max-width: 560px) { .sched-row { grid-template-columns: 1fr 1fr; } .sched-row.three { grid-template-columns: 1fr 1fr; } .sched-row.two { grid-template-columns: 1fr; } .sched-row .mini.chk { margin-top: 4px; } }
.office-code.opt { background: radial-gradient(500px 220px at 0% 0%, #3b866a 0%, #1c523e 70%); }
.office-next { display: flex; align-items: center; gap: 12px; }
.office-next .ic { font-size: 26px; }
.office-row .ic { width: 22px; text-align: center; }
.office-row.opt { opacity: .8; }
.tt-row { display: grid; grid-template-columns: 80px 1fr 1fr 30px; gap: 6px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tt-row input, .tt-row select { min-height: 40px; padding: 6px 8px; }
.tt-row [data-f=day] { order: 1; } .tt-row [data-f=title] { order: 2; grid-column: span 2; } .tt-row .x { order: 3; }
.tt-row [data-f=start] { order: 4; grid-column: 2; } .tt-row [data-f=end] { order: 5; } .tt-row [data-f=kind] { order: 6; grid-column: 1; grid-row: 2; }

/* podcast plan */
.plan-day { border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 6px; overflow: hidden; }
.plan-day.open { border-color: var(--gold); }
.plan-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: #fff; cursor: pointer; text-align: left; }
.plan-head .when { width: 90px; flex: none; font-size: 13px; }
.plan-head small { display: block; font-size: 12px; color: var(--muted); }
.plan-head .go { color: var(--muted); }
.plan-body { padding: 0 12px 12px; }
.sm-select { width: auto; min-height: 36px; padding: 6px 10px; font-size: 13px; border-radius: 10px; }

/* Mr / Miss / Mrs */
.title-seg { grid-template-columns: repeat(3, 1fr); margin: 4px 0 0; }
.title-seg label { position: relative; }
.title-seg input { position: absolute; opacity: 0; inset: 0; }
.title-seg span { display: block; text-align: center; padding: 10px; border-radius: 9px; font-weight: 700; cursor: pointer; color: var(--muted); }
.title-seg input:checked + span { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.title-seg input:focus-visible + span { outline: 2px solid var(--blue); }
.title-ask { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border: 2px solid var(--gold); margin-bottom: 16px; }

/* daily lesson */
.lesson { margin-top: 16px; border-top: 4px solid var(--gold); }
.lesson.learned { border-top-color: var(--green); }
.lesson-body { margin: 8px 0 0; font-size: 15px; }
.lesson .try { margin-top: 10px; background: var(--gold-soft); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.lesson .try b { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.pill.gold-pill { background: var(--gold); color: var(--navy); }
.reel { margin-top: 10px; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.reel.tall { aspect-ratio: 9 / 16; max-width: 320px; margin-left: auto; margin-right: auto; }
.reel iframe { width: 100%; height: 100%; border: 0; display: block; }
.prizes-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin-top: 16px; }
.prizes-link .go { color: var(--muted); font-size: 22px; }

/* incentives */
.prize-card { position: relative; overflow: hidden; border-radius: var(--radius); padding: 18px; margin-top: 16px; color: #fff; cursor: pointer;
  background: radial-gradient(600px 260px at 100% 0%, rgba(75, 213, 144, .35), transparent 60%), linear-gradient(135deg, #0a3827 0%, var(--navy) 45%, #1b9468 100%);
  box-shadow: 0 0 0 2px rgba(75, 213, 144, .55), 0 10px 30px rgba(11, 77, 53, .35); }
.prize-card.big { cursor: default; }
.prize-card.soon { background: radial-gradient(600px 260px at 100% 0%, rgba(56, 200, 244, .3), transparent 60%), linear-gradient(135deg, #0a3827, var(--navy) 50%, #126e4c); }
.prize-card.ended { box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), var(--shadow); }
.prize-card .shine { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .14) 50%, transparent 65%); transform: translateX(-100%); animation: shine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.p-emoji { font-size: 44px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(75, 213, 144, .5)); animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-5px) rotate(4deg); } }
.p-tag { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #93e6bc; }
.p-tag b { color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.prize-card h2 { color: #fff; font-size: 21px; margin-top: 2px; }
.p-prize { font-size: 19px; font-weight: 800; margin-top: 4px; background: linear-gradient(90deg, #b4eed1, var(--gold), #d2f4e3, var(--gold)); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: gold 5s linear infinite; }
@keyframes gold { to { background-position: 300% 0; } }
.p-goal { position: relative; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); font-weight: 600; }
.prize-bar { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.prize-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--gold)); box-shadow: 0 0 12px rgba(75, 213, 144, .7); transition: width .8s ease; }
.gold-t { color: #93e6bc; }
.won-line { font-weight: 800; color: #93e6bc; font-size: 16px; }
.p-leaders { position: relative; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; color: #e8fff7; }
.p-leaders b { color: #fff; }
.winners { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.winners .w { display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .1); border-radius: 99px; padding: 3px 10px 3px 3px; font-size: 13px; }
.winners .avatar { width: 28px; height: 28px; font-size: 11px; }
.cd-blocks { display: flex; gap: 8px; }
.cd-blocks span { flex: 1; max-width: 76px; text-align: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 8px 4px; }
.cd-blocks b { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; line-height: 1.1; }
.cd-blocks small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #c8f5e4; }
.race { position: relative; margin-top: 14px; background: rgba(0, 0, 0, .18); border-radius: 12px; padding: 6px; }
.race-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; }
.race-row.me { background: rgba(56, 200, 244, .18); }
.race-row.won { background: rgba(75, 213, 144, .2); }
.race-row .rk { width: 26px; text-align: center; color: #93e6bc; }
.race-row small { display: block; font-size: 11px; color: #c8f5e4; }
.race-row .val { font-variant-numeric: tabular-nums; }
.race-row .avatar { width: 32px; height: 32px; font-size: 12px; }
.emoji-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.emoji-pick label { position: relative; }
.emoji-pick input { position: absolute; opacity: 0; inset: 0; }
.emoji-pick span { display: grid; place-items: center; width: 44px; height: 44px; font-size: 22px; border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer; background: #fff; }
.emoji-pick input:checked + span { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 2px var(--gold); }

/* the reveal */
.reveal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; overflow: auto;
  background: radial-gradient(circle at 50% 40%, #1b9468 0%, #0a3827 55%, #041c13 100%); animation: rv-in .45s ease both; }
.reveal.out { animation: rv-out .35s ease both; }
@keyframes rv-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rv-out { to { opacity: 0; transform: scale(1.04); } }
.reveal .rays { position: fixed; width: 220vmax; height: 220vmax; left: 50%; top: 42%; margin: -110vmax 0 0 -110vmax; opacity: .35; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(75, 213, 144, .55) 0deg 6deg, transparent 6deg 18deg); animation: spin 28s linear infinite;
  -webkit-mask: radial-gradient(circle, #000 0%, transparent 55%); mask: radial-gradient(circle, #000 0%, transparent 55%); }
@keyframes spin { to { transform: rotate(360deg); } }
.reveal .confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.reveal .confetti i { position: absolute; top: -20px; border-radius: 2px; opacity: .9; animation-name: fall; animation-timing-function: linear; animation-iteration-count: 2; }
@keyframes fall { to { top: 105%; transform: translateX(40px) rotate(720deg); } }
.reveal-card { position: relative; width: min(440px, 100%); text-align: center; color: #fff; }
.reveal-card > * { animation: rise .6s cubic-bezier(.2, .9, .3, 1.2) both; }
.reveal-card > :nth-child(1) { animation-delay: .15s; } .reveal-card > :nth-child(2) { animation-delay: .35s; } .reveal-card > :nth-child(3) { animation-delay: .7s; }
.reveal-card > :nth-child(4) { animation-delay: 1.1s; } .reveal-card > :nth-child(5) { animation-delay: 1.3s; } .reveal-card > :nth-child(6) { animation-delay: 1.8s; }
.reveal-card > :nth-child(7) { animation-delay: 2.1s; } .reveal-card > :nth-child(8) { animation-delay: 2.4s; } .reveal-card > :nth-child(9) { animation-delay: 2.7s; } .reveal-card > :nth-child(10) { animation-delay: 2.9s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.r-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); background: var(--gold); padding: 6px 14px; border-radius: 99px; box-shadow: 0 0 24px rgba(75, 213, 144, .7); }
.r-emoji { font-size: 92px; line-height: 1; margin: 14px 0 6px; filter: drop-shadow(0 10px 30px rgba(75, 213, 144, .7)); }
.reveal-card > .r-emoji { animation: pop 1s cubic-bezier(.2, 1.6, .4, 1) .35s both, bob 2.6s ease-in-out 1.4s infinite; }
@keyframes pop { from { opacity: 0; transform: scale(.2) rotate(-30deg); } to { opacity: 1; transform: none; } }
.r-title { font-size: 28px; font-weight: 800; color: #fff; }
.r-label { margin-top: 18px; font-size: 11px; font-weight: 800; letter-spacing: .25em; text-transform: uppercase; color: #c8f5e4; }
.r-prize { font-size: 30px; font-weight: 800; line-height: 1.15; margin-top: 4px; background: linear-gradient(90deg, #b4eed1, var(--gold), #d2f4e3, var(--gold)); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.reveal-card > .r-prize { animation: rise .6s cubic-bezier(.2, .9, .3, 1.2) 1.3s both, gold 4s linear 2s infinite; }
.r-goal { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-weight: 600; }
.r-who { margin-top: 8px; font-size: 13px; color: #c8f5e4; }
.r-cd { margin-top: 16px; }
.r-cd .cd-blocks { justify-content: center; }
.r-cd-l { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #93e6bc; margin-bottom: 6px; }
.r-btn { margin-top: 20px; font-size: 17px; padding: 14px; box-shadow: 0 0 30px rgba(75, 213, 144, .55); }
.r-more { margin-top: 10px; color: #c8f5e4; }
.reveal.won { background: radial-gradient(circle at 50% 40%, #1a7045 0%, #082215 60%, #020906 100%); }
@media (prefers-reduced-motion: reduce) {
  .prize-card .shine, .p-emoji, .p-prize, .reveal .rays, .r-prize, .reveal-card > * { animation: none !important; }
  .reveal .confetti { display: none; }
}

/* status ladder: journey cards */
.journey { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; }
.jcard { flex: none; width: 128px; min-height: 104px; scroll-snap-align: start; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; color: var(--muted); }
.jcard b { color: var(--ink); font-size: 13px; line-height: 1.25; }
.jcard small { font-size: 11px; margin-top: auto; }
.jcard .jn { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--bg); color: var(--muted); }
.jcard.done { background: var(--green-soft); border-color: #b9e8d3; }
.jcard.done .jn { background: var(--green); color: #fff; }
.jcard.now { background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); color: #c8f5e4; }
.jcard.now b { color: #fff; } .jcard.now .jn { background: var(--gold); color: var(--navy); }
.jcard.next { border-color: var(--gold); border-style: dashed; }
.jcard.pro:not(.done):not(.now) { background: #f7fffc; }
.jcard.sel { outline: 2px solid var(--blue); }
.level-card { border-left: 5px solid var(--gold); margin-top: 16px; }
.level-card.compact .reqs { margin-top: 6px; }
.reqs .check { padding: 8px 0; }
.check small.where { display: block; font-size: 11px; color: var(--muted); }
.req { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.req small { display: block; font-size: 11px; color: var(--muted); }
.req .dot { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.req.ok .dot { background: var(--green); border-color: var(--green); color: #fff; }
.req.conf .dot { border-style: dashed; }
label.req input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--green); }
.level-mini { margin-bottom: 4px; }
.approvals { border: 2px solid var(--gold); background: var(--gold-soft); margin-bottom: 16px; }
.ro-field { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--bg); font-weight: 600; }

/* office › stages board */
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; align-items: start; }
.scard { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.scard.pro { border-top: 4px solid var(--gold); }
.scard.zero { border-style: dashed; }
.scard.open { grid-column: 1 / -1; }
.scard.editing { grid-column: 1 / -1; padding: 14px; border-color: var(--gold); }
.scard-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 0; background: transparent; cursor: pointer; text-align: left; }
.scard-head small { display: block; font-size: 11px; color: var(--muted); }
.scard .sn { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--navy); color: var(--gold); font-size: 13px; }
.scard .count { font-size: 24px; font-weight: 800; color: var(--navy); min-width: 32px; text-align: right; }
.faces { display: flex; padding: 0 14px 12px; }
.faces .avatar { width: 30px; height: 30px; font-size: 11px; margin-right: -6px; border: 2px solid #fff; }
.faces .more { margin-left: 12px; font-size: 12px; font-weight: 700; color: var(--muted); align-self: center; }
.scard-body { padding: 0 14px 14px; border-top: 1px solid var(--line); }
.srow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.srow small { display: block; font-size: 12px; color: var(--muted); }
.srow .avatar { width: 32px; height: 32px; font-size: 12px; }
.mini-bar { width: 70px; height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; flex: none; }
.mini-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--gold)); }
.toggles { display: grid; gap: 6px; margin-top: 10px; font-size: 13px; }
.toggles label { display: flex; gap: 8px; align-items: center; }
.toggles input { width: 18px; height: 18px; accent-color: var(--navy); }
.req-edit { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.add-req { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.add-req select, .add-req input { flex: 1; min-width: 180px; min-height: 40px; }

/* sponsor tree */
.tree-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tree-tools select { flex: 1; min-width: 200px; min-height: 40px; }
.upline { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.upline .arrow { color: var(--muted); }
ul.tree, ul.tree ul { list-style: none; margin: 0; padding: 0; }
ul.tree ul { margin-left: 22px; padding-left: 14px; border-left: 2px solid var(--line); }
.tnode { position: relative; margin: 6px 0; }
ul.tree ul > .tnode::before { content: ''; position: absolute; left: -14px; top: 26px; width: 12px; border-top: 2px solid var(--line); }
.tcard { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.tcard.me { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.tcard.lead { border-color: var(--gold); background: linear-gradient(90deg, var(--gold-soft), #fff 60%); }
.tnode.paused .tcard { opacity: .55; }
.tcard .tlink { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-decoration: none; color: var(--ink); }
.tcard .tlink b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard .tlink small { display: block; font-size: 12px; color: var(--muted); }
.tcard .avatar { width: 36px; height: 36px; font-size: 13px; flex: none; }
.tcard .tog { width: 26px; height: 26px; flex: none; border-radius: 8px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 800; cursor: pointer; color: var(--navy); }
.tcard .tog.none { border: 0; background: transparent; cursor: default; }
.tcard .dl { flex: none; font-size: 12px; font-weight: 800; color: var(--navy); background: var(--blue-soft); border-radius: 99px; padding: 2px 9px; }
@media (max-width: 560px) { ul.tree ul { margin-left: 10px; padding-left: 10px; } .tcard .btn.sm { padding: 6px 8px; font-size: 12px; } }

/* back office (owner only) */
.bo-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 18px; border-radius: var(--radius); margin-bottom: 16px; color: #fff;
  background: repeating-linear-gradient(135deg, #0a3827 0 18px, #0d4530 18px 36px); border: 2px solid var(--gold); }
.bo-head h1 { color: #fff; }
.bo-cols { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .bo-cols { grid-template-columns: 1fr; } }
.bo-list { max-height: 75vh; overflow: auto; }
.bo-list input[type=search] { width: 100%; margin-bottom: 8px; }
.bo-person { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; text-align: left; }
.bo-person:hover { background: var(--bg); }
.bo-person.on { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }
.bo-person.paused { opacity: .55; }
.bo-person small { display: block; font-size: 12px; color: var(--muted); }
.bo-person .avatar { width: 34px; height: 34px; font-size: 12px; }
.bo-group { border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; padding: 0 12px; }
.bo-group summary { padding: 10px 0; cursor: pointer; }
.bo-box { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.bo-box small { display: block; font-size: 11px; color: var(--muted); }
.bo-box input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--green); }
.bo-box.ok { color: var(--green); }

.bo-sec { margin-bottom: 18px; }
.bo-sec h3 { margin-bottom: 6px; }
.bo-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; padding: 8px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 6px; background: #fff; }
.bo-add .bo-row { border-style: dashed; background: var(--bg); }
.bo-f { display: flex; flex-direction: column; gap: 2px; font-size: 11px; font-weight: 700; color: var(--muted); flex: 1; min-width: 110px; }
.bo-f.text { flex: 2; min-width: 160px; } .bo-f.bool { flex: 0; min-width: 44px; align-items: center; } .bo-f.bool input { width: 20px; height: 20px; }
.bo-f input, .bo-f select { min-height: 38px; padding: 6px 8px; font-size: 13px; }
.bo-row-act { display: flex; gap: 4px; align-items: center; }
.bo-cols > * { min-width: 0; }
.bo-cols .tabs { overflow-x: auto; flex-wrap: nowrap; }
.bo-cols .tabs button { white-space: nowrap; flex: none; }

.shuffle-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; margin-bottom: 10px; border-radius: 12px; background: var(--bg); }
.shuffle-bar.trying { background: var(--gold-soft); outline: 2px dashed var(--gold); }

/* calmer Today: mode switch, alerts, folded sections */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #fff; border-radius: 14px; padding: 4px; box-shadow: var(--shadow); margin: 4px 0 14px; }
.mode-switch button { border: 0; background: transparent; padding: 10px; border-radius: 10px; font-weight: 700; color: var(--muted); cursor: pointer; }
.mode-switch button.on { background: var(--navy); color: #fff; }
.hero-mini { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; margin-bottom: 12px; }
.hero-mini small { display: block; font-size: 12px; color: #c8f5e4; }
.hero-mini .hm-bar { width: 90px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .2); overflow: hidden; flex: none; }
.hero-mini .hm-bar i { display: block; height: 100%; background: var(--gold); }
.alerts > * { margin-top: 0 !important; margin-bottom: 10px; }
.alert-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border-left: 4px solid var(--gold); }
.alert-row small { display: block; font-size: 12px; color: var(--muted); }
.alert-row .go { color: var(--muted); font-size: 20px; }
.secs { margin-top: 16px; display: grid; gap: 10px; }
.sec { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.sec > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.sec-ic { font-size: 22px; width: 30px; text-align: center; }
.sec-go { color: var(--muted); font-size: 20px; transition: transform .2s; }
.sec[open] > summary .sec-go { transform: rotate(90deg); }
.sec-body { padding: 0 12px 14px; }
.sec-body > .card:first-child, .sec-body > section:first-child { margin-top: 0; }
/* school mode */
.school-card { border-top: 5px solid var(--blue); }
.sc-now .tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 4px 10px; border-radius: 99px; }
.sc-now .tag.live { color: #fff; background: var(--green); }
.sc-now .tag.done { color: var(--green); background: var(--green-soft); }
.sc-now h2 { font-size: 26px; margin-top: 8px; }
.sc-meta { color: var(--muted); font-weight: 600; margin-top: 2px; }
.sc-leave { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); font-size: 14px; }
.sc-leave.soon { background: var(--red-soft); color: var(--red); }
.sc-list { margin-top: 12px; border-top: 1px solid var(--line); }
.sc-item { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sc-item b { width: 72px; flex: none; font-variant-numeric: tabular-nums; color: var(--navy); }
.sc-item small { display: block; font-size: 12px; color: var(--muted); }
.sc-item.past { opacity: .5; }
.sc-item.now { background: var(--green-soft); margin: 0 -8px; padding: 8px; border-radius: 10px; }
.tl.travel { border-left-color: #94b8ab; background: #f1f9f6; }
.tl.between { border-left-color: #c4b5fd; background: #faf7ff; }
/* quick contact */
.fab { position: fixed; right: 16px; bottom: 84px; z-index: 40; display: flex; align-items: center; gap: 6px; border: 0; border-radius: 99px; padding: 12px 18px; font-size: 20px; font-weight: 800; color: var(--navy);
  background: linear-gradient(135deg, #87e3b5, var(--gold) 45%, var(--gold-2)); box-shadow: 0 8px 24px rgba(11, 77, 53, .3); cursor: pointer; }
.fab span { font-size: 14px; }
@media (min-width: 900px) { .fab { bottom: 24px; } }
.sheet.qc { max-height: 90vh; overflow: auto; }
.qc-where { margin: 8px 0; }
.qc-rows { display: grid; gap: 6px; margin: 8px 0 12px; }
.qc-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 30px; gap: 6px; align-items: center; }
.qc-row input { min-height: 40px; padding: 6px 8px; font-size: 14px; }
@media (max-width: 560px) { .qc-row { grid-template-columns: 1fr 1fr 30px; } .qc-row [data-f=source] { grid-column: 1 / 3; } }
.tt-row [data-f=place] { order: 7; grid-column: 2 / span 2; }

/* Rule of 2 */
.seg.seg3 { grid-template-columns: repeat(3, 1fr); }
.r2-goal.done { border-top: 4px solid var(--green); }
.r2-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.r2-lbl { flex: 1; min-width: 0; }
.r2-lbl small { display: block; font-size: 12px; color: var(--red); font-weight: 600; }
.r2-row.ok .r2-lbl small { color: var(--green); }
.r2-spots { display: flex; gap: 6px; align-items: center; }
.r2-spots .avatar { width: 34px; height: 34px; font-size: 12px; }
.r2-empty { width: 34px; height: 34px; border-radius: 50%; border: 2px dashed #b8dccf; display: grid; place-items: center; color: #b8dccf; font-weight: 800; }
.r2-cols { align-items: start; }
.r2-map-wrap { overflow-x: auto; padding-bottom: 6px; }
.r2-map { display: block; margin: 0 auto; }
.r2-map line { stroke: #c9eade; stroke-width: 2; }
.r2-map line.l-slot { stroke-dasharray: 4 4; }
.r2-map .r2-person { cursor: pointer; }
.r2-map .r2-person:hover .dot, .r2-map .r2-person:focus .dot { fill: var(--navy-2); }
.r2-map .dot { fill: var(--navy); }
.r2-map .dot.me { fill: var(--blue); }
.r2-map .track { fill: none; stroke: #e6f7f1; stroke-width: 4; }
.r2-map .ring { fill: none; stroke-width: 4; stroke-linecap: round; }
.r2-map text { text-anchor: middle; font-family: inherit; }
.r2-map .ini { fill: #fff; font-size: 12px; font-weight: 800; }
.r2-map .nm { fill: var(--ink); font-size: 11px; font-weight: 700; }
.r2-map .st { fill: var(--muted); font-size: 10px; font-weight: 600; }
.r2-map .r2-slot circle { fill: #fff; stroke: #b8dccf; stroke-width: 2; stroke-dasharray: 4 3; }
.r2-map .r2-slot .plus { fill: #b8dccf; font-size: 14px; font-weight: 800; }
.r2-map .r2-slot .lbl { fill: #8ab4a5; font-size: 10px; font-weight: 700; }
.r2-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.r2-legend i { display: inline-block; vertical-align: -3px; margin-right: 4px; }
.lg-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--navy); }
.lg-slot { width: 12px; height: 12px; border-radius: 50%; border: 2px dashed #b8dccf; }
.lg-ring { width: 12px; height: 12px; border-radius: 50%; border: 3px solid; }
button.r2-help { width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left; font: inherit; }

/* semester courses */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 8px; }
.course-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fbfffe; border-left: 4px solid var(--blue); }
.cc-code { font-size: 16px; color: var(--navy); letter-spacing: .02em; }
.cc-title { font-weight: 600; font-size: 14px; line-height: 1.3; margin: 2px 0 4px; }
.course-form { grid-column: 1 / -1; border: 2px solid var(--gold); border-radius: 14px; padding: 12px; margin: 8px 0; }
.att-seg { grid-template-columns: repeat(3, 1fr); margin: 4px 0 0; }
.att-seg label { position: relative; }
.att-seg input { position: absolute; opacity: 0; inset: 0; }
.att-seg span { display: block; text-align: center; padding: 8px; border-radius: 9px; font-weight: 700; cursor: pointer; color: var(--muted); }
.att-seg input:checked + span { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.att-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.att-badge.att-yes { background: var(--red-soft); color: var(--red); }
.att-badge.att-no { background: var(--green-soft); color: var(--green); }
.att-badge.att-some { background: var(--amber-soft); color: var(--amber); }
.sc-title { font-weight: 600; color: var(--ink); margin-top: 2px; }
.sc-course { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; font-size: 14px; }
.sc-item .att-badge { margin-left: 6px; }
.tt-row .tt-course { order: 2; grid-column: span 2; min-height: 40px; }
.cols > * { min-width: 0; }

/* ---------- business (money) ---------- */
.biz-head { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; }
.biz-head .eyebrow { color: var(--gold); }
.biz-head h1 { margin: 2px 0; font-size: 24px; color: #fff; }
.biz-head .sub { color: #c8f5e4; font-size: 13px; }
.biz-scopes { margin-bottom: 6px; }
.biz-scopes .chip small { font-weight: 500; opacity: .75; }
.biz-period { display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px; }
.biz-period select { flex: 1; min-width: 0; font-weight: 800; font-size: 16px; text-align: center; text-align-last: center; border: 2px solid var(--gold); background-color: var(--gold-soft); color: var(--navy); border-radius: 12px; padding: 10px 12px; }
.biz-period .btn { min-width: 52px; font-size: 22px; }
.biz.busy .biz-tiles, .biz.busy .card { opacity: .6; }
.biz-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.biz-tiles + .card, .biz-tiles + .cols { margin-top: 16px; }
.biz-tile { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; border-top: 3px solid var(--line); min-width: 0; }
.biz-tile.main { border-top-color: var(--gold); }
.biz-tile span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.biz-tile b { display: block; font-size: 24px; color: var(--navy); overflow-wrap: anywhere; }
.biz-tile small { display: block; color: var(--muted); font-size: 12px; }
.biz-unit { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; cursor: pointer; font: inherit; color: inherit; }
.biz-unit:disabled { cursor: default; }
.biz-unit small { display: block; color: var(--muted); font-size: 12px; }
.biz-unit .bar { display: block; margin-top: 6px; height: 8px; }
.biz-rank { width: 28px; text-align: center; }
.biz-trend { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 142px; }
.biz-trend button { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; background: none; border: 0; padding: 0; cursor: pointer; min-width: 0; }
.biz-trend i { display: block; width: 100%; max-width: 28px; border-radius: 6px 6px 2px 2px; background: var(--navy-2); }
.biz-trend button.on i { background: var(--gold); }
.biz-trend em { font-style: normal; font-size: 9px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.biz-trend span { font-size: 10px; color: var(--muted); margin-top: 3px; }
.biz-plat { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; }
.biz-order { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.biz-order .grow { min-width: 0; overflow-wrap: anywhere; }
.biz-amt { text-align: right; white-space: nowrap; }
.biz-amt b { display: block; }
.biz-amt b.off { text-decoration: line-through; color: var(--muted); }
.biz-amt small { display: block; font-size: 11px; color: var(--muted); }
.biz-form { background: var(--blue-soft); border-radius: 14px; padding: 14px; margin: 10px 0; }
.biz-link { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.biz-link select { width: auto; min-width: 150px; }
@media (max-width: 560px) { .biz-link > span { flex: 1 1 100%; } .biz-link select { flex: 1; } }
@media (max-width: 760px) { .bottom-nav.many { padding-left: 2px; padding-right: 2px; } .bottom-nav.many a { font-size: 9.5px; } .bottom-nav.many a svg { width: 20px; height: 20px; } }

.biz-views { margin-bottom: 12px; }
.biz-amt small.loss { color: var(--red); }
.biz-price { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)) auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.biz-price b small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.biz-price.head { font-size: 11px; font-weight: 800; color: var(--muted); padding-bottom: 2px; }
.biz-price.head span:last-child { width: 60px; }
.biz-price input { min-width: 0; padding: 9px 4px; font-size: 14px; text-align: center; }
@media (max-width: 640px) { .biz-price { grid-template-columns: repeat(4, minmax(0, 1fr)); } .biz-price > b, .biz-price > input[name="name"], .biz-price > button { grid-column: 1 / -1; } .biz-price.head > b, .biz-price.head > span:last-child { display: none; } }

/* ---- goal book ---- */
.book-head .book-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.book-head .book-stats div { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 8px 14px; }
.book-head .book-stats small { display: block; font-size: 11px; color: #c8f5e4; text-transform: uppercase; letter-spacing: .06em; }
.book-head .book-stats b { font-size: 22px; color: #fff; }
.book-year { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.book-year b { font-size: 22px; min-width: 64px; text-align: center; color: #fff; }
.book-saved { font-size: 12px; font-weight: 700; color: var(--gold); }
.book-tabs { margin-bottom: 0; }
.book-tbl { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.book-tbl th, .book-tbl td { padding: 4px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 116px; text-align: left; }
.book-tbl thead th { font-size: 12px; color: var(--muted); font-weight: 800; padding: 8px 6px; vertical-align: bottom; }
.book-tbl thead th small { display: block; font-weight: 600; font-size: 11px; }
.book-tbl tbody th { position: sticky; left: 0; z-index: 1; background: var(--card); min-width: 128px; max-width: 150px; font-weight: 700; color: var(--navy); padding: 10px 8px 4px 2px; }
.book-tbl tbody th small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.book-tbl thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); min-width: 128px; }
.book-tbl input, .book-tbl textarea { width: 100%; font-size: 14px; padding: 8px; border-radius: 8px; min-height: 0; }
.book-tbl textarea { resize: vertical; min-height: 54px; }
.book-tbl .now { background: var(--gold-soft); }
.book-tbl tbody th.now { background: var(--card); }
.book-prod td { min-width: 100px; }
.book-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.book-item input[type=text] { flex: 1; min-width: 0; }
.book-item .book-n { width: 24px; text-align: center; font-weight: 800; color: var(--muted); font-size: 13px; }
.book-item .book-chk { width: 22px; height: 22px; flex: none; accent-color: var(--green); }
.book-item .x { background: none; border: 0; color: #a3c9bb; cursor: pointer; font-size: 22px; line-height: 1; padding: 4px 8px; }
.book input[readonly], .book textarea[readonly] { background: #f6fdfa; }
@media (max-width: 560px) {
  .book-tbl tbody th, .book-tbl thead th:first-child { min-width: 92px; max-width: 104px; font-size: 12px; }
  .book-tbl th, .book-tbl td { min-width: 104px; }
  .book-year b { font-size: 20px; }
}
.book-tbl input.auto { color: var(--blue); font-weight: 700; background: #f3fffb; border-color: #cffbeb; }
.book-tbl .auto-tag { color: var(--blue); font-weight: 700; }
.biz-form:has(select[name=kind] option[value=own]:checked) .biz-money { display: none; }
