:root {
  --navy: #0a2350;
  --navy-2: #13306a;
  --teal: #12c4a6;
  --teal-ink: #0b8f79;
  --bg: #f5f7fa;
  --card: #ffffff;
  --ink: #111a2b;
  --muted: #5d6b82;
  --line: #e3e8ef;
  --red: #d64545;
  --red-bg: #fdecec;
  --amber: #b7791f;
  --amber-bg: #fdf4e3;
  --green: #1f8a5b;
  --green-bg: #e7f6ee;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(10, 35, 80, 0.06), 0 1px 1px rgba(10, 35, 80, 0.03);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-size: 14px; line-height: 1.5; }
a { color: var(--navy-2); }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 26px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; }
.stack > * + * { margin-top: 16px; }

/* ---------- buttons + inputs */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 7px 12px; border-radius: 8px; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #c7d0dd; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.teal { background: var(--teal); border-color: var(--teal); color: #04241f; }
.btn.danger { color: var(--red); }
.btn.sm { padding: 4px 9px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
input, select, textarea { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; color: var(--ink); width: 100%; }
textarea { min-height: 90px; resize: vertical; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.field + .field { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card h2 { margin-bottom: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .label { font-size: 12px; color: var(--muted); }
.kpi .value { font-size: 24px; font-weight: 700; margin-top: 2px; letter-spacing: -0.02em; }
.kpi .sub { font-size: 12px; color: var(--muted); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cols.w21 { grid-template-columns: 2fr 1fr; }

/* ---------- tables */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #f8fafc; }
.table-wrap { overflow-x: auto; }

/* ---------- pills */
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #eef2f7; color: var(--muted); white-space: nowrap; }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.navy { background: #e6ecf7; color: var(--navy); }
.pill.teal { background: #dff7f2; color: var(--teal-ink); }

/* ---------- app shell */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.brand img { width: 34px; height: 34px; }
.brand b { display: block; font-size: 15px; color: var(--navy); }
.brand span { font-size: 11px; color: var(--muted); }
.nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.nav a { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { background: #f1f4f8; }
.nav a.on { background: var(--navy); color: #fff; }
.nav a .badge { font-size: 11px; background: var(--red); color: #fff; border-radius: 999px; padding: 0 7px; min-width: 20px; text-align: center; }
.nav .sep { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 14px 10px 4px; }
.me { margin-top: auto; border-top: 1px solid var(--line); padding: 12px 8px 0; font-size: 12px; }
.me b { font-size: 13px; display: block; }
.main { padding: 26px 32px 60px; max-width: 1240px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.dev-banner { background: #fff7e0; border-bottom: 1px solid #f0dca8; color: #7a5a00; font-size: 12px; padding: 6px 16px; text-align: center; }

/* ---------- attention + goals */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.alert + .alert { margin-top: 8px; }
.alert .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; }
.alert.red .dot { background: var(--red); }
.alert.amber .dot { background: var(--amber); }
.alert.green .dot { background: var(--green); }
.alert .count { font-weight: 700; font-size: 15px; }
.alert .names { font-size: 12px; color: var(--muted); margin-top: 2px; }
.alert .names a { color: var(--muted); }
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.goal { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.goal .n { font-size: 22px; font-weight: 700; }
.bar { height: 6px; border-radius: 999px; background: #edf1f6; overflow: hidden; margin: 8px 0 6px; }
.bar > i { display: block; height: 100%; background: var(--teal); border-radius: 999px; }
.goal .row .btn { padding: 2px 9px; }

/* ---------- pipeline strip + funnel */
.strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.strip a { text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; }
.strip a:hover { border-color: #c7d0dd; }
.strip .n { font-size: 20px; font-weight: 700; }
.strip .l { font-size: 12px; color: var(--muted); }
.funnel .step { display: grid; grid-template-columns: 150px 1fr 60px; gap: 10px; align-items: center; padding: 5px 0; }
.funnel .track { height: 22px; background: #f0f3f8; border-radius: 6px; overflow: hidden; }
.funnel .track > i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--navy-2)); border-radius: 6px; min-width: 2px; }
.funnel .num { text-align: right; font-weight: 700; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .col i { width: 100%; max-width: 38px; background: var(--teal); border-radius: 5px 5px 0 0; min-height: 2px; }
.chart .col span { font-size: 11px; color: var(--muted); }
.chart .col b { font-size: 10px; color: var(--muted); font-weight: 500; }

/* ---------- lead page */
.lead-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.facts { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 13px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.timeline li:last-child { border-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- training + docs */
.modules { display: grid; gap: 10px; }
.module { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; text-decoration: none; color: inherit; }
.module:hover { border-color: #c7d0dd; }
.module .num { width: 30px; height: 30px; border-radius: 8px; background: #eef2f7; display: grid; place-items: center; font-weight: 700; color: var(--navy); font-size: 12px; flex: none; }
.module.done .num { background: var(--green-bg); color: var(--green); }
.module.locked { opacity: 0.55; pointer-events: none; }
.video { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 10px; background: #0b1426; }
.video-wrap .video { display: block; }
.video-wrap iframe { aspect-ratio: 16 / 9; width: 100%; height: auto; border: 0; border-radius: 10px; display: block; background: #0b1426; }
#lesson-progress .bar { height: 8px; margin: 0; }
.video-lock { background: #f4f6fb; border: 1px dashed var(--line); border-radius: 10px; padding: 16px; text-align: center; }
.video-lock b { display: block; margin-bottom: 4px; }
.video-empty { aspect-ratio: 16 / 9; border-radius: 10px; background: linear-gradient(135deg, #0a2350, #13306a); color: #cfe0ff; display: grid; place-items: center; text-align: center; padding: 20px; }
.prose { font-size: 14px; line-height: 1.65; }
.prose h1 { font-size: 22px; margin-bottom: 8px; }
.prose h2 { font-size: 16px; margin: 20px 0 6px; }
.prose ul { padding-left: 20px; }
.prose p { margin: 8px 0; white-space: pre-wrap; }
.quiz .q { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 10px; background: #fff; }
.quiz .opt { display: flex; gap: 8px; align-items: center; font-weight: 400; color: var(--ink); font-size: 14px; margin: 6px 0 0; cursor: pointer; }
.quiz .opt input { width: auto; }
.quiz .why { font-size: 12px; margin-top: 6px; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.level { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.level.got { border-color: var(--teal); background: #f2fcfa; }
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }

/* ---------- suggestions, board */
.msg { white-space: pre-wrap; background: #f6f8fb; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 8px; font-size: 13px; line-height: 1.55; }
.suggest { border-left: 4px solid var(--teal); }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.board .col { background: #eef2f7; border-radius: 12px; padding: 10px; min-height: 200px; }
.board .col-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.kcard { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; text-decoration: none; color: inherit; font-size: 13px; }
.kcard:hover { border-color: #c7d0dd; }
.kcard .bad { color: var(--red); }
details.card summary { cursor: pointer; }

/* ---------- requirements, exceptions */
.reqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 12px; }
.req { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: #fff; font-size: 13px; }
.req .tick { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #c7d0dd; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.req.done { background: #f2fcfa; border-color: #b7e8dc; }
.req.done .tick { background: var(--green); border-color: var(--green); }
.exc { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.exc-rep { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.exc-rep ul { margin: 6px 0 8px; padding-left: 18px; font-size: 13px; }
.clock.brk { border-color: #c9d6ef; background: #f3f6fc; }
.clock.brk .dot { background: var(--navy-2); }

/* ---------- command centers, messaging, academy */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.seg a { padding: 6px 11px; font-size: 12px; font-weight: 500; color: var(--ink); text-decoration: none; border-right: 1px solid var(--line); white-space: nowrap; }
.seg a:last-child { border-right: 0; }
.seg a.on { background: var(--navy); color: #fff; }
.bell { position: relative; text-decoration: none; font-size: 18px; }
.bell .badge, .mrow .badge { font-size: 10px; background: var(--red); color: #fff; border-radius: 999px; padding: 0 6px; }
.bell .badge { position: absolute; top: -6px; right: -10px; }
.mrow { display: block; padding: 9px 10px; border-radius: 9px; color: inherit; text-decoration: none; border: 1px solid transparent; }
.mrow + .mrow { border-top-color: var(--line); border-radius: 0; }
.mrow:hover { background: #f8fafc; }
.mrow.unread { background: #f2f7ff; }
.mrow.on { background: #e6ecf7; }
.msgs { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.thread-list { padding: 8px; max-height: 70vh; overflow: auto; }
.thread { display: flex; flex-direction: column; gap: 8px; max-height: 55vh; overflow: auto; padding: 4px; }
.bubble { background: #f3f5f9; border-radius: 12px; padding: 9px 12px; max-width: 80%; font-size: 13px; }
.bubble + .bubble { margin-top: 6px; }
.bubble.me { background: #e6f7f3; align-self: flex-end; }
.bubble.urgent { border: 2px solid var(--red); }
.bubble.important { border: 2px solid var(--amber); }
.ann { border-left: 4px solid var(--navy); }
.ann.urgent { border-left-color: var(--red); background: var(--red-bg); }
.obj { font-size: 13px; padding: 6px 10px; border-radius: 8px; margin-top: 8px; }
.obj.bad { background: var(--red-bg); color: #8b2c2c; }
.obj.next { background: #eef2f7; }
.msg.obj.good { background: var(--green-bg); border-color: #b9e3cc; }
.academy > * + * { margin-top: 14px; }
.module.next { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(18, 196, 166, 0.15); }
.module.next .num { background: var(--teal); color: #04241f; }
.module.wait .num { background: var(--amber-bg); color: var(--amber); }
.cand { max-height: 45vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
@media (max-width: 900px) { .msgs { grid-template-columns: 1fr; } .strip { grid-template-columns: repeat(4, 1fr); } .kpis[style] { grid-template-columns: 1fr 1fr !important; } }

/* ---------- onboarding + finance */
.wiz { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.wiz-steps { position: sticky; top: 16px; }
.wstep { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 9px; color: inherit; text-decoration: none; margin-top: 4px; }
.wstep.on { background: #e6ecf7; }
.wstep .num { width: 28px; height: 28px; border-radius: 8px; background: #eef2f7; display: grid; place-items: center; font-weight: 700; color: var(--navy); font-size: 12px; flex: none; }
.steps-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
details.stmt { border-top: 1px solid var(--line); padding: 10px 0; }
details.stmt summary { cursor: pointer; }
@media (max-width: 900px) { .wiz { grid-template-columns: 1fr; } .wiz-steps { position: static; } }

/* ---------- reels calendar */
.cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.cal-day { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; min-height: 78px; font-size: 13px; }
.cal-day.today { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(18, 196, 166, 0.2); }
.cal-day.done { background: #f2fcfa; }
.cal-day.held { background: var(--red-bg); }
video.reel { width: 100%; max-width: 320px; aspect-ratio: 9 / 16; background: #0b1426; border-radius: 12px; display: block; margin: 8px 0; }
video.reel.sm { max-width: 180px; }

/* ---------- clock */
.clock { display: flex; align-items: center; gap: 10px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; font-size: 13px; }
.clock .dot { width: 9px; height: 9px; border-radius: 50%; background: #b6c0cf; flex: none; }
.clock.on { border-color: #b7e8dc; background: #f2fcfa; }
.clock.on .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(31, 138, 91, 0.15); }

/* ---------- gate + toast + modal */
.gate { max-width: 720px; margin: 40px auto; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; z-index: 50; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); }
.toast.err { background: var(--red); }
.modal-bg { position: fixed; inset: 0; background: rgba(10, 20, 40, 0.4); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal { background: #fff; border-radius: 14px; padding: 22px; width: 100%; max-width: 460px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); }
.modal h2 { margin-bottom: 14px; }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; }

/* ---------- public site */
.site-head { background: #fff; border-bottom: 1px solid var(--line); }
.site-head .in, .site-main, .site-foot .in { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.site-head .in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-head nav a { margin-left: 18px; color: var(--ink); text-decoration: none; font-weight: 500; }
.hero { background: linear-gradient(135deg, var(--navy) 0%, #13306a 100%); color: #fff; padding: 72px 20px; }
.hero .in { max-width: 1000px; margin: 0 auto; }
.hero h1 { font-size: 42px; line-height: 1.1; max-width: 640px; }
.hero p { color: #cfdcf3; font-size: 17px; max-width: 580px; margin: 14px 0 26px; }
.site-main { padding: 48px 20px; }
.site-main .prose { max-width: 760px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 40px; }
.site-foot { border-top: 1px solid var(--line); background: #fff; padding: 22px 0; font-size: 12px; color: var(--muted); }
.site-foot .in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); margin-right: 14px; }
.notice { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; }
.notice.ok { background: var(--green-bg); color: var(--green); }
.notice.bad { background: var(--red-bg); color: var(--red); }
.login-box { max-width: 400px; margin: 70px auto; }
.google-btn { width: 100%; justify-content: center; padding: 11px; font-size: 15px; }
.hp { position: absolute; left: -5000px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side, .main { min-width: 0; }
  .nav { margin: 0; padding: 0 0 6px; }
  .nav > .nav-top { display: flex !important; flex: none; margin: 0 6px 0 0 !important; }
  .nav > .nav-top .btn { white-space: nowrap; }
  .side { position: static; height: auto; }
  .nav { display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .nav a { white-space: nowrap; flex: none; }
  .nav > .row { flex: none; margin: 0 6px 0 0 !important; }
  .nav .sep, .me { display: none; }
  .main { padding: 18px 16px 50px; }
  .kpis, .goals, .levels, .features { grid-template-columns: 1fr 1fr; }
  .cols, .cols.w21, .lead-grid, .grid2 { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(4, 1fr); }
  .hero h1 { font-size: 30px; }
}

/* ---------- hiring */
.stars { display: inline-flex; gap: 1px; }
.star { color: #d5dbe5; font-size: 16px; line-height: 1; background: none; border: 0; padding: 0 1px; }
button.star { cursor: pointer; font-size: 22px; }
.star.on { color: #f5a623; }
.sound-toggle { background: none; border: 0; padding: 0; font-size: 15px; cursor: pointer; opacity: .75; }
.sound-toggle:hover { opacity: 1; }

/* ===================================================================== Slack-style app theme (app.html only) */
body.app {
  /* VIRA brand palette (same as website): navy #0B1B34 / #0a2350 / #13306a, teal #12c4a6 / #0b8f79, mint #2EE6B6 */
  --sk-aub: #0b1b34; --sk-aub-2: #0a1526; --sk-side-ink: #b8c7dd; --sk-active: #12c4a6; --sk-green: #0a2350; --sk-green-2: #13306a;
  --sk-ink: #0f1b2d; --sk-muted: #5e7085; --sk-line: #e3e9f1; --sk-red: #d64545; --sk-blue: #0b8f79;
  font-family: 'Lato', 'Slack-Lato', system-ui, -apple-system, 'Segoe UI', sans-serif; background: #fff; color: var(--sk-ink); font-size: 15px;
}
body.app a { color: var(--sk-blue); }
body.app h1 { font-size: 22px; font-weight: 900; letter-spacing: 0; }
body.app h2 { font-weight: 900; font-size: 16px; }
body.app .muted { color: var(--sk-muted); }

/* top bar with search, like Slack's */
body.app .shell { grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: 44px 1fr; }
body.app .topbar { grid-column: 1 / -1; background: var(--sk-aub-2); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 12px; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(255,255,255,.1); }
body.app .top-search { flex: 0 1 640px; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: 0 10px; height: 28px; color: #fff; }
body.app .top-search input { background: transparent; border: 0; color: #fff; padding: 0; height: 26px; font-size: 13px; }
body.app .top-search input::placeholder { color: rgba(255,255,255,.75); }
body.app .top-search input:focus { outline: none; }
body.app .top-search:focus-within { background: #fff; color: var(--sk-ink); }
body.app .top-search:focus-within input { color: var(--sk-ink); }
body.app .top-me { position: absolute; right: 12px; display: flex; align-items: center; }
body.app .avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 6px; color: #fff; font-weight: 900; font-size: 14px; flex: none; text-transform: uppercase; }
body.app .avatar.sm { width: 22px; height: 22px; border-radius: 4px; font-size: 10px; }
body.app .top-me .avatar { width: 26px; height: 26px; font-size: 11px; }

/* sidebar */
body.app .side { background: var(--sk-aub); border-right: 0; color: var(--sk-side-ink); top: 44px; height: calc(100vh - 44px); padding: 10px 8px; }
body.app .brand { padding: 4px 10px 12px; border-bottom: 1px solid rgba(255,255,255,.1); margin: 0 -8px 10px; padding-left: 18px; }
body.app .brand b { color: #fff; font-weight: 900; font-size: 17px; }
body.app .brand span { color: var(--sk-side-ink); }
body.app .brand img { background: #fff; border-radius: 8px; padding: 3px; width: 32px; height: 32px; }
body.app .nav a { color: var(--sk-side-ink); font-weight: 400; padding: 4px 10px; border-radius: 6px; font-size: 15px; line-height: 20px; }
body.app .nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
body.app .nav a.on { background: var(--sk-active); color: #04241f; font-weight: 700; }
body.app .nav a:has(.badge) { color: #fff; font-weight: 700; }
body.app .nav a .badge { background: var(--sk-red); font-weight: 700; border-radius: 9px; }
body.app .nav .sep { color: var(--sk-side-ink); opacity: .8; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700; padding: 16px 10px 4px; }
body.app .nav .sep::before { content: '▾ '; font-size: 11px; }
body.app .nav .btn { border-radius: 6px; }
body.app .nav .btn.teal { background: var(--teal); color: #04241f; border-color: var(--teal); font-weight: 700; }
body.app .nav .nav-top .btn:not(.teal) { background: transparent; color: var(--sk-side-ink); border-color: rgba(255,255,255,.25); opacity: 1 !important; }
body.app .nav .btn.sm.grow, body.app .nav .row .btn:not(.teal) { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
body.app .me { border-top: 1px solid rgba(255,255,255,.1); color: var(--sk-side-ink); }
body.app .me b { color: #fff; }
body.app .me .muted { color: var(--sk-side-ink); }
body.app .me .btn { background: transparent; color: var(--sk-side-ink); border-color: rgba(255,255,255,.3); }
body.app .bell { filter: grayscale(1) brightness(2); }
body.app .clock { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: #fff; }
body.app .clock.on { background: rgba(18,196,166,.14); border-color: rgba(18,196,166,.5); }
body.app .clock .btn { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
body.app .clock .btn.primary { background: var(--teal); border-color: var(--teal); color: #04241f; }
body.app .clock .small { color: var(--sk-side-ink); }

/* main area: white, flat, hairline borders */
body.app .main { background: #fff; padding: 22px 28px 60px; }
body.app .page-head { border-bottom: 1px solid var(--sk-line); margin: -22px -28px 20px; padding: 16px 28px 14px; align-items: center; }
body.app .page-head h1 { font-size: 18px; }
body.app .page-head .muted { font-size: 13px; }
body.app .card, body.app .kpi { border-radius: 8px; box-shadow: none; border-color: var(--sk-line); }
body.app .btn { border-radius: 6px; font-weight: 700; border-color: #bbb; }
body.app .btn.primary { background: var(--sk-green); border-color: var(--sk-green); }
body.app .btn.primary:hover { background: var(--sk-green-2); }
body.app .btn.teal { background: var(--teal); border-color: var(--teal); color: #04241f; }
body.app input, body.app select, body.app textarea { border-radius: 6px; border-color: #bbb; }
body.app input:focus, body.app select:focus, body.app textarea:focus { outline: none; border-color: var(--teal-ink); box-shadow: 0 0 0 3px rgba(18,196,166,.25); }
body.app .seg a.on { background: var(--sk-aub); }
body.app .pill.navy { background: #e6ecf7; color: var(--navy); }
body.app .modal { border-radius: 8px; }

/* messages: Slack rows instead of chat bubbles */
body.app .msgs { grid-template-columns: 280px minmax(0, 1fr); gap: 0; border: 1px solid var(--sk-line); border-radius: 8px; overflow: hidden; }
body.app .thread-list { border: 0; border-right: 1px solid var(--sk-line); border-radius: 0; padding: 8px 6px; max-height: 72vh; background: #f8f8f8; }
body.app .thread-list .mrow { display: flex; gap: 10px; align-items: flex-start; border: 0; border-radius: 6px; padding: 7px 8px; }
body.app .thread-list .mrow + .mrow { border-top: 0; }
body.app .thread-list .mrow:hover { background: #ececec; }
body.app .thread-list .mrow.on { background: #e4fbf4; color: var(--sk-ink); box-shadow: inset 3px 0 0 var(--sk-active); }
body.app .thread-list .mrow.on .muted { color: var(--sk-muted); }
body.app .thread-list .mrow.unread { background: transparent; font-weight: 700; }
body.app .thread-list .mrow.unread.on { background: #e4fbf4; }
body.app .sk-pane { border: 0; border-radius: 0; padding: 0; display: flex; flex-direction: column; min-height: 60vh; }
body.app .sk-head { padding: 12px 18px; border-bottom: 1px solid var(--sk-line); display: flex; align-items: center; gap: 10px; }
body.app .sk-feed { flex: 1; overflow: auto; max-height: 58vh; padding: 12px 0; }
body.app .sk-msg { display: flex; gap: 10px; padding: 6px 18px; }
body.app .sk-msg:hover { background: #f8f8f8; }
body.app .sk-msg.cont { padding-top: 1px; }
body.app .sk-msg.cont .avatar { visibility: hidden; height: 0; }
body.app .sk-msg .who { font-weight: 900; margin-right: 6px; }
body.app .sk-msg .when { font-size: 12px; color: var(--sk-muted); }
body.app .sk-msg .text { white-space: pre-wrap; line-height: 1.46; }
body.app .sk-msg.urgent { background: var(--red-bg); border-left: 3px solid var(--sk-red); }
body.app .sk-msg.important { background: #fdf4e3; border-left: 3px solid #f2b84b; }
body.app .sk-day { display: flex; align-items: center; gap: 10px; margin: 8px 18px; font-size: 13px; font-weight: 700; color: var(--sk-ink); }
body.app .sk-day::before, body.app .sk-day::after { content: ''; flex: 1; border-top: 1px solid var(--sk-line); }
body.app .sk-compose { margin: 0 18px 16px; border: 1px solid #bbb; border-radius: 8px; }
body.app .sk-compose:focus-within { border-color: #868686; box-shadow: 0 0 0 1px #868686; }
body.app .sk-compose textarea { border: 0; min-height: 56px; box-shadow: none !important; }
body.app .sk-compose .bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; background: #f8f8f8; border-top: 1px solid #eee; border-radius: 0 0 8px 8px; }
body.app .sk-compose select { width: 140px; padding: 4px 8px; font-size: 13px; }

@media (max-width: 900px) {
  body.app .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
  body.app .topbar { position: static; padding: 6px 10px; }
  body.app .top-me { display: none; }
  body.app .side { top: 0; height: auto; }
  body.app .page-head { margin: -18px -16px 16px; padding: 12px 16px; }
  body.app .msgs { grid-template-columns: minmax(0, 1fr); }
  body.app .thread-list { border-right: 0; border-bottom: 1px solid var(--sk-line); max-height: 40vh; }
}
body.app .bell { filter: none; }
body.app .sk-compose .bar { min-height: 42px; gap: 8px; }
body.app .sk-compose .bar select { height: 30px; border: 1px solid #ddd; background: #fff; }
body.app .sk-compose .bar .btn { height: 30px; padding: 0 14px; font-size: 13px; }
@media (max-width: 900px) {
  /* Phones: nothing in the main column may be wider than the screen. */
  body.app .main * { min-width: 0; }
  body.app .main { overflow-wrap: anywhere; }
  body.app .reqs { grid-template-columns: minmax(0, 1fr); }
  body.app .strip, body.app .kpis, body.app .kpis[style], body.app .strip[style] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.app .main .row { flex-wrap: wrap; }
  body.app .top-search { flex: 1 1 auto; }
  body.app .main .card { overflow-x: auto; }
}

/* settings page */
body.app .ro { padding: 8px 10px; border: 1px solid var(--sk-line); border-radius: 6px; background: #f6f8fb; min-height: 38px; overflow-wrap: anywhere; }
body.app .setrow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--sk-line); }
body.app .setrow:last-of-type { border-bottom: 0; margin-bottom: 10px; }
body.app .toggle { width: 42px; height: 24px; border-radius: 12px; border: 0; background: #c9d4e2; position: relative; cursor: pointer; flex: none; padding: 0; }
body.app .toggle span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
body.app .toggle.on { background: var(--teal); }
body.app .toggle.on span { left: 21px; }

/* ---------- icon buttons (bell, sound) */
body.app .icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; color: #dbe5f3; background: transparent; border: 0; cursor: pointer; position: relative; padding: 0; text-decoration: none; }
body.app .icon-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
body.app .icon-btn.off { color: #7f93b0; }
body.app .icon-btn .badge { position: absolute; top: -3px; right: -4px; font-size: 10px; line-height: 16px; min-width: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-weight: 700; text-align: center; }

/* ---------- certificate */
.cert { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; max-width: 1000px; aspect-ratio: 1.414; margin: 0 auto; box-shadow: 0 10px 30px rgba(10,35,80,.08); }
.cert-in { height: 100%; border: 3px solid var(--navy); outline: 1px solid var(--teal); outline-offset: -10px; border-radius: 6px; padding: 5% 7%; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; background:
  radial-gradient(circle at 0 0, rgba(18,196,166,.10), transparent 40%), radial-gradient(circle at 100% 100%, rgba(10,35,80,.08), transparent 45%); }
.cert-top { display: flex; align-items: center; gap: 12px; }
.cert-top img { width: 52px; height: 52px; }
.cert-top b { display: block; font-size: 26px; letter-spacing: .2em; color: var(--navy); text-align: left; }
.cert-top span { font-size: 11px; letter-spacing: .3em; color: var(--teal-ink); font-weight: 700; }
.cert-kicker { margin-top: 5%; font-size: 30px; font-weight: 900; color: var(--navy); letter-spacing: .02em; text-transform: uppercase; }
.cert-small { margin-top: 2.2%; font-size: 14px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.cert-name { margin-top: 1.2%; font-size: 44px; font-weight: 900; color: var(--ink); border-bottom: 2px solid var(--teal); padding: 0 24px 6px; font-family: Georgia, 'Times New Roman', serif; font-style: italic; }
.cert-level { margin-top: 1.2%; font-size: 24px; font-weight: 900; color: var(--navy); }
.cert-covers { max-width: 640px; color: var(--muted); font-size: 14px; margin: 1.5% 0 0; }
.cert-foot { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px; }
.cert-line { border-bottom: 1px solid #9aa8bd; padding-bottom: 4px; font-size: 16px; font-weight: 700; color: var(--ink); min-height: 28px; }
.cert-sign { font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: 26px; font-weight: 400; }
.cert-cap { font-size: 12px; color: var(--muted); margin-top: 4px; }
.cert-seal { width: 92px; height: 92px; border-radius: 50%; background: var(--navy); color: var(--teal); display: grid; place-items: center; font-size: 30px; font-weight: 900; border: 4px solid var(--teal); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--navy); line-height: 1; }
.cert-seal span { display: block; font-size: 9px; letter-spacing: .15em; color: #fff; margin-top: -18px; }
.cert-id { position: absolute; bottom: 14px; left: 0; right: 0; font-size: 11px; color: #8a97ab; letter-spacing: .08em; }
@media (max-width: 700px) { .cert { aspect-ratio: auto; } .cert-in { padding: 24px 16px 40px; } .cert-name { font-size: 28px; } .cert-kicker { font-size: 20px; } .cert-level { font-size: 18px; } .cert-foot { grid-template-columns: 1fr; margin-top: 24px; } .cert-seal { margin: 0 auto; } }
@media print {
  @page { size: A4 landscape; margin: 0; }
  body.app .topbar, body.app .side, .no-print, #dev-banner, .toast { display: none !important; }
  body.app .shell { display: block; }
  body.app .main { padding: 0; max-width: none; }
  .cert { box-shadow: none; border: 0; border-radius: 0; max-width: none; width: 297mm; height: 209mm; aspect-ratio: auto; padding: 8mm; margin: 0; overflow: hidden; page-break-after: avoid; break-after: avoid; }
  body.app:has(.cert) .main > *:not(.cert) { display: none !important; }
  body.app:has(.cert), body.app:has(.cert) .shell, body.app:has(.cert) .main { height: auto; min-height: 0; margin: 0; padding: 0; background: #fff; }
}

/* ---------- tax profile document */
.taxdoc .kv th { text-align: left; color: var(--muted); font-weight: 600; font-size: 13px; vertical-align: top; }
@media print { .taxdoc { border: 0 !important; box-shadow: none !important; padding: 0 !important; } body.app .main { padding: 10mm; } }

/* ===================================================================== Slack frame (VIRA colours)
   Dark window, a narrow icon rail, the sidebar and a rounded white panel side by side. */
body.app .shell { grid-template-columns: 70px 260px minmax(0, 1fr); grid-template-rows: 44px minmax(0, 1fr); height: 100vh; min-height: 0; overflow: hidden; background: var(--sk-aub-2); }
body.app .topbar { background: transparent; box-shadow: none; justify-content: center; position: relative; }
body.app .top-search { flex: 0 1 720px; height: 28px; border-radius: 7px; }
body.app .top-search svg { flex: none; opacity: .85; }
body.app .top-right { position: absolute; right: 10px; top: 0; height: 44px; display: flex; align-items: center; gap: 8px; }
body.app .top-help { font-weight: 800; color: #dbe5f3; border: 1px solid rgba(255,255,255,.25); width: 26px; height: 26px; border-radius: 50%; font-size: 13px; }
body.app .top-me { position: static; }
body.app .top-av { position: relative; background: none; border: 0; padding: 0; cursor: pointer; display: block; }
body.app .top-av .avatar { width: 30px; height: 30px; font-size: 12px; border-radius: 7px; }
body.app .top-av .pres { position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%; background: #2bac76; border: 2px solid var(--sk-aub-2); }
body.app .avatar.photo { overflow: hidden; background: #dfe6ef; padding: 0; }
body.app .avatar.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.app .avatar.lg { width: 44px; height: 44px; border-radius: 9px; font-size: 16px; }
body.app .avatar.xl { width: 84px; height: 84px; border-radius: 14px; font-size: 28px; }

/* rail */
body.app .rail { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0 12px; color: #dbe5f3; }
body.app .ws-tile img { width: 38px; height: 38px; border-radius: 10px; background: #fff; padding: 4px; display: block; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
body.app .ws-tile { margin-bottom: 10px; }
body.app .rail-item { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: #dbe5f3; width: 62px; }
body.app .rail-item .ri { position: relative; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; transition: background .12s; }
body.app .rail-item:hover .ri { background: rgba(255,255,255,.12); }
body.app .rail-item.on .ri { background: rgba(255,255,255,.22); color: #fff; }
body.app .rail-item .rl { font-size: 11px; font-weight: 700; }
body.app .rail-item .badge { position: absolute; top: -4px; right: -6px; font-size: 10px; line-height: 16px; min-width: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-weight: 800; text-align: center; border: 2px solid var(--sk-aub-2); }
body.app .rail-bottom { margin-top: auto; }

/* sidebar + panel, joined like Slack's window */
body.app .side { grid-column: 2; grid-row: 2; position: static; top: auto; height: auto; min-height: 0; border-radius: 10px 0 0 10px; margin-bottom: 6px; padding: 0 8px 8px; background: var(--sk-aub); border-right: 1px solid rgba(255,255,255,.08); }
body.app .ws-head { margin: 0 -8px 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 6px; }
body.app .ws-name { display: block; text-decoration: none; color: #fff; min-width: 0; flex: 1; }
body.app .ws-name b { font-size: 18px; font-weight: 900; display: block; }
body.app .ws-name span { font-size: 12px; color: var(--sk-side-ink); }
body.app .main { grid-column: 3; grid-row: 2; min-height: 0; overflow-y: auto; margin: 0 6px 6px 0; border-radius: 0 10px 10px 0; max-width: none; }
body.app .page-head { position: sticky; top: -22px; z-index: 5; background: #fff; }

/* sidebar items: icon + label, sections that fold */
body.app .nav a { gap: 8px; justify-content: flex-start; padding: 5px 10px; }
body.app .nav a .ni { display: inline-flex; opacity: .8; flex: none; }
body.app .nav a .ni svg { width: 16px; height: 16px; }
body.app .nav a .nl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.app .nav a.on .ni, body.app .nav a.unread .ni { opacity: 1; }
body.app .nav a.unread { color: #fff; font-weight: 700; }
body.app .nav .sec { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: 0; color: var(--sk-side-ink); font: inherit; font-size: 14px; font-weight: 700; text-align: left; padding: 14px 10px 4px; cursor: pointer; }
body.app .nav .sec:hover { color: #fff; }
body.app .nav .sec .car { display: inline-block; font-size: 11px; transition: transform .12s; }
body.app .nav .sec.closed .car { transform: rotate(-90deg); }
body.app .nav .sec-body.hide { display: none; }

/* bottom of the sidebar: you, Settings and Sign out side by side */
body.app .me { padding: 10px 6px 0; }
body.app .me-row { display: flex; align-items: center; gap: 10px; }
body.app .me-row .avatar.sm { width: 30px; height: 30px; font-size: 12px; border-radius: 7px; }
body.app .me-row b { color: #fff; font-size: 13.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.app .me-actions { display: flex; gap: 6px; margin-top: 10px; }
body.app .me-actions form { margin: 0; flex: 1; display: flex; }
body.app .me-actions .btn { flex: 1; justify-content: center; gap: 6px; background: transparent; color: var(--sk-side-ink); border-color: rgba(255,255,255,.22); font-weight: 600; }
body.app .me-actions .btn:hover { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); }
body.app .me-actions .btn svg { width: 14px; height: 14px; }

/* avatar menu (top right) */
.av-menu { position: fixed; z-index: 100; width: 290px; background: #fff; border: 1px solid #dfe3ea; border-radius: 10px; box-shadow: 0 18px 50px rgba(10,22,40,.28); padding: 8px 0; font-size: 14.5px; }
.av-menu .av-head { display: flex; gap: 12px; align-items: center; padding: 10px 16px 14px; border-bottom: 1px solid #edf0f4; margin-bottom: 6px; }
.av-menu .av-head b { font-size: 15.5px; }
.av-menu .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #9aa6b8; margin-right: 6px; }
.av-menu .dot.on { background: #2bac76; }
.av-menu a, .av-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 16px; background: none; border: 0; font: inherit; color: #1d2433; text-decoration: none; cursor: pointer; text-align: left; }
.av-menu a:hover, .av-menu button:hover { background: var(--navy, #0a2350); color: #fff; }
.av-menu svg { width: 16px; height: 16px; flex: none; }
.av-menu form { margin: 6px 0 0; border-top: 1px solid #edf0f4; padding-top: 6px; }

/* phones: a normal page with Slack's bottom tab bar */
@media (max-width: 900px) {
  body.app .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; height: auto; overflow: visible; }
  body.app .topbar { grid-row: 1; }
  body.app .top-right { position: static; }
  body.app .side { grid-column: 1; grid-row: 2; border-radius: 0; margin: 0; }
  body.app .main { grid-column: 1; grid-row: 3; margin: 0; border-radius: 0; overflow: visible; padding-bottom: 90px; }
  body.app .page-head { position: static; }
  body.app .rail { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; flex-direction: row; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--sk-aub-2); box-shadow: 0 -6px 20px rgba(0,0,0,.25); }
  body.app .rail .ws-tile { display: none; }
  body.app .rail-bottom { margin-top: 0; }
  body.app .ws-head { padding: 10px 12px; }
  body.app .me { display: none; }
}
@media print {
  body.app .shell { height: auto; overflow: visible; background: #fff; }
  body.app .main { overflow: visible; margin: 0; border-radius: 0; }
  body.app .rail { display: none !important; }
}
body.app .av-menu a { color: #1d2433; }
body.app .av-menu a:hover { color: #fff; }
body.app .thread-list .mrow, body.app a.mrow { color: var(--sk-ink); }

/* presence check + proof boxes */
.presence-bg { position: fixed; inset: 0; z-index: 200; background: rgba(6,14,30,.72); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px); }
.presence { background: #fff; border-radius: 16px; padding: 30px 28px; width: 100%; max-width: 380px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.presence-ico { font-size: 40px; }
.presence h2 { font-size: 24px; margin: 6px 0; color: #0a2350; }
.presence p { color: #5d6b82; margin: 0 0 14px; }
.presence-count { font-size: 40px; font-weight: 900; color: #d64545; font-variant-numeric: tabular-nums; margin-bottom: 16px; }
.presence .btn { width: 100%; justify-content: center; padding: 12px; font-size: 16px; }
.proof-box { margin-top: 6px; padding: 10px 12px; border: 1px solid #f3d9a4; background: #fdf8ec; border-radius: 10px; font-size: 13px; }
.red-text { color: var(--red); }

/* ---------- rep motivation */
body.app .mo { padding: 22px 24px; background: radial-gradient(60% 120% at 0% 0%, rgba(18,196,166,.10), transparent 60%), radial-gradient(50% 120% at 100% 0%, rgba(27,77,184,.08), transparent 60%), #fff; }
.mo-grid { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 22px; align-items: center; }
.mo-ring { position: relative; width: 132px; height: 132px; }
.mo-ring-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.mo-ring-in b { font-size: 30px; font-weight: 900; color: #0a2350; line-height: 1; }
.mo-ring-in span { font-size: 11.5px; color: #5d6b82; margin-top: 4px; }
.mo-streak { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #f6f8fb; border: 1px solid #e3e9f1; margin-bottom: 12px; }
.mo-streak .fl { font-size: 26px; filter: grayscale(1); opacity: .5; }
.mo-streak.on { background: #fff5ec; border-color: #ffd9b8; }
.mo-streak.on .fl { filter: none; opacity: 1; animation: flick 1.6s ease-in-out infinite; }
@keyframes flick { 0%,100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.12) rotate(3deg); } }
.mo-week b { font-size: 24px; color: #0a2350; }
.mo-bars { display: flex; gap: 6px; align-items: flex-end; height: 58px; }
.mo-bars .mb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; justify-content: flex-end; }
.mo-bars .mb i { width: 100%; max-width: 22px; border-radius: 5px 5px 2px 2px; background: #c9d8ee; display: block; }
.mo-bars .mb.now i { background: linear-gradient(180deg, #12c4a6, #1b4db8); }
.mo-bars .mb span { font-size: 10.5px; color: #8a97ab; }
.mo-line { margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: #0a2350; color: #fff; font-weight: 600; font-size: 14.5px; }
.mo-badges { margin-top: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.mo-badges .bdg { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: #f1f4f8; border: 1px solid #e3e9f1; filter: grayscale(1); opacity: .45; cursor: help; }
.mo-badges .bdg.on { filter: none; opacity: 1; background: #fff; border-color: #b9ecdc; box-shadow: 0 4px 12px rgba(18,196,166,.18); }
.link-btn { background: none; border: 0; color: var(--teal-ink); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall 2.8s cubic-bezier(.25,.6,.4,1) forwards; }
@keyframes fall { to { top: 105vh; transform: translateX(40px) rotate(720deg); } }
@media (max-width: 900px) { .mo-grid { grid-template-columns: 1fr; justify-items: start; } .mo-ring { margin: 0 auto; } .mo-col { width: 100%; } }

/* ---------- account setup (professional social profiles) */
.net-ic { display: inline-grid; place-items: center; color: var(--navy); flex: none; }
.net-ic svg { display: block; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 16px; }
.acc-card { display: block; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.acc-card:hover { border-color: #c7d0dd; box-shadow: 0 4px 14px rgba(10, 35, 80, .08); }
.acc-hero { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; border-left: 4px solid var(--teal); }
.acc-hero.ok { border-left-color: var(--green); }
.acc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.acc-side { position: sticky; top: 12px; }
.acc-step { border-left: 4px solid var(--line); }
.acc-step.done { border-left-color: var(--teal); }
.acc-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.acc-step-head h3 { font-size: 15px; }
.acc-num { width: 26px; height: 26px; border-radius: 50%; background: #eef2f7; color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.acc-step.done .acc-num { background: var(--teal); color: #fff; }
.acc-step .prose p { margin: 6px 0; }
.acc-step .prose ul { margin: 6px 0; }
.acc-check { display: flex; align-items: flex-start; gap: 10px; width: 100%; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfd; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.acc-check:hover:not(:disabled) { border-color: var(--teal); }
.acc-check:disabled { cursor: default; }
.acc-check .box { width: 20px; height: 20px; border-radius: 5px; border: 2px solid #c7d0dd; background: #fff; display: grid; place-items: center; color: transparent; flex: none; margin-top: 1px; }
.acc-step.done .acc-check { background: #effbf8; border-color: #bfeee4; }
.acc-step.done .acc-check .box { background: var(--teal); border-color: var(--teal); color: #fff; }
.tpl { border: 1px solid var(--line); border-radius: 8px; margin-top: 10px; overflow: hidden; }
.tpl-head { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: #f7f9fc; border-bottom: 1px solid var(--line); }
.tpl-head b { flex: 1; font-size: 12px; }
.tpl-over { color: var(--red); font-weight: 600; }
.tpl-text { padding: 10px 12px; white-space: pre-wrap; font-size: 13px; overflow-wrap: anywhere; }
.acc-std { margin: 8px 0 0; padding-left: 18px; }
.acc-std li { margin: 6px 0; }
.acc-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.acc-table { overflow-x: auto; }
.acc-table td { vertical-align: top; min-width: 140px; }
.acc-table td a { overflow-wrap: anywhere; }
@media (max-width: 900px) { .acc-layout { grid-template-columns: minmax(0, 1fr); } .acc-side { position: static; } }
/* A back link above the page header (lesson, guide and detail pages) stays visible. */
body.app .page-head:not(:first-child) { margin-top: 0; }
body.app a.acc-card { color: var(--ink); }

/* ---------- email templates */
.email-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.seg.vertical { display: grid; gap: 6px; }
.seg-btn { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 10px; font: inherit; color: var(--ink); cursor: pointer; }
.seg-btn:hover { border-color: #c7d0dd; }
.seg-btn.on { border-color: var(--teal); background: #effbf8; }
.email-preview iframe { width: 100%; height: 760px; border: 1px solid var(--line); border-radius: 8px; background: #f5f7fa; }
@media (max-width: 900px) { .email-layout { grid-template-columns: minmax(0, 1fr); } .email-preview iframe { height: 640px; } }

/* ---------- loading skeletons */
.sk { display: grid; gap: 16px; }
.sk-head { display: grid; padding: 4px 0 10px; }
.sk-line, .sk-block, .sk-kpi { display: block; border-radius: 6px; background: linear-gradient(90deg, #eef2f7 0%, #f7f9fc 40%, #eef2f7 80%); background-size: 200% 100%; animation: sk-shimmer 1.2s ease-in-out infinite; }
.sk-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; }
.sk-block { margin-top: 16px; border-radius: 8px; }
.sk-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sk-kpi { height: 78px; border-radius: var(--radius); }
.sk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sk-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f4f8; }
.sk-row:last-child { border-bottom: 0; }
.sk-col { flex: 1; display: grid; }
@keyframes sk-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk-line, .sk-block, .sk-kpi { animation: none; } }
@media (max-width: 700px) { .sk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sk-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Phase 1 timer */
.p1-card { border-left: 4px solid var(--navy); }
.p1-card.met { border-left-color: var(--green); }
.p1-card.missed { border-left-color: var(--red); }
.p1-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.p1-big { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.p1-big span { font-size: 16px; color: var(--muted); font-weight: 600; }
.p1-clients { text-align: right; }
.p1-bars { display: grid; gap: 6px; margin-top: 12px; }
.p1-bars .bar { margin: 0; height: 8px; }
.p1-bars .bar.clients i { background: var(--teal); }
