/* Dynamic Whiteboard & Member Hub v3.1 — Cohesive Design System */

.hub3 {
  --wb-bg: #F4F5F7;
  --wb-surface: #FFFFFF;
  --wb-board-bg: #FCFDFB;
  --wb-accent: #6E4A8C;
  --wb-accent-hover: #5A3A75;
  --wb-accent-soft: #F4EFF8;
  --wb-accent-border: #DDD0EA;
  --wb-ink-1: #1E1C2E;
  --wb-ink-2: #52506A;
  --wb-ink-3: #6D6B85;
  --wb-border: #E2E4EC;
  --wb-border-strong: #C9CDD9;
  --wb-sticky: #FEF7D6;
  --wb-sticky-border: #EFE2A6;
  --wb-marker-font: var(--ubd-font-body);

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-full: 999px;
  --sh-sm: 0 1px 2px rgba(27, 22, 38, .05);
  --sh-md: 0 4px 14px rgba(27, 22, 38, .06), 0 1px 3px rgba(27, 22, 38, .04);
  --sh-board: 0 14px 34px rgba(27, 22, 38, .09), 0 2px 6px rgba(27, 22, 38, .05);
  --ease: 180ms cubic-bezier(.2, .8, .2, 1);

  background: var(--wb-bg);
  color: var(--wb-ink-1);
}

.hub3 :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--wb-accent);
  outline-offset: 2px;
}

/* ---------- Top Shell & Navigation ---------- */
.hub3 .hub-top {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wb-border);
  min-height: 56px;
  padding: 8px 16px;
  gap: 12px;
}
.hub3 .hub-top .logo { margin-right: 8px; }
.hub3 .hub-top .logo img { height: 32px; width: auto; }
.hub3 .hub-top .crisis-chip { margin-left: auto; }
.h3-desknav { display: none; }
@media (min-width: 920px) {
  .h3-desknav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
    padding: 3px;
    background: var(--wb-bg);
    border: 1px solid var(--wb-border);
    border-radius: var(--r-full);
  }
  .h3-desknav a {
    padding: 6px 14px;
    border-radius: var(--r-full);
    font: 700 13.5px/1.2 var(--ubd-font-body);
    color: var(--wb-ink-2);
    text-decoration: none;
    transition: background var(--ease), color var(--ease);
  }
  .h3-desknav a:hover { color: var(--wb-ink-1); }
  .h3-desknav a[aria-current="page"] {
    background: var(--wb-surface);
    color: var(--wb-accent);
    font-weight: 800;
    box-shadow: var(--sh-sm);
  }
}

.hub3 .hub-main { padding: 20px 0 40px; }
.hub3 .hub-main .wrap { max-width: 1320px; }
.hub3 .hub-app { max-width: none; }
.hub3 .site-footer.hub3-footer { padding: 20px 0 calc(96px + env(safe-area-inset-bottom)); }
body.has-h3tabs .site-footer.hub3-footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
@media (min-width: 920px) { .hub3 .site-footer.hub3-footer, body.has-h3tabs .site-footer.hub3-footer { padding-bottom: 28px; } }

/* Sign-in gate */
.hub3 .hub-gate {
  max-width: 440px;
  margin: 24px auto;
  background: var(--wb-surface);
  border: 1px solid var(--wb-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: 28px 24px;
}
.hub3 .hub-gate h1 { font-size: 1.5rem; font-weight: 800; margin: 6px 0 8px; letter-spacing: -.015em; }
.hub3 .hub-gate .lede { color: var(--wb-ink-2); font-size: .95rem; margin: 0; }
.hub3 .hub-gate .btn { background: var(--wb-accent); border-radius: var(--r-full); }
.hub3 .hub-gate .btn:hover { background: var(--wb-accent-hover); }

/* ---------- Typography & Shared Cards ---------- */
.h3-h1 {
  font: 800 clamp(1.375rem, 2.2vw, 1.5625rem)/1.2 var(--ubd-font-body);
  letter-spacing: -.018em;
  color: var(--wb-ink-1);
  margin: 0 0 12px;
}
.h3-h2 {
  font: 800 1.0625rem/1.25 var(--ubd-font-body);
  letter-spacing: -.01em;
  color: var(--wb-ink-1);
  margin: 20px 0 8px;
}
.h3-h3 {
  font: 800 .75rem/1.2 var(--ubd-font-body);
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--wb-ink-2);
  margin: 16px 0 8px;
}
.h3-h3 small { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--wb-ink-3); }
.h3-sub { margin: 0 0 12px; font-size: .9375rem; color: var(--wb-ink-2); line-height: 1.48; }

.h3-card {
  background: var(--wb-surface);
  border: 1px solid var(--wb-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 16px;
  margin-bottom: 12px;
}
.h3-btn2 {
  padding: 8px 16px !important;
  font-size: .875rem !important;
  min-height: 36px;
  border-radius: var(--r-full) !important;
  font-weight: 700 !important;
}
.h3-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.h3-row input[type="time"] {
  font: 700 .9rem/1 var(--ubd-font-body);
  padding: 8px 10px;
  border: 1px solid var(--wb-border-strong);
  border-radius: var(--r-md);
  color: var(--wb-ink-1);
  background: var(--wb-surface);
}
.h3-linkbtn {
  background: none; border: 0; padding: 6px 4px;
  font: 700 .875rem/1.2 var(--ubd-font-body);
  color: var(--wb-accent); cursor: pointer;
}
.h3-danger { color: #B91C1C; }
.h3-file { cursor: pointer; display: inline-flex; align-items: center; }

.h3-sample {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px;
  background: var(--wb-accent-soft); border: 1px solid var(--wb-accent-border);
  border-radius: var(--r-md); padding: 8px 12px; margin: 0 0 12px;
  font: 600 .84rem/1.35 var(--ubd-font-body); color: var(--wb-ink-1);
}
.h3-sample button {
  background: var(--wb-surface); border: 1px solid var(--wb-accent-border);
  border-radius: var(--r-full); padding: 5px 12px;
  font: 800 .8rem/1 var(--ubd-font-body); color: var(--wb-accent); cursor: pointer;
}
.h3-trialbar {
  margin: 0 0 12px; padding: 8px 12px;
  background: var(--wb-surface); border: 1px solid var(--wb-border);
  border-radius: var(--r-md); font-size: .84rem; color: var(--wb-ink-2);
}
.h3-trialbar a { color: var(--wb-accent); font-weight: 800; }

/* ---------- PHYSICAL WHITEBOARD FRAME & PORCELAIN SURFACE ---------- */
.h3-wb-frame {
  background: linear-gradient(155deg, #E2E5EB 0%, #C6CBD5 52%, #DADEE6 100%);
  border: 1px solid #B6BCC8;
  border-radius: 16px;
  padding: 7px 7px 0;
  box-shadow: var(--sh-board), inset 0 1px 0 rgba(255, 255, 255, .85);
}

.h3-wb-surface {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 6%, rgba(255, 255, 255, .98) 0%, rgba(251, 252, 249, .92) 55%, rgba(243, 245, 242, .94) 100%);
  border: 1px solid #D0D4DD;
  border-radius: 10px 10px 6px 6px;
  padding: 14px 14px 12px;
  box-shadow: inset 0 1px 3px rgba(27, 22, 38, .06);
  overflow: hidden;
}
.h3-wb-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(122deg, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, .42) 44%, rgba(255, 255, 255, 0) 56%);
}
.h3-wb-surface.is-erasing { cursor: crosshair; }
.h3-wb-surface.is-erasing .h3-item:hover {
  background: #FEF2F2 !important;
  border-color: #FCA5A5 !important;
  opacity: .72;
}

.h3-wb-head {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 12px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1.5px solid rgba(30, 28, 46, .12);
}
.h3-wb-title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.h3-wb-mark {
  font-family: var(--wb-marker-font);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--wb-accent);
  letter-spacing: .01em;
}
.h3-btitle {
  font: 800 1rem/1.2 var(--ubd-font-body);
  color: var(--wb-ink-1);
}

.h3-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.h3-seg {
  display: inline-flex;
  background: #ECEEF3;
  padding: 2px;
  border-radius: var(--r-full);
  border: 1px solid var(--wb-border);
}
.h3-seg button {
  background: none; border: 0;
  padding: 6px 12px;
  border-radius: var(--r-full);
  font: 700 .8rem/1 var(--ubd-font-body);
  color: var(--wb-ink-2);
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.h3-seg button.is-on {
  background: var(--wb-surface);
  color: var(--wb-accent);
  font-weight: 800;
  box-shadow: var(--sh-sm);
}

.h3-nav { display: inline-flex; align-items: center; gap: 4px; }
.h3-arrow, .h3-todaybtn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--wb-surface);
  border: 1px solid var(--wb-border);
  border-radius: var(--r-full);
  height: 30px; min-width: 30px; padding: 0 10px;
  font: 700 .8rem/1 var(--ubd-font-body);
  color: var(--wb-ink-1);
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
}
.h3-arrow { padding: 0; width: 30px; }
.h3-arrow svg { width: 14px; height: 14px; }
.h3-arrow:hover, .h3-todaybtn:hover { border-color: var(--wb-border-strong); background: #F8F9FB; }

.h3-breathpill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--wb-accent-soft);
  border: 1px solid var(--wb-accent-border);
  color: var(--wb-accent);
  text-decoration: none;
  font: 800 .8rem/1 var(--ubd-font-body);
  transition: background var(--ease);
}
.h3-breathpill:hover { background: #EAE0F3; }
.h3-breathpill svg { width: 14px; height: 14px; }

/* Quick-add form inside whiteboard */
.h3-addbox {
  position: relative;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--wb-border);
  border-bottom: 2px solid var(--ink, var(--wb-accent));
  border-radius: var(--r-md);
  padding: 8px 10px;
  margin-bottom: 10px;
}
.h3-addrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.h3-inktip {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink, var(--wb-accent));
  flex: 0 0 auto;
}
.h3-addrow input {
  flex: 1 1 160px; min-width: 0;
  font: 600 .9375rem/1.3 var(--ubd-font-body);
  color: var(--wb-ink-1);
  border: 0; background: transparent;
  padding: 6px 4px;
}
.h3-addrow input::placeholder { color: var(--wb-ink-3); font-weight: 500; }
.h3-addrow input:focus { outline: none; }
.h3-addrow select {
  font: 700 .8rem/1 var(--ubd-font-body);
  padding: 6px 8px;
  border: 1px solid var(--wb-border);
  border-radius: var(--r-sm);
  background: var(--wb-surface);
  color: var(--wb-ink-1);
}
.h3-stickybtn {
  display: inline-flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 10px;
  border-radius: var(--r-full);
  border: 1px solid var(--wb-border);
  background: var(--wb-surface);
  font: 700 .78rem/1 var(--ubd-font-body);
  color: var(--wb-ink-2);
  cursor: pointer;
}
.h3-stickybtn svg { width: 13px; height: 13px; }
.h3-stickybtn.is-on {
  background: var(--wb-sticky);
  border-color: #DFC96E;
  color: #5E4804;
}

.h3-addopts {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px;
  margin-top: 6px; padding-top: 6px;
  border-top: 1px dashed rgba(30, 28, 46, .1);
}
.h3-inklbl {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 .76rem/1 var(--ubd-font-body);
  color: var(--wb-ink-2);
}
.h3-inklbl i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.h3-inklbl b { color: var(--wb-ink-1); }

.h3-reppills { display: flex; flex-wrap: wrap; gap: 4px; }
.h3-reppills button {
  border: 1px solid var(--wb-border);
  background: var(--wb-surface);
  border-radius: var(--r-full);
  padding: 4px 10px;
  font: 700 .74rem/1 var(--ubd-font-body);
  color: var(--wb-ink-2);
  cursor: pointer;
}
.h3-reppills button.is-on {
  background: var(--wb-accent);
  border-color: var(--wb-accent);
  color: #fff;
}

/* Carry-over & Eraser bars */
.h3-carry {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--wb-sticky); border: 1px solid var(--wb-sticky-border);
  border-radius: var(--r-md); padding: 8px 12px; margin-bottom: 10px;
  font-size: .85rem; color: #4A3B08;
}
.h3-erasebar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  background: #FEF2F2; border: 1px solid #FECACA;
  border-radius: var(--r-md); padding: 8px 12px; margin-top: 10px;
  font-size: .82rem; color: #7F1D1D;
}
.h3-eraseacts { display: flex; gap: 6px; }
.h3-eraseacts button {
  background: #fff; border: 1px solid #FCA5A5; border-radius: var(--r-full);
  padding: 4px 10px; font: 700 .76rem/1 var(--ubd-font-body); color: #991B1B; cursor: pointer;
}
.h3-eraseacts button:last-child { background: #1E1C2E; border-color: #1E1C2E; color: #fff; }

/* ---------- DAY COLUMNS & HANDWRITTEN BOARD ITEMS ---------- */
.h3-day {
  position: relative;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(30, 28, 46, .11);
  border-radius: var(--r-md);
  padding: 10px;
  margin-bottom: 8px;
  transition: border-color var(--ease), background var(--ease);
}
.h3-day.is-today {
  background: rgba(255, 255, 255, .94);
  border-color: var(--wb-accent);
  box-shadow: inset 0 3px 0 var(--wb-accent);
}
.h3-day.is-over { border: 2px dashed var(--wb-accent); background: #FAF7FC; }

.h3-dhead {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  padding-bottom: 6px; margin-bottom: 6px;
  border-bottom: 1px solid rgba(30, 28, 46, .09);
}
.h3-dtitle { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.h3-dtitle b { font: 800 .88rem/1.1 var(--ubd-font-body); color: var(--wb-ink-1); }
.h3-day.is-today .h3-dtitle b { color: var(--wb-accent); }
.h3-dtitle span { font: 600 .76rem/1 var(--ubd-font-body); color: var(--wb-ink-2); }
.h3-dtitle em {
  font: 800 .72rem/1 var(--ubd-font-body); font-style: normal;
  color: var(--wb-accent); background: var(--wb-accent-soft);
  padding: 2px 6px; border-radius: var(--r-full);
}
.h3-dacts { display: flex; align-items: center; gap: 4px; }
.h3-qadd {
  width: 24px; height: 24px; border-radius: var(--r-full);
  border: 1px solid var(--wb-border); background: var(--wb-surface);
  color: var(--wb-accent); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.h3-qadd svg { width: 12px; height: 12px; }
.h3-qadd:hover { background: var(--wb-accent-soft); border-color: var(--wb-accent-border); }

.h3-mdot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px dashed var(--wb-border-strong);
  background: var(--mc, transparent);
  font: 800 .66rem/1 var(--ubd-font-body);
  color: var(--wb-ink-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.h3-mdot.has-m { border-style: solid; border-color: rgba(30, 28, 46, .2); color: #1E1C2E; }
.h3-mpop {
  position: absolute; right: 8px; top: 36px; z-index: 30;
  display: flex; gap: 3px;
  background: var(--wb-surface); border: 1px solid var(--wb-border-strong);
  border-radius: var(--r-full); padding: 4px; box-shadow: var(--sh-md);
}
.h3-mpop button {
  width: 26px; height: 26px; border-radius: 50%; border: 0;
  font: 800 .7rem/1 var(--ubd-font-body); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.h3-mpop button svg { width: 12px; height: 12px; }

.h3-list { min-height: 28px; display: flex; flex-direction: column; gap: 5px; }
.h3-empty {
  margin: 4px 0; padding: 8px 4px;
  text-align: center;
  border: 1px dashed rgba(30, 28, 46, .12);
  border-radius: var(--r-sm);
  font: 600 .75rem/1.2 var(--ubd-font-body);
  color: var(--wb-ink-3);
}

/* Task items on whiteboard */
.h3-item {
  position: relative;
  display: flex; align-items: center; gap: 7px;
  background: var(--wb-surface);
  border: 1px solid rgba(30, 28, 46, .1);
  border-left: 3px solid var(--cc, var(--wb-accent));
  border-radius: 7px;
  padding: 6px 8px;
  box-shadow: 0 1px 2px rgba(27, 22, 38, .03);
  transition: transform var(--ease), box-shadow var(--ease), opacity var(--ease);
}
.h3-item:hover { box-shadow: var(--sh-sm); }
.h3-item.is-sticky {
  background: var(--wb-sticky);
  border-color: var(--wb-sticky-border);
  border-left: 3px solid var(--cc, var(--wb-accent));
  box-shadow: 0 2px 5px rgba(130, 105, 20, .1);
}
.h3-item.is-done { opacity: .66; }
.h3-item.is-done .h3-ititle {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.h3-item.is-dragging { opacity: .28; }

@keyframes h3squeak {
  0% { transform: scale(1); }
  35% { transform: translateY(-1px) scale(1.012); }
  100% { transform: none; }
}
@keyframes h3draw {
  from { stroke-dashoffset: 22; }
  to { stroke-dashoffset: 0; }
}
.h3-item.is-just { animation: h3squeak 220ms var(--ease); }
.h3-item.is-just .h3-chk svg path {
  stroke-dasharray: 22;
  animation: h3draw 220ms var(--ease) forwards;
}

.h3-grip {
  width: 14px; height: 20px;
  color: var(--wb-ink-3);
  cursor: grab; touch-action: none; user-select: none;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.h3-grip svg { width: 12px; height: 12px; }
.h3-chk {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  border: 1.75px solid var(--cc, var(--wb-accent));
  background: var(--wb-surface); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: background var(--ease);
}
.h3-chk svg { width: 13px; height: 13px; }
.h3-chk.is-on { background: var(--cc, var(--wb-accent)); }

.h3-ibody { flex: 1 1 auto; min-width: 0; }
.h3-ititle {
  display: block;
  font-family: var(--wb-marker-font);
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.2;
  color: var(--cc, var(--wb-ink-1));
  overflow-wrap: break-word; word-break: normal;
}
.h3-meta {
  display: flex; align-items: center; gap: 5px;
  font: 700 .7rem/1.2 var(--ubd-font-body);
  color: var(--wb-ink-2);
  margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.h3-cdot { width: 6px; height: 6px; border-radius: 50%; background: var(--cc, var(--wb-accent)); display: inline-block; }
.h3-rep { display: inline-flex; align-items: center; gap: 3px; color: var(--wb-ink-3); }
.h3-rep svg { width: 10px; height: 10px; }

.h3-iacts { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.h3-pin, .h3-del {
  width: 24px; height: 24px; border-radius: var(--r-sm);
  background: none; border: 0;
  color: var(--wb-ink-3); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  transition: color var(--ease), background var(--ease), opacity var(--ease);
}
.h3-pin svg, .h3-del svg { width: 13px; height: 13px; }
.h3-pin:hover, .h3-del:hover { background: rgba(30, 28, 46, .06); color: var(--wb-ink-1); }
.h3-pin.is-on { color: #A16207; }
.h3-del:hover { color: #B91C1C; }

.h3-rdel {
  position: absolute; right: 6px; top: calc(100% + 2px); z-index: 25;
  display: flex; align-items: center; gap: 4px;
  background: var(--wb-surface); border: 1px solid var(--wb-border-strong);
  border-radius: var(--r-md); padding: 4px 8px; box-shadow: var(--sh-md);
  font-size: .74rem; font-weight: 700;
}
.h3-rdel button {
  border: 1px solid var(--wb-border); background: #FAF7FC;
  border-radius: var(--r-full); padding: 3px 8px;
  font: 700 .72rem/1 var(--ubd-font-body); color: var(--wb-accent); cursor: pointer;
}

.h3-ghost {
  position: fixed; z-index: 999; pointer-events: none;
  box-shadow: 0 12px 28px rgba(27, 22, 38, .22);
  opacity: .96; background: var(--wb-surface);
}
.h3-dropmark { height: 3px; border-radius: 3px; background: var(--wb-accent); margin: 2px 0; }

/* Month grid */
.h3-dowrow {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px;
  margin-bottom: 4px; text-align: center;
  font: 800 .7rem/1 var(--ubd-font-body); color: var(--wb-ink-2);
  text-transform: uppercase; letter-spacing: .06em;
}
.h3-monthgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.h3-mcell { margin: 0; padding: 4px; min-height: 76px; min-width: 0; overflow: hidden; }
.h3-mcell.is-pad { background: transparent; border-color: transparent; box-shadow: none; }
.h3-mcell .h3-dhead { margin-bottom: 4px; padding-bottom: 3px; }
.h3-mnum {
  background: none; border: 0; padding: 2px 5px; border-radius: var(--r-sm);
  font: 800 .78rem/1 var(--ubd-font-body); color: var(--wb-ink-1); cursor: pointer;
}
.h3-day.is-today .h3-mnum { background: var(--wb-accent); color: #fff; }
.h3-mcell .h3-mdot, .h3-mcell .h3-qadd { width: 17px; height: 17px; font-size: .58rem; }
.h3-mcell .h3-qadd svg { width: 10px; height: 10px; }
.h3-item.is-compact { padding: 3px 4px; gap: 4px; border-radius: 5px; min-width: 0; }
.h3-item.is-compact .h3-grip { display: none; }
.h3-item.is-compact .h3-chk { width: 14px; height: 14px; }
.h3-item.is-compact .h3-chk svg { width: 9px; height: 9px; }
.h3-item.is-compact .h3-ititle {
  font-size: .74rem; line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- ARCHITECTURAL ALUMINUM MARKER TRAY ---------- */
.h3-tray {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  padding: 8px 10px 7px;
  margin-top: 4px;
  background: linear-gradient(180deg, #E2E5EC 0%, #CFD4DF 100%);
  border-top: 1px solid #B7BDC9;
  border-radius: 0 0 10px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.h3-markers { display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; }
.h3-marker {
  display: inline-flex; align-items: center;
  background: var(--wb-surface);
  border: 1px solid #C2C7D3;
  border-radius: 5px 7px 7px 5px;
  padding: 0;
  height: 28px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(27, 22, 38, .12), inset 0 -2px 0 rgba(0, 0, 0, .05);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.h3-marker:hover { transform: translateY(-2px); }
.h3-marker.is-picked {
  transform: translateY(-5px);
  border-color: var(--mc);
  box-shadow: 0 6px 12px rgba(27, 22, 38, .16), 0 0 0 2px var(--mc);
}
.h3-mcap {
  width: 14px; height: 100%;
  background: var(--mc);
  border-radius: 4px 0 0 4px;
  position: relative;
}
.h3-mcap::after {
  content: "";
  position: absolute; right: -2px; top: 3px; bottom: 3px; width: 2px;
  background: rgba(0, 0, 0, .18);
}
.h3-mbody {
  padding: 0 9px;
  font: 800 .73rem/1 var(--ubd-font-body);
  color: var(--ink, var(--wb-ink-1));
  white-space: nowrap;
}
.h3-cmarker {
  display: inline-flex; align-items: center; gap: 4px;
  height: 28px; padding: 0 10px;
  border-radius: var(--r-full);
  border: 1px solid var(--wb-border-strong);
  background: rgba(255, 255, 255, .86);
  font: 700 .73rem/1 var(--ubd-font-body);
  color: var(--wb-ink-1);
  cursor: pointer;
}
.h3-cmarker.is-picked { border-color: var(--wb-accent); box-shadow: 0 0 0 2px var(--wb-accent); }
.h3-cplus svg { width: 11px; height: 11px; }

.h3-eraser {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; flex: 0 0 auto;
  background: linear-gradient(180deg, #35324A 0%, #24213A 100%);
  color: #fff;
  border: 1px solid #1E1C2E;
  border-bottom: 4px solid #D6D1C7;
  border-radius: 6px;
  font: 700 .74rem/1 var(--ubd-font-body);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(27, 22, 38, .18);
  transition: transform var(--ease), box-shadow var(--ease);
}
.h3-eraser svg { width: 15px; height: 12px; }
.h3-eraser:hover { transform: translateY(-2px); }
.h3-eraser.is-picked {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(185, 28, 28, .25), 0 0 0 2px #DC2626;
}

.h3-hint {
  margin: 8px 0 0;
  font-size: .78rem;
  color: var(--wb-ink-2);
  text-align: center;
}

/* ---------- FOLLOW-THROUGH TRACKER ---------- */
.h3-trkhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.h3-streakpill {
  background: var(--wb-accent-soft);
  border: 1px solid var(--wb-accent-border);
  border-radius: var(--r-full);
  padding: 5px 12px;
  font: 700 .78rem/1 var(--ubd-font-body);
  color: var(--wb-accent);
}
.h3-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.h3-kpi {
  background: var(--wb-bg);
  border: 1px solid var(--wb-border);
  border-radius: var(--r-md);
  padding: 10px 8px;
  text-align: center;
}
.h3-kpi span { display: block; font: 700 .72rem/1.1 var(--ubd-font-body); color: var(--wb-ink-2); }
.h3-kpi b { display: block; font: 800 1.25rem/1.15 var(--ubd-font-body); color: var(--wb-accent); margin: 4px 0 2px; }
.h3-kpi small { font: 600 .7rem/1 var(--ubd-font-body); color: var(--wb-ink-2); }
.h3-kpi.is-locked b { font-size: .88rem; color: var(--wb-ink-2); }
.h3-bar { display: block; height: 4px; background: #E3DFEC; border-radius: 4px; margin-top: 6px; overflow: hidden; }
.h3-bar b { display: block; height: 100%; background: var(--wb-accent); margin: 0; }

.h3-trksub { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 4px; font: 700 .82rem/1 var(--ubd-font-body); color: var(--wb-ink-1); }
.h3-cseg { display: inline-flex; background: var(--wb-bg); border: 1px solid var(--wb-border); border-radius: var(--r-full); padding: 2px; }
.h3-cseg button { background: none; border: 0; padding: 4px 10px; border-radius: var(--r-full); font: 700 .72rem/1 var(--ubd-font-body); color: var(--wb-ink-2); cursor: pointer; }
.h3-cseg button.is-on { background: var(--wb-surface); color: var(--wb-accent); box-shadow: var(--sh-sm); }
.h3-cseg button.is-lock { opacity: .65; cursor: not-allowed; }
.h3-svg { width: 100%; height: auto; display: block; }
.h3-ax { font: 700 10px/1 var(--ubd-font-body); fill: var(--wb-ink-2); }
.h3-legend { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; font-size: .74rem; color: var(--wb-ink-2); }
.h3-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }

.h3-crow { display: grid; grid-template-columns: minmax(0, 1fr) 78px auto; gap: 8px; align-items: center; margin: 6px 0; font-size: .82rem; }
.h3-cname { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--wb-ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h3-cname i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.h3-cbar { display: block; height: 7px; background: #ECEAF3; border-radius: 99px; overflow: hidden; }
.h3-cbar i { display: block; height: 100%; border-radius: 99px; }
.h3-crow em { font-style: normal; font-weight: 800; color: var(--wb-ink-1); text-align: right; white-space: nowrap; }
.h3-crow em small { font-weight: 600; color: var(--wb-ink-2); }
.h3-inslist { margin: 4px 0 0; padding-left: 16px; }
.h3-inslist li { margin: 6px 0; font-size: .85rem; line-height: 1.45; color: var(--wb-ink-1); }
.h3-locknote {
  margin: 12px 0 0; padding: 10px 12px;
  background: var(--wb-accent-soft); border: 1px solid var(--wb-accent-border);
  border-radius: var(--r-md); font-size: .8rem; color: var(--wb-ink-2);
}
.h3-locknote a { color: var(--wb-accent); font-weight: 800; }

/* ---------- BREATHE ---------- */
.h3-bwrap { max-width: 600px; margin: 0 auto; }
.h3-bhead { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.h3-bsub { margin: 4px 0 0; font-size: .9rem; line-height: 1.4; color: var(--wb-ink-2); }
.h3-bstat { font: 800 .85rem/1.2 var(--ubd-font-body); color: var(--wb-accent); background: var(--wb-accent-soft); border: 1px solid var(--wb-accent-border); padding: 6px 12px; border-radius: var(--r-full); white-space: nowrap; }
.h3-bcard { padding: 22px 20px; }
.h3-bauto {
  text-align: center; margin: 8px 0 0; padding: 8px 12px;
  border-radius: var(--r-md); font-size: .86rem; color: var(--wb-ink-2);
}
.h3-bauto.is-done { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; font-weight: 700; }
.h3-bdots { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 12px; }
.h3-bdots i { width: 9px; height: 9px; border-radius: 50%; background: #E3DFEC; }
.h3-bdots i.is-on { background: var(--wb-accent); }
.h3-bdots span { margin-left: 6px; font-size: .75rem; font-weight: 700; color: var(--wb-ink-2); }

/* ---------- MORE ---------- */
.h3-learn { display: grid; gap: 8px; margin-bottom: 12px; }
.h3-tool {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px;
  background: var(--wb-surface); border: 1px solid var(--wb-border);
  border-radius: var(--r-md); padding: 14px 16px;
  text-decoration: none; color: inherit; box-shadow: var(--sh-sm);
  transition: border-color var(--ease), box-shadow var(--ease);
}
a.h3-tool:hover { border-color: var(--wb-accent-border); box-shadow: var(--sh-md); }
.h3-tool b { font: 800 .98rem/1.2 var(--ubd-font-body); color: var(--wb-ink-1); }
.h3-tool span { flex: 1 1 180px; font-size: .86rem; color: var(--wb-ink-2); }
.h3-lock {
  font: 800 .68rem/1 var(--ubd-font-body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--wb-accent); background: var(--wb-accent-soft);
  border: 1px solid var(--wb-accent-border);
  padding: 4px 10px; border-radius: var(--r-full); font-style: normal;
}
.h3-prog { flex: 0 0 96px; height: 6px; background: #EAE6F2; border-radius: 99px; overflow: hidden; }
.h3-prog > span { display: block; height: 100%; background: var(--wb-accent); width: 0; }

/* Ratings */
.h3-rate { margin-top: 20px; border-top: 1px solid var(--wb-border); padding-top: 14px; }
.h3-rate__q { font: 700 .88rem/1.3 var(--ubd-font-body); color: var(--wb-ink-2); margin: 0 0 8px; }
.hub3 .hub-ratings { gap: 8px; }
.hub3 .hub-ratings a {
  background: var(--wb-surface); border: 1px solid var(--wb-border-strong);
  color: var(--wb-ink-1); font: 700 .82rem/1 var(--ubd-font-body);
  padding: 8px 14px; border-radius: var(--r-full);
}
.hub3 .hub-ratings a:hover { border-color: var(--wb-accent); color: var(--wb-accent); background: var(--wb-accent-soft); }

/* Mobile bottom dock */
.h3-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--wb-border);
  padding: 4px 0 max(4px, env(safe-area-inset-bottom));
}
.h3-tabs a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 4px; text-decoration: none;
  color: var(--wb-ink-2); font: 700 .72rem/1 var(--ubd-font-body);
}
.h3-tabs svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.h3-tabs a[aria-current="page"] { color: var(--wb-accent); font-weight: 800; }

/* ---------- DESKTOP TWO-COLUMN LAYOUT ---------- */
.h3-sidecol { display: none; }
@media (min-width: 920px) {
  .h3-tabs { display: none; }
  .h3-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) 348px;
    gap: 20px;
    align-items: start;
  }
  .h3-sidecol { display: block; position: sticky; top: 76px; }
  .h3-weekgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  .h3-weekgrid .h3-day { margin: 0; padding: 8px; min-height: 172px; }
  .h3-weekgrid .h3-item { padding: 5px 6px; gap: 5px; }
  .h3-weekgrid .h3-ititle { font-size: .84rem; }
  .h3-weekgrid .h3-chk { width: 19px; height: 19px; }
  .h3-weekgrid .h3-chk svg { width: 11px; height: 11px; }
  .h3-weekgrid .h3-grip { width: 14px; }
  .h3-weekgrid .h3-dtitle { white-space: nowrap; }
  .h3-weekgrid .h3-dtitle b { font-size: .82rem; }
  .h3-weekgrid .h3-dtitle span { font-size: .72rem; }
  .h3-weekgrid .h3-iacts {
    display: none;
    position: absolute; right: 4px; top: 4px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--wb-border);
    border-radius: 6px;
    padding: 1px;
    box-shadow: var(--sh-sm);
  }
  .h3-weekgrid .h3-item.is-sticky .h3-iacts { background: rgba(254, 247, 214, .98); }
  .h3-weekgrid .h3-item:hover .h3-iacts,
  .h3-weekgrid .h3-item:focus-within .h3-iacts { display: flex; }
  .h3-moregrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .h3-libgrid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .h3-marker, .h3-eraser, .h3-item, .h3-chk, .h3-item.is-just, .h3-item.is-just .h3-chk svg path {
    transition: none !important;
    animation: none !important;
  }
}

/* Week summary 8th tile (desktop 4x2 balance) */
.h3-wkcard {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--wb-accent-soft);
  border-color: var(--wb-accent-border);
}
.h3-wkstat { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 6px; }
.h3-wkstat strong { font: 800 1.65rem/1 var(--ubd-font-body); color: var(--wb-accent); }
.h3-wkstat span { font: 700 .76rem/1.2 var(--ubd-font-body); color: var(--wb-ink-2); }
.h3-wkbar { height: 6px; background: #E3DBEE; border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.h3-wkbar i { display: block; height: 100%; background: var(--wb-accent); border-radius: 99px; }
.h3-wksub { font: 600 .76rem/1.4 var(--ubd-font-body); color: var(--wb-ink-2); margin: 0 0 10px; }
.h3-wkbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--wb-surface); border: 1px solid var(--wb-accent-border);
  border-radius: var(--r-full); padding: 7px 12px;
  font: 800 .76rem/1 var(--ubd-font-body); color: var(--wb-accent); text-decoration: none;
}
.h3-wkbtn svg { width: 13px; height: 13px; }
.h3-wkbtn:hover { background: #EAE0F3; }
@media (max-width: 919px) { .h3-wkcard { display: none; } }

@media (max-width: 639px) {
  .h3-mcell { padding: 3px; min-height: 62px; }
  .h3-mcell .h3-dhead { margin-bottom: 3px; padding-bottom: 2px; }
  .h3-mcell .h3-mnum { padding: 1px 4px; font-size: .72rem; }
  .h3-mcell .h3-qadd { display: none; }
  .h3-mcell .h3-mdot { width: 13px; height: 13px; font-size: .5rem; }
  .h3-item.is-compact { padding: 2px 3px; gap: 3px; border-left-width: 2px; }
  .h3-item.is-compact .h3-chk { width: 9px; height: 9px; border-width: 1.5px; }
  .h3-item.is-compact .h3-chk svg { display: none; }
  .h3-item.is-compact .h3-ititle { font-family: var(--ubd-font-body); font-size: .62rem; font-weight: 700; line-height: 1.1; }
}

@media (min-width: 1120px) {
  .h3-weekgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- v3.2 FIRST-RUN SETUP, TOUR & WEEK-1 NUDGES ---------- */
.h3-hintbtn {
  background: none; border: 0; padding: 0;
  font: 700 .78rem/1 var(--ubd-font-body);
  color: var(--wb-accent); cursor: pointer; text-decoration: underline;
}

.h3-guide-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}

/* Gentle week-1 nudges */
.h3-nudge {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  background: var(--wb-surface);
  border: 1px solid var(--wb-border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: .85rem;
}
.h3-nudge--celebrate {
  background: var(--wb-accent-soft);
  border-color: var(--wb-accent-border);
}
.h3-nudge--evening {
  background: #FFFDF2;
  border-color: var(--wb-sticky-border);
}
.h3-nudge--recap {
  background: #F6F7FA;
  border-color: var(--wb-border-strong);
}
.h3-nudge-ico {
  width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto;
  background: var(--wb-surface); border: 1px solid var(--wb-accent-border);
  color: var(--wb-accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.h3-nudge-ico svg { width: 16px; height: 16px; }
.h3-nudge-txt { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.h3-nudge-txt b { font-weight: 800; color: var(--wb-ink-1); }
.h3-nudge-txt span { color: var(--wb-ink-2); font-size: .82rem; }
.h3-nudge-x {
  width: 26px; height: 26px; border-radius: var(--r-sm);
  border: 0; background: none; color: var(--wb-ink-2);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.h3-nudge-x:hover { background: rgba(30, 28, 46, .06); color: var(--wb-ink-1); }
.h3-nudge-x svg { width: 13px; height: 13px; }
.h3-nudge-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.h3-nudge-chips button, .h3-nudge-chips a {
  border: 1px solid var(--wb-accent-border);
  background: var(--wb-accent-soft);
  color: var(--wb-accent);
  border-radius: var(--r-full);
  padding: 5px 11px;
  font: 700 .78rem/1 var(--ubd-font-body);
  text-decoration: none; cursor: pointer;
}
.h3-nudge-chips button:hover, .h3-nudge-chips a:hover { background: #EAE0F3; }

/* Setup modal */
.h3-modal-backdrop {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(27, 22, 38, .48);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.h3-modal {
  width: 100%; max-width: 540px; max-height: calc(100vh - 28px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--wb-surface);
  border: 1px solid var(--wb-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-board);
}
.h3-modal-top { display: flex; align-items: center; gap: 12px; padding: 16px 22px 12px; border-bottom: 1px solid var(--wb-border); flex: 0 0 auto; }
.h3-modal-scroll { flex: 1 1 auto; overflow-y: auto; padding: 16px 22px; -webkit-overflow-scrolling: touch; }
.h3-modal-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 22px 16px; border-top: 1px solid var(--wb-border); background: #FAF9FC; flex: 0 0 auto; }
.h3-modal-foot .btn { border-radius: var(--r-full); }
.h3-mprog { flex: 1; height: 5px; background: #EAE6F2; border-radius: 99px; overflow: hidden; }
.h3-mprog i { display: block; height: 100%; background: var(--wb-accent); border-radius: 99px; transition: width var(--ease); }
.h3-modal-x {
  width: 32px; height: 32px; border-radius: var(--r-full);
  border: 1px solid var(--wb-border); background: var(--wb-surface);
  color: var(--wb-ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.h3-modal-x svg { width: 14px; height: 14px; }
.h3-modal h2 { font: 800 1.35rem/1.2 var(--ubd-font-body); margin: 4px 0 8px; color: var(--wb-ink-1); }
.h3-setup-note {
  background: var(--wb-bg); border: 1px solid var(--wb-border);
  border-radius: var(--r-md); padding: 12px 14px; margin: 12px 0 18px;
  font-size: .86rem; color: var(--wb-ink-2); line-height: 1.45;
}
.h3-modal-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 18px; }
.h3-modal-acts .btn { border-radius: var(--r-full); }
.h3-modal-alt { margin: 14px 0 0; font-size: .84rem; color: var(--wb-ink-2); text-align: center; }

.h3-anchor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 10px 0 12px; }
.h3-achip {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  background: var(--wb-surface); border: 1.5px solid var(--wb-border);
  border-radius: var(--r-md); padding: 4px 8px 4px 4px;
  transition: border-color var(--ease), background var(--ease);
}
.h3-achip.is-on { border-color: var(--cc, var(--wb-accent)); background: #FAF8FC; }
.h3-amain {
  flex: 1; display: flex; align-items: center; gap: 8px; text-align: left;
  background: none; border: 0; padding: 6px 4px; cursor: pointer; min-width: 0;
}
.h3-adot { width: 10px; height: 10px; border-radius: 50%; background: var(--cc, var(--wb-accent)); flex: 0 0 auto; }
.h3-atxt { display: flex; flex-direction: column; min-width: 0; }
.h3-atxt b { font: 700 .88rem/1.15 var(--ubd-font-body); color: var(--wb-ink-1); }
.h3-atxt small { font: 600 .72rem/1.1 var(--ubd-font-body); color: var(--wb-ink-2); }
.h3-arep {
  border: 1px solid var(--wb-border-strong); background: var(--wb-surface);
  border-radius: var(--r-full); padding: 4px 9px;
  font: 700 .72rem/1 var(--ubd-font-body); color: var(--wb-accent); cursor: pointer; flex: 0 0 auto;
}

.h3-acustom { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.h3-acustom input {
  flex: 1 1 170px; min-width: 0;
  font: 600 .88rem/1.2 var(--ubd-font-body);
  padding: 8px 10px; border: 1px solid var(--wb-border-strong); border-radius: var(--r-md);
}
.h3-acustom select {
  font: 700 .82rem/1 var(--ubd-font-body);
  padding: 8px; border: 1px solid var(--wb-border-strong); border-radius: var(--r-md); background: var(--wb-surface);
}
.h3-acount { margin: 8px 0 0; font: 700 .8rem/1 var(--ubd-font-body); color: var(--wb-accent); }

.h3-viewcards { display: grid; gap: 8px; margin: 12px 0 4px; }
.h3-vcard {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left;
  background: var(--wb-surface); border: 1.5px solid var(--wb-border);
  border-radius: var(--r-md); padding: 12px 14px; cursor: pointer;
}
.h3-vcard.is-on { border-color: var(--wb-accent); background: var(--wb-accent-soft); }
.h3-vcard b { font: 800 .98rem/1.2 var(--ubd-font-body); color: var(--wb-ink-1); }
.h3-vcard em {
  font-style: normal; font-size: .7rem; font-weight: 800; color: var(--wb-accent);
  background: var(--wb-surface); border: 1px solid var(--wb-accent-border);
  border-radius: var(--r-full); padding: 2px 8px; margin-left: 6px;
}
.h3-vcard span { font-size: .84rem; color: var(--wb-ink-2); }

.h3-srem-box {
  background: var(--wb-bg); border: 1px solid var(--wb-border);
  border-radius: var(--r-md); padding: 12px 14px; margin: 10px 0 12px;
}
.h3-srem-box label { display: block; font: 700 .82rem/1.2 var(--ubd-font-body); color: var(--wb-ink-1); margin-bottom: 4px; }
.h3-shome-tip {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .82rem; color: var(--wb-ink-2); line-height: 1.45;
}
.h3-shome-tip svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; color: var(--wb-accent); }

/* Spotlight coach-mark tour */
.h3-tour-layer { position: fixed; inset: 0; z-index: 130; pointer-events: auto; }
.h3-tour-spot {
  position: fixed;
  border-radius: 10px;
  border: 2px solid var(--wb-accent);
  box-shadow: 0 0 0 9999px rgba(27, 22, 38, .54);
  pointer-events: none;
  transition: all var(--ease);
}
.h3-tour-pop {
  position: fixed;
  background: var(--wb-surface);
  border: 1px solid var(--wb-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-board);
  padding: 14px 16px;
}
.h3-tour-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.h3-tour-top span { font: 800 .74rem/1 var(--ubd-font-body); color: var(--wb-accent); text-transform: uppercase; letter-spacing: .06em; }
.h3-tour-top button { background: none; border: 0; padding: 2px 4px; font: 700 .78rem/1 var(--ubd-font-body); color: var(--wb-ink-2); cursor: pointer; }
.h3-tour-pop h3 { font: 800 1.02rem/1.2 var(--ubd-font-body); color: var(--wb-ink-1); margin: 0 0 4px; }
.h3-tour-pop p { font-size: .86rem; line-height: 1.45; color: var(--wb-ink-2); margin: 0 0 12px; }
.h3-tour-acts { display: flex; justify-content: space-between; align-items: center; gap: 8px; }


/* ---------- YOUR BUDDIES ---------- */
.h3-desknav a, .h3-tabs a { position: relative; }
.h3-nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 5px;
  border-radius: var(--r-full); background: var(--wb-accent); color: #fff;
  font: 800 11px/1 var(--ubd-font-body); font-style: normal;
}
.h3-tabs a .h3-nav-badge {
  position: absolute; top: 3px; right: calc(50% - 22px);
  margin: 0; min-width: 16px; height: 16px; font-size: 10px;
}

.h3-buddies-mob { margin-top: 16px; }
@media (min-width: 920px) { .h3-buddies-mob { display: none; } }
.h3-sidecol { display: none; }
@media (min-width: 920px) {
  .h3-sidecol { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; }
}
.h3-buddies-more { margin-bottom: 14px; }
.h3-bud-card { padding: 16px; }
.h3-bud-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 10px;
}
.h3-bud-titlewrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.h3-bud-open { font: 800 .8rem/1 var(--ubd-font-body); color: var(--wb-accent); text-decoration: none; }
.h3-bud-open:hover { text-decoration: underline; }
.h3-bud-tag {
  font: 800 .68rem/1 var(--ubd-font-body); letter-spacing: .04em; text-transform: uppercase;
  background: var(--wb-accent-soft); color: var(--wb-accent); border: 1px solid var(--wb-accent-border);
  padding: 4px 8px; border-radius: var(--r-full);
}
.h3-bud-badge {
  font: 800 .72rem/1 var(--ubd-font-body);
  background: var(--wb-accent); color: #fff;
  padding: 4px 9px; border-radius: var(--r-full);
}
.h3-bud-empty { margin: 0 0 6px; font: 800 .98rem/1.3 var(--ubd-font-body); color: var(--wb-ink-1); }
.h3-bud-freenote {
  margin: 10px 0 0; padding: 8px 10px; border-radius: var(--r-md);
  background: #FAF8FC; border: 1px solid #EAE2F3;
  font-size: .79rem; line-height: 1.4; color: var(--wb-ink-2);
}
.h3-bud-list { display: grid; gap: 10px; }
.h3-bud-item {
  background: #FAF8FC; border: 1px solid #E5DDF0; border-radius: var(--r-md);
  padding: 12px; display: grid; gap: 9px;
}
.h3-bud-who { display: flex; align-items: center; gap: 10px; }
.h3-bud-who--lg { margin: 10px 0 12px; }
.h3-bud-av {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  background: var(--wb-accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font: 800 .95rem/1 var(--ubd-font-body);
}
.h3-bud-av--lg { width: 46px; height: 46px; font-size: 1.15rem; }
.h3-bud-meta { display: grid; gap: 2px; min-width: 0; }
.h3-bud-meta b { font: 800 .94rem/1.2 var(--ubd-font-body); color: var(--wb-ink-1); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.h3-bud-meta small { font: 600 .78rem/1.2 var(--ubd-font-body); color: var(--wb-ink-2); }
.h3-bud-newdot {
  font-style: normal; font: 800 .66rem/1 var(--ubd-font-body);
  background: var(--wb-accent); color: #fff; padding: 3px 7px; border-radius: var(--r-full);
}
.h3-bud-ping {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  background: #fff; border: 1px solid #E5DDF0; border-radius: 8px;
  padding: 8px 10px; font-size: .82rem; color: var(--wb-ink-1);
}
.h3-bud-ping.is-unread { border-color: var(--wb-accent); background: #FDFBFF; }
.h3-bud-heartbtn {
  border: 1px solid var(--wb-accent-border); background: var(--wb-accent-soft); color: var(--wb-accent);
  font: 800 .76rem/1 var(--ubd-font-body); padding: 6px 10px; border-radius: var(--r-full); cursor: pointer;
}
.h3-bud-heartbtn:hover { background: var(--wb-accent); color: #fff; border-color: var(--wb-accent); }
.h3-bud-hearted { font-style: normal; font: 800 .76rem/1 var(--ubd-font-body); color: #15803D; }
.h3-bud-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.h3-bud-qtray { border-top: 1px solid #E8E1F2; padding-top: 8px; display: grid; gap: 6px; }
.h3-bud-qbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.h3-bud-preset {
  padding: 6px 10px; border-radius: var(--r-full); cursor: pointer;
  background: #fff; border: 1px solid var(--wb-accent-border); color: var(--wb-ink-1);
  font: 700 .78rem/1.15 var(--ubd-font-body);
}
.h3-bud-preset:hover:not(:disabled) { background: var(--wb-accent); color: #fff; border-color: var(--wb-accent); }
.h3-bud-preset:disabled { opacity: .45; cursor: not-allowed; }
.h3-bud-qcap { margin: 0; font-size: .75rem; color: var(--wb-ink-2); font-weight: 600; }
.h3-bud-priv { margin: 10px 0 0; font-size: .76rem; color: var(--wb-ink-3); line-height: 1.4; }
.h3-bud-priv a { color: var(--wb-accent); font-weight: 700; }

/* Buddies dedicated page */
#h3-buddies-page { max-width: 760px; display: grid; gap: 14px; }
.h3-bud-subnav {
  display: inline-flex; gap: 4px; padding: 4px; background: #EAE6F2;
  border-radius: var(--r-full); justify-self: start;
}
.h3-bud-subnav button {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: transparent; color: var(--wb-ink-2);
  padding: 7px 14px; border-radius: var(--r-full); cursor: pointer;
  font: 700 .84rem/1 var(--ubd-font-body);
}
.h3-bud-subnav button.is-on { background: #fff; color: var(--wb-accent); font-weight: 800; box-shadow: var(--sh-sm); }
.h3-bud-subnav button b {
  background: var(--wb-accent); color: #fff; border-radius: var(--r-full);
  padding: 2px 6px; font-size: .7rem; line-height: 1;
}
.h3-bud-tierbox {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: #FAF8FC; border-color: var(--wb-accent-border);
}
.h3-bud-optform { display: grid; gap: 12px; }
.h3-bud-fgrid { display: grid; gap: 10px; }
@media (min-width: 640px) { .h3-bud-fgrid { grid-template-columns: 1fr 1fr; } }
.h3-bud-fgrid label { display: grid; gap: 4px; font: 700 .84rem/1.2 var(--ubd-font-body); color: var(--wb-ink-1); }
.h3-bud-fgrid select, .h3-bud-fgrid input {
  width: 100%; padding: 9px 10px; border-radius: var(--r-md);
  border: 1px solid var(--wb-border-strong); background: #fff;
  font: 600 .9rem/1.3 var(--ubd-font-body); color: var(--wb-ink-1);
}
.h3-bud-opt {
  display: flex; align-items: flex-start; gap: 8px;
  font: 600 .86rem/1.4 var(--ubd-font-body); color: var(--wb-ink-1); cursor: pointer;
}
.h3-bud-opt input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--wb-accent); }
.h3-bud-intro { border-color: var(--wb-accent); background: linear-gradient(180deg, #FAF7FD 0%, #FFFFFF 100%); }
.h3-bud-intro-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.h3-bud-cycle { font: 800 .8rem/1 var(--ubd-font-body); color: var(--wb-accent); }
.h3-bud-intro-note { margin: 0 0 14px; font-size: .92rem; line-height: 1.5; color: var(--wb-ink-1); }
.h3-bud-notif {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: var(--r-md);
  background: var(--wb-accent-soft); border: 1px solid var(--wb-accent);
}
.h3-bud-notif-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.h3-bud-notif-main div { display: grid; gap: 2px; }
.h3-bud-notif-main b { font: 800 .9rem/1.2 var(--ubd-font-body); color: var(--wb-ink-1); }
.h3-bud-notif-main small { font: 600 .78rem/1.3 var(--ubd-font-body); color: var(--wb-ink-2); }
.h3-bud-paused {
  padding: 12px 14px; border-radius: var(--r-md);
  background: #FEF7D6; border: 1px solid #EFE2A6;
}
.h3-bud-sendhead { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.h3-bud-streak {
  font: 800 .78rem/1 var(--ubd-font-body); color: #15803D;
  background: #ECFDF5; border: 1px solid #A7F3D0; padding: 6px 10px; border-radius: var(--r-full);
}
.h3-bud-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.h3-bud-presetbtn {
  min-height: 42px; padding: 9px 14px; border-radius: var(--r-full); cursor: pointer;
  background: #FAF8FC; border: 1.5px solid var(--wb-accent-border);
  color: var(--wb-ink-1); font: 700 .88rem/1.2 var(--ubd-font-body);
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.h3-bud-presetbtn:hover:not(:disabled) { background: var(--wb-accent); border-color: var(--wb-accent); color: #fff; }
.h3-bud-presetbtn:disabled { opacity: .45; cursor: not-allowed; }
.h3-bud-sendfoot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  font-size: .8rem; color: var(--wb-ink-2); font-weight: 600;
}
.h3-bud-breathelink { color: var(--wb-accent); font-weight: 800; text-decoration: none; }
.h3-bud-breathelink:hover { text-decoration: underline; }
.h3-bud-feedhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.h3-bud-feed { display: grid; gap: 8px; }
.h3-bud-fitem {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--wb-border); background: #fff;
}
.h3-bud-fitem.is-them { background: #FAF8FC; border-color: #E5DDF0; }
.h3-bud-fitem.is-unread { border-color: var(--wb-accent); }
.h3-bud-fwho { font: 800 .8rem/1.2 var(--ubd-font-body); color: var(--wb-ink-2); }
.h3-bud-fwho small { font-weight: 600; }
.h3-bud-ftext { margin: 3px 0 0; font: 700 .94rem/1.35 var(--ubd-font-body); color: var(--wb-ink-1); }
.h3-bud-safetycard { border-color: #E8C5CA; background: #FFF9FA; }
.h3-bud-endbtn { border-color: #D9B4B9; color: #7F1D1D; }
.h3-bud-reportbtn { background: #991B1B; border-color: #991B1B; color: #fff; }
.h3-bud-reportbtn:hover { background: #7F1D1D; }
.h3-bud-reportmsg {
  margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r-md);
  background: #fff; border: 1px solid #E3C4C8; font: 700 .86rem/1.4 var(--ubd-font-body); color: #5A2A33;
}

.h3-bud-multi {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding-top: 10px; border-top: 1px solid var(--wb-border);
}
.h3-bud-multi button:disabled { opacity: .48; cursor: not-allowed; }
.h3-bud-multi small { flex: 1 1 220px; font-size: .78rem; line-height: 1.35; color: var(--wb-ink-2); }

/* Invite your own buddy + Accept screen + Buddy switcher */
.h3-bud-invitecard, .h3-bud-acceptcard { display: grid; gap: 12px; margin-bottom: 14px; }
.h3-bud-invform { display: grid; gap: 10px; }
.h3-bud-notelabel { display: grid; gap: 5px; font-size: .82rem; font-weight: 800; color: var(--wb-ink-1); }
.h3-bud-notelabel input {
  width: 100%; padding: 9px 11px; border-radius: 10px;
  border: 1.5px solid #D9CCE8; background: #fff; font: 600 .9rem/1.3 var(--ubd-font-body); color: var(--wb-ink-1);
}
.h3-bud-invsent {
  padding: 10px 12px; border-radius: 10px;
  background: #F4EEF9; border: 1px solid #DFD2EE;
  font-size: .86rem; color: var(--wb-ink-1);
}
.h3-bud-notequote {
  margin: 0; padding: 10px 14px; border-left: 3px solid #6E4A8C;
  background: #FAF8FC; border-radius: 0 10px 10px 0;
  font: 600 .92rem/1.45 var(--ubd-font-body); color: var(--wb-ink-1);
}
.h3-bud-switcher {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}
.h3-bud-switcher button {
  padding: 6px 12px; border-radius: 999px; border: 1.5px solid #D9CCE8;
  background: #FAF8FC; color: var(--wb-ink-2);
  font: 700 .8rem/1.2 var(--ubd-font-body); cursor: pointer;
}
.h3-bud-switcher button.is-on {
  background: #6E4A8C; border-color: #6E4A8C; color: #fff;
}

/* ===== Bipolar Tracker · Your Bipolar Mood Map ===== */
.mm-h1 { margin-bottom: 8px; }
.mm-ft-h { margin: 22px 0 8px; }
#mm-root { display: grid; gap: 14px; margin-bottom: 6px; }
.mm-brand {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(135deg, #F4EEF9 0%, #FBF9FD 70%);
  border: 1px solid #E4DBEE;
}
.mm-brand-logo { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.mm-eyebrow { margin: 0; font: 800 .7rem/1.2 var(--ubd-font-body); letter-spacing: .06em; text-transform: uppercase; color: #6E4A8C; }
.mm-brand-h { margin: 2px 0 4px; font: 800 1.25rem/1.2 var(--ubd-font-body); color: var(--wb-ink-1); }
.mm-brand-line { margin: 0; font: 600 .84rem/1.45 var(--ubd-font-body); color: var(--wb-ink-1); }
.mm-brand-line span { color: var(--wb-ink-2); }
.mm-brand-line a { color: #6E4A8C; font-weight: 800; }
.mm-example { display: inline-block; vertical-align: 3px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #FFF4D6; color: #6B5310; font: 800 .66rem/1.4 var(--ubd-font-body); }
.mm-card { display: grid; gap: 10px; }
.mm-cardhead { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.mm-form { display: grid; gap: 14px; }
.mm-lbl { display: block; margin-bottom: 6px; font: 800 .82rem/1.2 var(--ubd-font-body); color: var(--wb-ink-1); }
.mm-lbl small { font-weight: 600; color: var(--wb-ink-2); }
.mm-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mm-dayrow .mm-lbl { margin: 0; }
.mm-dayrow select, .mm-form input[type=text], .mm-form input[type=number], #mm-plan, .mm-addsign input {
  padding: 8px 10px; border-radius: 10px; border: 1.5px solid #D9CCE8; background: #fff;
  font: 600 .9rem/1.3 var(--ubd-font-body); color: var(--wb-ink-1);
}
.mm-form input[type=text], #mm-plan { width: 100%; box-sizing: border-box; }
.mm-saved { font: 700 .76rem/1 var(--ubd-font-body); color: #1F6B43; }
.mm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-chip {
  padding: 8px 12px; min-height: 36px; border-radius: 999px; border: 1.5px solid #D9CCE8; background: #FAF8FC;
  font: 700 .82rem/1.15 var(--ubd-font-body); color: var(--wb-ink-1); cursor: pointer;
}
.mm-chip:hover { border-color: #6E4A8C; }
.mm-chip:focus-visible, .mm-pill:focus-visible { outline: 3px solid #B79CD3; outline-offset: 2px; }
.mm-chip.is-on { background: #6E4A8C; border-color: #6E4A8C; color: #fff; }
.mm-scale { display: flex; align-items: center; gap: 8px; }
.mm-end { flex: none; width: 74px; font: 800 .78rem/1.15 var(--ubd-font-body); color: var(--wb-ink-1); text-align: center; }
.mm-end small { display: block; font-weight: 600; font-size: .68rem; color: var(--wb-ink-2); }
.mm-moods { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.mm-moods .mm-chip { padding: 8px 4px; border-radius: 12px; text-align: center; font-size: .76rem; }
.mm-moods .mm-m2, .mm-moods .mm-m3, .mm-moods .mm-m4 { background: #F1EBF7; }
.mm-moods .mm-chip.is-on { background: #6E4A8C; color: #fff; }
.mm-scale-note { margin: 6px 0 0; text-align: center; font: 600 .74rem/1.2 var(--ubd-font-body); color: var(--wb-ink-2); }
.mm-mixed { display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; font: 600 .84rem/1.3 var(--ubd-font-body); color: var(--wb-ink-1); cursor: pointer; }
.mm-mixed input { width: 18px; height: 18px; accent-color: #6E4A8C; }
.mm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.mm-step { display: inline-flex; align-items: center; gap: 6px; }
.mm-step button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #D9CCE8; background: #FAF8FC; font: 800 1.1rem/1 var(--ubd-font-body); color: #6E4A8C; cursor: pointer; }
.mm-step input { width: 70px; text-align: center; }
.mm-nums .mm-chip { min-width: 38px; text-align: center; }
.mm-hint { display: block; margin-top: 4px; font-size: .72rem; color: var(--wb-ink-2); }
.mm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mm-msg { font: 700 .82rem/1.3 var(--ubd-font-body); color: #1F6B43; }
.h3-msvg { width: 100%; height: auto; display: block; }
.mm-axl { font-weight: 800; fill: var(--wb-ink-1); }
.mm-axs { font-size: 9px; font-weight: 600; }
.mm-legend { flex-wrap: wrap; }
.mm-lg-dot { background: #9A4F7A !important; border-radius: 50% !important; }
.mm-lg-mixed { background: #fff !important; border: 2px solid #6E4A8C; transform: rotate(45deg); width: 8px !important; height: 8px !important; border-radius: 1px !important; }
.mm-seg button.is-lock { opacity: .6; }
.h3-trk-lock { padding: 12px 14px; border-radius: 12px; background: #FAF8FC; border: 1px dashed #CDBFE0; }
.h3-trk-lock b { font: 800 .86rem/1.2 var(--ubd-font-body); color: #6E4A8C; }
.h3-trk-lock p { margin: 4px 0 6px; font: 600 .84rem/1.45 var(--ubd-font-body); color: var(--wb-ink-1); }
.h3-trk-lock.is-flash { animation: mmflash .9s ease; }
@keyframes mmflash { 0%, 100% { background: #FAF8FC; } 40% { background: #EFE5F8; } }
.h3-fb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-top: 10px; border-top: 1px solid var(--wb-border); }
.h3-fb-q { font: 700 .76rem/1 var(--ubd-font-body); color: var(--wb-ink-2); }
.h3-fb-btn { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #D9CCE8; background: #fff; color: var(--wb-ink-2); cursor: pointer; display: inline-grid; place-items: center; }
.h3-fb-btn svg { width: 16px; height: 16px; }
.h3-fb-btn.is-on { background: #6E4A8C; border-color: #6E4A8C; color: #fff; }
.h3-fb-form { display: flex; gap: 6px; flex: 1 1 240px; }
.h3-fb-form input { flex: 1; min-width: 0; padding: 6px 10px; border-radius: 999px; border: 1.5px solid #D9CCE8; font: 600 .8rem/1.2 var(--ubd-font-body); }
.h3-fb-thanks { font: 700 .76rem/1.2 var(--ubd-font-body); color: #1F6B43; }
.mm-headsup { border: 1.5px solid #CDBFE0; background: linear-gradient(180deg, #F7F2FB, #fff 60%); }
.mm-hu-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mm-hu-badge { padding: 3px 10px; border-radius: 999px; background: #6E4A8C; color: #fff; font: 800 .72rem/1.4 var(--ubd-font-body); }
.mm-hu-brand { font: 800 .7rem/1 var(--ubd-font-body); color: #6E4A8C; letter-spacing: .04em; text-transform: uppercase; }
.mm-hu-list { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 6px; }
.mm-hu-list li { padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid #E4DBEE; }
.mm-hu-list b { display: block; font-size: .9rem; color: var(--wb-ink-1); }
.mm-hu-list small { font-size: .76rem; color: var(--wb-ink-2); }
.mm-plan { padding: 10px 12px; border-left: 3px solid #6E4A8C; background: #FAF8FC; border-radius: 0 10px 10px 0; margin-bottom: 10px; }
.mm-plan b { font-size: .84rem; color: #6E4A8C; }
.mm-plan p { margin: 4px 0 0; font: 600 .88rem/1.45 var(--ubd-font-body); color: var(--wb-ink-1); }
.mm-hu-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mm-hu-msg { margin: 6px 0 0; font: 700 .82rem/1.3 var(--ubd-font-body); color: #1F6B43; }
.mm-hu-msg:empty { display: none; }
.mm-hu-links { margin: 8px 0 0; font: 600 .8rem/1.6 var(--ubd-font-body); color: var(--wb-ink-2); }
.mm-hu-links a, .mm-disc a, .mm-foot a { color: #6E4A8C; font-weight: 800; }
.mm-disc { margin: 6px 0 0; font: 600 .74rem/1.4 var(--ubd-font-body); color: var(--wb-ink-2); }
.mm-foot { margin: 0; padding: 4px 2px; font: 600 .78rem/1.5 var(--ubd-font-body); color: var(--wb-ink-2); }
.mm-signlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mm-sign { display: flex; gap: 8px; align-items: flex-start; padding: 9px 10px; border-radius: 12px; border: 1.5px solid #E4DBEE; background: #fff; cursor: pointer; }
.mm-sign input { margin-top: 2px; width: 18px; height: 18px; accent-color: #6E4A8C; flex: none; }
.mm-sign b { display: block; font-size: .86rem; color: var(--wb-ink-1); }
.mm-sign small { font-size: .74rem; color: var(--wb-ink-2); }
.mm-customlist { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 6px; }
.mm-customlist li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 7px 10px; border-radius: 10px; background: #FAF8FC; border: 1px solid #E4DBEE; font-size: .86rem; }
.mm-customlist li span { flex: 1 1 160px; font-weight: 700; }
.mm-addsign { display: flex; gap: 8px; }
.mm-addsign input { flex: 1; min-width: 0; }
.mm-planlbl small { display: block; margin: -2px 0 6px; font-size: .76rem; color: var(--wb-ink-2); }
.mm-ins { margin: 0; padding: 10px 12px 10px 28px; border-radius: 12px; background: #F4EEF9; font: 700 .86rem/1.45 var(--ubd-font-body); color: var(--wb-ink-1); }
.mm-ins-wait { margin: 0; font: 600 .84rem/1.4 var(--ubd-font-body); color: var(--wb-ink-2); }
.mm-tl { display: grid; gap: 6px; }
.mm-tl-row { display: grid; grid-template-columns: 82px 1.4fr repeat(4, minmax(0, 1fr)); gap: 6px 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--wb-border); background: #fff; font: 700 .84rem/1.2 var(--ubd-font-body); color: var(--wb-ink-1); }
.mm-tl-day { color: var(--wb-ink-2); font-size: .78rem; }
.mm-tl-cell small { display: block; font-size: .66rem; font-weight: 700; color: var(--wb-ink-2); text-transform: uppercase; letter-spacing: .04em; }
.mm-tl-sigs { grid-column: 2 / -1; font-size: .74rem; color: #6E4A8C; }
.mm-zone { font-style: normal; display: inline-block; padding: 3px 9px; border-radius: 999px; background: #F1EBF7; font-size: .78rem; }
.mm-zone-up { background: #F7EEF2; color: #7A3E61; }
.mm-zone-down { background: #EEF0F7; color: #3E4A7A; }
.mm-rcontrols { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mm-ropts { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.mm-ropt { display: inline-flex; gap: 6px; align-items: center; font: 700 .8rem/1.2 var(--ubd-font-body); color: var(--wb-ink-1); }
.mm-ropt input { accent-color: #6E4A8C; }
.mm-ropt small { font-weight: 600; color: var(--wb-ink-2); }
.mm-rpreview { border: 1px solid var(--wb-border); border-radius: 12px; background: #F6F5FA; padding: 12px; overflow-x: auto; }
.mm-report { background: #fff; max-width: 760px; margin: 0 auto; padding: 22px 26px; border-radius: 6px; box-shadow: 0 1px 4px rgba(30, 28, 46, .12); font: 600 .84rem/1.45 var(--ubd-font-body); color: #1E1C2E; }
.mm-rp-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 2px solid #6E4A8C; }
.mm-rp-head h2 { margin: 0; font: 800 1.15rem/1.2 var(--ubd-font-body); color: #6E4A8C; text-align: right; }
.mm-rp-head p { margin: 2px 0 0; font-size: .76rem; color: #52506A; text-align: right; }
.mm-rp-example { margin: 8px 0 0; padding: 4px 10px; display: inline-block; border-radius: 999px; background: #FFF4D6; color: #6B5310; font-weight: 800; font-size: .72rem; }
.mm-report h3 { margin: 14px 0 6px; font: 800 .86rem/1.2 var(--ubd-font-body); color: #1E1C2E; text-transform: uppercase; letter-spacing: .04em; }
.mm-report ul { margin: 0; padding-left: 18px; }
.mm-lifechart { width: 100%; height: auto; display: block; }
.mm-lc-ax { font: 800 9.5px/1 var(--ubd-font-body); fill: #1E1C2E; }
.mm-lc-axs { font: 600 8.5px/1 var(--ubd-font-body); fill: #52506A; }
.mm-rp-key { margin: 4px 0 0; font-size: .7rem; color: #52506A; }
.mm-rp-tbl { width: 100%; border-collapse: collapse; }
.mm-rp-tbl th, .mm-rp-tbl td { text-align: left; padding: 5px 8px; border-bottom: 1px solid #ECE8F2; font-size: .8rem; vertical-align: top; }
.mm-rp-tbl th { width: 42%; color: #52506A; font-weight: 700; }
.mm-rp-foot { margin-top: 14px; padding-top: 8px; border-top: 1px solid #ECE8F2; font-size: .68rem; color: #52506A; }
.mm-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  padding: 8px 14px; border-radius: 999px; background: #6E4A8C; color: #fff; text-decoration: none;
  font: 600 .84rem/1.2 var(--ubd-font-body); box-shadow: 0 2px 8px rgba(110, 74, 140, .25);
}
.mm-pill b { font-weight: 800; }
.mm-pill span:last-child { opacity: .9; }
.mm-pill-dot { width: 9px; height: 9px; border-radius: 50%; background: #F5D27A; }
.mm-pill.is-done { background: #F4EEF9; color: #6E4A8C; box-shadow: none; border: 1.5px solid #DFD2EE; }
.mm-pill-dot.is-done { background: #2E8B57; }
@media (max-width: 640px) {
  .mm-scale { flex-wrap: wrap; justify-content: space-between; }
  .mm-moods { order: 3; flex: 1 1 100%; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
  .mm-moods .mm-chip { font-size: .64rem; padding: 7px 1px; min-height: 44px; }
  .mm-end { width: auto; text-align: left; }
  .mm-scale .mm-end:last-of-type { text-align: right; }
  .mm-grid, .mm-signlist { grid-template-columns: 1fr; }
  .mm-tl-row { grid-template-columns: 1fr 1fr 1fr; }
  .mm-tl-day { grid-column: 1 / -1; }
  .mm-tl-mood { grid-column: 1 / -1; }
  .mm-tl-sigs { grid-column: 1 / -1; }
  .mm-brand { align-items: flex-start; }
  .mm-report { padding: 14px; }
  .mm-rp-head { flex-direction: column; align-items: flex-start; }
  .mm-rp-head h2, .mm-rp-head p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .h3-trk-lock.is-flash { animation: none; } }
@media print {
  body.mm-printing * { visibility: hidden !important; }
  body.mm-printing #mm-report-sheet, body.mm-printing #mm-report-sheet * { visibility: visible !important; }
  body.mm-printing #mm-report-sheet { position: absolute; left: 0; top: 0; width: 100%; max-width: none; box-shadow: none; padding: 0; margin: 0; }
  body.mm-printing .mm-rp-example { border: 1px solid #6B5310; }
  @page { size: letter; margin: 14mm; }
}

/* v33: package branding (bipolar-first, ties back to UBD) */
.h3-eyebrow { margin: 0 0 2px; font: 800 .7rem/1.2 var(--ubd-font-body); letter-spacing: .06em; text-transform: uppercase; color: #6E4A8C; }
.h3-boardintro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 12px; }
.h3-boardintro .mm-pill { margin: 0; }
.h3-boardintro p.h3-bsub { margin: 2px 0 0; max-width: 46rem; }
.h3-learnmore { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: #FAF8FC; border: 1px solid #E4DBEE; font: 600 .82rem/1.5 var(--ubd-font-body); color: var(--wb-ink-2); }
.h3-learnmore b { color: var(--wb-ink-1); }
.h3-learnmore a { color: #6E4A8C; font-weight: 800; }
.h3-extras-note { margin: 4px 0 10px; font: 600 .84rem/1.45 var(--ubd-font-body); color: var(--wb-ink-2); }
.hub-gate .h3-pkg { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font: 700 .86rem/1.35 var(--ubd-font-body); color: var(--wb-ink-1, #1E1C2E); }
.hub-gate .h3-pkg li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #6E4A8C; margin-right: 8px; vertical-align: 1px; }

/* v33: Nunito everywhere, incl. form controls */
.hub3 button, .hub3 input, .hub3 select, .hub3 textarea { font-family: var(--ubd-font-body); }

/* ---------- v34 simple mode ---------- */
.hub-toolname { font-weight: 800; color: #6E4A8C; font-size: 1rem; margin-right: auto; padding-left: 10px; border-left: 2px solid #E4DAEE; line-height: 1.2; }
.hub3 .h3-desknav { margin-left: 0; }
.h3-layout--simple { display: block !important; }
.h3-simplebar { margin: 4px 0 12px; display: flex; flex-direction: column; gap: 10px; }
.h3-sm-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.h3-sm-status { margin: 0; font-size: .86rem; color: #5b5266; }
.h3-sm-status b { color: #6E4A8C; }
.h3-sm-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.h3-sm-acts .h3-btn2 { padding: 7px 14px; font-size: .88rem; min-height: 0; }
.h3-sm-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #DDD0EA; background: #F7F2FB; color: #4a3560; border-radius: 999px; padding: 4px 12px 4px 4px; font: 700 .82rem var(--ubd-font-body); cursor: pointer; }
.h3-sm-chip i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: #6E4A8C; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; }
.h3-sm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid #E4DAEE; border-radius: 14px; padding: 8px 10px; }
.h3-sm-mood { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.h3-sm-lbl { font-weight: 800; font-size: .86rem; color: #3b2d4a; margin-right: 4px; }
.h3-sm-m { border: 1px solid #DDD0EA; background: #fff; border-radius: 999px; padding: 6px 12px; font: 700 .84rem var(--ubd-font-body); color: #4a3560; cursor: pointer; }
.h3-sm-m:hover { background: #F7F2FB; }
.h3-sm-m.is-on { background: #6E4A8C; border-color: #6E4A8C; color: #fff; }
.h3-sm-m0.is-on { background: #5A6FA8; border-color: #5A6FA8; }
.h3-sm-m4.is-on { background: #A8558A; border-color: #A8558A; }
.h3-sm-sleep { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .84rem; color: #4a3560; margin-left: 6px; }
.h3-sm-sleep input { width: 64px; padding: 6px 8px; border: 1px solid #DDD0EA; border-radius: 10px; font: 700 .86rem var(--ubd-font-body); }
.h3-sm-view button { min-width: 84px; }
.h3-sm-prog { padding: 16px 18px; }
.h3-sm-proghead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.h3-sm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.h3-sm-kpis div { background: #F7F2FB; border-radius: 12px; padding: 10px 12px; }
.h3-sm-kpis b { display: block; font-size: 1.3rem; color: #6E4A8C; font-weight: 800; }
.h3-sm-kpis span { font-size: .78rem; color: #5b5266; }
.h3-sm-chart { width: 100%; height: auto; display: block; }
.h3-sm-progfoot { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 10px; border-top: 1px solid #EEE6F5; padding-top: 10px; }
.h3-sm-progfoot small { color: #6b6375; font-size: .78rem; }
.h3-linkbtn { background: none; border: 0; padding: 0; color: #6E4A8C; font: 800 .88rem var(--ubd-font-body); text-decoration: underline; cursor: pointer; }
.h3-sm-report { display: none; }
@media print { body.mm-printing .h3-sm-report { display: block; } }
.h3-sm-modal { position: fixed; inset: 0; background: rgba(40, 24, 56, .45); z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.h3-sm-dialog { position: relative; background: #fff; border-radius: 18px; padding: 22px; width: 100%; max-width: 420px; box-shadow: 0 20px 50px rgba(40,24,56,.25); font-family: var(--ubd-font-body); }
.h3-sm-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 1.6rem; color: #6b6375; cursor: pointer; }
.h3-sm-invform { display: flex; flex-direction: column; gap: 10px; }
.h3-sm-invform label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .86rem; color: #3b2d4a; }
.h3-sm-invform input, .h3-sm-invform select { padding: 10px 12px; border: 1px solid #DDD0EA; border-radius: 10px; font: 600 .95rem var(--ubd-font-body); }
.h3-sm-invmsg { margin: 10px 0 0; font-size: .9rem; color: #3b2d4a; }
.hub3-extras { margin: 0 0 8px; font-size: .86rem; }
.hub3-extras a { color: #E4DAEE; font-weight: 700; }
.hub3 .h3-hint { font-size: .76rem; }
@media (max-width: 640px) {
  .hub-toolname { font-size: .86rem; padding-left: 8px; }
  .h3-sm-kpis { grid-template-columns: repeat(2, 1fr); }
  .h3-sm-row { flex-direction: column; align-items: stretch; }
  .h3-sm-view { align-self: stretch; display: flex; }
  .h3-sm-view button { flex: 1; }
  .h3-sm-m { padding: 6px 10px; font-size: .8rem; }
}
.h3-tabs { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 640px) {
  .hub3 .hub-top .hub-account { display: none; }
  .hub3 .hub-top .logo img { height: 26px; }
  .hub3 .hub-top { gap: 8px; }
}

/* ---------- v35 first-run coach ---------- */
.h3-coach { position: fixed; right: 20px; bottom: 20px; z-index: 8000; width: 360px; max-width: calc(100vw - 24px); background: #fff; border: 2px solid #6E4A8C; border-radius: 18px; padding: 14px 16px 14px; box-shadow: 0 18px 44px rgba(40,24,56,.22); font-family: var(--ubd-font-body); color: #2c2236; }
.h3-coach h3 { margin: 4px 0 4px; font: 800 1.05rem var(--ubd-font-body); color: #3b2d4a; }
.h3-coach p { margin: 0 0 10px; font-size: .9rem; line-height: 1.4; color: #4f4559; }
.h3-coach-top { display: flex; justify-content: space-between; align-items: center; font: 800 .74rem var(--ubd-font-body); color: #6E4A8C; letter-spacing: .02em; }
.h3-coach-top button { border: 0; background: none; color: #6b6375; font: 700 .82rem var(--ubd-font-body); text-decoration: underline; cursor: pointer; }
.h3-coach-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.h3-coach-chip { border: 1px solid #DDD0EA; background: #F7F2FB; color: #4a3560; border-radius: 999px; padding: 7px 12px; font: 700 .86rem var(--ubd-font-body); cursor: pointer; }
.h3-coach-chip:hover { background: #EEE4F7; }
.h3-coach-chip.is-on { background: #6E4A8C; border-color: #6E4A8C; color: #fff; cursor: default; }
.h3-coach-acts { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.h3-coach-acts .h3-btn2 { padding: 8px 16px; min-height: 0; font-size: .9rem; margin-left: auto; }
.h3-coach-acts .h3-btn2[disabled] { opacity: .45; cursor: not-allowed; }
.h3-coach-count { font-size: .8rem; color: #6b6375; font-weight: 700; }
.h3-coach-target { outline: 3px solid #6E4A8C !important; outline-offset: 4px; border-radius: 14px; animation: h3coachpulse 1.6s ease-in-out infinite; }
@keyframes h3coachpulse { 0%,100% { outline-color: #6E4A8C; } 50% { outline-color: #CDBFE0; } }
@media (prefers-reduced-motion: reduce) { .h3-coach-target { animation: none; } }
@media (max-width: 640px) {
  .h3-coach { left: 8px; right: 8px; width: auto; max-width: none; bottom: calc(64px + env(safe-area-inset-bottom)); padding: 12px 14px; }
  .h3-coach p { font-size: .86rem; margin-bottom: 8px; }
  .h3-coach-chip { padding: 6px 10px; font-size: .82rem; }
}

/* Coming soon badge for Invite a buddy */
.h3-btn-coming { display: inline-flex; align-items: center; gap: 7px; }
.h3-soon-tag, .h3-soon-pill {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: #EFEAF5;
  color: #6E4A8C;
}

/* ---------- v36 full-screen welcome tour ---------- */
body.h3-wel-open { overflow: hidden; }
.h3-wel { position: fixed; inset: 0; z-index: 9500; overflow-y: auto; background: radial-gradient(circle at 20% 10%, #F3ECFA 0, #E9DFF4 45%, #DCCDEB 100%); display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; font-family: var(--ubd-font-body); color: #2C2236; }
.h3-wel-card { width: 100%; max-width: 640px; margin: auto 0; background: #fff; border-radius: 28px; padding: 28px 36px 30px; box-shadow: 0 30px 80px rgba(60, 30, 90, .22); text-align: center; animation: h3welin .35s ease-out; }
@keyframes h3welin { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.h3-wel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; min-height: 28px; }
.h3-wel-dots { display: flex; gap: 7px; }
.h3-wel-dots i { width: 9px; height: 9px; border-radius: 50%; background: #E4DAEE; transition: all .2s; }
.h3-wel-dots i.is-past { background: #B9A5D0; }
.h3-wel-dots i.is-on { width: 26px; border-radius: 9px; background: #6E4A8C; }
.h3-wel-skip { border: 0; background: none; color: #6B6375; font: 700 .86rem var(--ubd-font-body); text-decoration: underline; cursor: pointer; padding: 4px; }
.h3-wel-icon { width: 112px; height: 112px; margin: 6px auto 14px; border-radius: 32px; background: #F3ECFA; display: flex; align-items: center; justify-content: center; }
.h3-wel-icon svg { width: 72px; height: 72px; }
.h3-wel h2 { margin: 0 0 10px; font: 800 2rem/1.15 var(--ubd-font-body); color: #3B2D4A; letter-spacing: -.01em; }
.h3-wel-p { margin: 0 auto 18px; max-width: 30em; font: 500 1.08rem/1.55 var(--ubd-font-body); color: #4F4559; }
.h3-wel-small { margin: 0 auto 8px; color: #5B5266; font-size: 1rem; }
.h3-wel-quote { margin: 0 auto 18px; max-width: 28em; padding: 16px 20px; background: #6E4A8C; color: #fff; border-radius: 18px; font: 800 1.2rem/1.4 var(--ubd-font-body); }
.h3-wel-quote span { display: block; margin-top: 6px; font: 600 .84rem var(--ubd-font-body); color: #E4DAEE; }
.h3-wel-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 14px; }
.h3-wel-chip { border: 2px solid #DDD0EA; background: #fff; color: #4A3560; border-radius: 999px; padding: 12px 18px; font: 800 1rem var(--ubd-font-body); cursor: pointer; transition: transform .1s; }
.h3-wel-chip:hover { background: #F7F2FB; transform: translateY(-1px); }
.h3-wel-chip.is-on { background: #6E4A8C; border-color: #6E4A8C; color: #fff; cursor: default; }
.h3-wel-own { display: flex; gap: 8px; max-width: 420px; margin: 0 auto 10px; }
.h3-wel-own input { flex: 1; min-width: 0; padding: 12px 14px; border: 2px solid #DDD0EA; border-radius: 14px; font: 600 1rem var(--ubd-font-body); }
.h3-wel-count { margin: 4px 0 0; font: 800 .95rem var(--ubd-font-body); color: #6E4A8C; }
.h3-wel-items { list-style: none; margin: 0 auto 10px; padding: 0; max-width: 420px; display: flex; flex-direction: column; gap: 10px; }
.h3-wel-item { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid #E4DAEE; border-radius: 16px; background: #fff; font: 800 1.08rem var(--ubd-font-body); color: #3B2D4A; cursor: pointer; text-align: left; }
.h3-wel-item i { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #6E4A8C; display: flex; align-items: center; justify-content: center; font-style: normal; color: #fff; font-weight: 900; }
.h3-wel-item.is-done { background: #F7F2FB; }
.h3-wel-item.is-done i { background: #6E4A8C; animation: h3pop .3s ease-out; }
.h3-wel-item.is-done span { text-decoration: line-through; color: #6B6375; }
@keyframes h3pop { 0% { transform: scale(.6); } 70% { transform: scale(1.15); } 100% { transform: none; } }
.h3-wel-win { margin: 4px 0 0; font: 800 1rem var(--ubd-font-body); color: #6E4A8C; }
.h3-wel-moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0 0 16px; }
.h3-wel-mood { border: 2px solid #DDD0EA; background: #fff; border-radius: 16px; padding: 16px 6px; font: 800 .98rem var(--ubd-font-body); color: #4A3560; cursor: pointer; }
.h3-wel-mood.is-on { background: #6E4A8C; border-color: #6E4A8C; color: #fff; }
.h3-wel-mood0.is-on { background: #5A6FA8; border-color: #5A6FA8; }
.h3-wel-mood4.is-on { background: #A8558A; border-color: #A8558A; }
.h3-wel-sleep { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; background: #F7F2FB; border-radius: 999px; font: 800 1rem var(--ubd-font-body); color: #3B2D4A; }
.h3-wel-sleep button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #6E4A8C; background: #fff; color: #6E4A8C; font: 900 1.3rem var(--ubd-font-body); cursor: pointer; line-height: 1; }
.h3-wel-sleep b { min-width: 3.5em; font-size: 1.15rem; color: #6E4A8C; }
.h3-wel-chart { margin: 0 0 12px; padding: 10px; border: 1px solid #EEE6F5; border-radius: 16px; }
.h3-wel-reveal { list-style: none; padding: 0; margin: 0 auto 6px; max-width: 30em; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.h3-wel-reveal li { padding: 10px 14px; background: #F7F2FB; border-radius: 12px; font-size: .98rem; color: #4F4559; }
.h3-wel-reveal b { color: #6E4A8C; }
.h3-wel-breath { position: relative; width: 70px; height: 70px; border: 4px solid #6E4A8C; border-radius: 10px; }
.h3-wel-breath span { position: absolute; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: #A8558A; left: 0; top: 0; animation: h3sq 16s linear infinite; }
@keyframes h3sq { 0% { left: 0; top: 100%; } 25% { left: 0; top: 0; } 50% { left: 100%; top: 0; } 75% { left: 100%; top: 100%; } 100% { left: 0; top: 100%; } }
.h3-wel-sides { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 0 0 6px; }
.h3-wel-sides span { padding: 8px 14px; border-radius: 999px; background: #F3ECFA; color: #6E4A8C; font: 800 .95rem var(--ubd-font-body); }
.h3-wel-party { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.h3-wel-party b { width: 70px; height: 70px; border-radius: 50%; background: #6E4A8C; color: #fff; font-size: 2.2rem; display: flex; align-items: center; justify-content: center; animation: h3pop .5s ease-out; }
.h3-wel-party i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 2px; background: hsl(calc(var(--i) * 26 + 260), 55%, 60%); transform: rotate(calc(var(--i) * 25.7deg)) translateY(-50px); animation: h3conf 1.2s ease-out both; }
@keyframes h3conf { from { transform: rotate(calc(var(--i) * 25.7deg)) translateY(0); opacity: 0; } 30% { opacity: 1; } to { transform: rotate(calc(var(--i) * 25.7deg)) translateY(-54px); opacity: .9; } }
.h3-wel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 6px; }
.h3-wel-stats div { padding: 14px 8px; background: #F7F2FB; border-radius: 16px; }
.h3-wel-stats b { display: block; font: 800 1.5rem var(--ubd-font-body); color: #6E4A8C; }
.h3-wel-stats span { font-size: .84rem; color: #5B5266; }
.h3-wel-acts { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.h3-wel-back { border: 0; background: none; color: #6E4A8C; font: 800 1rem var(--ubd-font-body); cursor: pointer; padding: 12px 6px; }
.h3-wel-next { min-width: 200px; padding: 16px 28px !important; font-size: 1.1rem !important; border-radius: 999px !important; margin-left: auto; }
.h3-wel-next[disabled] { opacity: .4; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .h3-wel-card, .h3-wel-breath span, .h3-wel-party i, .h3-wel-party b, .h3-wel-item.is-done i { animation: none !important; } }
@media (max-width: 640px) {
  .h3-wel { padding: 0; align-items: stretch; }
  .h3-wel-card { border-radius: 0; min-height: 100%; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; box-shadow: none; }
  .h3-wel-icon { width: 88px; height: 88px; border-radius: 26px; margin-bottom: 10px; }
  .h3-wel-icon svg { width: 56px; height: 56px; }
  .h3-wel h2 { font-size: 1.6rem; }
  .h3-wel-p { font-size: 1rem; }
  .h3-wel-quote { font-size: 1.05rem; }
  .h3-wel-chip { padding: 10px 14px; font-size: .95rem; }
  .h3-wel-moods { grid-template-columns: repeat(3, 1fr); }
  .h3-wel-acts { margin-top: auto; padding-top: 18px; }
  .h3-wel-next { flex: 1; min-width: 0; }
}
.h3-bud-invlist { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.h3-bud-invlist:empty { display: none; }
.h3-bud-invlist li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 12px; background: #F7F2FB; border-radius: 12px; }
.h3-bud-invlist li span { font-size: .84rem; color: #5B5266; flex: 1; }
.h3-sm-invform input[name="note"] { font-weight: 500; }

/* v38: sign-in help + simple buddies page */
.hub-help { margin-top: 1.25rem; max-width: 34rem; background: #F6F1FA; border-radius: 14px; padding: 12px 16px; font-size: .95rem; }
.hub-help summary { cursor: pointer; font-weight: 800; color: #6E4A8C; }
.hub-help ul { margin: 10px 0 8px; padding-left: 1.1rem; }
.hub-help li { margin: 0 0 6px; line-height: 1.45; }
.hub-help p { margin: 6px 0 0; }
.h3-bud-howlist { margin: 0; padding-left: 1.1rem; line-height: 1.5; }
.h3-bud-howlist li { margin: 0 0 4px; }
.h3-bud-invlist .h3-bud-none { color: #6b5f78; }

/* Sunday email opt-in (preview) */
.h3-sm-wkrow { margin: 14px 0 0; padding: 12px 14px; background: #F6F1FA; border-radius: 14px; }
.h3-sm-wk { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.h3-sm-wk input { width: 20px; height: 20px; margin-top: 2px; accent-color: #6E4A8C; flex: none; }
.h3-sm-wk b { display: block; color: #2C2236; }
.h3-sm-wk small { display: block; color: #6b5f78; line-height: 1.45; margin-top: 2px; }
.h3-sm-wkmsg { margin: 6px 0 0 30px; font-size: .85rem; color: #6E4A8C; min-height: 1em; }

.h3-wel-tip { margin: 12px auto 0; max-width: 30rem; font-size: .95rem; color: #6E4A8C; background: #F6F1FA; border-radius: 12px; padding: 8px 12px; }
