/* =====================================================================
   LIVELY INTENTION: STYLES
   Brand colors and fonts from The Lively Office.
   ===================================================================== */
:root {
  --blue: #2F4CA1;
  --navy: #083B56;
  --green: #71BF44;
  --yellow: #FAD415;
  --teal: #19C7C7;
  --mist: #EAF8FB;
  --ink: #0f2a3a;
  --muted: #5b7180;
  --line: #d7e9ee;
  --card: #ffffff;
  --danger: #c2413a;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(8, 59, 86, 0.08);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Ubuntu', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: #dceff4;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font-family: inherit; font-size: 16px; color: inherit; }
a { color: var(--blue); }
.accent { font-family: 'Kalam', cursive; }

/* ---------- App shell (phone sized, centered on bigger screens) ---------- */
#app {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--mist);
  box-shadow: 0 0 40px rgba(8, 59, 86, 0.12);
  overflow-x: hidden;
}

/* ---------- Watermark on every screen ---------- */
.watermark {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  max-width: 480px; margin: 0 auto;
  background-repeat: repeat;
  opacity: 1;
}

/* ---------- Test banner ---------- */
.test-banner {
  position: sticky; top: 0; z-index: 40;
  padding: calc(6px + var(--safe-top)) 12px 6px;
  background: var(--yellow); color: var(--navy);
  font-size: 12.5px; font-weight: 700; text-align: center; letter-spacing: .2px;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px 6px;
}
.topbar img { width: 40px; height: 40px; }
.topbar .title { font-weight: 700; color: var(--navy); font-size: 18px; line-height: 1.1; }
.topbar .title small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.topbar .avatar { margin-left: auto; }

.view { padding: 8px 16px calc(110px + var(--safe-bottom)); position: relative; z-index: 1; }
.view.no-nav { padding-bottom: 60px; }

/* ---------- Cards and text ---------- */
.card {
  background: var(--card); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); margin: 0 0 14px; border: 1px solid rgba(8,59,86,.04);
}
.card h3 { margin: 0 0 6px; font-size: 16px; color: var(--navy); }
.card p { margin: 6px 0; line-height: 1.45; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 20px 4px 8px; font-weight: 700; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.center { text-align: center; }
h1, h2 { color: var(--navy); }

/* ---------- Hero on dashboard ---------- */
.hero {
  background: linear-gradient(140deg, var(--blue), var(--navy));
  color: #fff; border-radius: 24px; padding: 20px 18px; margin-bottom: 14px;
  box-shadow: 0 12px 28px rgba(47, 76, 161, .3); position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px;
  border-radius: 50%; background: rgba(250, 212, 21, .18);
}
.hero .tagline { font-family: 'Kalam', cursive; font-size: 27px; line-height: 1.15; margin: 0 0 10px; color: #fff; position: relative; }
.hero .meta { font-size: 13px; opacity: .9; margin: 2px 0; position: relative; }
.hero .btn { margin-top: 14px; position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 13px 18px; font-weight: 700; font-size: 16px;
  background: var(--blue); color: #fff; cursor: pointer; text-decoration: none;
  transition: transform .08s ease, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn.block { display: flex; width: 100%; }
.btn.yellow { background: var(--yellow); color: var(--navy); }
.btn.green { background: var(--green); color: #fff; }
.btn.teal { background: var(--teal); color: #fff; }
.btn.ghost { background: transparent; color: var(--blue); border: 2px solid var(--line); }
.btn.light { background: var(--mist); color: var(--navy); }
.btn.danger { background: #fff; color: var(--danger); border: 2px solid #f1cfcc; }
.btn.sm { padding: 8px 12px; font-size: 14px; border-radius: 11px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.linkbtn { background: none; border: 0; color: var(--blue); font-weight: 700; padding: 4px; cursor: pointer; font-size: 14px; }

/* ---------- Pills ---------- */
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.done { background: #e3f4d8; color: #3c7a1c; }
.pill.boost { background: #fff4c2; color: #7a5d00; }
.pill.progress { background: #d9f6f6; color: #0d7c7c; }
.pill.none { background: #eef1f3; color: #5b7180; }
.pill.flag { background: #fde4e2; color: var(--danger); }
.pill.tag { background: var(--mist); color: var(--navy); }
.pill.tag-Win { background: #fff4c2; color: #7a5d00; }
.pill.tag-Question { background: #e4e9f8; color: var(--blue); }
.pill.tag-Encouragement { background: #e3f4d8; color: #3c7a1c; }
.pill.tag-Resource { background: #d9f6f6; color: #0d7c7c; }

/* ---------- Avatars ---------- */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; flex: none; font-size: 15px;
}
.avatar.lg { width: 54px; height: 54px; font-size: 19px; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }

/* ---------- Forms ---------- */
label.field { display: block; margin: 12px 0; font-weight: 700; font-size: 14px; color: var(--navy); }
label.field span.help { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%; margin-top: 6px; padding: 13px 14px; border-radius: 14px; border: 2px solid var(--line);
  background: #fff; outline: none; transition: border-color .2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--teal); }
textarea { min-height: 130px; resize: vertical; line-height: 1.45; }

.choice {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 2px solid var(--line);
  background: #fff; margin: 8px 0; cursor: pointer; font-weight: 500;
}
.choice.on { border-color: var(--blue); background: #f2f5fd; }
.choice .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.choice.on .dot { border: 6px solid var(--blue); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip {
  border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 13px;
  font-size: 14px; cursor: pointer; font-weight: 500;
}
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }

.seg { display: flex; background: #fff; border-radius: 14px; padding: 4px; margin-bottom: 12px; box-shadow: var(--shadow); }
.seg button { flex: 1; border: 0; background: transparent; padding: 10px 6px; border-radius: 11px; font-weight: 700; color: var(--muted); cursor: pointer; font-size: 14px; }
.seg button.on { background: var(--blue); color: #fff; }

/* ---------- Bottom navigation ---------- */
.nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; max-width: 480px; margin: 0 auto;
  display: flex; background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + var(--safe-bottom)); backdrop-filter: blur(10px);
}
.nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none;
  color: var(--muted); font-size: 11px; font-weight: 700; padding: 4px 0; position: relative;
}
.nav a svg { width: 24px; height: 24px; }
.nav a.on { color: var(--blue); }
.nav a .badge { position: absolute; top: 0; right: 22%; background: var(--danger); color: #fff; border-radius: 999px; font-size: 10px; padding: 1px 5px; }

/* ---------- Demo button and sheet ---------- */
.demo-fab {
  position: fixed; z-index: 70; right: max(12px, calc(50% - 240px + 12px)); bottom: calc(78px + var(--safe-bottom));
  background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 10px 14px; font-weight: 700;
  font-size: 13px; box-shadow: 0 8px 20px rgba(8,59,86,.35); cursor: pointer;
}
.demo-fab.no-nav { bottom: calc(16px + var(--safe-bottom)); }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(8,59,86,.45); z-index: 80; }
.sheet {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto;
  background: #fff; border-radius: 24px 24px 0 0; padding: 18px 16px calc(20px + var(--safe-bottom));
  max-height: 86vh; overflow-y: auto; animation: up .25s ease;
}
.sheet h2 { margin: 0 0 4px; font-size: 20px; }
.sheet .who { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet .who button { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 10px; cursor: pointer; font-size: 14px; }
.sheet .who button.on { border-color: var(--blue); background: #f2f5fd; }
.sheet .who button small { display: block; color: var(--muted); font-size: 11.5px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 100; left: 50%; transform: translateX(-50%); bottom: calc(130px + var(--safe-bottom));
  background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14px; max-width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: up .2s ease;
}

/* ---------- Check-in walkthrough ---------- */
.progressbar { height: 10px; border-radius: 99px; background: #fff; overflow: hidden; margin: 6px 0 4px; box-shadow: inset 0 0 0 1px var(--line); }
.progressbar div { height: 100%; background: linear-gradient(90deg, var(--teal), var(--green)); border-radius: 99px; transition: width .35s ease; }
.step-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); font-weight: 700; }
.step-card { animation: fadein .25s ease; }
.step-card h2 { font-size: 26px; margin: 8px 0 4px; }
.step-card h2.accent { font-size: 34px; }
.step-card .hint { color: var(--muted); line-height: 1.45; margin: 0 0 10px; }
.step-nav { display: flex; gap: 10px; margin-top: 14px; }
.step-nav .btn { flex: 1; }
.lastweek { background: var(--mist); border-radius: 14px; padding: 10px 12px; margin: 8px 0 4px; font-size: 14px; }
.lastweek div { margin: 4px 0; }
.rcd-rise { color: var(--blue); } .rcd-connect { color: #0d9a9a; } .rcd-discover { color: #4a9a22; }
@keyframes fadein { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.review-item { border-bottom: 1px solid var(--line); padding: 10px 0; }
.review-item:last-child { border-bottom: 0; }
.review-item b { color: var(--navy); font-size: 13px; text-transform: uppercase; letter-spacing: .8px; }
.review-item p { margin: 4px 0 0; white-space: pre-wrap; }

/* ---------- Celebration ---------- */
.celebrate { text-align: center; padding: 30px 12px 10px; position: relative; }
.celebrate h1 { font-family: 'Kalam', cursive; font-size: 36px; margin: 10px 0 6px; color: var(--blue); }
.celebrate img { width: 130px; animation: bounce 1.2s ease infinite alternate; }
@keyframes bounce { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-10px) rotate(3deg); } }
.confetti { position: fixed; top: -20px; width: 10px; height: 16px; z-index: 95; pointer-events: none; animation: fall linear forwards; border-radius: 2px; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- Partner cards ---------- */
.partner { border-left: 6px solid var(--yellow); }
.partner.nudge { border-left-color: var(--teal); }
.partner .kind { font-family: 'Kalam', cursive; font-size: 19px; color: var(--navy); }
.partner .contact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.partner .contact-row .btn { padding: 11px 6px; font-size: 14px; }
.partner .phone { font-size: 14px; color: var(--muted); margin-top: 6px; }
.partner .phone b { color: var(--navy); letter-spacing: .5px; }
.partner .status { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--mist); font-size: 14px; }

/* ---------- Wins and board posts ---------- */
.post .head { display: flex; gap: 10px; align-items: center; }
.post .head .name { font-weight: 700; color: var(--navy); }
.post .head .time { font-size: 12px; color: var(--muted); }
.post .text { margin: 10px 0 6px; white-space: pre-wrap; line-height: 1.45; }
.post .text .mention { color: var(--blue); font-weight: 700; }
.post img.photo { width: 100%; border-radius: 12px; margin-top: 6px; }
.post .actions { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.post .replies { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.post .reply { display: flex; gap: 8px; margin: 8px 0; font-size: 14px; }
.post .reply .bubble { background: var(--mist); padding: 8px 10px; border-radius: 12px; flex: 1; }
.post.pinned { border: 2px solid var(--yellow); }
.post.hidden-post { opacity: .55; border: 2px dashed var(--danger); }
.cheer { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer; font-weight: 700; }
.cheer.on { background: #fff4c2; border-color: var(--yellow); }
.win-card { border-top: 5px solid var(--yellow); }
.win-card .wintext { font-family: 'Kalam', cursive; font-size: 20px; line-height: 1.3; color: var(--navy); margin: 10px 0; }
.full-entry dt { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; color: var(--muted); margin-top: 10px; }
.full-entry dd { margin: 2px 0 0; line-height: 1.4; }

/* ---------- Admin ---------- */
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.admin-tabs button { flex: none; border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--navy); }
.admin-tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.stat { background: #fff; border-radius: 16px; padding: 12px 8px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 24px; color: var(--blue); }
.stat span { font-size: 12px; color: var(--muted); }
.mrow { display: flex; gap: 10px; align-items: center; }
.mrow .info { flex: 1; min-width: 0; }
.mrow .info b { color: var(--navy); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13.5px; margin-top: 10px; }
.kv span:nth-child(odd) { color: var(--muted); }
.log { font-size: 13px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.log time { color: var(--muted); font-size: 12px; display: block; }
.admin-badge { background: var(--yellow); color: var(--navy); font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 6px; }

/* ---------- Welcome / gate screens ---------- */
.gate { padding-top: 20px; text-align: center; }
.gate img.logo { width: 150px; }
.gate h1 { font-size: 30px; margin: 8px 0 0; }
.gate .tag { font-family: 'Kalam', cursive; font-size: 21px; color: var(--blue); margin: 4px 0 18px; }
.gate .card { text-align: left; }
.promise ol { padding-left: 22px; line-height: 1.5; }
.promise li { margin: 8px 0; }
.promise h2 { font-family: 'Kalam', cursive; font-size: 32px; margin: 0; color: var(--blue); }
.mail-preview { border: 2px dashed var(--teal); border-radius: 16px; padding: 14px; background: #f5fdfd; margin-top: 12px; }

/* ---------- Install hint ---------- */
.install { background: linear-gradient(135deg, #fffbe6, #fff); border: 2px solid var(--yellow); }

@media (min-width: 520px) {
  body { padding: 0; }
}

/* =====================================================================
   ROUND 2 ADDITIONS: check-in card, frameworks, events, reactions,
   private messages, notice bell, setup screens
   ===================================================================== */
.pill.tag-Boost { background: #e3f4d8; color: #3c7a1c; }
.pill.tag-Meeting { background: #d9f6f6; color: #0d7c7c; }
.pill.tag-Rise { background: #e4e9f8; color: var(--blue); }
.pill.tag-Connect { background: #d9f6f6; color: #0d7c7c; }
.pill.tag-Discover { background: #e3f4d8; color: #3c7a1c; }
.pill.tag-Announcement { background: var(--navy); color: #fff; }

/* Top bar bell with red unread number */
.bell-btn { margin-left: auto; position: relative; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--navy); }
.bell-btn svg { width: 26px; height: 26px; }
.bell-btn .badge, .count { background: var(--danger); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 6px; line-height: 16px; }
.bell-btn .badge { position: absolute; top: 0; right: -2px; }
.notice { border-bottom: 1px solid var(--line); padding: 10px 2px; font-size: 14px; }
.notice.unread { background: #fff9dc; border-left: 4px solid var(--yellow); padding-left: 8px; }
.mailbody { white-space: pre-wrap; font-family: inherit; font-size: 12.5px; background: var(--mist); border-radius: 10px; padding: 8px; margin: 6px 0; }
.seg.four button { font-size: 12.5px; padding: 9px 2px; }

/* Big weekly check-in card */
.checkin-card { border: 3px solid var(--yellow); background: linear-gradient(180deg, #fffdf0, #fff); }
.btn.big { font-size: 18px; padding: 16px; }
.tracker { display: flex; gap: 6px; margin-top: 12px; }
.tracker div { flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.tracker span { display: flex; margin: 0 auto 4px; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: #eef1f3; color: var(--muted); }
.tracker .past span { background: var(--green); color: #fff; }
.tracker .now { color: var(--navy); }
.tracker .now span { background: var(--blue); color: #fff; box-shadow: 0 0 0 4px #e4e9f8; }
.word-card { border-left: 6px solid var(--blue); }

/* Framework buttons in the check-in */
.fw-q { font-weight: 700; color: var(--navy); margin: 14px 0 6px; }
.fw-q.small-q { font-size: 14px; }
.fw-grid { display: grid; gap: 8px; }
.fw-grid.compact { grid-template-columns: 1fr 1fr; }
.fw-btn { display: flex; align-items: center; gap: 10px; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 10px; cursor: pointer; font: inherit; color: var(--ink); }
.fw-btn .letter { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--mist); color: var(--blue); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.fw-btn .txt { flex: 1; min-width: 0; }
.fw-btn .txt b { display: block; font-size: 14.5px; }
.fw-btn .txt small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.fw-btn .tick { flex: none; width: 22px; color: var(--green); font-weight: 700; font-size: 18px; }
.fw-btn.on { border-color: var(--blue); background: #f2f5fd; }
.fw-btn.on .letter { background: var(--blue); color: #fff; }
.fw-link { display: block; margin: 12px 0 6px; font-weight: 700; text-decoration: none; }
.chip.idea { font-size: 13px; text-align: left; border-style: dashed; }
.chip.cat-rise.on { background: var(--blue); border-color: var(--blue); }
.chip.cat-connect.on { background: var(--teal); border-color: var(--teal); }
.chip.cat-discover.on { background: var(--green); border-color: var(--green); }
.vibes-tabs button { font-size: 16px; }
.taglines { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.taglines span { background: var(--mist); color: var(--navy); border-radius: 999px; font-size: 11.5px; padding: 3px 9px; font-weight: 500; }
.step-dots { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 12px; }
.step-dots span { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: #eef1f3; color: var(--muted); font-weight: 700; }
.step-dots .past { background: #e3f4d8; color: #3c7a1c; }
.step-dots .now { background: var(--blue); color: #fff; }

/* Framework pages */
.fw-letter .big-letter { font-family: 'Kalam', cursive; font-size: 40px; color: var(--blue); width: 44px; text-align: center; flex: none; line-height: 1; }
.fw-page { border-top: 5px solid var(--teal); }

/* Events calendar list */
.events { border-top: 5px solid var(--yellow); }
.event-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.event-row:last-child { border-bottom: 0; }
.cal { flex: none; width: 52px; border-radius: 12px; overflow: hidden; text-align: center; background: #fff; border: 2px solid var(--blue); height: fit-content; }
.cal span { display: block; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 0; }
.cal b { display: block; font-size: 22px; color: var(--navy); padding: 2px 0 4px; }
.ev-body { flex: 1; min-width: 0; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.event-mini { text-decoration: none; color: inherit; }
.event-form { background: var(--mist); border-radius: 14px; padding: 10px; margin: 10px 0; }

/* Posts: reactions, flags, announcements, links */
.reactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.react { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 14px; cursor: pointer; }
.react.on { border-color: var(--blue); background: #f2f5fd; }
.react.add { color: var(--muted); }
.react-pick { display: inline-flex; gap: 2px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); padding: 2px 6px; }
.react-pick button { border: 0; background: none; font-size: 20px; cursor: pointer; padding: 2px 4px; }
.post .flag { color: var(--danger); font-weight: 700; margin-bottom: 6px; }
.post.announce { border: 2px solid var(--navy); }
.autolink { word-break: break-all; font-weight: 500; }
.post .actions { flex-wrap: wrap; gap: 4px 10px; }

/* Private messages */
.dm-note { background: #e3f4d8; color: #2d5e14; border-radius: 12px; padding: 8px 10px; }
.dm-row { width: 100%; border: 0; cursor: pointer; font: inherit; color: inherit; }
.dm-row.unread { border-left: 5px solid var(--danger); }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.dm-thread { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.dm-msg { max-width: 80%; }
.dm-msg .bubble { background: var(--mist); border-radius: 14px 14px 14px 4px; padding: 8px 12px; }
.dm-msg.me { align-self: flex-end; text-align: right; }
.dm-msg.me .bubble { background: var(--blue); color: #fff; border-radius: 14px 14px 4px 14px; text-align: left; }
.dm-msg.me .bubble a { color: #fff; }

/* Setup and settings */
.setup-head { padding: 10px 4px 4px; }
.setup-head h1 { color: var(--blue); margin: 2px 0 6px; font-size: 30px; line-height: 1.1; }
.cm-list, .nt-list { padding-left: 20px; margin: 0; }
.cm-item { margin-bottom: 10px; }
.cm-item input[type=text], .cm-item input[type=tel], .cm-item input[type=email] { margin-top: 4px; }
.nt-list > li { margin-bottom: 14px; }
.switch-row { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; margin: 4px 0; }
.switch-row input, .radio-list input { width: 20px; height: 20px; accent-color: var(--blue); margin: 0; flex: none; }
.radio-list { display: grid; gap: 8px; margin: 6px 0; }
.radio-list label { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
.howto { padding-left: 22px; line-height: 1.7; margin: 8px 0; }
.block.center { width: 100%; text-align: center; }

/* Admin additions */
table.side { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
table.side th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 8px 6px 0; width: 44%; vertical-align: top; border-bottom: 1px solid var(--line); }
table.side td { padding: 6px 0; border-bottom: 1px solid var(--line); word-break: break-word; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.two-col ol { padding-left: 18px; margin: 4px 0; }
.helper-card { border-left: 6px solid var(--teal); }

/* ---------- Round 3: Connect personal or business, CARES two sides, three board tabs ---------- */
.seg.three button { font-size: 12.5px; padding: 9px 2px; }
.seg.connect-type button { display: flex; flex-direction: column; align-items: center; font-size: 16px; padding: 10px 6px; }
.seg.connect-type button small { font-weight: 400; font-size: 12px; opacity: .85; margin-top: 2px; }
.fw-btn .txt small b.side, .fw-letter b.side { color: var(--blue); font-weight: 700; }
.fw-btn .txt small + small { margin-top: 4px; }
.fw-btn .txt small.fw-note { color: var(--blue); font-style: italic; }
.fw-notes { margin: 6px 0 0; padding-left: 20px; color: var(--blue); }
.nudge-note { margin: 10px 0 0; font-size: 15px; line-height: 1.45; }
.fw-focus { color: #083B56; font-weight: 700; }
.seg.three button { line-height: 1.2; }

/* ===== Round 3: color ratings, quarter strip, My Progress, admin quarter grid ===== */
:root { --rg: #71BF44; --ry: #FAD415; --rr: #F4A08F; }
.rdots { display: inline-flex; gap: 4px; }
.rdot { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%;
  font-size: 11px; font-weight: 700; color: #083B56; border: 2px solid transparent; flex: none; line-height: 1; }
.rdot.big { width: 28px; height: 28px; font-size: 15px; }
.rdot-g { background: var(--rg); } .rdot-y { background: var(--ry); } .rdot-r { background: var(--rr); }
.rdot-none { background: #fff; border: 2px dashed #9bb3bd; }
.qstrip { display: block; text-decoration: none; color: inherit; }
.qcells { display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px; margin: 10px 0 6px; }
.qcell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; border-radius: 8px; }
.qcell.now { outline: 2px solid #19C7C7; background: #EAF8FB; }
.qcell.future { opacity: .45; }
.qcell small { font-size: 10px; color: #4b6b78; }
.mini { display: inline-flex; flex-direction: column; gap: 2px; }
.mini i { display: block; width: 8px; height: 8px; border-radius: 50%; background: #fff; border: 1px dashed #9bb3bd; }
.mini i.m-g { background: var(--rg); border: 1px solid #4e9a2a; }
.mini i.m-y { background: var(--ry); border: 1px solid #c9a800; }
.mini i.m-r { background: var(--rr); border: 1px solid #d9735f; }
.rate-row { padding: 10px 0; border-top: 1px solid var(--line); }
.rate-row .row { gap: 10px; align-items: flex-start; }
.rate-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.rate-btns.three { grid-template-columns: 1fr 1fr 1fr; }
.rbtn { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 6px; font: inherit; font-size: 13px; font-weight: 700; color: #083B56; cursor: pointer; }
.rbtn.rb-g.on { background: var(--rg); border-color: #4e9a2a; }
.rbtn.rb-y.on { background: var(--ry); border-color: #c9a800; }
.rbtn.rb-r.on { background: var(--rr); border-color: #d9735f; }
.prow { display: flex; align-items: center; gap: 10px; }
.prow.now { border: 2px solid #19C7C7; }
.ptot { display: flex; flex-direction: column; align-items: center; min-width: 40px; }
.ptot small { font-size: 10px; color: #4b6b78; }
.ptable { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td { padding: 6px; text-align: center; border-top: 1px solid var(--line); }
.ptable tbody th { text-align: left; }
.qp-wrap { overflow-x: auto; background: #fff; border-radius: 14px; border: 2px solid var(--line); margin-bottom: 12px; }
.qp { border-collapse: collapse; font-size: 12px; min-width: 100%; }
.qp th, .qp td { padding: 6px 5px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
.qp .sticky { position: sticky; left: 0; background: #fff; text-align: left; z-index: 1; max-width: 110px; white-space: normal; }
.qp th.now, .qp td.now { background: #EAF8FB; }
.qp .mk { font-weight: 700; font-size: 14px; }
.qp td.mk-done .mk { color: #3d8a1d; } .qp td.mk-late .mk { color: #9a7a00; } .qp td.mk-missed .mk { color: var(--danger); }
.qp tr.slip2 td, .qp tr.slip2 .sticky { background: #fde4e2; }
.qp tr.slip1 td, .qp tr.slip1 .sticky { background: #fff7d1; }
.qp .mini { flex-direction: row; margin-top: 2px; }
