:root {
  --orange: #ff5e00;
  --orange-dark: #cc4600;
  --gold: #ffb000;
  --lime: #b9e531;
  --ink: #1d2520;
  --muted: #647067;
  --line: #e2e8e3;
  --soft: #f6f8f6;
  --danger: #b42318;
  --success: #267a35;
  --surface-shadow: 0 8px 24px rgba(29,37,32,.065);
  --surface-shadow-raised: 0 16px 38px rgba(29,37,32,.12);
  --fruit-up-ambient-duration: 18s;
  --fruit-up-safe-top: env(safe-area-inset-top, 0px);
  --fruit-up-safe-right: env(safe-area-inset-right, 0px);
  --fruit-up-safe-bottom: env(safe-area-inset-bottom, 0px);
  --fruit-up-safe-left: env(safe-area-inset-left, 0px);
  font-size: 17px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f2f5f2;
}
* { box-sizing: border-box; }
/* touch-action: manipulation removes the accidental double-tap-to-zoom that
   makes taps feel laggy and janky. Pinch-to-zoom is deliberately preserved:
   members who need larger text must still be able to enlarge the page. */
body { margin: 0; min-height: 100vh; line-height: 1.5; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; touch-action: manipulation; }
body.nav-menu-open { overflow: hidden; }
body.community-pull-refresh-enabled { overscroll-behavior-y: contain; }
button, input, select, textarea { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { min-height: 48px; }
a { color: var(--orange-dark); }
[hidden] { display: none !important; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top, #fff4d4, #f5f7f5 55%); }
.login-card { width: min(440px, 100%); padding: 38px; text-align: center; background: #fff; border-radius: 24px; box-shadow: 0 24px 65px rgba(31, 45, 34, .12); }
.login-card > .button { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.login-product-promise { color: var(--muted); font-weight: 700; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 2px; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.login-logo { width: 132px; max-height: 100px; object-fit: contain; }
.email-auth-form { display: grid; gap: 12px; margin-top: 16px; text-align: left; }
.email-auth-form .field { margin: 0; }
.email-provider-guidance { margin: 12px 0 4px; padding: 11px 13px; border: 1px solid #bfd4c2; border-radius: 12px; background: #f1f8f2; text-align: left; line-height: 1.45; }
.email-auth-secondary-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.email-auth-secondary-actions .text-button { min-height: 46px; padding: 8px 4px; }
.email-registration-panel form { display: grid; gap: 12px; }
.email-registration-panel .field { margin: 0; }
.email-verification-panel .text-button.wide { width: 100%; margin-top: 10px; }
.registration-panel { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); text-align: left; }
.registration-panel h2, .registration-panel .eyebrow, .registration-panel > p { text-align: center; }
.registration-panel .button.wide { margin-top: 10px; }
.login-access-support-actions { display: grid; gap: 10px; margin-top: 16px; }
.login-access-support-actions .button.wide { margin-top: 0; }
.registration-consent { margin-top: 16px; align-items: flex-start; }
.registration-consent a { position: relative; z-index: 1; }
@media (max-width: 520px) {
  .email-auth-secondary-actions { grid-template-columns: 1fr; }
  .email-auth-secondary-actions .button,
  .email-auth-secondary-actions .text-button { width: 100%; }
}
h1, h2, h3 { line-height: 1.15; }
h1 { font-size: clamp(2rem, 6vw, 3.35rem); margin: 8px 0 12px; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin: 0 0 8px; }
.eyebrow { color: var(--orange-dark); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .76rem; }
.button { min-height: 50px; border: 0; border-radius: 12px; padding: 13px 20px; font-size: 1rem; font-weight: 800; line-height: 1.2; cursor: pointer; }
.button.primary { color: #fff; background: linear-gradient(135deg, var(--orange), #f28a00); }
.button.secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.button.danger { color: #fff; background: var(--danger); }
.button.primary { box-shadow: 0 7px 18px rgba(255,94,0,.2); }
.button:focus-visible, .icon-button:focus-visible, .main-nav button:focus-visible, .header-menu-button:focus-visible { outline: 3px solid rgba(255,94,0,.25); outline-offset: 2px; }
.icon-button { width: 48px; min-width: 48px; min-height: 48px; display: inline-grid; place-items: center; border: 0; border-radius: 13px; cursor: pointer; }
.icon-button.danger { color: #fff; background: var(--danger); box-shadow: 0 6px 16px rgba(180,35,24,.18); }
.ui-icon, .nav-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.icon-text-button { display: inline-flex; align-items: center; gap: 5px; }
.icon-text-button .ui-icon { width: 16px; height: 16px; flex-basis: 16px; }
.button.wide { width: 100%; margin-top: 16px; }
.button:disabled { opacity: .55; cursor: wait; }
.legal-links, footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 22px; font-size: .83rem; }
.app-shell { min-height: 100vh; }
.topbar { height: auto; min-height: calc(68px + var(--fruit-up-safe-top)); padding-top: var(--fruit-up-safe-top); padding-right: max(18px, calc((100vw - 1120px)/2), var(--fruit-up-safe-right)); padding-bottom: 0; padding-left: max(18px, calc((100vw - 1120px)/2), var(--fruit-up-safe-left)); background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; }
.brand, .profile-button, .text-button, .main-nav button { border: 0; background: none; cursor: pointer; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.header-menu-button {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--soft);
  font-weight: 850;
  cursor: pointer;
}
.nav-unread-badge {
  position: absolute;
  top: -6px;
  right: -7px;
  z-index: 1;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--card);
  border-radius: 999px;
  color: #fff;
  background: var(--danger);
  box-shadow: 0 3px 8px rgba(180, 35, 24, .24);
  font-size: .67rem;
  font-weight: 950;
  line-height: 1;
}
.nav-unread-badge.inline {
  position: static;
  min-width: 17px;
  height: 17px;
  margin-left: auto;
  border-width: 0;
  font-size: .63rem;
}
.header-menu-button[aria-expanded="true"],
.header-menu-button.active {
  color: var(--orange-dark);
  background: #fff0e7;
}
.profile-button { width: 44px; min-width: 44px; height: 44px; flex: 0 0 44px; border: 2px solid #111; border-radius: 50%; background: var(--orange); color: white; font-weight: 900; overflow: hidden; padding: 0; box-shadow: -3px 0 12px rgba(12,168,79,.52), 3px 0 12px rgba(239,45,45,.44); }
.profile-button img { width: 100%; height: 100%; object-fit: cover; }
.text-button { color: var(--muted); font-weight: 700; }
@media (max-width: 440px) {
  .topbar { padding-right: max(12px, var(--fruit-up-safe-right)); padding-left: max(12px, var(--fruit-up-safe-left)); }
  .top-actions { gap: 8px; }
  .brand > span { display: none; }
}
.main-nav { background: #fff; padding: 8px 16px; border-bottom: 1px solid var(--line); position: sticky; top: calc(68px + var(--fruit-up-safe-top)); z-index: 20; }
.primary-nav { width: min(1120px, 100%); margin: 0 auto; display: flex; justify-content: center; gap: 6px; position: relative; z-index: 63; isolation: isolate; }
.nav-selection-pill { display: none; pointer-events: none; }
.primary-nav > button { z-index: 1; gap: 8px; }
.primary-nav .nav-icon { transform-origin: center; transition: transform var(--motion-duration-quick) var(--motion-ease-standard), color var(--motion-duration-quick) var(--motion-ease-standard), stroke-width var(--motion-duration-quick) var(--motion-ease-standard), filter var(--motion-duration-quick) var(--motion-ease-standard); }
.primary-nav .nav-label { display: inline-block; opacity: .78; transform: translateY(0); transition: opacity var(--motion-duration-quick) var(--motion-ease-standard), transform var(--motion-duration-quick) var(--motion-ease-standard); }
.primary-nav > button.active .nav-icon { stroke-width: 2.6; }
.primary-nav > button.active .nav-label { opacity: 1; }
.main-nav button, .main-nav a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); text-decoration: none; font-weight: 800; padding: 9px 15px; border-radius: 999px; }
.main-nav .active { background: #fff0e7; color: var(--orange-dark); box-shadow: inset 0 0 0 1px rgba(255,94,0,.08); }
.nav-menu {
  position: absolute;
  z-index: 62;
  top: calc(100% + 8px);
  right: max(18px, calc((100vw - 1120px)/2));
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100vh - 150px);
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 22px 60px rgba(26,39,29,.2);
}
.nav-menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: calc(100vh - 178px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.nav-menu[hidden], .nav-menu-backdrop[hidden] { display: none !important; }
.nav-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px 11px 18px;
  border-bottom: 1px solid var(--line);
}
.nav-menu-header .eyebrow { display: block; margin: 0 0 2px; font-size: .68rem; }
.nav-menu-header strong { display: block; color: var(--ink); font-size: 1.15rem; }
.nav-menu .nav-menu-close {
  width: 42px;
  min-height: 42px;
  padding: 0;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.45rem;
}
.nav-menu-section-label {
  display: block;
  grid-column: 1 / -1;
  margin: 10px 8px 2px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.main-nav .nav-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 61;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: transparent;
  background: rgba(16, 24, 18, .28);
}
.nav-menu-list button, .nav-menu-list a { justify-content: flex-start; min-width: 0; padding: 11px 14px; border-radius: 12px; background: var(--soft); touch-action: manipulation; }
.nav-menu-list button:hover, .nav-menu-list a:hover { color: var(--orange-dark); background: #fff0e7; }
.view { width: min(1120px, calc(100% - 28px)); margin: 28px auto 50px; outline: none; }
.progress-destination-links,
.kitchen-tool-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 20px;
}
.kitchen-tool-nav .button { min-width: 150px; }
.profile-settings-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}
.profile-settings-shortcuts .button { margin: 0; text-decoration: none; }
.hero { background: linear-gradient(135deg, #272d28, #3b493e); color: #fff; border-radius: 22px; padding: clamp(24px, 5vw, 44px); margin-bottom: 20px; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; width: 240px; height: 240px; right: -75px; bottom: -120px; border-radius: 50%; background: var(--orange); opacity: .42; }
.hero p { color: #dce5dd; max-width: 640px; }
.page-back-button {
  position: relative;
  z-index: 2;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  color: #fff;
  background: rgba(8,17,11,.34);
  font: inherit;
  font-size: .84rem;
  font-weight: 850;
  cursor: pointer;
}
.page-back-button:hover,
.page-back-button:focus-visible { background: rgba(8,17,11,.58); }
.page-back-button:focus-visible { outline: 3px solid rgba(185,229,49,.5); outline-offset: 2px; }
.today-welcome-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 15px;
}
.today-welcome-meta time,
.today-welcome-meta strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #f5f8f5;
  background: rgba(8, 17, 11, .38);
  font-size: clamp(.78rem, 1.7vw, .9rem);
  line-height: 1.2;
}
.today-welcome-meta strong {
  border-color: rgba(185, 229, 49, .56);
  color: var(--lime);
  letter-spacing: .025em;
}
.weekly-weight-focus-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(185, 229, 49, .5);
  border-radius: 999px;
  color: #fff;
  background: rgba(11, 20, 15, .48);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.weekly-weight-focus-badge > span:last-child { display: grid; gap: 1px; min-width: 0; }
.weekly-weight-focus-badge small { color: #d9e6da; font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.weekly-weight-focus-badge strong { overflow: hidden; font-size: .9rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.weekly-weight-focus-mark { width: 11px; height: 11px; flex: 0 0 11px; border: 3px solid var(--lime); border-radius: 50%; box-shadow: 0 0 0 4px rgba(185, 229, 49, .12); }
.weekly-weight-focus-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  border-left: 5px solid var(--lime);
  background: linear-gradient(135deg, #fbffe9, #fff 62%, #fff4ea);
}
.weekly-weight-focus-card > div { min-width: 0; }
.weekly-weight-focus-card h2 { margin-bottom: 7px; }
.weekly-weight-focus-card p:not(.eyebrow) { max-width: 760px; margin: 0 0 7px; }
.weekly-weight-focus-card small { color: var(--muted); }
.weekly-weight-focus-card.is-empty { border-left-color: var(--gold); background: linear-gradient(135deg, #fff9e7, #fff); }
.weekly-weight-focus-pledge,
.weekly-weight-focus-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 999px;
  color: #27420e;
  background: #eaf8c6;
  font-size: .8rem;
  font-weight: 900;
}
.weekly-weight-focus-lock { color: #725300; background: #fff1c7; }
.weekly-weight-direction-field > small { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 15px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--surface-shadow); }
.skeleton-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.skeleton-card { position: relative; min-height: 150px; overflow: hidden; border-radius: 18px; background: #eef1ee; }
.skeleton-card::before { content: ""; position: absolute; right: 15px; bottom: 14px; width: 34px; height: 34px; pointer-events: none; opacity: .13; background: url("/assets/fruit-up-logo.png") center / contain no-repeat; filter: drop-shadow(0 0 4px rgba(16,153,76,.72)) drop-shadow(0 0 4px rgba(226,37,42,.45)); }
.skeleton-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 20%, rgba(255,255,255,.74) 50%, transparent 80%); transform: translateX(-110%); animation: skeleton-shimmer var(--motion-duration-loop-medium) var(--motion-ease-smooth) infinite; }
.skeleton-wide { min-height: 180px; grid-column: 1 / -1; }
@keyframes skeleton-shimmer { to { transform: translateX(110%); } }
.loading-card { display: flex; align-items: center; gap: 12px; min-height: 84px; font-weight: 800; }
.metric { font-size: 2rem; font-weight: 900; color: var(--orange-dark); }
.muted { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; font-weight: 800; font-size: .82rem; background: #edf0ed; }
.status.done { color: var(--success); background: #e7f7e8; }
.status.pending { color: #176d3c; background: #efffe8; }
.status.open { color: #2f651b; background: #eaf8c6; }
.status.upcoming { color: #5d6470; background: #edf0f3; }
.status.closed { color: #9f241c; background: #fde7e5; }
.status.urgent { color: #fff; background: var(--danger); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 30px 0 14px; }
.fruit-up-signature-card { position: relative; overflow: hidden; }
.fruit-up-signature-card::before { content: ""; position: absolute; z-index: 1; top: 0; left: 18px; width: 76px; height: 3px; pointer-events: none; border-radius: 0 0 999px 999px; background: linear-gradient(90deg, #13984f 0 48%, #ef3b3f 52% 100%); box-shadow: 0 1px 7px rgba(16,153,76,.48), 0 1px 7px rgba(226,37,42,.34); }
.fruit-up-signature-card > * { position: relative; z-index: 2; }
.daily-action-card.empty::after,
.master-home-card.empty::after,
.coach-message-home-card.empty::after { content: ""; position: absolute; right: 16px; bottom: 14px; width: 46px; height: 46px; pointer-events: none; opacity: .11; background: url("/assets/fruit-up-logo.png") center / contain no-repeat; filter: drop-shadow(0 0 5px rgba(16,153,76,.7)) drop-shadow(0 0 5px rgba(226,37,42,.42)); }
.map-card { text-align: left; cursor: pointer; transition: transform var(--motion-duration-quick) var(--motion-ease-smooth), box-shadow var(--motion-duration-quick) var(--motion-ease-smooth); }
.map-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(34, 46, 37, .1); }
.map-card:disabled { cursor: default; opacity: .72; }
.map-card:disabled:hover { transform: none; box-shadow: 0 5px 18px rgba(32,44,35,.06); }
.map-card.is-completed { cursor: default; }
.map-card.is-completed:hover { transform: none; box-shadow: 0 5px 18px rgba(32,44,35,.06); }
.map-completed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.submitted-map-lock { max-width: 720px; margin-inline: auto; }
.map-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: #fff0e7; color: var(--orange-dark); font-size: 1.35rem; font-weight: 900; }
.form-card { max-width: 820px; margin: 0 auto; padding: clamp(20px, 5vw, 38px); }
.map-day-control { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 220px); gap: 18px; align-items: center; margin: 18px 0 8px; padding: 18px; border: 1px solid #c8ddca; border-radius: 14px; background: #f7fcf7; }
.map-day-control.grace-active { border-color: #f1bd68; background: #fff9ed; }
.map-day-control .eyebrow { margin: 0 0 5px; }
.map-day-control strong { display: block; font-size: 1.2rem; }
.map-day-control p:not(.eyebrow) { margin: 7px 0; }
.map-day-control small { color: var(--muted); }
.map-day-field { margin: 0; }
.form-section { padding: 22px 0; border-top: 1px solid var(--line); }
.form-section:first-of-type { border-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; margin: 14px 0; }
.field label, legend { font-size: 1rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cbd4cc; border-radius: 11px; padding: 12px; background: #fff; color: var(--ink); }
.field input, .field select { min-height: 52px; }
.field textarea { min-height: 105px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(255,94,0,.16); border-color: var(--orange); }
.time-picker-field-label { font-size: 1rem; font-weight: 800; }
.time-picker-trigger { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #cbd4cc; border-radius: 11px; color: var(--muted); background: #fff; font: inherit; font-size: 1.18rem; text-align: left; cursor: pointer; }
.time-picker-trigger.is-set { color: var(--ink); font-weight: 780; }
.time-picker-trigger:focus-visible { outline: 3px solid rgba(255,94,0,.2); outline-offset: 1px; border-color: var(--orange); }
.time-picker-panel { display: grid; gap: 18px; }
.time-picker-current { margin: 0; padding: 12px 14px; border: 1px solid #d8e4cc; border-radius: 13px; color: #38501f; background: #f4fbe9; font-weight: 850; text-align: center; }
.time-picker-selects { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr); gap: 10px; }
.time-picker-control { display: grid; gap: 6px; color: var(--muted); font-size: .78rem; font-weight: 900; letter-spacing: .035em; text-transform: uppercase; }
.time-picker-control select { width: 100%; min-height: 54px; padding: 10px; border: 1px solid #cbd4cc; border-radius: 11px; color: var(--ink); background: #fff; font: inherit; font-size: 1.05rem; font-weight: 800; }
.time-picker-control select:focus-visible { outline: 3px solid rgba(255,94,0,.2); outline-offset: 1px; border-color: var(--orange); }
.time-picker-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.time-picker-actions .button { width: 100%; min-width: 0; min-height: 52px; padding-inline: 8px; font-size: .94rem; }
fieldset.field { border: 0; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; align-items: stretch; }
.choice { display: flex; gap: 11px; align-items: center; min-height: 54px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; font-weight: 650; line-height: 1.35; background: #fff; }
.form-save-status { min-height: 1.5em; margin: 12px 0 0; color: var(--muted); font-weight: 700; }
.form-save-status.saving { color: #765800; }
.form-save-status.success { color: var(--success); }
.form-save-status.error { color: var(--danger); }
.choice:focus-within { outline: 3px solid rgba(255,94,0,.2); outline-offset: 2px; border-color: var(--orange); }
.map-form-assurance { display: grid; gap: 5px; margin: 14px 0 4px; padding: 14px 16px; border: 1px solid #c8ddca; border-radius: 14px; background: #f6fbf7; }
.map-form-assurance strong { font-size: 1rem; }
.map-form-assurance p { margin: 0; color: var(--muted); line-height: 1.45; }
.map-submission-status {
  margin: 18px 0 10px;
  padding: 13px 15px;
  border: 1px solid #a9cfb0;
  border-radius: 14px;
  color: #255332;
  background: #f1faf3;
  font-weight: 750;
  line-height: 1.45;
}
.map-submission-status.is-disabled {
  border-color: #e0a95c;
  color: #6d3c0e;
  background: #fff7e8;
}
#mapForm [data-map-submit]:disabled {
  border-color: #d9c5a7;
  color: #6b5b48;
  background: #eee6da;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}
.map-draft-status-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.map-draft-status { min-height: 1.5em; margin: 0; font-weight: 850; }
.map-draft-status.is-saving { color: #765800; }
.map-draft-status.is-saved, .map-draft-status.is-restored { color: var(--success); }
.map-draft-status.is-error { color: var(--danger); }
.map-draft-detail { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.map-voice-privacy { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.map-draft-discard { min-height: 44px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; }
.map-draft-discard:hover, .map-draft-discard:focus-visible { color: var(--danger); border-color: currentColor; outline: 3px solid rgba(184,39,29,.14); }
.map-draft-conflict-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.map-routine-prefill-notice { display: grid; gap: 5px; margin: 12px 0 4px; padding: 13px 15px; border: 1px solid #9dbb59; border-radius: 14px; background: #f6fbdc; }
.map-routine-prefill-notice strong { color: #345516; }
.map-routine-prefill-notice p { margin: 0; color: var(--muted); line-height: 1.45; }
.map-routine-clear-current { justify-self: start; min-height: 42px; margin-top: 3px; padding: 7px 11px; border: 1px solid #839e49; border-radius: 999px; color: #345516; background: transparent; font: inherit; font-weight: 850; cursor: pointer; }
.map-routine-clear-current:focus-visible { outline: 3px solid rgba(129,159,61,.24); outline-offset: 2px; }
.map-quick-answer-group { display: grid; gap: 8px; margin-top: 3px; }
.map-quick-answer-label { color: var(--muted); font-size: .84rem; font-weight: 700; }
.map-quick-answers, .map-number-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.map-answer-chip, .map-number-action, .map-compose-answer, .map-voice-button { min-height: 48px; border: 1px solid #bdcbbf; border-radius: 999px; padding: 9px 14px; color: var(--ink); background: #f8fbf8; font: inherit; font-size: .88rem; font-weight: 850; cursor: pointer; touch-action: manipulation; transition: transform var(--motion-duration-instant) var(--motion-ease-smooth), border-color var(--motion-duration-quick) var(--motion-ease-smooth), background var(--motion-duration-quick) var(--motion-ease-smooth); }
.map-number-action { min-width: 74px; }
.map-compose-answer { justify-self: start; border-color: #a8c650; background: #f5fbdc; }
.map-answer-chip:hover, .map-number-action:hover, .map-compose-answer:hover, .map-voice-button:hover { border-color: var(--orange); background: #fff4ec; }
.map-answer-chip:active, .map-number-action:active, .map-compose-answer:active, .map-voice-button:active { transform: scale(.97); }
.map-answer-chip:focus-visible, .map-number-action:focus-visible, .map-compose-answer:focus-visible, .map-voice-button:focus-visible { outline: 3px solid rgba(255,94,0,.22); outline-offset: 2px; border-color: var(--orange); }
.map-answer-chip.selected { color: #fff; border-color: var(--orange); background: var(--orange); }
.map-voice-control { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 2px; }
.map-voice-button { min-width: 126px; color: #fff; border-color: #327444; background: #327444; }
.map-voice-button[data-listening="true"] { border-color: var(--danger); background: var(--danger); }
.map-voice-status { color: var(--muted); line-height: 1.4; }
.map-voice-status.is-listening { color: #765800; }
.map-voice-status.is-success { color: var(--success); }
.map-voice-status.is-error { color: var(--danger); }
.map-draft-proof { display: grid; gap: 8px; margin-top: 8px; padding: 12px; border: 1px solid #c8ddca; border-radius: 12px; background: #f6fbf7; }
.map-draft-proof strong { overflow-wrap: anywhere; }
.map-draft-proof .map-draft-remove-proof { justify-self: start; }
.verification-date-summary { display: grid; gap: 4px; margin: 12px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.verification-date-summary span { color: var(--muted); font-size: .82rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.verification-date-summary strong { font-size: 1.08rem; }
.choice input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: var(--orange); }
.choice span { min-width: 0; }
.score-field { margin: 20px 0; }
.score-scale { display: grid; grid-template-columns: repeat(10, minmax(44px, 1fr)); gap: 8px; }
.score-choice { position: relative; cursor: pointer; }
.score-choice input { position: absolute; opacity: 0; pointer-events: none; }
.score-choice span { min-height: 48px; display: grid; place-items: center; border: 1px solid #cbd4cc; border-radius: 12px; background: #fff; font-weight: 900; color: var(--ink); }
.score-choice input:focus-visible + span { outline: 3px solid rgba(255,94,0,.22); border-color: var(--orange); }
.score-choice input:checked + span { color: #fff; border-color: var(--orange); background: linear-gradient(135deg, var(--orange), #f28a00); box-shadow: 0 6px 14px rgba(255,94,0,.2); }
.score-labels { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.protocol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 11px; }
.protocol-choice { position: relative; display: flex; min-height: 86px; cursor: pointer; }
.protocol-choice input { position: absolute; opacity: 0; pointer-events: none; }
.protocol-choice > span { width: 100%; display: grid; gap: 5px; align-content: center; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.protocol-choice small { color: var(--muted); line-height: 1.35; }
.protocol-choice input:checked + span { border-color: var(--orange); background: #fff5ec; box-shadow: inset 0 0 0 1px var(--orange); }
.protocol-choice input:focus-visible + span { outline: 3px solid rgba(255,94,0,.18); }
.conditional-panel, .protocol-summary { border-radius: 14px; }
.conditional-panel { padding: 15px; background: var(--soft); }
.notice, .message { border-radius: 12px; padding: 12px 14px; background: #fff4d4; color: #6d4d00; }
.message.error { background: #fef0ef; color: var(--danger); }
.delete-confirmation-content { display: grid; gap: 18px; }
.delete-confirmation-copy { margin: 0; color: var(--ink); font-size: 1.03rem; line-height: 1.55; }
.delete-confirmation-actions .button.wide { margin-top: 0; }
.delete-confirmation-actions .button.danger { box-shadow: 0 8px 20px rgba(180,35,24,.2); }
.page-title-with-help,
.card-title-with-help,
.section-head-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}
.page-title-with-help,
.card-title-with-help { gap: 4px; }
.page-title-with-help { align-items: flex-start; }
.page-title-with-help h1,
.card-title-with-help h2,
.card-title-with-help h3 { min-width: 0; margin-right: 0; }
.section-head-actions { flex: 0 0 auto; justify-content: flex-end; }
.fruit-up-refresh-button,
#communityRefresh,
#refreshGoogleIntegrations,
#loadConsistencyResetReport,
[data-refresh-walkability],
[data-refresh-zoom-replay],
#enableAdminMapAlerts {
  min-height: 38px;
  min-width: 0;
  flex: 0 0 auto;
  padding: 7px 11px;
  border-color: #176e3d;
  color: #fff;
  background: linear-gradient(135deg, #14944b 0 48%, #df3137 52% 100%);
  box-shadow: 0 5px 14px rgba(20, 103, 58, .18);
  font-size: .82rem;
  font-weight: 900;
}
.fruit-up-refresh-button:hover,
.fruit-up-refresh-button:focus-visible,
#communityRefresh:hover,
#communityRefresh:focus-visible,
#refreshGoogleIntegrations:hover,
#refreshGoogleIntegrations:focus-visible,
#loadConsistencyResetReport:hover,
#loadConsistencyResetReport:focus-visible,
[data-refresh-walkability]:hover,
[data-refresh-walkability]:focus-visible,
[data-refresh-zoom-replay]:hover,
[data-refresh-zoom-replay]:focus-visible,
#enableAdminMapAlerts:hover,
#enableAdminMapAlerts:focus-visible { color: #fff; border-color: #0f5a30; filter: brightness(1.06); }
.context-help-trigger {
  position: relative;
  z-index: 0;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  flex: 0 0 22px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: transform var(--motion-duration-instant) var(--motion-ease-smooth),
    filter var(--motion-duration-quick) var(--motion-ease-smooth);
}
.context-help-trigger::before {
  content: "";
  position: absolute;
  inset: -11px;
  border-radius: 50%;
}
/* The help affordance is the Fruit Up mark. This is sized for a 22px inline
   icon rather than reusing the launcher's orb styling, which paints an opaque
   dark disc built for a 36px button and would cover the logo at this size.
   The glow sits behind the logo and stays translucent so the mark reads on
   both light cards and the dark theme. */
.fruit-up-help-mark {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex: 0 0 auto;
  transition: transform var(--motion-duration-quick) var(--motion-ease-smooth);
}
.fruit-up-help-mark::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(44,196,113,.95) 0deg,
    rgba(205,255,72,.75) 70deg,
    rgba(44,196,113,.15) 140deg,
    rgba(255,71,57,.95) 210deg,
    rgba(255,140,60,.60) 270deg,
    rgba(44,196,113,.95) 360deg
  );
  filter: blur(2.5px);
  opacity: .9;
  pointer-events: none;
  will-change: transform;
  animation: fruit-up-guide-swirl var(--motion-duration-loop-slow) var(--motion-ease-linear) infinite;
}
.fruit-up-help-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.context-help-trigger:hover,
.context-help-trigger:focus-visible {
  filter: brightness(1.05);
}
.context-help-trigger:hover .fruit-up-help-mark,
.context-help-trigger:focus-visible .fruit-up-help-mark {
  transform: scale(1.08);
}
.context-help-trigger:focus-visible {
  outline: 2px solid rgba(16, 153, 76, .65);
  outline-offset: 2px;
}
.context-help-trigger:active { transform: scale(.96); }
.context-help-panel { display: grid; gap: 18px; }
.context-help-mark-explanation {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.45;
}
.context-help-summary {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.55;
}
.context-help-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 25px;
}
.context-help-steps li { padding-left: 4px; line-height: 1.5; }
.context-help-steps li::marker { color: var(--orange-dark); font-weight: 950; }
.context-help-note {
  padding: 15px 16px;
  border: 1px solid #d6e69c;
  border-radius: 15px;
  background: linear-gradient(135deg, #f8ffe6, #fff);
}
.context-help-note strong { color: #405b0c; }
.context-help-note p { margin: 5px 0 0; color: var(--ink); }
.context-help-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.context-help-footer p { margin: 0; color: var(--muted); font-size: .88rem; }
.context-help-footer .button { flex: 0 0 auto; }
.sleep-summary { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; margin: 4px 0 22px; padding: 14px 16px; border: 1px solid #bfd7c2; border-radius: 14px; background: #f4fbf5; color: #24552d; }
.sleep-summary.warning { border-color: #efb151; background: #fff7e8; color: #754d00; }
.sleep-summary.invalid { border-color: #e5a49f; background: #fff4f3; color: var(--danger); }
.sleep-summary strong { display: block; font-size: 1.08rem; }
.sleep-summary p { margin: 5px 0 0; line-height: 1.45; }
.receipt { width: 100%; border-collapse: collapse; }
.receipt th, .receipt td { padding: 12px 9px; text-align: left; border-bottom: 1px solid var(--line); }
.receipt th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.replay-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.replay-callout .button { flex: 0 0 auto; }
.replay-toolbar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) auto; gap: 14px; align-items: end; margin-bottom: 20px; }
.replay-toolbar-simple { grid-template-columns: minmax(0, 2fr) minmax(180px, .8fr); }
.replay-toolbar .field { margin: 0; }
.replay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.replay-intro { margin-bottom: 16px; background: linear-gradient(135deg, #fff9ee, #fff); border-color: #f1c77e; }
.replay-folder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.replay-folder-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 15px; align-items: center; min-height: 150px; }
.folder-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--orange), var(--gold)); font-size: 1.25rem; }
.replay-card { padding: 0; overflow: hidden; }
.replay-thumb, .replay-placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: linear-gradient(135deg, #272d28, #596a5c); }
.replay-placeholder { display: grid; place-items: center; color: white; font-size: 1.2rem; font-weight: 900; letter-spacing: .03em; }
.replay-body { padding: 20px; }
.replay-labels { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.replay-labels .status { font-size: .74rem; }
.replay-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.replay-attendance-explainer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 20px 0;
  border-color: #b6d64f;
  background: linear-gradient(135deg, #f7ffe2, #fff9ef 72%);
}
.replay-attendance-explainer-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 19px;
  color: #fff;
  background: linear-gradient(145deg, #193323, #0d1d14);
  box-shadow: inset 0 0 0 2px rgba(185,229,49,.48), 0 10px 26px rgba(32,64,36,.18);
  font-size: .9rem;
  font-weight: 950;
  letter-spacing: .05em;
}
.replay-attendance-explainer h2 { margin: 3px 0 9px; }
.replay-attendance-explainer ol { display: grid; gap: 7px; margin: 10px 0; padding-left: 22px; }
.replay-attendance-explainer p:last-child { margin-bottom: 0; }
.master-replay-attendance-actions { display: grid; gap: 9px; min-width: min(100%, 240px); }
.master-replay-attendance-buttons { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.master-replay-attendance-guidance { max-width: 560px; margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.replay-attendance-credit { width: max-content; }
.replay-attendance-legacy { width: max-content; }
[data-master-replay-open][aria-busy="true"] { cursor: wait; opacity: .72; }
.replay-save-button { margin-top: 10px; }
.master-replay-attendance-actions.is-compact .master-replay-attendance-buttons { justify-content: flex-end; }
.master-replay-attendance-actions.is-compact .master-replay-attendance-guidance { max-width: 340px; text-align: right; }
.replay-attendance-confirmation { display: grid; gap: 12px; }
.replay-attendance-confirmation > p { margin: 0; line-height: 1.55; }
.master-replay-follow-through { align-items: start; }
.meeting-grid, .community-grid, .resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; }
.community-grid { margin-top: 15px; }
.meeting-card, .community-card, .document-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 15px; align-items: center; }
.meeting-card .button, .community-card .button, .document-card .button { grid-column: 1 / -1; width: 100%; }
.meeting-icon, .facebook-logo, .document-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: #fff; font-weight: 900; }
.meeting-icon { background: linear-gradient(135deg, #2d8cff, #1265cf); font-size: 1.2rem; }
.facebook-logo { background: #1877f2; font-family: Arial, sans-serif; font-size: 2.6rem; line-height: 1; align-items: end; }
.document-icon { background: linear-gradient(135deg, #b42318, #e04f43); font-size: .78rem; letter-spacing: .04em; }
.meeting-schedule { margin: 6px 0; font-weight: 900; color: var(--ink); }
.facebook-button { color: #fff; background: #1877f2; }
.challenge-guide { margin-bottom: 18px; border-color: #f1c77e; background: linear-gradient(135deg, #fff9ee, #fff); }
.challenge-steps { display: grid; gap: 9px; padding-left: 22px; }
.challenge-requirements { margin: 16px 0; padding: 15px; border-radius: 13px; background: var(--soft); }
.challenge-requirements h3, .challenge-requirements p { margin: 0; }
.challenge-requirements p { margin-top: 7px; color: var(--muted); }
.reminder-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; border-color: #f8bf75; background: #fffaf1; }
.notification-setup-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  border-color: #b9d85f;
  background: linear-gradient(135deg, #f8ffe5, #fff 65%);
  box-shadow: 0 14px 34px rgba(63, 85, 24, .1);
}
.notification-setup-card h2 { margin: 3px 0 6px; font-size: clamp(1.35rem, 3vw, 1.85rem); }
.notification-setup-card p { margin: 0; line-height: 1.5; }
.notification-setup-icon,
.notification-opt-in-mark {
  display: grid;
  place-items: center;
  color: #263d10;
  background: var(--lime);
  box-shadow: 0 9px 24px rgba(89, 117, 22, .2);
}
.notification-setup-icon { width: 54px; height: 54px; border-radius: 17px; }
.notification-setup-icon svg { width: 27px; height: 27px; }
.notification-opt-in-panel { min-height: 0; padding: 2px 0 4px; }
.notification-opt-in-mark { width: 66px; height: 66px; margin-bottom: 20px; border-radius: 21px; }
.notification-opt-in-mark svg { width: 34px; height: 34px; }
.notification-opt-in-panel > p:not(.eyebrow, .message) { margin: 0; color: var(--muted); font-size: 1.03rem; line-height: 1.58; }
.notification-opt-in-benefits { display: grid; gap: 9px; margin: 22px 0; padding: 0; list-style: none; }
.notification-opt-in-benefits li { font-weight: 750; line-height: 1.4; }
.notification-opt-in-recovery {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--orange) 48%, var(--line));
  border-radius: 16px;
  color: var(--ink);
  background: color-mix(in srgb, var(--orange) 10%, var(--soft));
}
.notification-opt-in-recovery > strong { display: block; margin-bottom: 8px; }
.notification-opt-in-recovery ol { display: grid; gap: 8px; margin: 0; padding-left: 22px; }
.notification-opt-in-recovery small { margin-top: 12px; color: var(--muted); line-height: 1.45; }
.notification-opt-in-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.notification-opt-in-panel small { display: block; margin-top: 14px; color: var(--muted); }
.reminder-preferences-launcher { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.reminder-preferences-launcher h3, .reminder-preferences-launcher p { margin: 0; }
.reminder-preferences-launcher p { margin-top: 5px; }
.reminder-preferences-panel form { display: grid; gap: 16px; }
.reminder-preferences-panel .choices { margin: 0; }
.progress-chart { display: grid; gap: 16px; }
.progress-row > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.progress-row span { color: var(--muted); }
.progress-track { height: 12px; overflow: hidden; border-radius: 999px; background: #edf0ed; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), #f5ad00); }
.progress-ring-grid > .card { display: grid; place-items: center; }
.progress-ring-metric { width: 100%; display: grid; place-items: center; gap: 12px; text-align: center; }
.progress-ring { position: relative; width: clamp(106px, 24vw, 116px); aspect-ratio: 1; display: grid; place-items: center; }
.progress-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 10; }
.progress-ring-track { stroke: #e6ebe7; }
.progress-ring-value { stroke: var(--orange); stroke-linecap: round; }
.progress-ring-center { position: relative; z-index: 1; display: grid; gap: 1px; place-items: center; }
.progress-ring-center strong { color: var(--ink); font-size: clamp(1.35rem, 5vw, 1.8rem); line-height: 1; }
.progress-ring-center span { color: var(--muted); font-size: .7rem; font-weight: 800; }
.progress-ring-copy { display: grid; gap: 3px; }
.progress-ring-copy strong { color: var(--ink); }
.progress-ring-copy span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.dashboard-actions, .challenge-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.delivery-center { margin-top: 20px; }
.section-head.compact { margin: 0 0 12px; }
.connection { padding: 6px 10px; border-radius: 999px; font-weight: 800; font-size: .8rem; }
.connection.online { color: var(--success); background: #e7f7e8; }
.connection.offline { color: var(--danger); background: #fef0ef; }
.delivery-list { display: grid; gap: 10px; }
.delivery-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.delivery-row:first-child { border-top: 0; }
.delivery-error { grid-column: 1 / -1; margin: 0; }
.retry-link { display: inline-block; margin-left: 8px; color: var(--orange-dark); }
.goal-editor { margin-top: 16px; }
.legacy-badge-board { margin-top: 26px; }
.badge-board-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; padding: 24px; border: 1px solid #d7e6aa; border-radius: 20px; background: linear-gradient(135deg, #f8ffe6, #fff 58%); box-shadow: 0 14px 34px rgba(36, 55, 24, .08); }
.badge-board-summary > div { display: grid; min-width: 118px; padding-right: 22px; border-right: 1px solid #d7e6aa; }
.badge-summary-count { color: #263d10; font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 950; line-height: .95; letter-spacing: -.06em; }
.badge-board-summary p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.55; }
.badge-category-list { display: grid; gap: 12px; margin-top: 16px; }
.badge-category { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(34, 47, 34, .05); }
.badge-category summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 22px; cursor: pointer; list-style: none; user-select: none; }
.badge-category summary::-webkit-details-marker { display: none; }
.badge-category summary > span:first-child { display: grid; gap: 3px; }
.badge-category summary strong { color: var(--ink); font-size: 1.05rem; }
.badge-category summary small { color: var(--muted); }
.badge-category .badge-grid { padding: 0 18px 18px; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 13px; }
.badge-card { position: relative; display: flex; min-height: 238px; flex-direction: column; overflow: hidden; padding: 19px; border: 1px solid #e2e8df; border-radius: 16px; background: #fbfcfb; }
.badge-card.earned { border-color: #d9bc55; background: linear-gradient(145deg, #fffef8, #fff7d7); box-shadow: inset 0 3px 0 #efd35d; }
.badge-card.locked { background: linear-gradient(145deg, #fbfcfb, #f5f7f4); }
.badge-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.badge-icon { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid #dbe3d7; border-radius: 15px; background: #fff; color: #4d5e49; font-size: .9rem; font-weight: 950; letter-spacing: -.02em; }
.badge-card.earned .badge-icon { color: #fff; border-color: #c99f19; background: linear-gradient(135deg, #d4ae2d, var(--orange)); box-shadow: 0 8px 18px rgba(218, 144, 22, .22); }
.badge-card h3 { margin: 16px 0 6px; font-size: 1.03rem; }
.badge-card p { margin: 0; font-size: .91rem; line-height: 1.5; }
.badge-progress { display: grid; gap: 6px; margin-top: auto; padding-top: 16px; }
.badge-progress > div:first-child { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; font-weight: 800; }
.badge-progress .progress-track { height: 8px; }
.badge-progress .progress-track span { background: linear-gradient(90deg, #9bc324, var(--lime)); }
.badge-card.earned .badge-progress .progress-track span { background: linear-gradient(90deg, #d3ae2d, var(--orange)); }
.challenge-privacy { margin-bottom: 18px; border-color: #c8ddca; background: #f7fcf7; }
.challenge-grid { display: grid; gap: 18px; }
.challenge-card { padding: clamp(20px, 4vw, 30px); }
.fruit-up-game-logo {
  display: inline-grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid rgba(108, 145, 25, .28);
  border-radius: 15px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 20px rgba(32, 51, 23, .1);
}
.fruit-up-game-logo img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.challenge-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.challenge-card .progress-row { margin: 20px 0; }
.challenge-actions { margin-top: 12px; }
.content-disclosure { overflow: clip; }
.content-disclosure > summary { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; list-style: none; user-select: none; }
.content-disclosure > summary::-webkit-details-marker { display: none; }
.content-disclosure-heading { display: grid; gap: 3px; min-width: 0; }
.content-disclosure-heading .eyebrow { margin: 0; font-size: .7rem; }
.content-disclosure-heading strong { color: var(--ink); font-size: 1.02rem; overflow-wrap: anywhere; }
.content-disclosure-heading small { color: var(--muted); font-size: .82rem; font-weight: 650; line-height: 1.35; }
.content-disclosure-toggle { display: inline-flex; min-width: 72px; min-height: 38px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--soft); font-size: .76rem; font-weight: 900; }
.content-disclosure-toggle .when-open { display: none; }
.content-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.content-disclosure[open] .content-disclosure-toggle .when-open { display: inline; }
.content-disclosure[open] .content-disclosure-toggle .when-closed { display: none; }
.content-disclosure-body { padding: 18px; animation: content-disclosure-enter var(--motion-duration-standard) var(--motion-ease-smooth) both; }
.content-disclosure-body > :first-child { margin-top: 0; }
.content-disclosure-body > :last-child { margin-bottom: 0; }
.member-game-guide { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.member-game-guide.card { margin-bottom: 18px; padding: 0; }
.member-game-guide > summary { min-height: 62px; padding-block: 13px; }
.member-game-guide-steps { display: grid; gap: 10px; margin: 12px 0; padding-left: 22px; }
.member-game-guide-steps li { min-height: 0; display: list-item; border: 0; line-height: 1.5; }
.member-game-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.member-game-guide-grid section { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.member-game-guide-grid h3 { margin: 0 0 6px; font-size: .98rem; }
.member-game-guide-grid p { margin: 0; color: var(--muted); line-height: 1.5; }
.daily-quest-guide-body { display: grid; gap: 16px; }
.daily-quest-guide-intro,
.daily-quest-guide-note { margin: 0; line-height: 1.5; }
.daily-quest-guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.daily-quest-guide-steps section {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.daily-quest-guide-steps section > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--success), #155f27);
  font-size: .82rem;
  font-weight: 950;
}
.daily-quest-guide-steps strong { display: block; color: var(--ink); font-size: .93rem; }
.daily-quest-guide-steps p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.daily-quest-standard {
  display: grid;
  gap: 3px;
  padding: 13px 15px;
  border-left: 4px solid var(--lime);
  border-radius: 0 12px 12px 0;
  background: color-mix(in srgb, var(--lime) 13%, #fff);
}
.daily-quest-standard strong { color: var(--ink); font-size: .88rem; }
.daily-quest-standard span { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.daily-quest-guide-note { color: var(--muted); font-size: .8rem; }
.challenge-guide, .challenge-privacy { padding: 0; }
.challenge-information-disclosure, .challenge-board-disclosure { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.challenge-information-disclosure .content-disclosure-body, .challenge-board-disclosure .content-disclosure-body { padding: 0 16px 16px; }
.challenge-information-disclosure .challenge-requirements { margin-top: 16px; }
.challenge-information-disclosure .challenge-protocol-copy { margin-bottom: 0; }
.challenge-board-disclosure .challenge-board { margin-top: 0; padding-top: 14px; border-top: 0; }
@keyframes content-disclosure-enter {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 900px) {
  .daily-quest-guide > summary { padding: 16px 20px; }
  .daily-quest-guide-body {
    gap: 18px;
    padding: 22px 24px 24px;
  }
  .daily-quest-guide-intro {
    max-width: 760px;
    font-size: .95rem;
  }
  .daily-quest-guide-steps { align-items: stretch; }
  .daily-quest-guide-steps section {
    min-height: 86px;
    align-content: start;
    padding: 16px;
  }
  .daily-quest-standard {
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
  }
  .daily-quest-standard span {
    padding-left: 18px;
    border-left: 1px solid color-mix(in srgb, var(--lime) 55%, var(--line));
  }
}
.leaderboard { margin: 12px 0 0; padding: 0; list-style-position: inside; }
.leaderboard li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); }
.leaderboard li.current { color: var(--orange-dark); background: #fff8f2; font-weight: 800; }
.leaderboard li span b { display: inline-grid; width: 26px; height: 26px; margin-right: 7px; place-items: center; border-radius: 50%; color: #27350f; background: #e9f7be; font-size: .78rem; }
.challenge-board { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.challenge-consent { align-items: flex-start; margin-top: 16px; border-color: #bfd56b; background: #fbffe9; }
.challenge-consent span { display: grid; gap: 5px; }
.challenge-consent small { color: var(--muted); font-weight: 550; line-height: 1.45; }
.challenge-accountability-choice[hidden] { display: none; }
.challenge-accountability-status { display: grid; gap: 5px; margin: 16px 0; padding: 15px 16px; border: 1px solid #c5d98b; border-radius: 14px; color: #263715; background: #f7fce9; }
.challenge-accountability-status span { color: #58644c; font-size: .9rem; line-height: 1.45; }
.challenge-protocol-copy { display: grid; gap: 13px; margin: 18px 0; padding: 20px; border: 1px solid #dce6c1; border-radius: 17px; background: #fbfdf6; }
.challenge-protocol-copy h3, .challenge-protocol-copy p { margin: 0; }
.challenge-protocol-copy ul { display: grid; gap: 7px; margin: 0; padding-left: 21px; line-height: 1.48; }
.challenge-protocol-promise { color: #27381b; font-size: 1.03rem; font-weight: 780; line-height: 1.5; }
.high-water-fruit-list { padding: 17px; border: 1px solid #cdddaa; border-radius: 15px; background: #fff; }
.high-water-fruit-list ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 22px; margin: 10px 0 12px; padding-left: 24px; }
.high-water-fruit-list p { color: var(--muted); font-size: .88rem; }
.challenge-verification-preview { padding: 17px; border-radius: 15px; background: #eef6da; }
.challenge-agreement-dialog { width: min(720px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); overflow: auto; padding: 0; border: 1px solid #d7e1d4; border-radius: 24px; color: var(--ink); background: #fff; box-shadow: 0 28px 90px rgba(18, 29, 20, .3); }
.challenge-agreement-dialog::backdrop { background: rgba(22, 31, 24, .58); backdrop-filter: blur(7px); }
.challenge-agreement-dialog > div { position: relative; padding: clamp(22px, 5vw, 34px); }
.challenge-agreement-dialog .dialog-close-button { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border: 1px solid #dae2db; border-radius: 50%; color: #344139; background: #fff; font-size: 1.45rem; cursor: pointer; }
.challenge-agreement-dialog h2 { max-width: calc(100% - 50px); margin: 5px 0 18px; }
.challenge-agreement-confirmation { margin: 18px 0; padding: 16px; border-color: #a9c657; background: #f8ffe8; }
.challenge-agreement-confirmation span { display: grid; gap: 4px; }
.challenge-agreement-confirmation small { color: var(--muted); line-height: 1.45; }
.challenge-agreement-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 5px; }
.challenge-execution-fields { display: grid; gap: 12px; margin-top: 15px; }
.challenge-execution-fields[hidden] { display: none; }
.challenge-activity { margin-bottom: 18px; border-color: #a8c94a; background: linear-gradient(135deg, #f8ffe5, #fff); }
.challenge-activity-compact { padding: 0; overflow: clip; }
.challenge-activity-summary { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; cursor: pointer; list-style: none; }
.challenge-activity-summary::-webkit-details-marker { display: none; }
.challenge-activity-summary-copy { display: grid; gap: 3px; min-width: 0; }
.challenge-activity-summary-copy .eyebrow { margin: 0; font-size: .7rem; }
.challenge-activity-summary-copy strong { overflow-wrap: anywhere; }
.challenge-activity-summary-action { display: inline-flex; min-width: 70px; min-height: 38px; align-items: center; justify-content: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--soft); font-size: .78rem; font-weight: 900; }
.challenge-activity-summary-action .when-open { display: none; }
.challenge-activity-compact[open] .challenge-activity-summary-action .when-open { display: inline; }
.challenge-activity-compact[open] .challenge-activity-summary-action .when-closed { display: none; }
.challenge-activity-compact[open] .challenge-activity-summary { border-bottom: 1px solid var(--line); }
.challenge-activity-list { display: grid; gap: 0; }
.challenge-activity-compact .challenge-activity-list { padding: 0 18px; }
.challenge-activity-list > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.challenge-activity-list > div:first-child { border-top: 0; }
.challenge-activity-copy { display: grid; gap: 2px; min-width: 0; line-height: 1.35; }
.challenge-activity-copy small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.challenge-activity-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #1d2d08; background: var(--lime); font-weight: 950; }
.challenge-activity-you { color: var(--muted); font-size: .78rem; font-weight: 850; }
.compact-support-button { min-height: 40px; margin: 0; padding: 8px 11px; white-space: nowrap; font-size: .78rem; }
.weekend-map-guide { margin-bottom: 18px; color: #fff; border-color: #4d614f; background: linear-gradient(135deg, #18231b, #34483a); }
.weekend-map-guide .eyebrow, .weekend-map-guide h2 { color: var(--lime); }
.weekend-map-guide p { color: #e1eae2; line-height: 1.55; }
.weekend-closed-card { max-width: 760px; margin: 0 auto; text-align: center; border-color: #b8d450; background: linear-gradient(145deg, #f8ffe5, #fff); }
.weekend-map-intro { margin: 0 -10px 4px; padding: 22px !important; border: 1px solid #526651 !important; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #18231b, #34483a); }
.weekend-map-intro .eyebrow, .weekend-map-intro h2 { color: var(--lime); }
.weekend-map-intro p { color: #e2ebe3; line-height: 1.55; }
.weekend-map-intro .notice { color: #6d4d00; }
.sunday-prep-section { margin-top: 6px; padding: 24px 18px !important; border: 1px solid #b8d450 !important; border-radius: 16px; background: linear-gradient(145deg, #f8ffe5, #fff); }
.urgent-card { border-color: #f3b4af; background: #fff6f5; }
.alert-urgent { background: #fff6f5; }
.alert-attention { background: #fffbef; }
.admin-table-wrap { overflow-x: auto; margin-top: 18px; }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: 7px; min-width: 270px; }
.spotify-host-connection {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* My Day Schedule: private, schedule-aware MAP timing for night, rotating,
   split, and on-call members. */
.my-day-schedule-card,
.profile-map-schedule-settings,
.weekly-map-schedule {
  border: 1px solid color-mix(in srgb, var(--lime, #b7ee2c) 48%, var(--line));
  background:
    radial-gradient(circle at 92% 8%, rgba(183, 238, 44, .14), transparent 34%),
    var(--surface, #fff);
}
.my-day-schedule-card {
  display: grid;
  gap: 18px;
  margin-block: 18px;
  overflow: hidden;
}
.my-day-schedule-heading,
.my-day-schedule-actions,
.weekly-schedule-day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.my-day-schedule-heading h2,
.profile-map-schedule-settings h3,
.weekly-map-schedule h2 { margin-block: 4px 0; }
.my-day-schedule-hours {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-size: clamp(1.45rem, 5vw, 2.2rem);
}
.my-day-schedule-hours span {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
}
.my-day-window-list {
  display: grid;
  gap: 8px;
  margin: 0;
}
.my-day-window-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(150px, auto);
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-2, #f4f6f2) 88%, transparent);
}
.my-day-window-list dt { font-weight: 800; }
.my-day-window-list dd { margin: 0; color: var(--muted); text-align: right; }
.profile-map-schedule-settings {
  margin-block: 18px;
  padding: 20px;
  border-radius: 20px;
}
.profile-map-schedule-rules { margin-block: 14px; padding-left: 22px; }
.profile-map-schedule-rules li + li { margin-top: 7px; }
.weekly-schedule-days { display: grid; gap: 12px; margin-block: 16px; }
.weekly-schedule-day {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface, #fff);
}
.weekly-schedule-day-heading { margin-bottom: 12px; }
.weekly-schedule-day-heading small { color: var(--muted); }
.weekly-schedule-times[hidden],
#weeklyMapScheduleDays[hidden],
#mapScheduleDefaultTimes[hidden],
#mapScheduleOnCallHelp[hidden] { display: none !important; }
.my-day-schedule-sheet form { display: grid; gap: 16px; }
html[data-theme="dark"] .my-day-schedule-card,
html[data-theme="dark"] .profile-map-schedule-settings,
html[data-theme="dark"] .weekly-map-schedule {
  background:
    radial-gradient(circle at 92% 8%, rgba(183, 238, 44, .14), transparent 34%),
    var(--surface, #17221d);
}
@media (max-width: 560px) {
  .my-day-window-list > div { grid-template-columns: 1fr; }
  .my-day-window-list dd { text-align: left; }
  .my-day-schedule-actions > .button,
  .my-day-schedule-actions > .text-button { width: 100%; }
}
.spotify-host-connection h3 {
  margin: 2px 0 8px;
  font-size: 1rem;
}
.admin-map-alert-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; border-left: 5px solid var(--lime); }
.admin-alert-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.master-home-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; margin-bottom: 20px; border-color: #cbdca0; background: linear-gradient(135deg, #faffea, #fff); }
.master-home-card.live { color: #fff; border-color: #36422f; background: linear-gradient(135deg, #202a22, #40513c); }
.master-home-card.live .muted { color: #d7e2d4; }
.master-home-card h2 { margin-top: 7px; }
.master-feature-image { width: 100%; margin: 0 0 20px; overflow: hidden; border: 1px solid #4e5f51; border-radius: 22px; background: #111813; box-shadow: 0 18px 46px rgba(23,35,26,.16); }
.master-feature-image img { display: block; width: 100%; height: auto; }
.master-music-host { display: block; min-width: 0; }
.master-music-host:empty { display: none; }
.master-music-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; margin: 0 0 20px; border-color: #b7d68b; background: linear-gradient(135deg, #f4ffe7, #fff); }
.master-music-card.is-last-known { border-color: #d4c49c; background: linear-gradient(135deg, #fff9e9, #fff); }
.master-music-art { width: 112px; height: 112px; border-radius: 16px; object-fit: cover; box-shadow: 0 12px 30px rgba(22,36,24,.18); }
.master-music-copy h2 { margin: 4px 0; }
.master-music-copy p { margin: 5px 0; }
.master-music-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.master-state-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.master-countdown { font-size: clamp(1.25rem, 4vw, 2.1rem); font-weight: 950; color: var(--lime); }
.replay-passcode { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; color: var(--muted); font-size: .86rem; font-weight: 750; }
.replay-passcode code { padding: 5px 8px; border: 1px solid #c8d7c6; border-radius: 8px; color: var(--ink); background: #f5f8f4; font-size: .88rem; letter-spacing: .05em; }
.replay-passcode-copy { display: inline-flex; min-height: 32px; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid #94bd57; border-radius: 999px; color: #294c14; background: #f5fce8; font: inherit; font-size: .76rem; font-weight: 900; cursor: pointer; transition: transform var(--motion-duration-quick) var(--motion-ease-smooth), background var(--motion-duration-quick) var(--motion-ease-smooth); }
.replay-passcode-copy:hover, .replay-passcode-copy:focus-visible { transform: translateY(-1px); background: #e9f9c7; }
.replay-passcode-copy.is-copied { color: #1f4d10; border-color: #63a525; background: var(--lime); }
.master-hero { background: linear-gradient(135deg, #18211b, #344330); border: 1px solid #53674c; }
.master-hero.live { box-shadow: 0 0 0 4px rgba(185,229,49,.18), 0 20px 55px rgba(20,30,22,.22); }
.master-hero .eyebrow { color: var(--lime); }
.master-hero .master-countdown { position: relative; z-index: 1; }
.master-reminder { display: inline-block; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.1); }
.today-challenge { position: relative; z-index: 1; display: grid; gap: 4px; max-width: 720px; margin-top: 20px; padding: 16px; border: 1px solid rgba(185,229,49,.44); border-radius: 14px; background: rgba(20,28,22,.42); }
.today-challenge strong { color: var(--lime); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.master-primary-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.master-join { min-height: 58px; min-width: min(360px, 100%); font-size: 1.08rem; background: linear-gradient(135deg, #89bd00, #b9e531) !important; color: #14200f !important; }
.master-phase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 15px; margin-top: 18px; }
.master-archive-section { margin-top: 18px; }
.master-archive > summary,
.admin-published-archive > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  list-style: none;
}
.master-archive > summary::-webkit-details-marker,
.admin-published-archive > summary::-webkit-details-marker { display: none; }
.master-archive > summary strong,
.admin-published-archive > summary strong { display: block; font-size: 1.15rem; }
.master-archive-list { display: grid; gap: 12px; margin-top: 16px; }
.master-archive-item {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.master-archive-heading {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.master-archive-item h3 { margin: 3px 0; }
.master-archive-item p { margin-bottom: 8px; }
.master-archive-more { margin-top: 16px; }
.admin-published-archive { margin: 16px 0; }
.master-response-card { margin-top: 18px; border-color: #cbdca0; }
.live-notices { display: grid; gap: 10px; margin: 16px 0; }
.live-notices .notice { border-left: 5px solid var(--lime); background: #f8ffe5; }
.live-notices p { margin: 6px 0 0; }
.discussion-panel { display: grid; gap: 18px; }
.discussion-list { display: grid; gap: 10px; max-height: 460px; overflow-y: auto; }
.discussion-post { padding: 13px 15px; border-radius: 13px; background: var(--soft); }
.discussion-post p { margin: 5px 0 0; white-space: pre-wrap; }
.discussion-post.admin { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 10px; }
.next-session-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 20px; border-color: #cbdca0; }
.next-session-card > strong { font-size: 1.5rem; color: var(--orange-dark); }
.calendar-toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 14px; }
.calendar-toolbar h2 { margin: 0; text-align: center; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.calendar-weekday { padding: 11px 8px; text-align: center; color: var(--muted); background: var(--soft); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.calendar-day { min-height: 118px; padding: 8px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.empty { background: #fafbfa; }
.calendar-day.today { background: #fbffe9; box-shadow: inset 0 0 0 2px var(--lime); }
.calendar-number { display: inline-grid; width: 28px; height: 28px; place-items: center; margin-bottom: 5px; border-radius: 50%; font-weight: 900; }
.calendar-day.today .calendar-number { color: #15200f; background: var(--lime); }
.calendar-chip { display: block; width: 100%; min-height: 0; margin: 4px 0; padding: 5px 6px; overflow: hidden; border: 0; border-radius: 7px; background: #eef2ee; color: var(--ink); font-size: .72rem; font-weight: 800; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.calendar-chip.type-master_your_day { background: #dff5a2; }
.calendar-chip.type-coaching { background: #e5efff; }
.calendar-chip.calendar-tone-xavier { background: #ece4ff; color: #43217d; box-shadow: inset 3px 0 0 #7b61d1; }
.calendar-chip.type-challenge { background: #fff0d9; }
.calendar-more { color: var(--muted); font-size: .7rem; font-weight: 700; }
.calendar-mobile-events { display: none; }
.calendar-mobile-event-dot { border: 0; border-radius: 999px; background: var(--orange); cursor: pointer; }
.calendar-mobile-event-dot.type-master_your_day { background: var(--lime); }
.calendar-mobile-event-dot.type-coaching { background: #2d8cff; }
.calendar-mobile-event-dot.calendar-tone-xavier { background: #7b61d1; }
.calendar-mobile-event-dot.type-challenge { background: var(--gold); }
.calendar-mobile-event-dot.type-community { background: #7b61d1; }
.calendar-mobile-event-count { color: var(--muted); font-size: .63rem; font-weight: 850; }
.calendar-agenda { display: grid; gap: 12px; }
.calendar-event-card { position: relative; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 16px; overflow: hidden; }
.calendar-event-card.has-image { grid-template-columns: 8px 124px minmax(0, 1fr) auto; }
.calendar-event-card-image { width: 124px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 15px; background: var(--soft); box-shadow: 0 8px 22px rgba(23, 38, 27, .12); }
.calendar-admin-shortcut { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-color: rgba(114, 160, 35, .42); background: linear-gradient(145deg, #fbfff2, #fff); }
.calendar-admin-shortcut > div { min-width: 0; }
.calendar-admin-shortcut h2 { margin: 3px 0 7px; }
.calendar-admin-shortcut .button { flex: 0 0 auto; }
.event-accent { align-self: stretch; border-radius: 999px; background: var(--orange); }
.calendar-event-card.type-master_your_day .event-accent { background: var(--lime); }
.calendar-event-card.type-coaching .event-accent { background: #2d8cff; }
.calendar-event-card.calendar-tone-xavier .event-accent { background: #7b61d1; }
.calendar-event-card.type-challenge .event-accent { background: var(--gold); }
.calendar-event-card h3 { margin: 4px 0; }
.calendar-event-dialog { width: min(610px, calc(100vw - 24px)); max-height: min(780px, calc(100dvh - 24px)); overflow: auto; border: 1px solid #d9e1da; border-radius: 26px; padding: 0; color: var(--ink); background: #fff; box-shadow: 0 28px 90px rgba(19, 31, 22, .28); }
.calendar-event-dialog::backdrop { background: rgba(24, 34, 27, .52); backdrop-filter: blur(7px); }
.calendar-event-dialog > div { position: relative; padding: 30px; }
.calendar-event-dialog-close { position: absolute; z-index: 2; top: 16px; right: 16px; }
.calendar-event-dialog-close button { width: 42px; height: 42px; border: 1px solid #dce3dd; border-radius: 50%; background: rgba(255,255,255,.94); color: #344139; box-shadow: 0 5px 18px rgba(22,35,25,.08); font-size: 1.5rem; cursor: pointer; }
.calendar-event-dialog-header { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 16px; align-items: stretch; padding: 4px 54px 22px 0; border-bottom: 1px solid var(--line); }
.calendar-event-dialog-header h2 { max-width: 460px; margin: 5px 0 0; font-size: clamp(1.65rem, 5vw, 2.35rem); letter-spacing: -.025em; }
.calendar-event-dialog-image { margin: 20px 0 0; overflow: hidden; border-radius: 19px; background: var(--soft); box-shadow: 0 12px 30px rgba(23, 38, 27, .13); }
.calendar-event-dialog-image img { width: 100%; max-height: 330px; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.calendar-event-type-mark { width: 10px; border-radius: 999px; background: var(--orange); }
.calendar-event-dialog-header.type-master_your_day .calendar-event-type-mark { background: #8db927; }
.calendar-event-dialog-header.type-coaching .calendar-event-type-mark { background: #2d8cff; }
.calendar-event-dialog-header.calendar-tone-xavier .calendar-event-type-mark { background: #7b61d1; }
.calendar-event-dialog-header.type-challenge .calendar-event-type-mark { background: var(--gold); }
.calendar-event-dialog-header.type-community .calendar-event-type-mark { background: #7b61d1; }
.calendar-event-dialog-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.calendar-event-dialog-facts > div { display: grid; gap: 5px; min-width: 0; padding: 14px 15px; border: 1px solid #e4e9e5; border-radius: 15px; background: #f8faf8; }
.calendar-event-dialog-facts > div:first-child { grid-column: 1 / -1; }
.calendar-event-dialog-facts span, .calendar-event-dialog-description > span { color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.calendar-event-dialog-facts strong { line-height: 1.45; overflow-wrap: anywhere; }
.calendar-event-dialog-description { margin: 0; padding: 18px; border: 1px solid #dfe8c8; border-radius: 17px; background: linear-gradient(145deg, #fbfff1, #fff); }
.calendar-event-dialog-description p { margin: 7px 0 0; line-height: 1.62; white-space: pre-wrap; }
.calendar-event-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.calendar-event-dialog-actions form { margin: 0; }
.map-receipt-dialog { width: min(500px, calc(100vw - 22px)); padding: 0; border: 1px solid #d9e4d3; border-radius: 25px; color: var(--ink); background: #fff; box-shadow: 0 28px 90px rgba(18, 30, 20, .3); }
.map-receipt-dialog::backdrop { background: rgba(22, 32, 24, .57); backdrop-filter: blur(7px); }
.map-receipt-dialog > div { padding: clamp(25px, 6vw, 36px); text-align: center; }
.map-receipt-dialog h2 { margin: 5px 0 10px; font-size: clamp(1.8rem, 7vw, 2.5rem); }
.map-receipt-message { margin: 0; font-size: 1.05rem; line-height: 1.58; }
.map-receipt-connected {
  margin: 17px 0 0;
  padding: 14px 16px;
  border: 1px solid #cfe39a;
  border-radius: 16px;
  background: #f8fce9;
  text-align: left;
}
.map-receipt-connected > strong { display: block; color: #365c0e; }
.map-receipt-connected ul { display: grid; gap: 5px; margin: 8px 0; padding-left: 20px; font-size: .86rem; line-height: 1.4; }
.map-receipt-connected small { color: var(--muted); font-weight: 760; }
.map-receipt-next { display: grid; gap: 5px; margin: 22px 0; padding: 17px; border: 1px solid #dce8be; border-radius: 16px; background: #f8fce9; }
.map-receipt-next span { color: var(--muted); font-size: .73rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.map-receipt-actions { display: grid; gap: 9px; }
.map-receipt-actions .button { width: 100%; }
.event-time { margin: 4px 0; font-weight: 850; }
.admin-calendar-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 16px; }
.calendar-admin-image-field { display: grid; gap: 14px; margin: 18px 0; padding: 17px; border: 1px solid #cfe0b7; border-radius: 16px; background: linear-gradient(145deg, #fbfff2, #fff); }
.calendar-admin-image-field h3 { margin: 3px 0 0; }
.calendar-admin-image-preview { position: relative; width: min(100%, 430px); overflow: hidden; border-radius: 16px; background: var(--soft); box-shadow: 0 10px 28px rgba(23, 38, 27, .14); }
.calendar-admin-image-preview[hidden] { display: none; }
.calendar-admin-image-preview img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.calendar-admin-image-preview span { position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border-radius: 999px; color: #fff; background: rgba(17, 29, 20, .78); font-size: .7rem; font-weight: 850; }
.master-admin-fields { margin: 20px 0; padding: 18px; border: 1px solid #cbdca0; border-radius: 14px; background: #fbfff1; }
.admin-discussion { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.admin-tabs { position: sticky; top: 124px; z-index: 20; display: flex; gap: 8px; margin: 0 0 20px; padding: 10px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 8px 25px rgba(31,43,34,.08); scrollbar-width: thin; }
.admin-tabs button { min-height: 44px; padding: 10px 14px; flex: 0 0 auto; border: 1px solid transparent; border-radius: 11px; color: var(--muted); background: transparent; font-weight: 850; cursor: pointer; }
.admin-tabs button[aria-selected="true"] { color: #21320d; border-color: #9ebf38; background: #eef9cb; }
.admin-tabs button:focus-visible { outline: 3px solid rgba(236,111,35,.28); outline-offset: 2px; }
.admin-panel[hidden] { display: none; }
.admin-guide-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr); gap: 24px; align-items: center; margin-bottom: 18px; border-color: #a8c94a; background: linear-gradient(135deg, #fbffe9, #fff); }
.admin-guide-card h2 { margin: 5px 0 9px; }
.admin-guide-card p { line-height: 1.55; }
.admin-guide-actions { display: grid; gap: 10px; }
.admin-guide-actions small { color: var(--muted); line-height: 1.45; }
.map-question-help { display: block; margin: 6px 0 0; color: var(--muted); line-height: 1.45; }
.map-purpose-card {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 20px;
  margin: 0 0 18px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid #b9d45c;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7ffe1, #fff);
  box-shadow: 0 12px 32px rgba(48,74,25,.07);
}
.map-purpose-card.is-paused { border-color: #e7b66c; background: linear-gradient(135deg, #fff5df, #fff); }
.map-purpose-card h2 { margin: 5px 0 8px; font-size: clamp(1.25rem, 3vw, 1.7rem); }
.map-purpose-card p { margin: 0; line-height: 1.55; }
.map-purpose-facts { display: grid; gap: 10px; }
.map-purpose-facts p { display: grid; gap: 3px; padding: 11px 13px; border: 1px solid rgba(112,143,45,.18); border-radius: 13px; background: rgba(255,255,255,.75); }
.map-purpose-facts strong { color: #31520d; font-size: .75rem; letter-spacing: .045em; text-transform: uppercase; }
.map-purpose-facts span { color: var(--muted); }
.map-purpose-card.is-paused .map-purpose-facts strong { color: #8a430d; }
.map-paused-card { max-width: 720px; margin-inline: auto; border-color: #e7b66c; }
.map-card.is-paused { border-color: #e1b56d; background: linear-gradient(145deg, #fff9ed, #fff); }
.map-card.is-paused:hover { border-color: #c88327; }
html[data-theme="dark"] .map-purpose-card { border-color: #617b2d; background: linear-gradient(135deg, #1f2e1b, #18231a); }
html[data-theme="dark"] .map-purpose-card.is-paused,
html[data-theme="dark"] .map-card.is-paused { border-color: #7c582c; background: linear-gradient(135deg, #2b2419, #1c211a); }
html[data-theme="dark"] .map-purpose-facts p { border-color: var(--line); background: rgba(255,255,255,.035); }
html[data-theme="dark"] .map-purpose-facts strong { color: #c8ed72; }
html[data-theme="dark"] .map-purpose-card.is-paused .map-purpose-facts strong { color: #ffc27a; }
@media (max-width: 700px) { .map-purpose-card { grid-template-columns: 1fr; gap: 14px; } }
.admin-map-controls-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.admin-map-toggle-grid { display: grid; gap: 10px; margin: 18px 0; }
.admin-map-toggle { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; min-height: 64px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfb; cursor: pointer; }
.admin-map-toggle input { width: 22px; height: 22px; accent-color: #759c16; }
.admin-map-toggle span { display: grid; gap: 3px; min-width: 0; }
.admin-map-toggle small { color: var(--muted); line-height: 1.35; }
.photo-editor { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.photo-large { width: 92px; height: 92px; border: 2px solid #111; border-radius: 50%; background: #fff0e7; display: grid; place-items: center; overflow: hidden; font-size: 2rem; font-weight: 900; color: var(--orange-dark); box-shadow: -4px 0 16px rgba(12,168,79,.5), 4px 0 16px rgba(239,45,45,.4); }
.photo-large img { width: 100%; height: 100%; object-fit: cover; }
.busy { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; background: rgba(29,37,32,.14); backdrop-filter: blur(1.5px); font-weight: 800; }
.busy-card { display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 14px 18px; border: 1px solid rgba(255,255,255,.7); border-radius: 16px; color: var(--ink); background: rgba(255,255,255,.96); box-shadow: var(--surface-shadow-raised); }
.challenge-support-button { display: block; margin-top: 12px; }
.app-update-banner {
  position: fixed;
  z-index: 125;
  top: max(14px, calc(env(safe-area-inset-top) + 8px));
  right: max(14px, calc(env(safe-area-inset-right) + 8px));
  left: max(14px, calc(env(safe-area-inset-left) + 8px));
  width: auto;
  max-width: 680px;
  margin-inline: auto;
}
.app-update-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 15px 16px; border: 1px solid #94bd28; border-radius: 16px; color: #fff; background: #202a22; box-shadow: 0 20px 60px rgba(15,24,17,.28); }
.app-update-card strong { display: block; color: var(--lime); }
.app-update-card p { margin: 4px 0 0; color: #e4ece5; font-size: .9rem; }
.app-update-card .button { white-space: nowrap; }
.zoom-replay-automation { display: grid; gap: 16px; margin-bottom: 20px; }
.zoom-replay-job { border-color: color-mix(in srgb, var(--orange) 24%, var(--line)); }
.zoom-draft-fields { display: grid; gap: 14px; margin-top: 14px; }
.zoom-dismiss-controls { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.zoom-dismiss-controls summary { cursor: pointer; color: var(--muted); font-weight: 800; }
.zoom-dismiss-controls[open] summary { margin-bottom: 12px; }
footer { width: min(1120px, calc(100% - 28px)); margin: auto; padding: 22px 0 35px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.app-shell > footer { padding-bottom: 96px; }
.app-version-display { display: block; margin: 7px auto 0; font-weight: 750; }
.app-connection-bar {
  position: sticky;
  top: 0;
  z-index: 29;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 14px;
  border-bottom: 1px solid #c8dbb0;
  color: #31511e;
  background: #f2f9e8;
  font-size: .8rem;
  font-weight: 800;
  transition:
    opacity var(--motion-duration-quick) var(--motion-ease-exit),
    transform var(--motion-duration-quick) var(--motion-ease-exit);
}
.app-connection-bar.is-dismissing { opacity: 0; transform: translateY(-100%); }
.app-connection-dot { width: 8px; height: 8px; border-radius: 999px; background: #38a548; box-shadow: 0 0 0 3px rgba(56,165,72,.14); }
.app-connection-bar[data-connection="offline"] { border-color: #f0c76e; color: #684900; background: #fff5d9; }
.app-connection-bar[data-connection="offline"] .app-connection-dot { background: #d18a00; box-shadow: 0 0 0 3px rgba(209,138,0,.15); }
.app-connection-bar .text-button { min-height: 28px; padding: 2px 8px; }
@media (prefers-reduced-motion: reduce) {
  .app-connection-bar { transition: none; }
}
.fruit-up-live-pulse {
  --fruit-up-live-scroll-duration: 38s;
  --fruit-up-live-light-duration: calc(
    var(--motion-duration-loop-slow) + var(--motion-duration-loop-slow) +
    var(--motion-duration-loop-slow) + var(--motion-duration-loop-slow)
  );
  --fruit-up-live-feature-duration: calc(
    var(--motion-duration-loop-slow) + var(--motion-duration-loop-slow)
  );
  position: relative;
  isolation: isolate;
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 6px max(18px, calc((100vw - 1120px) / 2));
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 8% 100%, rgba(12,168,79,.34), transparent 36%),
    radial-gradient(circle at 50% 130%, rgba(185,229,49,.14), transparent 38%),
    radial-gradient(circle at 92% 0%, rgba(239,45,45,.3), transparent 34%),
    #111a14;
  border-block: 1px solid rgba(185,229,49,.38);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(239,45,45,.14),
    0 0 12px rgba(185,229,49,.25),
    0 0 26px rgba(12,168,79,.16),
    0 0 34px rgba(239,45,45,.11);
}
.fruit-up-live-pulse.is-display-only {
  grid-template-columns: auto minmax(0, 1fr);
  cursor: default;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.fruit-up-live-pulse::before,
.fruit-up-live-pulse::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: -22%;
  width: 22%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #31d97a 24%, #d8ff67 52%, #ff4f45 78%, transparent);
  filter: drop-shadow(0 0 4px rgba(216,255,103,.95)) drop-shadow(0 0 9px rgba(12,168,79,.72));
  animation: fruit-up-live-light-chase var(--fruit-up-live-light-duration) var(--motion-ease-linear) infinite;
}
.fruit-up-live-pulse::before { top: 0; }
.fruit-up-live-pulse::after {
  bottom: 0;
  animation-direction: reverse;
  filter: drop-shadow(0 0 4px rgba(255,79,69,.9)) drop-shadow(0 0 9px rgba(185,229,49,.6));
}
.fruit-up-live-pulse-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .055em;
  font-size: .76rem;
}
.fruit-up-live-pulse-label > span,
.fruit-up-live-now-mark > span {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #ef3439;
  box-shadow: 0 0 0 4px rgba(239,52,57,.16), 0 0 14px rgba(239,52,57,.82);
  animation: fruit-up-live-beacon var(--motion-duration-loop-slow) var(--motion-ease-smooth) infinite;
}
.fruit-up-live-pulse-window { min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.fruit-up-live-pulse-track,
.fruit-up-live-pulse-repeat {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 28px;
}
.fruit-up-live-pulse-track.is-moving {
  padding-right: 28px;
  animation: fruit-up-live-scroll var(--fruit-up-live-scroll-duration) var(--motion-ease-linear) infinite;
  will-change: transform;
}
.fruit-up-live-pulse-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  color: rgba(255,255,255,.9);
  font-size: .82rem;
}
.fruit-up-live-pulse-item.is-feature {
  min-height: 32px;
  padding: 4px 11px;
  border: 1px solid rgba(216,255,103,.3);
  border-radius: 999px;
  color: rgba(255,255,255,.96);
  background:
    radial-gradient(circle at 100% 0%, rgba(239,45,45,.2), transparent 48%),
    linear-gradient(135deg, rgba(12,168,79,.2), rgba(255,255,255,.07));
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 0 12px rgba(185,229,49,.16);
  font-size: .82rem;
  animation: fruit-up-live-cta-glow var(--fruit-up-live-feature-duration) var(--motion-ease-smooth) infinite;
}
.fruit-up-live-pulse-item.is-feature .fruit-up-live-pulse-item-kind {
  color: #d8ff67;
  text-shadow: -1px 0 5px rgba(12,168,79,.9), 1px 0 5px rgba(239,45,45,.75);
}
.fruit-up-live-pulse-item.is-music {
  width: clamp(240px, 42vw, 520px);
  min-width: 0;
  color: #fff;
  font-weight: 780;
}
.fruit-up-live-pulse-item.is-music [data-pulse-music-label] {
  flex: 0 0 auto;
}
.fruit-up-live-pulse-item.is-music [data-pulse-music-title] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fruit-up-live-pulse-item.is-music .fruit-up-live-pulse-item-kind {
  color: #d8ff67;
  text-shadow: 0 0 8px rgba(185,229,49,.66);
}
.fruit-up-live-pulse-item::after { content: "•"; margin-left: 20px; color: var(--lime); }
.fruit-up-live-pulse-item-kind { color: var(--lime); text-transform: uppercase; letter-spacing: .05em; font-size: .69rem; }
.fruit-up-live-pulse-item strong { color: #fff; font-variant-numeric: tabular-nums; }
.fruit-up-live-pulse-action {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.27);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font: inherit;
  font-size: .72rem;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}
.fruit-up-live-now-host { margin: 0 0 20px; }
.fruit-up-live-now-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid #b8cf78;
  border-radius: 20px;
  color: #1e2b20;
  background:
    radial-gradient(circle at 90% 0%, rgba(255,176,0,.2), transparent 34%),
    linear-gradient(135deg, #f7ffe2, #fff);
  box-shadow: var(--surface-shadow);
}
.fruit-up-live-now-card.is-live {
  color: #fff;
  border-color: rgba(185,229,49,.48);
  background:
    radial-gradient(circle at 8% 100%, rgba(12,168,79,.3), transparent 38%),
    radial-gradient(circle at 92% 0%, rgba(239,45,45,.28), transparent 35%),
    linear-gradient(135deg, #101a13, #27362a);
  box-shadow: 0 0 0 3px rgba(185,229,49,.1), 0 20px 46px rgba(19,33,22,.2);
}
.fruit-up-live-now-card.is-starting { border-color: #e5a327; background: linear-gradient(135deg, #fff3ce, #fff); }
.fruit-up-live-now-card.is-quiet { border-style: dashed; border-color: var(--line); background: var(--soft); }
.fruit-up-live-now-mark {
  min-width: 106px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: #17231b;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .055em;
  white-space: nowrap;
}
.fruit-up-live-now-card.is-upcoming .fruit-up-live-now-mark,
.fruit-up-live-now-card.is-quiet .fruit-up-live-now-mark { color: #26360e; background: var(--lime); }
.fruit-up-live-now-card.is-upcoming .fruit-up-live-now-mark > span,
.fruit-up-live-now-card.is-quiet .fruit-up-live-now-mark > span { background: #476900; box-shadow: 0 0 0 4px rgba(71,105,0,.12); animation: none; }
.fruit-up-live-now-copy { min-width: 0; }
.fruit-up-live-now-copy :where(.eyebrow, h2, p) { margin: 0; }
.fruit-up-live-now-card.is-live .eyebrow { color: var(--lime); }
.fruit-up-live-now-card.is-live p { color: #d9e5dc; }
.fruit-up-live-now-copy h2 { margin-top: 4px; overflow-wrap: anywhere; font-size: clamp(1.35rem, 3vw, 2rem); }
.fruit-up-live-now-copy > p:not(.eyebrow) { margin-top: 5px; }
.fruit-up-live-now-countdown {
  display: block;
  margin-top: 9px;
  color: #325410;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-variant-numeric: tabular-nums;
}
.fruit-up-live-now-card.is-live .fruit-up-live-now-countdown { color: var(--lime); }
.fruit-up-live-now-action { min-width: 150px; text-align: center; }
@keyframes fruit-up-live-beacon {
  0%, 100% { opacity: .62; transform: scale(.86); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes fruit-up-live-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - 14px), 0, 0); }
}
@keyframes fruit-up-live-light-chase {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(555%, 0, 0); }
}
@keyframes fruit-up-live-cta-glow {
  0%, 100% { opacity: .88; }
  50% { opacity: 1; }
}
@media (max-width: 720px) {
  .fruit-up-live-pulse { grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding-inline: 12px; }
  .fruit-up-live-pulse-label strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .fruit-up-live-pulse-action { display: none; }
  .fruit-up-live-now-card { grid-template-columns: 1fr; align-items: stretch; gap: 13px; }
  .fruit-up-live-now-mark { justify-self: start; min-width: 0; }
  .fruit-up-live-now-action { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .fruit-up-live-pulse.is-display-only { touch-action: auto; }
  .fruit-up-live-pulse-window { overflow-x: auto; mask-image: none; scrollbar-width: thin; }
  .fruit-up-live-pulse-track.is-moving,
  .fruit-up-live-pulse::before,
  .fruit-up-live-pulse::after,
  .fruit-up-live-pulse-item.is-feature,
  .fruit-up-live-pulse-label > span,
  .fruit-up-live-now-mark > span { animation: none !important; }
  .fruit-up-live-pulse-repeat { display: none; }
}
footer nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px; margin-top: 9px; }
footer nav a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 4px; }
.proprietary-footer-note { display: block; max-width: 720px; margin: 7px auto 0; line-height: 1.45; }
.proprietary-login-note { margin: 14px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; text-align: center; }
.proprietary-use-card { border-left: 5px solid var(--orange); }
.footer-link { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 4px; border: 0; color: var(--orange-dark); background: transparent; cursor: pointer; font-size: inherit; text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.text-link { min-height: 44px; padding: 8px 9px; border: 0; background: transparent; color: var(--orange-dark); font-weight: 850; cursor: pointer; }
.text-link.danger { color: var(--danger); }
.community-post, .replay-card, .admin-panel > .card, .admin-table-wrap { content-visibility: auto; contain-intrinsic-size: auto 280px; }

html[data-motion-performance-constrained] dialog::backdrop,
html[data-motion-performance-constrained] .nav-menu-backdrop,
html[data-motion-performance-constrained] .busy {
  backdrop-filter: none !important;
}

@media (pointer: coarse) {
  dialog::backdrop,
  .nav-menu-backdrop,
  .busy {
    backdrop-filter: none !important;
  }
}

@media (hover: hover) and (pointer: fine) {
  .button:not(:disabled):hover, .icon-button:not(:disabled):hover { transform: translateY(-1px); box-shadow: var(--surface-shadow-raised); }
  .main-nav button:not(.nav-menu-backdrop):not(:disabled):hover { color: var(--orange-dark); background: #fff6f0; }
}
.daily-action-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 230px); gap: 24px; align-items: center; margin: 0 0 20px; overflow: hidden; border-color: #bed956; background: linear-gradient(135deg, #17211a 0%, #29372b 58%, #384a31 100%); color: #fff; box-shadow: 0 18px 48px rgba(23, 36, 26, .18); }
.daily-action-card .eyebrow, .daily-action-card h2 { color: var(--lime); }
.daily-action-card p { white-space: pre-wrap; }
.daily-action-card.empty { color: var(--ink); border-color: var(--line); background: #fff; box-shadow: 0 5px 18px rgba(32, 44, 35, .04); }
.daily-action-card.empty h2 { color: var(--ink); }
.daily-action-card.complete { border-color: #83b41e; }
.daily-action-card.overdue { border-color: #f0a49e; background: linear-gradient(135deg, #351d1b, #532723); }
.daily-action-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #d9e5d8; font-size: .86rem; }
.daily-action-deadline { color: #eef7e7; }
.source-pill { display: inline-flex; margin-top: 8px; padding: 6px 9px; border: 1px solid rgba(185,229,49,.42); border-radius: 999px; color: var(--lime); font-size: .76rem; font-weight: 900; }
.daily-action-cta { display: flex; align-items: center; justify-content: flex-end; }
.daily-action-cta .button { min-width: 180px; }
.guided-agenda { margin-bottom: 20px; }
.daily-fruit-up-quest { border-color: #b9d655; background: linear-gradient(145deg, #fbffe9, #fff); }
.daily-fruit-up-quest .section-head { align-items: flex-start; }
.guided-agenda ol { display: grid; gap: 0; margin: 15px 0 0; padding: 0; list-style: none; }
.guided-agenda li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 52px; border-top: 1px solid var(--line); }
.guided-agenda li.complete { color: var(--muted); }
.guided-agenda li.closed { color: #8e312a; }
.agenda-completed-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; }
.agenda-item-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; text-align: right; }
.agenda-availability { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 8px; border: 1px solid #c4e4b7; border-radius: 999px; color: #176d3c; background: #efffe8; font-size: .72rem; font-weight: 900; letter-spacing: .01em; }
.agenda-availability.complete { border-color: #98da83; color: #126c39; background: linear-gradient(135deg, #e8ffdc, #f7ffec); }
.agenda-availability.pending { border-color: #a5d98f; color: #176d3c; background: linear-gradient(135deg, #efffe8, #f7ffe9); }
.agenda-availability.closed { border-color: #efaaa4; color: #a52c23; background: #fff0ef; }
.agenda-availability.upcoming { border-color: #d5e1ce; color: #637260; background: #f7faf5; }
.agenda-check { display: none; }
.agenda-progress { height: 8px; overflow: hidden; border-radius: 999px; background: #edf0ed; }
.agenda-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7ca817, var(--lime)); }
.agenda-completion-number { display: grid; gap: 2px; justify-items: end; color: var(--ink); }
.agenda-completion-number > span { font-size: 1.35rem; }
.agenda-completion-number small { color: var(--muted); font-size: .7rem; font-weight: 800; }
.agenda-optional { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.agenda-optional > p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 0; }
.agenda-optional > p small { color: var(--muted); }
.agenda-optional ol { margin-top: 8px; }
.today-stats-card { margin: 0 0 20px; border-color: #c8df79; background: linear-gradient(135deg, #fbffe9, #fff); }
.today-stats-card .section-head { margin: 0 0 15px; }
.today-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.today-stat-metric { min-width: 0; display: grid; align-content: start; gap: 6px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.8); }
.today-stat-metric > span { color: var(--muted); font-size: .78rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.today-stat-metric > strong { color: var(--orange-dark); font-size: 1.65rem; line-height: 1.18; overflow-wrap: anywhere; }
.today-stat-metric > small { color: var(--muted); }
.today-stat-metric .progress-track { margin-top: 5px; }
.today-result-metric { grid-column: span 2; }
.today-result-metric.is-pending { border-color: #efcf77; background: #fff8dc; }
.today-result-metric.is-pending > strong { color: #7a5700; }
.today-result-metric.is-met { border-color: #acd06b; background: #f3fbdc; }
.today-result-metric.is-met > strong { color: #37630b; }
.today-result-metric.is-not_met { border-color: #e7aaa4; background: #fff0ee; }
.today-result-metric.is-not_met > strong { color: #9d2e25; }
.today-walking-section { margin: 32px 0 20px; }
.today-secondary-actions { margin: 18px 0 0; }
.walking-conditions {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #cfdbc2;
  border-radius: 15px;
  background: rgba(255,255,255,.82);
}
.walking-conditions.fruit-up-walking-signature {
  border-color: #82c855;
  background: linear-gradient(135deg, rgba(243,255,225,.99), rgba(255,247,241,.98));
  box-shadow: 0 0 0 2px rgba(12,168,79,.18), 0 0 22px rgba(12,168,79,.2), 0 0 34px rgba(239,45,45,.14), 0 12px 30px rgba(12,168,79,.13);
}
.walking-conditions.fruit-up-walking-signature::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 4px;
  pointer-events: none;
  background: linear-gradient(90deg, #0ca84f 0%, #b9e535 42%, #ef2d2d 100%);
  opacity: 1;
  transform-origin: left center;
  animation: walking-fruit-up-card-glow var(--motion-duration-large) var(--motion-ease-emphasized) 2;
}
.walking-conditions.has-weather-motion {
  border-color: #78bce8;
  box-shadow: 0 0 0 2px rgba(74,146,210,.25), 0 0 24px rgba(74,146,210,.24), 0 0 34px rgba(12,168,79,.16), 0 12px 30px rgba(43,101,151,.14);
}
.walking-conditions.is-weather-snow { border-color: #c9dceb; }
.walking-weather-motion {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .78;
  background: linear-gradient(135deg, rgba(76,157,221,.16), transparent 58%);
  animation: walking-weather-card-glow var(--motion-duration-loop-slow) var(--motion-ease-emphasized) 2;
}
.walking-conditions > :not(.walking-weather-motion) { position: relative; z-index: 1; }
.walking-weather-motion i {
  position: absolute;
  top: -16px;
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: #4c9ddd;
  transform: rotate(18deg);
  box-shadow: 0 0 8px rgba(76,157,221,.46);
  animation: walking-rain-fall var(--motion-duration-loop-slow) var(--motion-ease-linear) 2;
}
.walking-weather-motion i:nth-child(1) { left: 10%; animation-delay: var(--motion-duration-instant); }
.walking-weather-motion i:nth-child(2) { left: 27%; animation-delay: var(--motion-duration-standard); }
.walking-weather-motion i:nth-child(3) { left: 46%; animation-delay: var(--motion-duration-large); }
.walking-weather-motion i:nth-child(4) { left: 64%; animation-delay: calc(var(--motion-duration-instant) + var(--motion-duration-quick)); }
.walking-weather-motion i:nth-child(5) { left: 78%; animation-delay: calc(var(--motion-duration-standard) + var(--motion-duration-instant)); }
.walking-weather-motion i:nth-child(6) { left: 92%; animation-delay: calc(var(--motion-duration-large) + var(--motion-duration-quick)); }
.walking-weather-motion i:nth-child(7) { left: 36%; animation-delay: calc(var(--motion-duration-standard) + var(--motion-duration-quick)); }
.walking-weather-motion i:nth-child(8) { left: 84%; animation-delay: calc(var(--motion-duration-large) + var(--motion-duration-standard)); }
.walking-weather-motion.is-snow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9f3ff;
  transform: none;
  animation-name: walking-snow-fall;
  animation-iteration-count: 2;
}
@keyframes walking-weather-card-glow {
  0%, 18%, 72%, 100% { opacity: .58; transform: translate3d(0, 0, 0); }
  34%, 48% { opacity: .92; transform: translate3d(0, 3px, 0); }
}
@keyframes walking-fruit-up-card-glow {
  0%, 26%, 72%, 100% { opacity: .72; transform: scaleX(.68); }
  40%, 54% { opacity: 1; transform: scaleX(1); }
}
@keyframes walking-rain-fall {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(18deg); }
  15% { opacity: .75; }
  62% { opacity: .55; }
  100% { opacity: 0; transform: translate3d(-18px, 128px, 0) rotate(18deg); }
}
@keyframes walking-snow-fall {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.7); }
  18% { opacity: .88; }
  100% { opacity: 0; transform: translate3d(18px, 116px, 0) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme="dark"] body::before { animation: none; }
  .walking-conditions.has-weather-motion,
  .walking-conditions.fruit-up-walking-signature::before,
  .walking-weather-motion,
  .walking-weather-motion i { animation: none; }
}
.walking-conditions p { margin: 0; }
.walking-conditions-heading {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.walking-conditions-heading h3 { margin: 2px 0 0; line-height: 1.2; }
.walking-conditions-heading .eyebrow { margin: 0; }
.walking-conditions-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 14px;
  color: #23320f;
  background: linear-gradient(145deg, #dff49b, var(--lime));
  box-shadow: inset 0 0 0 1px rgba(59,82,17,.15);
}
.walking-conditions-mark::before {
  content: "";
  width: 12px;
  height: 20px;
  border-radius: 60% 44% 55% 48%;
  background: currentColor;
  transform: rotate(31deg);
}
.walking-conditions-mark::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  margin: -19px 0 0 14px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -5px -2px 0 -1px currentColor, -9px 1px 0 -1px currentColor;
}
.walking-conditions-meta { margin-top: 4px !important; color: var(--muted); font-size: .82rem; }
.walking-weather-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin-top: 7px;
  padding: 4px 8px;
  border: 1px solid rgba(39,126,190,.34);
  border-radius: 999px;
  color: #1c5e93;
  background: rgba(232,247,255,.9);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .02em;
}
.walking-weather-badge.is-snow { color: #315e7d; border-color: rgba(113,160,193,.38); background: rgba(238,250,255,.92); }
.walking-conditions-status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #34500d;
  background: #ebf8c6;
  font-size: .75rem;
  font-weight: 900;
  white-space: nowrap;
}
.walking-conditions.is-use-caution .walking-conditions-status { color: #724d00; background: #fff0bd; }
.walking-conditions.is-indoor-recommended .walking-conditions-status,
.walking-conditions.is-unavailable .walking-conditions-status { color: #7c302a; background: #fde7e4; }
.walking-conditions.is-collapsed {
  gap: 8px;
  padding: 13px 16px;
}
.walking-conditions-expand,
.walking-conditions-collapse {
  width: fit-content;
  min-height: 34px;
  padding: 6px 2px;
  border: 0;
  color: #176e3d;
  background: transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
  transition: color var(--motion-duration-quick) var(--motion-ease-smooth), transform var(--motion-duration-quick) var(--motion-ease-smooth);
}
.walking-conditions-expand:hover,
.walking-conditions-expand:focus-visible,
.walking-conditions-collapse:hover,
.walking-conditions-collapse:focus-visible { color: var(--orange-dark); transform: translateX(2px); }
.walking-conditions-collapse:hover,
.walking-conditions-collapse:focus-visible { transform: translateY(-1px); }
.walking-conditions-current { display: flex; align-items: baseline; gap: 10px; }
.walking-conditions-current strong { color: var(--ink); font-size: 1.65rem; line-height: 1; }
.walking-conditions-current span { color: var(--muted); font-weight: 800; }
.walking-conditions-air-quality {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #cddda3;
  border-radius: 11px;
  color: #40570f;
  background: #f5fbe5;
  font-size: .82rem;
}
.walking-conditions-air-quality > span { font-weight: 850; }
.walking-conditions-air-quality > strong { color: inherit; font-size: .9rem; }
.walking-conditions-air-quality > small { color: inherit; font-size: .78rem; }
.walking-conditions-air-quality.is-moderate { color: #674800; border-color: #ead38c; background: #fff8dc; }
.walking-conditions-air-quality.is-use-caution,
.walking-conditions-air-quality.is-limit-outdoor { color: #7c302a; border-color: #e7aaa4; background: #fff0ee; }
.walking-conditions-windows { display: flex; flex-wrap: wrap; gap: 8px; }
.walking-window {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #cddda3;
  border-radius: 999px;
  color: #40570f;
  background: #f5fbe5;
  font-size: .82rem;
  font-weight: 850;
}
.walking-window.is-caution { color: #674800; border-color: #ead38c; background: #fff8dc; }
.walking-conditions-reasons { display: grid; gap: 5px; margin: 0; padding-left: 19px; color: var(--muted); }
.walking-conditions-tip,
.walking-conditions-message {
  padding: 10px 12px;
  border-radius: 11px;
  color: #33410f;
  background: #f2f8df;
  font-size: .88rem;
}
.walking-conditions-message.error { color: #8e2821; background: #fdeae8; }
.walking-conditions-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}
.walking-conditions-footer > small,
.walking-conditions > small { color: var(--muted); }
.walking-conditions-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.walking-conditions-actions .button { min-height: 40px; padding: 8px 12px; font-size: .8rem; }
.walking-conditions-setup-form { display: grid; gap: 9px; }
.walking-conditions-setup-form label { font-size: .86rem; font-weight: 850; }
.walking-conditions-setup-form input {
  width: 100%;
  min-height: 50px;
  padding: 11px 12px;
  border: 1px solid #bdcbbf;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
}
.walking-conditions-setup-form input:focus { outline: 3px solid rgba(255,94,0,.16); border-color: var(--orange); }
.walking-conditions-disable {
  min-height: 40px;
  padding: 7px 5px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.walking-conditions-disable:disabled { opacity: .5; cursor: wait; }
.walking-conditions-disable:hover,
.walking-conditions-disable:focus-visible { color: #8e2821; }
.walking-conditions-attribution {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.35;
}
.walking-conditions-skeleton { display: grid; gap: 9px; padding-left: 54px; }
.walking-conditions-skeleton span {
  width: min(420px, 80%);
  height: 13px;
  border-radius: 999px;
  background: #e5ebe1;
}
.walking-conditions-skeleton span:last-child { width: min(280px, 55%); }
.external-return-note { margin: 8px 2px 18px; color: var(--muted); font-size: .82rem; }
.master-replay-archive { margin: 18px 0; }
.master-replay-archive > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}
.master-replay-archive > summary::-webkit-details-marker { display: none; }
.master-replay-archive > summary strong { display: block; color: var(--ink); font-size: 1.1rem; }
.master-replay-archive > .muted { margin: 14px 0 12px; }
.master-replay-archive-list { display: grid; gap: 10px; }
.master-replay-archive-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.7);
}
.master-replay-archive-thumb { width: 112px; height: 64px; object-fit: cover; border-radius: 9px; background: var(--surface-alt); }
.master-replay-archive-copy { min-width: 0; }
.master-replay-archive-copy .eyebrow { margin: 0 0 3px; }
.master-replay-archive-copy h3 { margin: 0; font-size: .98rem; }
.master-replay-archive-copy .muted { margin: 4px 0 0; font-size: .82rem; }
.master-replay-archive-item .replay-passcode { margin-top: 7px; }
.device-permissions-card { display: grid; gap: 13px; }
.device-permissions-card > :is(h3, p) { margin: 0; }
.device-permissions-list { display: grid; gap: 8px; }
.device-permissions-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-alt);
}
.device-permissions-list strong { color: var(--ink); }
.device-permissions-list small { grid-column: 1 / -1; color: var(--muted); }
.map-routine-preference { display: grid; gap: 10px; margin: 18px 0; padding: 15px; border: 1px solid #c8ddca; border-radius: 14px; background: #f6fbf7; }
.map-routine-preference > :is(p, label) { margin: 0; }
.map-routine-preference .button { justify-self: start; }
.profile-birthday-settings {
  display: grid;
  gap: 4px;
  margin: 0 0 18px;
  padding: 15px;
  border: 1px solid #b8d45f;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7ffe7, #fff7ee);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.profile-birthday-settings .field,
.profile-birthday-settings .profile-visibility-choice { margin: 0; }
.profile-birthday-settings input[type="date"] { max-width: 320px; }
@media (max-width: 620px) {
  .master-replay-archive-item { grid-template-columns: 76px minmax(0, 1fr); align-items: start; }
  .master-replay-archive-thumb { width: 76px; height: 54px; }
  .master-replay-archive-item .button { grid-column: 1 / -1; width: 100%; }
  .master-replay-archive-item > .master-replay-attendance-actions { grid-column: 1 / -1; width: 100%; }
  .master-replay-attendance-actions.is-compact .master-replay-attendance-buttons { justify-content: stretch; }
  .master-replay-attendance-actions.is-compact .master-replay-attendance-guidance { max-width: none; text-align: left; }
  .master-replay-attendance-buttons .button { width: 100%; }
  .replay-attendance-explainer { grid-template-columns: 1fr; }
  .replay-attendance-explainer-mark { width: 54px; height: 54px; border-radius: 16px; }
}
.home-communications { margin-bottom: 32px; }
.home-communications.collapsed { margin-bottom: 28px; }
.home-communications-head { margin-bottom: 12px; }
.home-communications-head h2 { margin-bottom: 2px; }
.home-communications-head small { color: var(--muted); font-weight: 700; }
.home-communications-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.home-communications-body > .grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
.home-communications-body[hidden] { display: none; }
.home-communications-body { animation: content-disclosure-enter var(--motion-duration-standard) var(--motion-ease-smooth) both; }
.communications-collapse-button { flex: 0 0 auto; }
.communication-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.communication-card.focused { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(186, 216, 86, .2); }
.communication-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: #172014; background: var(--lime); font-weight: 950; font-size: 1.25rem; }
.communication-icon.coach { color: #fff; background: linear-gradient(135deg, #2d8cff, #135ec1); }
.communication-icon.challenge { color: #1d2d08; background: linear-gradient(135deg, var(--lime), #8fbe1d); }
.communication-card-content, .announcement-card-title { min-width: 0; }
.announcement-card { align-self: start; transition: border-color var(--motion-duration-quick) var(--motion-ease-smooth), background var(--motion-duration-quick) var(--motion-ease-smooth); }
.announcement-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.announcement-card-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.announcement-remove-button { min-height: 38px; min-width: 38px; }
.announcement-card-title h3 { margin: 4px 0 6px; overflow-wrap: anywhere; }
.announcement-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); }
.announcement-card-title h3,
.coach-message-home-card h3 { display: flex; align-items: center; gap: 6px; }
.fruit-up-official-mark { width: 16px; height: 16px; display: inline-grid; place-items: center; flex: 0 0 16px; overflow: hidden; border: 1px solid rgba(16,153,76,.48); border-radius: 5px; background: radial-gradient(circle at 25% 75%, rgba(239,59,63,.24), transparent 55%), rgba(255,255,255,.74); box-shadow: 0 0 4px rgba(16,153,76,.63), 0 0 4px rgba(226,37,42,.35); }
.fruit-up-official-mark img { width: 14px; height: 14px; display: block; object-fit: contain; }
.announcement-read-state { display: inline-flex; min-height: 24px; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: .7rem; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
.announcement-read-state.new { color: #38500f; background: #eaf8bf; }
.announcement-read-state.read { color: var(--muted); background: var(--soft); }
.announcement-card-toggle { flex: 0 0 auto; }
.announcement-card-details[hidden] { display: none; }
.announcement-card-details > .muted { margin: 12px 0 0; line-height: 1.5; white-space: pre-wrap; }
.announcement-card-details .challenge-support-button { margin-top: 12px; }
.announcement-card.compact { gap: 10px; padding: 14px 16px; border-color: #d9e0da; background: #fbfcfb; }
.announcement-card.compact .communication-icon { width: 38px; height: 38px; border-radius: 12px; font-size: 1rem; }
.announcement-card.compact .announcement-card-title h3 { margin-bottom: 4px; font-size: 1rem; }
.coach-message-home-card .communication-card-content { display: grid; gap: 6px; }
.coach-message-home-card h3, .coach-message-home-card p { margin: 0; }
.coach-message-home-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; line-height: 1.5; }
.coach-message-home-card small { color: var(--muted); }
.coach-message-home-card .text-link { justify-self: start; margin-top: 4px; }
.coach-feedback, .reflection-readback { margin-top: 16px; padding: 14px; border-radius: 13px; background: rgba(185,229,49,.12); border: 1px solid rgba(185,229,49,.32); }
.coach-feedback p, .reflection-readback p { margin: 7px 0 0; }
.daily-action-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr); gap: 28px; border-color: #bddb56; transition: border-color var(--motion-duration-standard) var(--motion-ease-smooth), box-shadow var(--motion-duration-standard) var(--motion-ease-smooth), background-color var(--motion-duration-standard) var(--motion-ease-smooth); }
.daily-action-detail.complete { background: linear-gradient(145deg, #fbfff0, #fff); }
.daily-action-detail.overdue { border-color: #efaaa4; }
.daily-action-detail.is-optimistic { border-color: #98bd2c; box-shadow: var(--surface-shadow-raised), inset 0 0 0 1px rgba(185,229,49,.18); }
.action-completion-form { padding: 20px; border-radius: 16px; background: var(--soft); }
.completion-celebration { display: grid; justify-items: center; align-content: center; gap: 8px; text-align: center; }
.completion-celebration > span { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; color: #233312; background: var(--lime); font-size: 2.2rem; font-weight: 950; }
.completion-celebration.is-pending { animation: optimistic-completion-arrive var(--motion-duration-standard) var(--motion-ease-smooth) both; }
.completion-celebration.is-pending > span { position: relative; }
.completion-celebration.is-pending > span::after { content: ""; position: absolute; inset: -6px; border: 2px solid rgba(137,176,32,.38); border-radius: inherit; animation: optimistic-completion-ring var(--motion-duration-loop-slow) var(--motion-ease-smooth) infinite; }
.optimistic-sync-note { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 750; }
.optimistic-sync-note::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #8caf27; box-shadow: 0 0 0 3px rgba(140,175,39,.13); animation: optimistic-sync-pulse var(--motion-duration-loop-medium) var(--motion-ease-smooth) infinite; }
@keyframes optimistic-completion-arrive {
  from { opacity: .68; transform: translateY(7px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes optimistic-completion-ring {
  0%, 35% { opacity: .72; transform: scale(.88); }
  78%, 100% { opacity: 0; transform: scale(1.14); }
}
@keyframes optimistic-sync-pulse {
  0%, 100% { opacity: .52; transform: scale(.86); }
  50% { opacity: 1; transform: scale(1); }
}
.action-history-list { display: grid; gap: 12px; }
.action-history-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.map-action-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-bottom: 18px; border-color: #bddb56; background: linear-gradient(135deg, #fbffe9, #fff); }
.map-action-link.complete { border-color: #b9d6bd; background: #f8fcf8; }
.inbox-list { display: grid; gap: 12px; }
.inbox-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 15px; align-items: start; }
.inbox-item.unread { border-color: #bad856; box-shadow: inset 5px 0 var(--lime); }
.inbox-item p { white-space: pre-wrap; }
.inbox-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.coach-reply-card { max-width: 820px; margin: 24px auto 0; }
.community-guidelines { margin-bottom: 16px; border-color: #b9d655; background: linear-gradient(135deg, #fbffe9, #fff); }
.community-app-share-card { max-width: 820px; display: grid; grid-template-columns: 1fr; gap: 18px; align-items: stretch; margin: 0 auto 16px; overflow: hidden; border-color: rgba(202, 49, 49, .5); background: radial-gradient(circle at 9% 92%, rgba(14, 150, 73, .17), transparent 39%), radial-gradient(circle at 94% 0%, rgba(239, 47, 47, .14), transparent 34%), linear-gradient(135deg, #111b15, #17231b); color: #fff; box-shadow: 0 14px 32px rgba(18, 34, 24, .12); }
.community-app-share-art { width: min(100%, 700px); max-height: none; display: block; justify-self: center; object-fit: contain; object-position: center top; border-radius: 15px; box-shadow: 0 10px 24px rgba(0, 0, 0, .26); }
.community-app-share-copy { display: grid; gap: 8px; }
.community-app-share-copy :where(h2, p) { margin: 0; }
.community-app-share-copy .eyebrow { color: #c5ed5b; }
.community-app-share-copy > p:not(.eyebrow) { color: rgba(255, 255, 255, .88); }
.community-app-share-copy small { color: rgba(255, 255, 255, .7); line-height: 1.38; }
.community-app-share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.community-app-share-actions .button { min-height: 42px; }
.community-app-share-actions .button.secondary { color: #fff; border-color: rgba(255, 255, 255, .43); background: rgba(255, 255, 255, .08); }
.community-app-share-actions .button.secondary:hover, .community-app-share-actions .button.secondary:focus-visible { background: rgba(255, 255, 255, .17); }
.community-harvest-card { margin-bottom: 16px; border-color: #d9a529; background: linear-gradient(135deg, #fff9e9, #fff); }
.community-harvest-card .progress-track { margin-top: 14px; }
.community-harvest-total { display: grid; min-width: 82px; justify-items: end; color: var(--ink); }
.community-harvest-total > span { font-size: 1.8rem; line-height: 1; }
.community-harvest-total small { color: var(--muted); }
.community-harvest-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 10px; color: var(--muted); font-size: .86rem; }
.community-harvest-skeleton { position: relative; width: 100%; height: 12px; margin-top: 16px; overflow: hidden; border-radius: 999px; background: #f0e7cf; }
.community-harvest-skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 20%, rgba(255,255,255,.78) 50%, transparent 80%); transform: translateX(-110%); animation: skeleton-shimmer var(--motion-duration-loop-slow) var(--motion-ease-smooth) infinite; }
.admin-challenge-preset { display: grid; gap: 12px; margin: 16px 0; padding: 15px; border: 1px solid #d9a529; border-radius: 14px; background: #fff9e9; }
.admin-challenge-preset h4 { margin: 2px 0 4px; }
.community-compose-launcher { max-width: 820px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; margin: 0 auto 16px; }
.community-compose-launcher :where(h3, p) { margin: 0; }
.community-compose-launcher .muted { margin-top: 5px; }
.community-composer { margin-bottom: 16px; }
.community-composer-identity { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.community-composer-identity div { display: grid; gap: 3px; }
.community-composer-identity small { color: var(--muted); }
.community-composer .form-grid .field:last-child { grid-column: 1 / -1; }
.community-post-starters { min-width: 0; margin: 0 0 18px; padding: 14px; border: 1px solid #c8dc7b; border-radius: 14px; background: linear-gradient(145deg, #f8fde8, #fff); }
.community-post-starters legend { padding: 0 6px; color: var(--ink); font-weight: 900; }
.community-post-starters > p { margin: 0 0 11px; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.community-post-starter-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.community-post-starter { min-height: 44px; flex: 1 1 130px; }
.community-compose-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; color: var(--muted); }
.community-compose-meta small:last-child { flex: 0 0 auto; font-variant-numeric: tabular-nums; font-weight: 800; }
.community-compose-actions, .community-reactions, .community-post-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.community-draft-photo {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #c8dc7b;
  border-radius: 14px;
  background: linear-gradient(145deg, #f8fde8, #fff);
}
.community-draft-photo[hidden],
.community-upload-progress[hidden] { display: none; }
.community-draft-photo img {
  width: 88px;
  height: 88px;
  grid-row: span 2;
  border-radius: 11px;
  object-fit: cover;
  background: var(--soft);
}
.community-draft-photo-copy { min-width: 0; display: grid; gap: 4px; }
.community-draft-photo-copy strong,
.community-draft-photo-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.community-draft-photo-copy small { color: var(--muted); }
.community-draft-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.community-draft-photo-actions .button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
}
.community-upload-progress {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
}
.community-upload-progress progress {
  width: 100%;
  height: 12px;
  accent-color: var(--orange);
}
.community-category-picker { width: 100%; justify-content: flex-start; text-align: left; }
.community-view-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 820px; margin: 0 auto 16px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.community-view-tabs .button { width: 100%; min-height: 44px; border-color: transparent; background: transparent; }
.community-view-tabs .button.active { color: #2d4308; border-color: #a6ca34; background: #effacb; box-shadow: 0 4px 12px rgba(78, 104, 22, .1); }
.community-category-heading { max-width: 820px; display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 auto 9px; }
.community-category-heading p, .community-category-heading h2 { margin: 0; }
.community-category-heading small { max-width: 360px; color: var(--muted); line-height: 1.4; text-align: right; }
.community-category-chips { --community-category-left: 0px; --community-category-width: 0px; position: relative; isolation: isolate; max-width: 820px; display: flex; gap: 8px; margin: 0 auto 16px; padding: 2px 2px 9px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x proximity; }
.community-category-chips::-webkit-scrollbar { display: none; }
.community-category-indicator { position: absolute; z-index: 0; top: 2px; left: 0; width: var(--community-category-width); height: 44px; pointer-events: none; border: 1px solid #8fb428; border-radius: 999px; background: linear-gradient(145deg, #eef9c7, #e6f4b2); box-shadow: 0 4px 12px rgba(78, 104, 22, .13), inset 0 0 0 1px rgba(255, 255, 255, .62); opacity: 0; transform: translateX(var(--community-category-left)); will-change: transform, opacity; transition: transform var(--motion-duration-quick) var(--motion-ease-smooth), opacity var(--motion-duration-instant) var(--motion-ease-smooth); }
.community-category-chips.indicator-ready .community-category-indicator { opacity: 1; }
.community-category-chip { position: relative; z-index: 1; min-height: 44px; flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font: inherit; font-size: .84rem; font-weight: 850; white-space: nowrap; cursor: pointer; scroll-snap-align: start; transition: color var(--motion-duration-quick) var(--motion-ease-smooth), border-color var(--motion-duration-quick) var(--motion-ease-smooth), background-color var(--motion-duration-quick) var(--motion-ease-smooth); }
.community-category-chip:hover, .community-category-chip:focus-visible { color: #2d4308; border-color: #a6ca34; background: #f7fce8; }
.community-category-chip.active { color: #263b08; border-color: transparent; background: transparent; box-shadow: none; }
.community-category-chip.read-only { border-style: dashed; }
.community-category-chip span[aria-hidden] { margin-left: 6px; font-size: .72rem; }
.community-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; gap: 10px; max-width: 820px; margin: 0 auto 15px; }
.community-toolbar .field { width: min(280px, 100%); }
.community-toolbar .community-search-field { flex: 1 1 320px; width: min(420px, 100%); }
.community-toolbar .button { min-height: 44px; }
.community-toolbar #communitySavedToggle.active { color: #2d4308; border-color: #a6ca34; background: #effacb; }
.community-results-summary { flex: 1 1 100%; margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.community-refresh-status { min-height: 1.2em; color: var(--muted); font-size: .82rem; }
.community-pull-refresh {
  --pull-distance: 0px;
  --pull-progress: 0;
  --fruit-fill: 0;
  --fruit-rotation: -7deg;
  --fruit-stretch: 1;
  position: relative;
  z-index: 4;
  width: 80px;
  height: 0;
  margin: 0 auto;
  overflow: visible;
  opacity: var(--pull-progress);
  transform: translateY(calc(var(--pull-distance) - 48px));
  pointer-events: none;
  transition: transform var(--motion-duration-standard) var(--motion-ease-smooth), opacity var(--motion-duration-quick) var(--motion-ease-smooth);
  will-change: transform, opacity;
}
.community-pull-refresh.is-immediate { transition: none; }
.community-pull-refresh.is-visible:not(.is-refreshing) {
  transition: opacity var(--motion-duration-instant) var(--motion-ease-smooth);
}
.community-pull-refresh-indicator {
  position: absolute;
  top: 0;
  left: 50%;
  min-width: 132px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-bottom: 4px;
  transform: translateX(-50%);
}
.community-pull-refresh-fruit-mark {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: block;
  transform: rotate(var(--fruit-rotation)) scaleY(var(--fruit-stretch));
  transform-origin: 50% 70%;
  transition: filter var(--motion-duration-quick) var(--motion-ease-smooth);
  will-change: transform;
}
.community-pull-refresh-base,
.community-pull-refresh-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  display: block;
  overflow: hidden;
}
.community-pull-refresh-base { height: 36px; opacity: .22; filter: grayscale(1); }
.community-pull-refresh-fill { height: 36px; transform: scaleY(var(--fruit-fill)); transform-origin: bottom; will-change: transform; }
.community-pull-refresh-fruit-icon {
  position: absolute;
  left: 1px;
  bottom: 1px;
  width: 34px;
  height: 34px;
  display: block;
  overflow: visible;
}
.community-pull-refresh-fruit-icon .fruit-leaf { fill: var(--lime); stroke: #597616; stroke-width: 1; }
.community-pull-refresh-fruit-icon .fruit-stem { fill: none; stroke: #168f48; stroke-linecap: round; stroke-width: 2; }
.community-pull-refresh-fruit-icon .fruit-flesh { fill: #ef3639; }
.community-pull-refresh-fruit-icon .fruit-rind { fill: none; stroke: #14944b; stroke-width: 3; }
.community-pull-refresh-fruit-icon .fruit-seeds { fill: #172018; }
.community-pull-refresh-label {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}
.community-pull-refresh.is-ready .community-pull-refresh-label { color: var(--orange-dark); }
.community-pull-refresh.is-ready .community-pull-refresh-fruit-mark { filter: drop-shadow(0 5px 8px rgba(255,94,0,.18)); }
.community-pull-refresh.is-popping .community-pull-refresh-fruit-mark {
  animation: community-pull-refresh-pop var(--motion-duration-standard) var(--motion-spring-quick-easing) both;
}
.community-pull-refresh.is-refreshing:not(.is-popping) .community-pull-refresh-fruit-mark {
  animation: community-pull-refresh-turn var(--motion-duration-loop-medium) var(--motion-ease-smooth) infinite;
}
.community-pull-refresh.is-complete .community-pull-refresh-label { color: var(--success); }
.community-pull-refresh.is-error .community-pull-refresh-label { color: var(--danger); }
@keyframes community-pull-refresh-pop {
  0% { transform: rotate(var(--fruit-rotation)) scale(.9); }
  58% { transform: rotate(0deg) scale(1.12); }
  100% { transform: rotate(0deg) scale(1); }
}
@keyframes community-pull-refresh-turn {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.03); }
}
.community-beta-report { text-align: center; }
.community-directory-intro, #communityDirectoryPanel { max-width: 820px; margin-right: auto; margin-left: auto; }
.community-directory-intro { margin-bottom: 15px; border-color: #d5e99a; background: linear-gradient(135deg, #f8ffe1, #fff); }
.community-directory-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 15px; }
.community-directory-toolbar .field { flex: 1 1 320px; }
.community-directory-toolbar .community-results-summary { flex: 1 1 100%; }
.community-directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.community-directory-card { min-width: 0; display: grid; align-content: start; gap: 12px; }
.community-directory-card .community-profile-trigger { width: 100%; }
.community-directory-details { display: flex; flex-wrap: wrap; gap: 7px; }
.community-directory-details span { max-width: 100%; padding: 6px 9px; overflow: hidden; border-radius: 999px; color: #3a4d14; background: #effacb; font-size: .76rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.community-directory-card > p { display: -webkit-box; margin: 0; overflow: hidden; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.community-directory-empty { grid-column: 1 / -1; }
.community-directory-error { text-align: center; }
.community-directory-skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.community-feed { display: grid; gap: 16px; max-width: 820px; margin: 0 auto; opacity: 1; transform: translateY(0); transition: opacity var(--motion-duration-quick) var(--motion-ease-smooth), transform var(--motion-duration-quick) var(--motion-ease-smooth); }
.community-feed.is-category-switching { opacity: .72; transform: translateY(5px); }
.community-feed { position: relative; isolation: isolate; }
.community-feed.is-refreshing { opacity: .9; transform: translateY(0); }
.community-feed.is-loading-more { opacity: .96; }
.community-feed.is-refreshing::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: -7px;
  left: 0;
  width: 34%;
  height: 3px;
  pointer-events: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), #ef8500 48%, var(--lime));
  box-shadow: 0 2px 9px rgba(255,94,0,.24);
  animation: community-feed-refresh-progress var(--motion-duration-loop-medium) var(--motion-ease-smooth) infinite;
}
@keyframes community-feed-refresh-progress {
  from { opacity: .4; transform: translateX(-115%); }
  45% { opacity: 1; }
  to { opacity: .55; transform: translateX(295%); }
}
.community-post.is-feed-entering {
  opacity: 0;
  transform: translateY(8px);
  will-change: opacity, transform;
  animation: community-feed-post-enter var(--motion-duration-standard) var(--motion-ease-smooth) both;
}
@keyframes community-feed-post-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.community-feed-skeleton {
  --community-skeleton-surface: #fff;
  --community-skeleton-fill: #e8ede8;
  --community-skeleton-line: #f0f3f0;
  --community-skeleton-media: #e4eae5;
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border: 1px solid #dde4de;
  border-radius: 20px;
  background:
    radial-gradient(circle at 42px 42px, var(--community-skeleton-fill) 0 21px, transparent 22px),
    linear-gradient(var(--community-skeleton-fill) 0 0) 78px 25px / 38% 12px no-repeat,
    linear-gradient(var(--community-skeleton-line) 0 0) 78px 47px / 24% 9px no-repeat,
    linear-gradient(var(--community-skeleton-fill) 0 0) 20px 89px / 92px 26px no-repeat,
    linear-gradient(var(--community-skeleton-fill) 0 0) 20px 134px / calc(100% - 40px) 14px no-repeat,
    linear-gradient(var(--community-skeleton-line) 0 0) 20px 161px / 84% 11px no-repeat,
    linear-gradient(var(--community-skeleton-line) 0 0) 20px 184px / 68% 11px no-repeat,
    linear-gradient(var(--community-skeleton-fill) 0 0) 20px 229px / 106px 40px no-repeat,
    linear-gradient(var(--community-skeleton-fill) 0 0) 138px 229px / 94px 40px no-repeat,
    linear-gradient(var(--community-skeleton-line) 0 0) calc(100% - 98px) 229px / 78px 40px no-repeat,
    var(--community-skeleton-surface);
  box-shadow: var(--surface-shadow);
}
.community-feed-skeleton.has-media,
.community-feed-skeleton[data-has-media="true"] {
  min-height: 538px;
  background:
    radial-gradient(circle at 42px 42px, var(--community-skeleton-fill) 0 21px, transparent 22px),
    linear-gradient(var(--community-skeleton-fill) 0 0) 78px 25px / 38% 12px no-repeat,
    linear-gradient(var(--community-skeleton-line) 0 0) 78px 47px / 24% 9px no-repeat,
    linear-gradient(var(--community-skeleton-fill) 0 0) 20px 89px / 92px 26px no-repeat,
    linear-gradient(var(--community-skeleton-fill) 0 0) 20px 134px / calc(100% - 40px) 14px no-repeat,
    linear-gradient(var(--community-skeleton-line) 0 0) 20px 161px / 84% 11px no-repeat,
    linear-gradient(var(--community-skeleton-line) 0 0) 20px 184px / 68% 11px no-repeat,
    linear-gradient(var(--community-skeleton-media) 0 0) 20px 216px / calc(100% - 40px) 240px no-repeat,
    linear-gradient(var(--community-skeleton-fill) 0 0) 20px 478px / 106px 40px no-repeat,
    linear-gradient(var(--community-skeleton-fill) 0 0) 138px 478px / 94px 40px no-repeat,
    linear-gradient(var(--community-skeleton-line) 0 0) calc(100% - 98px) 478px / 78px 40px no-repeat,
    var(--community-skeleton-surface);
}
.community-skeleton-card {
  position: relative;
  min-height: 290px;
  display: grid;
  gap: 14px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #dde4de;
  border-radius: 20px;
  background: var(--community-skeleton-surface, #fff);
  box-shadow: var(--surface-shadow);
}
.community-skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(102deg, transparent 18%, rgba(255,255,255,.54) 48%, transparent 78%);
  transform: translateX(-110%);
  animation: community-feed-skeleton-sheen var(--motion-duration-loop-slow) var(--motion-ease-smooth) infinite;
}
.community-skeleton-header { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: center; }
.community-skeleton-avatar { width: 46px; height: 46px; border-radius: 50%; }
.community-skeleton-identity { display: grid; gap: 8px; }
.community-skeleton-name { width: min(220px, 56%); height: 13px; border-radius: 999px; }
.community-skeleton-meta { width: min(148px, 38%); height: 9px; border-radius: 999px; }
.community-skeleton-category { width: 94px; height: 28px; border-radius: 999px; }
.community-skeleton-copy { display: grid; gap: 11px; }
.community-skeleton-copy span { width: 100%; height: 12px; border-radius: 999px; }
.community-skeleton-copy span:nth-child(2) { width: 84%; }
.community-skeleton-copy span:nth-child(3) { width: 68%; }
.community-skeleton-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 15px;
}
.community-skeleton-controls { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid var(--community-skeleton-line, #f0f3f0); }
.community-skeleton-control { width: 106px; height: 40px; border-radius: 999px; }
.community-skeleton-control:nth-child(2) { width: 94px; }
.community-skeleton-comment { width: 78px; height: 40px; margin-left: auto; border-radius: 999px; }
.community-skeleton-avatar,
.community-skeleton-name,
.community-skeleton-meta,
.community-skeleton-category,
.community-skeleton-copy span,
.community-skeleton-media,
.community-skeleton-control,
.community-skeleton-comment { background: var(--community-skeleton-fill, #e8ede8); }
.community-skeleton-media { background: var(--community-skeleton-media, #e4eae5); }
.community-feed-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(102deg, transparent 18%, rgba(255,255,255,.72) 48%, transparent 78%);
  transform: translateX(-110%);
  animation: community-feed-skeleton-sheen var(--motion-duration-loop-slow) var(--motion-ease-smooth) infinite;
}
@keyframes community-feed-skeleton-sheen { to { transform: translateX(110%); } }
.community-post.is-replacing-skeleton {
  animation: community-skeleton-post-reveal var(--motion-duration-standard) var(--motion-ease-smooth) both;
}
@keyframes community-skeleton-post-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.community-load-more-status {
  width: min(820px, 100%);
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px auto 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.82);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}
.community-load-more-status.is-loading::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border: 2px solid rgba(255,94,0,.24);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin var(--motion-duration-loop-fast) var(--motion-ease-linear) infinite;
}
.community-load-more-status.is-error { color: var(--danger); border-color: rgba(180,35,24,.28); background: #fff5f3; }
.community-load-more-status.is-complete { color: #3e5716; border-color: #c6dc7d; background: #f6fbdc; }
.community-load-more-status .button { min-height: 42px; margin: 0; }

.community-mention-menu {
  position: fixed;
  z-index: 96;
  width: min(360px, calc(100vw - 24px));
  max-height: min(340px, calc(100dvh - 24px));
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(121,139,126,.42);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255,255,255,.98);
  box-shadow: 0 22px 58px rgba(20,31,23,.24), 0 4px 14px rgba(20,31,23,.1);
  backdrop-filter: blur(16px) saturate(1.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(7px) scale(.985);
  transform-origin: 24px top;
  transition: opacity var(--motion-duration-quick) var(--motion-ease-smooth), transform var(--motion-duration-quick) var(--motion-ease-smooth), visibility 0s var(--motion-ease-linear) var(--motion-duration-quick);
}
.community-mention-menu[data-placement="above"] { transform: translateY(-7px) scale(.985); transform-origin: 24px bottom; }
.community-mention-menu.is-open,
.community-mention-menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}
.community-mention-list {
  max-height: min(278px, 44dvh);
  display: grid;
  gap: 3px;
  padding: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 5px;
  scrollbar-gutter: stable;
  touch-action: pan-y;
}
.community-mention-option {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}
.community-mention-option > span:not(.community-avatar) { min-width: 0; display: grid; gap: 2px; }
.community-mention-option strong,
.community-mention-option small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-mention-option small { color: var(--muted); font-size: .76rem; }
.community-mention-option:hover,
.community-mention-option:focus-visible,
.community-mention-option.active,
.community-mention-option[aria-selected="true"] {
  color: #2d4308;
  border-color: #b9d65f;
  background: linear-gradient(135deg, #f5fbdc, #fff7ef);
  outline: none;
}
.community-mention-option:focus-visible { box-shadow: 0 0 0 3px rgba(255,94,0,.17); }
.community-mention-tokens {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.community-mention-tokens:empty { display: none; }
.community-mention-token {
  max-width: 100%;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  overflow: hidden;
  border: 1px solid #b6d45b;
  border-radius: 999px;
  color: #334b0e;
  background: linear-gradient(135deg, #eff9cb, #fff5e8);
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.community-mention-token.is-new { animation: community-mention-token-arrive var(--motion-duration-quick) var(--motion-spring-quick-easing) both; }
@keyframes community-mention-token-arrive {
  from { opacity: 0; transform: translateY(5px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.community-post > header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 15px; }
.community-post-linked { border-color: #9fc13c; box-shadow: 0 0 0 4px rgba(185,229,49,.2), 0 18px 46px rgba(36,56,28,.12); animation: linked-post-arrival var(--motion-duration-large) var(--motion-ease-enter); }
.community-comment-linked { border-color: #9fc13c; box-shadow: 0 0 0 3px rgba(185,229,49,.18); }
@keyframes linked-post-arrival { from { transform: translateY(10px); opacity: .72; } to { transform: translateY(0); opacity: 1; } }
.community-post > header p { margin: 3px 0 0; color: var(--muted); font-size: .84rem; }
.community-post-category-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: -3px 0 12px; }
.community-category-badge { display: inline-flex; min-height: 28px; align-items: center; padding: 5px 9px; border: 1px solid #b8d65a; border-radius: 999px; color: #344d0c; background: #f1facf; font-size: .76rem; font-weight: 900; }
.community-category-access { color: var(--muted); font-size: .76rem; font-weight: 800; }
.community-post-author { min-width: 0; }
.community-profile-trigger { min-width: 0; min-height: 44px; display: inline-flex; align-items: center; gap: 11px; padding: 0; border: 0; color: inherit; background: none; text-align: left; cursor: pointer; }
.community-profile-trigger > span:last-child { min-width: 0; display: grid; gap: 2px; }
.community-profile-trigger strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-profile-trigger small { color: var(--orange-dark); font-weight: 800; }
.community-profile-trigger:hover strong, .community-profile-trigger:focus-visible strong { color: var(--orange-dark); text-decoration: underline; }
.community-profile-trigger.static { cursor: default; }
.community-avatar { position: relative; width: 46px; height: 46px; display: grid; flex: 0 0 46px; place-items: center; overflow: hidden; border: 2px solid #111; border-radius: 50%; color: #20310c; background: var(--lime); font-weight: 950; box-shadow: -3px 0 11px rgba(12,168,79,.48), 3px 0 11px rgba(239,45,45,.38); }
.community-avatar.compact { width: 34px; height: 34px; flex-basis: 34px; font-size: .72rem; }
.community-avatar-fallback { grid-area: 1 / 1; }
.community-avatar-fallback { position: relative; z-index: 0; }
.community-avatar img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--lime); }
.community-avatar img[hidden] { display: none; }
/* Small star marking Fruit Up staff in Community. Intentional disclosure of
   staff identity only; membership tier and role values stay private. */
.community-staff-badge {
  display: inline-block;
  margin-left: 5px;
  color: var(--lime);
  font-size: .78em;
  line-height: 1;
  vertical-align: 1px;
}
.online-fruit-up-presence {
  position: relative;
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  margin-left: 6px;
  vertical-align: -3px;
  isolation: isolate;
}
.online-fruit-up-presence::before,
.online-fruit-up-presence::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid transparent;
  border-top-color: var(--lime);
  border-right-color: var(--orange);
  border-radius: 50%;
  animation: online-fruit-up-swirl var(--motion-duration-loop-slow) var(--motion-ease-linear) infinite;
}
.online-fruit-up-presence::after {
  inset: 2px;
  border-top-color: var(--orange);
  border-right-color: var(--lime);
  animation-direction: reverse;
}
.online-fruit-up-presence img {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  object-fit: contain;
}
@keyframes online-fruit-up-swirl {
  to { transform: rotate(360deg); }
}
.community-body { font-size: 1.04rem; line-height: 1.58; white-space: pre-wrap; }
.community-image-shell {
  position: relative;
  width: 100%;
  aspect-ratio: var(--community-image-ratio, 16 / 9);
  margin: 14px 0;
  overflow: hidden;
  border-radius: 15px;
  background: var(--soft);
  isolation: isolate;
  contain: layout paint;
}
.community-image-shell.is-portrait { --community-image-ratio: 4 / 5; max-height: 640px; }
.community-image-shell.is-square { --community-image-ratio: 1; max-height: 640px; }
.community-image-shell.is-landscape { --community-image-ratio: 16 / 9; }
.community-image {
  display: block;
  width: 100%;
  aspect-ratio: var(--community-image-ratio, 16 / 9);
  max-height: 640px;
  margin: 14px 0;
  border-radius: 15px;
  object-fit: cover;
  background: var(--soft);
}
.community-image-shell .community-image,
.community-image-shell .community-image-full { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; margin: 0; border-radius: inherit; object-fit: cover; }
.community-image-preview {
  position: absolute;
  z-index: 1;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  object-fit: cover;
  filter: blur(14px) saturate(.88);
  opacity: 1;
  transform: scale(1.03);
  transition: opacity var(--motion-duration-standard) var(--motion-ease-smooth);
}
.community-image-full,
.community-image.is-progressive {
  opacity: 0;
  transform: scale(1.012);
  transition: opacity var(--motion-duration-standard) var(--motion-ease-smooth), transform var(--motion-duration-standard) var(--motion-ease-smooth);
}
.community-image-shell.is-loaded .community-image-preview { opacity: 0; }
.community-image-shell.is-loaded .community-image-full,
.community-image.is-progressive.is-loaded {
  opacity: 1;
  filter: none;
  transform: scale(1);
}
.community-image-shell.is-loading::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(102deg, transparent 24%, rgba(255,255,255,.24) 49%, transparent 74%);
  transform: translateX(-110%);
  animation: community-image-loading-sheen var(--motion-duration-loop-slow) var(--motion-ease-smooth) infinite;
}
@keyframes community-image-loading-sheen { to { transform: translateX(110%); } }
.community-image-error {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  gap: 10px;
  align-content: center;
  place-items: center;
  color: var(--muted);
  background: var(--soft);
  font-size: .84rem;
  font-weight: 800;
  transform: none;
  animation: none;
}
.community-image-error[hidden] { display: none; }
.community-image-shell.is-error .community-image-error { opacity: 1; }
.community-image-error .button { min-height: 42px; margin: 0; }
.community-reactions { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.community-read-only-note { display: inline-flex; min-height: 38px; align-items: center; color: var(--muted); font-size: .82rem; font-weight: 800; }
.reaction-button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font-weight: 800; cursor: pointer; }
.reaction-button.active { color: #2d4308; border-color: #a6ca34; background: #effacb; }
.community-reaction-picker { display: inline-flex; align-items: center; gap: 6px; }
.community-reaction-viewer { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 4px; }
.community-comments { display: grid; gap: 8px; margin: 12px 0; }
.community-comment-thread { display: grid; gap: 7px; }
.community-comment {
  --community-comment-surface: var(--soft);
  --community-comment-highlight: #eef9cb;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  overflow: hidden;
  padding: 11px 13px;
  border-radius: 13px;
  background-color: var(--community-comment-surface);
}
.community-comment > * { position: relative; z-index: 1; }
.community-comment.is-entering::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: var(--community-comment-highlight);
  opacity: 0;
  will-change: opacity;
  animation: community-comment-highlight var(--motion-duration-standard) var(--motion-ease-smooth) both;
}
.community-comment.is-entering { animation: community-comment-enter var(--motion-duration-standard) var(--motion-ease-smooth) both; }
.community-comment.is-deleting,
.community-comment.is-removing { pointer-events: none; animation: community-comment-exit var(--motion-duration-standard) var(--motion-ease-exit) both; }
@keyframes community-comment-enter {
  0% { opacity: 0; transform: translateY(10px); }
  58%, 100% { opacity: 1; transform: translateY(0); }
}
@keyframes community-comment-highlight {
  0%, 58% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes community-comment-exit {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-6px); }
}
.community-comment-content > p { margin: 7px 0 0; white-space: pre-wrap; }
.community-comment-content > small { display: inline-block; margin-top: 4px; }
.community-comment .community-profile-trigger { min-height: 44px; padding-block: 4px; }
.community-replies-toggle { justify-self: start; }
.community-comment-replies {
  display: grid;
  gap: 7px;
  margin-left: 42px;
  padding-left: 10px;
  overflow: hidden;
  border-left: 2px solid rgba(126, 161, 34, .3);
  opacity: 1;
  transform: translateY(0);
  transform-origin: top;
  transition: opacity var(--motion-duration-quick) var(--motion-ease-smooth), transform var(--motion-duration-standard) var(--motion-ease-smooth);
}
.community-comment-replies.is-expanding { animation: community-replies-unfold var(--motion-duration-standard) var(--motion-ease-smooth) both; }
.community-comment-replies.is-collapsing { animation: community-replies-fold var(--motion-duration-standard) var(--motion-ease-exit) both; }
@keyframes community-replies-unfold {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes community-replies-fold {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}
.community-comment-reply { --community-comment-surface: rgba(238, 245, 231, .72); }
.community-reply-toggle { display: inline-flex; margin-top: 6px; }
.community-comment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-top: 7px; }
.comment-reaction-button { min-height: 44px; padding: 7px 10px; border: 1px solid transparent; border-radius: 999px; color: var(--muted); background: transparent; font-size: .75rem; font-weight: 800; cursor: pointer; }
.comment-reaction-button:hover, .comment-reaction-button:focus-visible { border-color: var(--line); background: #fff; }
.comment-reaction-button.active { color: #2d4308; border-color: #b2d654; background: #effacb; }
.community-comment-edit-form { display: grid; gap: 8px; margin-top: 10px; }
.community-comment-edit-form textarea { width: 100%; min-height: 90px; padding: 11px; border: 1px solid #bbc8bd; border-radius: 11px; resize: vertical; }
.community-comment-edit-form > div { display: flex; flex-wrap: wrap; gap: 8px; }
.community-comment-edit-form .button { min-height: 38px; padding: 8px 12px; }
.community-comment-removed { align-items: center; color: var(--muted); border: 1px dashed #d4dbd5; background: #fafbfa; }
.community-comment-removed p { margin: 3px 0 0; font-size: .82rem; }
.community-comment-removed-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #edf0ed; font-weight: 900; }
.community-comment-count { display: inline-block; transform-origin: 50% 65%; }
.community-comment-count.is-counting { animation: community-comment-count-roll var(--motion-duration-quick) var(--motion-ease-smooth) both; }
@keyframes community-comment-count-roll {
  0% { opacity: .25; transform: translateY(7px) scale(.92); }
  65% { opacity: 1; transform: translateY(-2px) scale(1.06); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.community-comment-form, .community-reply-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.community-reply-form { margin-left: 42px; }
.community-comment-form input, .community-reply-form input { min-height: 46px; width: 100%; padding: 11px; border: 1px solid #cbd4cc; border-radius: 11px; font-size: 16px; }
.community-post-controls { justify-content: flex-end; margin-top: 8px; }
.community-profile-dialog { width: min(540px, calc(100vw - 28px)); max-height: min(760px, calc(100dvh - 32px)); padding: 0; overflow: auto; border: 1px solid rgba(185,229,49,.5); border-radius: 24px; color: var(--ink); background: #fff; box-shadow: 0 26px 80px rgba(13, 24, 16, .35); }
.community-profile-dialog::backdrop { background: rgba(13, 24, 16, .72); backdrop-filter: blur(4px); }
#communityMemberProfileContent { position: relative; min-height: 260px; padding: 28px; }
.community-profile-close { position: absolute; top: 14px; right: 14px; z-index: 1; }
.community-profile-close button { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #fff; font-size: 1.7rem; cursor: pointer; }
.community-profile-loading { min-height: 210px; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); }
.community-profile-hero { display: flex; align-items: center; gap: 16px; padding: 10px 54px 22px 0; border-bottom: 1px solid var(--line); }
.community-profile-hero .community-avatar { width: 76px; height: 76px; flex-basis: 76px; font-size: 1.2rem; }
.community-profile-hero p, .community-profile-hero h2 { margin: 0; }
.community-profile-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.community-profile-facts > div { min-width: 0; display: grid; gap: 5px; padding: 14px; border-radius: 14px; background: var(--soft); }
.community-profile-facts span { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.community-profile-facts strong { overflow-wrap: anywhere; }
.community-profile-about, .community-profile-private { margin-top: 18px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, #f8ffe1, #fff); border: 1px solid #d5e99a; }
.community-profile-about p:last-child, .community-profile-private p { margin-bottom: 0; white-space: pre-wrap; line-height: 1.55; }
.community-conversation-dialog {
  width: min(780px, calc(100vw - 28px));
  max-height: min(880px, calc(100dvh - 28px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(185,229,49,.5);
  border-radius: 24px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 28px 90px rgba(13,24,16,.38);
}
.community-conversation-dialog::backdrop {
  background: rgba(13,24,16,.74);
  backdrop-filter: blur(5px);
}
.community-conversation-panel {
  max-height: min(880px, calc(100dvh - 28px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}
.community-conversation-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f8ffe1, #fff);
}
.community-conversation-header p,
.community-conversation-header h2 { margin: 0; }
.community-conversation-close {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  font-size: 1.65rem;
  cursor: pointer;
}
#communityConversationContent {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px;
  outline: none;
}
#communityConversationContent .community-post-detail {
  margin: 0;
  border-color: #b7d459;
  box-shadow: 0 12px 34px rgba(36,56,28,.12);
}
.community-post-placeholder {
  border: 1px dashed rgba(126,161,34,.34);
  border-radius: 20px;
  background: rgba(239,250,203,.24);
}
.community-open-conversation { color: var(--orange-dark); font-weight: 900; }
@media (max-width: 640px) {
  .community-conversation-dialog {
    width: calc(100vw - 14px);
    max-height: calc(100dvh - 14px);
    border-radius: 19px;
  }
  .community-conversation-panel { max-height: calc(100dvh - 14px); }
  .community-conversation-header { min-height: 68px; padding: 11px 12px; }
  #communityConversationContent { padding: 9px; }
  #communityConversationContent .community-post-detail { border-radius: 15px; }
}
.journey-chart { min-height: 230px; display: grid; grid-template-columns: repeat(30, minmax(8px, 1fr)); gap: 5px; align-items: end; overflow-x: auto; }
.journey-day { height: 180px; min-width: 16px; display: grid; grid-template-rows: minmax(0, 1fr) auto; align-items: end; gap: 5px; }
.journey-day > span { display: block; width: 100%; min-height: 8px; border-radius: 6px 6px 2px 2px; background: #b7c2b9; }
.journey-day.standard > span { background: linear-gradient(180deg, var(--lime), #68a819); }
.journey-day small { writing-mode: vertical-rl; color: var(--muted); font-size: .64rem; }
.transformation-timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.timeline-item:first-child { border-top: 0; }
.timeline-item > span { width: 14px; height: 14px; margin-top: 4px; border: 3px solid #fff; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.timeline-item.type-daily_action > span { background: var(--lime); box-shadow: 0 0 0 2px #87af18; }
.timeline-item.type-attendance > span { background: #2d8cff; box-shadow: 0 0 0 2px #2d8cff; }
.timeline-item small { font-size: .74rem; }
.timeline-item h3 { margin: 3px 0 0; font-size: .98rem; }
.timeline-item p { margin: 3px 0 0; font-size: .87rem; line-height: 1.42; }
.transformation-timeline-summary { margin: 10px 0 0; color: var(--muted); font-size: .81rem; font-weight: 720; }
.admin-engagement-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); gap: 16px; }
.admin-community-category-manager { margin-top: 20px; padding: 0; overflow: hidden; }
.admin-community-category-manager > summary { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; }
.admin-community-category-manager > summary::-webkit-details-marker { display: none; }
.admin-community-category-manager > summary > span:first-child { display: grid; gap: 3px; }
.admin-community-category-manager > summary strong { font-size: 1.18rem; }
.admin-community-category-manager > summary small { color: var(--muted); font-weight: 600; }
.admin-community-category-manager[open] > summary { border-bottom: 1px solid var(--line); background: var(--soft); }
.admin-community-category-fixed-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 20px; }
.admin-community-category-fixed-list .admin-community-category-row { grid-template-columns: 1fr; }
.admin-community-category-note { grid-column: 1 / -1; margin: 4px 2px 0; line-height: 1.5; }
.admin-community-category-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.admin-community-category-copy { min-width: 0; }
.admin-community-category-copy > div { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.admin-community-category-copy p { margin: 6px 0; line-height: 1.45; }
.admin-community-category-copy small { display: block; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .admin-community-category-fixed-list { grid-template-columns: 1fr; }
}
.coach-action-feedback-form { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 8px; margin-top: 8px; }
.coach-action-feedback-form input { min-height: 42px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; }
.coach-conversation { display: grid; gap: 18px; }
.coach-operations-overview,
.coach-map-monitor {
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid #b6d5a6;
  border-radius: 22px;
  background: linear-gradient(145deg, #fafff4, #edf9e5 62%, #fff8f3);
  box-shadow: 0 12px 34px rgba(22, 68, 37, .09);
}
.coach-operations-overview { padding: clamp(18px, 3vw, 26px); }
.coach-operations-head,
.coach-map-monitor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.coach-operations-head h2,
.coach-map-monitor-head h2 { margin: 4px 0 0; }
.coach-operations-head > p { max-width: 390px; margin: 4px 0 0; color: var(--muted); line-height: 1.5; }
.coach-operations-metrics,
.coach-map-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 20px; overflow: hidden; border: 1px solid #d3e6c8; border-radius: 16px; background: rgba(255,255,255,.72); }
.coach-operations-metrics > div,
.coach-map-summary > div { position: relative; display: grid; gap: 5px; min-width: 0; padding: 14px 12px; border-right: 1px solid #dcebd5; }
.coach-operations-metrics > div:last-child,
.coach-map-summary > div:last-child { border-right: 0; }
.coach-operations-metrics > div::before,
.coach-map-summary > div::before { content: ""; width: 24px; height: 3px; border-radius: 99px; background: linear-gradient(90deg, #0ca84f, #c7e843); }
.coach-operations-metrics .is-urgent::before { background: linear-gradient(90deg, #ef2d2d, #ffb34f); }
.coach-operations-metrics span,
.coach-map-summary span { overflow: hidden; color: #51604f; font-size: .7rem; font-weight: 850; letter-spacing: .045em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.coach-operations-metrics strong,
.coach-map-summary strong { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1; }
.coach-map-monitor { padding: 0; }
.coach-map-monitor-head { padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 26px) 0; }
.coach-map-monitor-head .muted { max-width: 630px; margin-bottom: 0; }
.coach-monitor-live { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 7px 10px; border: 1px solid #9ed68a; border-radius: 999px; color: #146e3c; background: #f4ffe9; font-size: .72rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.coach-monitor-live span { width: 7px; height: 7px; border-radius: 50%; background: #0ca84f; box-shadow: 0 0 0 4px rgba(12,168,79,.13); }
.coach-map-monitor .coach-map-summary { margin: 20px clamp(18px, 3vw, 26px) 0; }
.coach-map-list { margin-top: 18px; border-top: 1px solid #d5e7cf; }
.coach-map-row { display: grid; grid-template-columns: minmax(170px, 1.2fr) minmax(220px, 1.4fr) minmax(150px, 1fr) auto; align-items: center; gap: 14px; padding: 15px clamp(18px, 3vw, 26px); border-bottom: 1px solid #dcebd5; background: rgba(255,255,255,.5); }
.coach-map-row:nth-child(even) { background: rgba(232,248,223,.44); }
.coach-map-member { display: grid; gap: 3px; min-width: 0; }
.coach-map-member strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coach-map-member span,
.coach-map-signal { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.coach-map-states { display: flex; flex-wrap: wrap; gap: 6px; }
.coach-map-state { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border: 1px solid #d3ded0; border-radius: 999px; color: #5f6b5d; background: #fff; font-size: .7rem; font-weight: 850; white-space: nowrap; }
.coach-map-state.is-complete { border-color: #9fdc88; color: #126b39; background: #eeffe4; }
.coach-map-state.is-complete span { color: #0ca84f; }
.coach-map-state.is-pending { border-color: #efd39a; color: #775322; background: #fff7df; }
.coach-map-state.is-pending span { color: #d58a13; }
.coach-map-state.is-not-required { color: #859084; background: #f4f7f3; }
.coach-map-open { min-height: 36px; padding: 7px 12px; white-space: nowrap; }
.coach-map-empty { margin: 0; padding: 24px; color: var(--muted); text-align: center; }
.coach-message-thread { display: grid; gap: 10px; max-height: 480px; overflow-y: auto; }
.coach-message { max-width: 80%; padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.coach-message.outgoing { justify-self: end; background: #edfac6; }
.coach-message p { margin: 5px 0; white-space: pre-wrap; }
.coach-message-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-visibility-choice { align-items: flex-start; margin-top: 18px; }
.profile-visibility-choice span { display: grid; gap: 5px; }
.profile-visibility-choice small { color: var(--muted); font-weight: 500; line-height: 1.4; }
.member-booking-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .42fr); gap: 24px; align-items: center; margin: 18px 0; overflow: hidden; border-color: #96bd2d; background: linear-gradient(135deg, #1d2820, #344538); color: #fff; }
.member-booking-card .eyebrow, .member-booking-card h2 { color: var(--lime); }
.member-booking-card p { line-height: 1.55; }
.member-booking-card .muted, .member-booking-card small { color: #dce7de; }
.member-booking-card.compact { margin: 0; }
.booking-cadence { margin-bottom: 8px; color: #f3f8f0; }
.booking-actions { display: grid; gap: 10px; align-content: center; }
.booking-actions .button { text-align: center; }
.booking-actions small { line-height: 1.4; }
.midday-upgrade-card { cursor: default; }
.midday-upgrade-card:hover { transform: none; box-shadow: 0 5px 18px rgba(32,44,35,.06); }
.midday-upgrade-card .button { width: 100%; margin-top: auto; }
.feature-list { display: grid; gap: 9px; padding-left: 20px; }
.help-jump-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.help-jump-nav button { min-height: 42px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--soft); font-weight: 850; cursor: pointer; }
.help-jump-nav button:hover { color: var(--orange-dark); border-color: #f2b68f; background: #fff4ec; }
.help-section { margin: 24px 0 40px; scroll-margin-top: 150px; }
.help-about-card { color: #fff; border-color: #4d614f; background: linear-gradient(135deg, #1d2820, #394a3c); }
.help-about-card .eyebrow { color: var(--lime); }
.help-about-card p { color: #e2eae3; line-height: 1.6; }
.help-principles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.help-principles span { padding: 7px 10px; border: 1px solid rgba(185,229,49,.4); border-radius: 999px; color: var(--lime); font-size: .78rem; font-weight: 900; }
.help-benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.help-benefit-grid div { padding: 15px; border-radius: 13px; background: var(--soft); }
.help-benefit-grid p { margin: 6px 0 0; color: var(--muted); line-height: 1.45; }
.help-flow { display: grid; gap: 12px; }
.help-flow-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.help-flow-card h3, .help-flow-card p { margin: 0; }
.help-flow-card p { margin-top: 5px; line-height: 1.45; }
.help-step-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #17200f; background: var(--lime); font-weight: 950; }
.help-callout { margin: 16px 0; border-color: #f0c570; background: linear-gradient(135deg, #fff9e9, #fff); }
.help-callout p { margin-bottom: 0; line-height: 1.55; }
.help-system-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.help-system-grid .card { display: grid; align-content: start; }
.help-system-grid p { color: var(--muted); line-height: 1.5; }
.help-system-grid .text-link { justify-self: start; margin-top: auto; }
.help-system-grid .help-information-disclosure { display: block; padding: 0; }
.help-information-disclosure .content-disclosure-body p { margin: 0; }
.help-information-disclosure .content-disclosure-body .text-link { display: inline-flex; margin-top: 14px; }
.faq-search { max-width: 640px; }
.faq-list { display: grid; gap: 9px; }
.faq-item { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq-item summary { min-height: 56px; display: flex; align-items: center; padding: 15px 17px; position: relative; cursor: pointer; font-weight: 850; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0; padding: 0 17px 17px; color: var(--muted); line-height: 1.58; }
.help-support-card { max-width: 820px; margin: 0 auto; padding: clamp(20px, 5vw, 36px); }
.help-legal-links { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 22px; font-size: .86rem; }
@media (min-width: 641px) and (max-width: 1100px) {
  body.nav-menu-open { overflow: hidden; }
  .admin-map-controls-layout { grid-template-columns: 1fr; }
  .admin-tabs { top: 118px; }
  .nav-menu {
    width: min(440px, calc(100vw - 32px));
    max-height: min(76dvh, 640px);
    padding: 0;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
  }
  .nav-menu-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 68px;
    padding: 12px 14px 11px 18px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, #fff, #fff8f3);
  }
  .nav-menu-header .eyebrow {
    display: block;
    margin-bottom: 2px;
    font-size: .68rem;
  }
  .nav-menu-header strong {
    display: block;
    color: var(--ink);
    font-size: 1.25rem;
  }
  .nav-menu .nav-menu-close {
    width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 1.5rem;
  }
  .nav-menu-list {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0;
    max-height: none;
    padding: 8px 12px 18px;
  }
  .nav-menu-section-label {
    display: block;
    margin: 12px 8px 6px;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
  }
  .nav-menu-list button, .nav-menu-list a {
    flex: 0 0 auto;
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    background: transparent;
    color: var(--ink);
    font-size: .96rem;
  }
}

/* Guided Learning Paths */
.guided-learning-resource-card,
.guided-learning-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1.25rem;
  padding: clamp(1.35rem, 4vw, 2rem);
  border: 1px solid rgba(185, 229, 49, .45);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 92% 12%, rgba(185, 229, 49, .24), transparent 32%),
    linear-gradient(135deg, #17251c, #253429);
  box-shadow: 0 20px 48px rgba(22, 37, 27, .16);
  color: #fff;
}

.guided-learning-resource-card h2,
.guided-learning-hero h2 {
  color: #fff;
}

.guided-learning-resource-card p,
.guided-learning-hero p {
  max-width: 48rem;
  margin-bottom: 0;
  color: #dbe8de;
  font-size: 1.05rem;
}

.guided-learning-resource-card .eyebrow,
.guided-learning-hero .eyebrow {
  color: var(--lime);
}

.guided-learning-total {
  min-width: 9.5rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, .08);
  text-align: center;
}

.guided-learning-total strong {
  display: block;
  color: var(--lime);
  font-size: clamp(2.4rem, 8vw, 4rem);
  line-height: 1;
}

.guided-learning-total span {
  display: block;
  margin-top: .45rem;
  color: #fff;
  font-size: .82rem;
  font-weight: 850;
}

.guided-path-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.guided-path-card {
  --guided-accent: var(--lime);
  position: relative;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
  overflow: hidden;
  padding: clamp(1.15rem, 3vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: var(--surface-shadow);
}

.guided-path-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: .38rem;
  background: var(--guided-accent);
}

.guided-path-orange { --guided-accent: #ff8a2b; }
.guided-path-berry { --guided-accent: #c861d8; }

.guided-path-number {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  color: #18230d;
  background: color-mix(in srgb, var(--guided-accent) 72%, white);
  font-size: 1.35rem;
  font-weight: 950;
}

.guided-path-card-copy h2 {
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.guided-path-card-copy > p:not(.eyebrow) {
  margin: .35rem 0 .8rem;
  color: var(--muted);
  font-size: 1rem;
}

.guided-path-progress-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.guided-path-progress-track {
  height: .72rem;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: #e4eae5;
}

.guided-path-progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--lime));
}

.guided-learning-video-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.guided-learning-play {
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #18230d;
  background: var(--lime);
  box-shadow: 0 10px 25px rgba(185, 229, 49, .25);
  font-size: 1.15rem;
  font-weight: 950;
}

.guided-lesson-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  align-items: start;
  gap: 1.4rem;
}

.guided-lesson-sidebar {
  position: sticky;
  top: 9.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: var(--surface-shadow);
}

.guided-learning-back {
  width: 100%;
  justify-content: flex-start;
  padding: .45rem;
  text-align: left;
}

.guided-lesson-path-progress {
  display: grid;
  gap: .55rem;
  margin: .8rem 0 1rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
}

.guided-lesson-list {
  display: grid;
  gap: .4rem;
}

.guided-lesson-list button {
  min-height: 3.7rem;
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  align-items: center;
  gap: .7rem;
  padding: .6rem;
  border: 0;
  border-radius: .9rem;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.guided-lesson-list button[aria-current="step"] {
  background: #f1f7df;
  box-shadow: inset 0 0 0 1px rgba(185, 229, 49, .48);
}

.guided-lesson-list button strong,
.guided-lesson-list button small {
  display: block;
}

.guided-lesson-list button small {
  margin-top: .15rem;
  color: var(--muted);
}

.guided-lesson-step {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: var(--soft);
  font-weight: 900;
}

.guided-lesson-step.is-complete {
  color: #18230d;
  background: var(--lime);
}

.guided-lesson-content {
  display: grid;
  gap: 1.15rem;
  min-width: 0;
}

.guided-lesson-heading,
.guided-lesson-reading,
.guided-lesson-action,
.guided-lesson-video {
  padding: clamp(1.35rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: var(--surface-shadow);
}

.guided-lesson-heading h1 {
  max-width: 18ch;
}

.guided-lesson-heading > p:not(.eyebrow),
.guided-lesson-reading li,
.guided-lesson-action p {
  font-size: clamp(1.06rem, 2.4vw, 1.22rem);
  line-height: 1.7;
}

.guided-lesson-video {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, #18251d, #2a3c2e);
}

.guided-lesson-video h2 {
  color: #fff;
}

.guided-lesson-video p {
  color: #dbe8de;
}

.guided-lesson-video img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1rem;
  background: #101a13;
}

.guided-lesson-video-pending {
  grid-template-columns: auto minmax(0, 1fr);
}

.guided-lesson-reading ul {
  display: grid;
  gap: .9rem;
  margin: 1rem 0 0;
  padding-left: 1.4rem;
}

.guided-lesson-reading li::marker {
  color: var(--orange);
  font-size: 1.25em;
}

.guided-lesson-action {
  border-color: rgba(185, 229, 49, .55);
  background: linear-gradient(145deg, #fbfff1, #fff);
}

.guided-lesson-action .button {
  margin-top: .75rem;
}

.guided-lesson-privacy {
  margin: .8rem 0 0;
  color: var(--muted);
  font-size: .82rem !important;
  line-height: 1.5 !important;
}

html[data-theme="dark"] .guided-path-card,
html[data-theme="dark"] .guided-lesson-sidebar,
html[data-theme="dark"] .guided-lesson-heading,
html[data-theme="dark"] .guided-lesson-reading,
html[data-theme="dark"] .guided-lesson-action {
  border-color: rgba(255, 255, 255, .12);
  background: #18211b;
}

html[data-theme="dark"] .guided-path-progress-track {
  background: #334038;
}

html[data-theme="dark"] .guided-lesson-list button[aria-current="step"] {
  background: rgba(185, 229, 49, .12);
}

html[data-theme="dark"] .guided-lesson-action {
  background: linear-gradient(145deg, rgba(185, 229, 49, .1), #18211b);
}

@media (max-width: 800px) {
  .guided-learning-resource-card,
  .guided-learning-hero,
  .guided-path-card,
  .guided-learning-video-note,
  .guided-lesson-layout {
    grid-template-columns: 1fr;
  }

  .guided-learning-resource-card .button,
  .guided-path-card > .button,
  .guided-learning-video-note .button {
    width: 100%;
  }

  .guided-learning-total {
    width: 100%;
  }

  .guided-path-card {
    padding-left: 1.4rem;
  }

  .guided-lesson-sidebar {
    position: static;
  }

  .guided-lesson-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .guided-lesson-list,
  .guided-lesson-video,
  .guided-lesson-video-pending {
    grid-template-columns: 1fr;
  }

  .guided-lesson-video .guided-learning-play {
    justify-self: start;
  }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .map-day-control { grid-template-columns: 1fr; }
  .replay-toolbar { grid-template-columns: 1fr; }
  .replay-folder-grid { grid-template-columns: 1fr; }
  .replay-folder-card { grid-template-columns: auto minmax(0, 1fr); }
  .replay-folder-card .button { grid-column: 1 / -1; width: 100%; }
  .meeting-grid, .community-grid, .resource-grid { grid-template-columns: 1fr; }
  .score-scale { grid-template-columns: repeat(5, minmax(44px, 1fr)); }
  .protocol-grid { grid-template-columns: 1fr; }
  .aligned-choices { grid-template-columns: 1fr; }
  .replay-callout { align-items: stretch; flex-direction: column; }
  .reminder-banner { align-items: stretch; flex-direction: column; }
  .notification-setup-card { grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
  .notification-setup-card .button { grid-column: 1 / -1; width: 100%; }
  .notification-opt-in-actions, .notification-opt-in-actions .button { width: 100%; }
  .reminder-preferences-launcher { align-items: stretch; flex-direction: column; }
  .reminder-preferences-launcher .button { width: 100%; }
  .delivery-row { grid-template-columns: 1fr; }
  .challenge-heading { flex-direction: column; }
  .login-card { padding: 28px 22px; }
  .text-button { font-size: .82rem; }
  body { padding-bottom: 78px; }
  .main-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 60;
    padding: 6px max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    border-bottom: 0;
    box-shadow: 0 -10px 30px rgba(29,37,32,.1);
  }
  .primary-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
  .primary-nav .nav-selection-pill {
    position: absolute;
    z-index: 0;
    top: 4px;
    bottom: 4px;
    left: 0;
    display: block;
    width: calc((100% - 8px) / 5);
    border: 1px solid rgba(255, 94, 0, .1);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 94, 0, .14), rgba(185, 229, 49, .13));
    box-shadow: 0 5px 14px rgba(87, 56, 25, .08), inset 0 0 0 1px rgba(255, 255, 255, .55);
    opacity: 0;
    transform: translateX(0);
    will-change: transform;
    transition: transform var(--motion-duration-quick) var(--motion-ease-smooth), opacity var(--motion-duration-quick) var(--motion-ease-smooth);
  }
  .primary-nav[data-active-index="0"] .nav-selection-pill { opacity: 1; transform: translateX(0); }
  .primary-nav[data-active-index="1"] .nav-selection-pill { opacity: 1; transform: translateX(calc(100% + 2px)); }
  .primary-nav[data-active-index="2"] .nav-selection-pill { opacity: 1; transform: translateX(calc(200% + 4px)); }
  .primary-nav[data-active-index="3"] .nav-selection-pill { opacity: 1; transform: translateX(calc(300% + 6px)); }
  .primary-nav[data-active-index="4"] .nav-selection-pill { opacity: 1; transform: translateX(calc(400% + 8px)); }
  .primary-nav > button {
    min-width: 0;
    min-height: 62px;
    padding: 5px 2px;
    border-radius: 11px;
    flex-direction: column;
    gap: 2px;
    line-height: 1.05;
    font-size: .7rem;
    text-align: center;
  }
  .primary-nav > button.active { background: transparent; box-shadow: none; }
  .primary-nav .nav-icon { transform: translateY(0) scale(1); }
  .primary-nav > button.active .nav-icon {
    color: var(--orange-dark);
    stroke-width: 2.75;
    filter: drop-shadow(0 3px 4px rgba(255, 94, 0, .16));
    transform: translateY(-2px);
  }
  .primary-nav .nav-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: .7rem;
    line-height: 1;
    opacity: .56;
    text-overflow: ellipsis;
    transform: translateY(2px);
    white-space: nowrap;
  }
  .primary-nav > button.active .nav-label { opacity: 1; transform: translateY(-1px); }
  body.nav-menu-open { overflow: hidden; }
  .main-nav .nav-menu-backdrop {
    display: block;
    bottom: calc(70px + env(safe-area-inset-bottom));
    background: rgba(13, 20, 15, .38);
    backdrop-filter: blur(2px);
  }
  .nav-menu {
    position: fixed;
    inset: auto 8px calc(72px + env(safe-area-inset-bottom)) 8px;
    z-index: 62;
    width: auto;
    max-height: min(72dvh, 610px);
    padding: 0;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 24px 70px rgba(12, 20, 14, .3);
  }
  .nav-menu-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 72px;
    padding: 14px 16px 12px 20px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, #fff, #fff8f3);
  }
  .nav-menu-header .eyebrow { display: block; margin-bottom: 2px; font-size: .68rem; }
  .nav-menu-header strong { display: block; color: var(--ink); font-size: 1.35rem; }
  .nav-menu .nav-menu-close {
    width: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 1.6rem;
    line-height: 1;
  }
  .nav-menu-list {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0;
    max-height: none;
    padding: 8px 12px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .nav-menu-section-label {
    display: block;
    margin: 12px 8px 6px;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
  }
  .nav-menu-list button, .nav-menu-list a {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    font-size: .96rem;
  }
  .nav-menu-list button:hover, .nav-menu-list a:hover,
  .nav-menu-list button:focus-visible, .nav-menu-list a:focus-visible {
    color: var(--orange-dark);
    background: #fff4ec;
  }
  .nav-menu-list .active {
    color: var(--orange-dark);
    background: #fff0e7;
  }
  .skeleton-grid { grid-template-columns: 1fr; }
  .skeleton-wide { grid-column: auto; }
  .receipt { font-size: .86rem; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .form-card { padding: 20px 16px; }
  .map-voice-control { grid-template-columns: 1fr; }
  .map-voice-button { width: 100%; }
  .map-draft-status-row { align-items: flex-start; flex-direction: column; }
  .map-quick-answers, .map-number-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-answer-chip, .map-number-action { width: 100%; }
  .admin-map-controls-layout, .admin-map-alert-card { grid-template-columns: 1fr; }
  .admin-alert-actions { align-items: stretch; justify-content: flex-start; }
  .admin-alert-actions .button { width: 100%; }
  .form-card[data-type="weekend"] > .button[type="submit"] { position: sticky; z-index: 8; bottom: calc(82px + env(safe-area-inset-bottom)); box-shadow: 0 12px 32px rgba(21, 32, 23, .24); }
  .weekend-map-intro { margin-inline: 0; }
  .master-home-card, .calendar-event-card { grid-template-columns: 1fr; }
  .calendar-event-card.has-image { grid-template-columns: 1fr; }
  .calendar-event-card-image { width: 100%; aspect-ratio: 16 / 9; }
  .calendar-admin-shortcut { align-items: stretch; flex-direction: column; }
  .calendar-admin-shortcut .button { width: 100%; }
  .master-feature-image { border-radius: 15px; }
  .master-music-card { grid-template-columns: 78px minmax(0, 1fr); gap: 13px; }
  .master-music-card:not(:has(.master-music-art)) { grid-template-columns: 1fr; }
  .master-music-art { width: 78px; height: 78px; border-radius: 12px; }
  .master-music-actions, .master-music-actions .button { width: 100%; }
  .master-home-card .button, .calendar-event-card .button { width: 100%; }
  .event-accent { width: 100%; height: 7px; }
  .master-primary-actions { align-items: stretch; flex-direction: column; }
  .master-primary-actions .button { width: 100%; }
  .next-session-card { align-items: flex-start; flex-direction: column; }
  .calendar-toolbar { grid-template-columns: auto 1fr; }
  .calendar-toolbar h2 { grid-column: 1 / -1; grid-row: 1; }
  .calendar-toolbar > button { grid-row: 2; }
  .calendar-toolbar > div { grid-row: 2; text-align: right; }
  .calendar-grid { display: grid; border-radius: 14px; }
  .calendar-weekday { padding: 8px 2px; font-size: .61rem; letter-spacing: -.02em; }
  .calendar-day { min-height: 66px; padding: 5px 4px; }
  .calendar-number { width: 23px; height: 23px; margin-bottom: 2px; font-size: .76rem; }
  .calendar-chip, .calendar-more { display: none; }
  .calendar-mobile-events { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; min-height: 26px; }
  .calendar-mobile-event-dot { width: 17px; height: 17px; padding: 0; box-shadow: inset 0 0 0 1px rgba(21,32,23,.12); }
  .calendar-mobile-event-dot:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
  .calendar-agenda { gap: 10px; }
  .calendar-event-dialog > div { padding: 24px 18px 20px; }
  .calendar-event-dialog-header { padding-right: 50px; }
  .calendar-event-dialog-facts { grid-template-columns: 1fr; }
  .calendar-event-dialog-facts > div:first-child { grid-column: auto; }
  .calendar-event-dialog-actions, .calendar-event-dialog-actions form, .calendar-event-dialog-actions .button { width: 100%; }
  .admin-calendar-layout { grid-template-columns: 1fr; }
  .admin-guide-card, .member-booking-card { grid-template-columns: 1fr; }
  .admin-tabs { top: 6px; margin-inline: -4px; }
  .booking-actions .button { width: 100%; }
  .discussion-post.admin { grid-template-columns: 1fr; }
  .daily-action-card, .daily-action-detail, .map-action-link, .inbox-item, .admin-engagement-layout { grid-template-columns: 1fr; }
  .daily-action-cta { justify-content: flex-start; }
  .action-history-card { grid-template-columns: 1fr; }
  .community-post > header { grid-template-columns: minmax(0, 1fr) auto; }
  .community-post > header .status { grid-column: 1 / -1; }
  .community-profile-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 22px; }
  #communityMemberProfileContent { padding: 22px 18px; }
  .community-profile-facts { grid-template-columns: 1fr; }
  .community-comment-form, .community-reply-form, .coach-action-feedback-form { grid-template-columns: 1fr; }
  .community-category-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .community-category-heading small { max-width: none; text-align: left; }
  .community-app-share-card { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .community-app-share-art { width: 100%; max-height: none; border-radius: 12px; }
  .community-app-share-actions .button { width: 100%; }
  .community-category-chips { margin-right: -8px; margin-left: -8px; padding-right: 8px; padding-left: 8px; }
  .admin-community-category-manager > summary { align-items: flex-start; flex-direction: column; padding: 16px; }
  .admin-community-category-row { grid-template-columns: 1fr; }
  .community-toolbar { align-items: stretch; flex-direction: column; }
  .community-toolbar .field, .community-toolbar .button { width: 100%; }
  .community-compose-launcher { grid-template-columns: 1fr; }
  .community-compose-launcher .button { width: 100%; }
  .community-compose-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .community-draft-photo { grid-template-columns: 72px minmax(0, 1fr); }
  .community-draft-photo img { width: 72px; height: 72px; }
  .community-draft-photo-actions { grid-column: 1 / -1; }
  .community-refresh-status { width: 100%; }
  .community-directory-grid, .community-directory-skeleton { grid-template-columns: 1fr; }
  .community-directory-toolbar { align-items: stretch; flex-direction: column; }
  .community-directory-toolbar .field { width: 100%; }
  .community-comment-form .button, .community-reply-form .button, .coach-action-feedback-form .button { width: 100%; }
  .community-comment-replies, .community-reply-form { margin-left: 20px; }
  .community-mention-menu { width: calc(100vw - 16px); max-height: min(58dvh, 390px); padding: 6px; border-radius: 16px; }
  .community-mention-list { max-height: min(48dvh, 326px); scrollbar-gutter: auto; }
  .community-mention-option { min-height: 54px; padding: 9px; }
  .community-feed-skeleton { min-height: 286px; border-radius: 18px; }
  .community-feed-skeleton.has-media,
  .community-feed-skeleton[data-has-media="true"] { min-height: 446px; background-size: auto; }
  .community-skeleton-card { min-height: 286px; padding: 16px; border-radius: 18px; }
  .community-skeleton-media { aspect-ratio: 4 / 3; }
  .community-skeleton-control { width: 86px; }
  .community-skeleton-control:nth-child(2) { width: 76px; }
  .community-skeleton-comment { width: 64px; }
  .community-image-shell,
  .community-image { aspect-ratio: var(--community-image-ratio, 4 / 3); }
  .community-load-more-status { flex-wrap: wrap; padding: 10px 12px; border-radius: 13px; }
  .community-load-more-status .button { width: 100%; }
  .inbox-actions { align-items: stretch; flex-direction: column; }
  .inbox-actions .button { width: 100%; }
  .journey-chart { grid-template-columns: repeat(30, 18px); }
  .help-jump-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-jump-nav button { border-radius: 11px; }
  .help-benefit-grid, .help-system-grid { grid-template-columns: 1fr; }
  .help-flow-card { grid-template-columns: auto minmax(0, 1fr); }
  .help-flow-card .text-link { grid-column: 1 / -1; justify-self: stretch; text-align: center; border: 1px solid var(--line); border-radius: 10px; }
  .help-section { scroll-margin-top: 80px; }
  .app-update-card { grid-template-columns: 1fr 1fr; }
  .app-update-card > div { grid-column: 1 / -1; }
  .app-update-card .button { width: 100%; }
}

/* Accountability Brain vertical slice */
.message.success { color: #24552d; background: #eaf8eb; }
.brain-home-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin: 0 0 20px;
  overflow: hidden;
  border-color: #789621;
  color: #fff;
  background:
    radial-gradient(circle at 92% 10%, rgba(185,229,49,.22), transparent 28%),
    linear-gradient(135deg, #172019, #2c3b2e);
  box-shadow: 0 16px 42px rgba(23,32,25,.18);
}
.brain-home-card .eyebrow { margin: 0; color: var(--lime); }
.brain-home-card h2 { margin-top: 5px; }
.brain-home-card p { line-height: 1.5; }
.brain-home-card .muted { color: #d6e0d7; }
.brain-home-card .button { white-space: nowrap; }
.brain-home-card.brain-preparing { color: var(--ink); border-color: #cbd7c4; background: linear-gradient(135deg, #f7faf7, #fff); box-shadow: 0 5px 18px rgba(32,44,35,.04); }
.brain-home-card.brain-preparing .eyebrow { color: var(--orange-dark); }
.brain-home-card.brain-preparing .muted { color: var(--muted); }
.brain-home-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 17px;
  color: #21300f;
  background: var(--lime);
  font-size: 1.8rem;
  font-weight: 950;
}
.brain-preparing .brain-home-mark { color: var(--orange-dark); border-color: #f4cfb8; background: #fff0e7; }
.brain-home-meta, .brain-card-heading, .brain-briefing-head, .brain-intervention-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.brain-home-meta { justify-content: flex-start; align-items: center; }
.brain-next-step { margin-bottom: 0; color: #f1f7f1; }
.brain-empty-state {
  min-height: 190px;
  display: grid;
  justify-items: center;
  place-content: center;
  gap: 10px;
  text-align: center;
}
.brain-empty-state h2, .brain-empty-state h3, .brain-empty-state p { margin: 0; }
.brain-empty-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #243510;
  background: var(--lime);
  font-size: 1.7rem;
  font-weight: 950;
}
.brain-button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.brain-cache-notice { margin-bottom: 16px; }
.brain-plan-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  border-color: #a4c83b;
  background: linear-gradient(135deg, #fbffe9, #fff);
}
.brain-plan-intro p { max-width: 760px; line-height: 1.55; }
.brain-plan-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 12px;
}
.brain-plan-message span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #21300f;
  background: var(--lime);
  font-weight: 950;
}
.brain-plan-message p { margin: 0; line-height: 1.5; }
.brain-plan-message.celebration { border-color: #9ac331; background: #f7ffe1; }
.brain-plan-message.recovery { border-color: #efc06a; background: #fffaf0; }
.brain-action-list { display: grid; gap: 13px; }
.brain-action-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 17px;
  align-items: center;
}
.brain-action-card h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); }
.brain-action-card p { line-height: 1.5; }
.brain-action-card small { color: var(--muted); }
.brain-action-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #20300e;
  background: var(--lime);
  font-weight: 950;
}
.brain-focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 13px;
}
.brain-focus-grid .card { display: grid; align-content: start; }
.brain-focus-grid .text-link { justify-self: start; margin-top: auto; }
.brain-support-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr);
  gap: 28px;
  align-items: center;
  margin-top: 26px;
  border-color: #a5c83f;
  background: linear-gradient(135deg, #fbffe9, #fff);
}
.brain-support-card form { min-width: 0; }
.brain-inline-result { margin: 12px 0 0; }
.brain-plan-updated { text-align: right; }
.brain-pending { filter: saturate(.75); }
.brain-success::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 2px;
  pointer-events: none;
  border: 2px solid rgba(83,137,39,.42);
  border-radius: inherit;
  opacity: 0;
  transform: scale(.94);
  will-change: opacity, transform;
  animation: brain-success-pulse var(--motion-duration-large) var(--motion-ease-enter);
}
html[data-motion-performance-constrained] .brain-success::after {
  animation: none;
  opacity: 0;
}
@keyframes brain-success-pulse {
  0% { opacity: .9; transform: scale(.94); }
  100% { opacity: 0; transform: scale(1); }
}
.brain-coach-section, .brain-coach-member-section { margin-top: 30px; }
.brain-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 13px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}
.brain-filter-bar .field { margin: 0; }
.brain-filter-search { grid-column: span 2; }
.brain-filter-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.brain-filter-actions .button { min-height: 44px; }
.brain-result-count { margin: 0 0 12px; color: var(--muted); font-size: .82rem; }
.brain-queue-error { margin-bottom: 12px; }
.brain-coach-list { display: grid; gap: 11px; }
.brain-coach-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(120px, .45fr) minmax(240px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
}
.brain-coach-row.priority-urgent { border-left: 5px solid var(--danger); }
.brain-coach-row.priority-high { border-left: 5px solid #dc7b16; }
.brain-coach-row.priority-normal { border-left: 5px solid #d9a51b; }
.brain-coach-row.priority-low, .brain-coach-row.priority-none { border-left: 5px solid #87a82a; }
.brain-coach-identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.brain-coach-identity h3, .brain-coach-identity p, .brain-coach-reason p { margin: 0; }
.brain-coach-reason small { display: block; margin-top: 7px; color: var(--muted); }
.brain-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #20310c;
  background: var(--lime);
  font-weight: 950;
}
.brain-avatar img { width: 100%; height: 100%; object-fit: cover; }
.brain-coach-signal { display: grid; justify-items: start; gap: 3px; }
.brain-coach-signal > strong { font-size: 1.55rem; }
.brain-coach-signal small { color: var(--muted); }
.brain-priority-urgent { color: #fff; background: var(--danger); }
.brain-priority-high { color: #713800; background: #ffe2bd; }
.brain-priority-normal { color: #6f5200; background: #fff1bd; }
.brain-priority-low, .brain-priority-none { color: #315310; background: #eaf7ca; }
.brain-load-more { display: flex; justify-content: center; margin-top: 14px; }
.brain-coach-summary, .brain-admin-health {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.brain-metric-label { font-size: clamp(1.2rem, 2.5vw, 1.65rem); }
.brain-activity-comparison { margin-top: 14px; }
.brain-activity-comparison > .muted { margin: 12px 0; line-height: 1.5; }
.brain-activity-comparison table th:first-child { min-width: 190px; text-align: left; }
.brain-reason-panel { margin-top: 14px; }
.brain-reason-panel > div { display: grid; gap: 0; }
.brain-reason-panel > div > div { padding: 13px 0; border-top: 1px solid var(--line); }
.brain-reason-panel p { margin: 5px 0 0; line-height: 1.5; }
.brain-intervention-list { display: grid; gap: 13px; }
.brain-intervention-card > small { display: block; margin: 10px 0; color: var(--muted); }
.brain-intervention-suggestion {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 13px 0;
}
.brain-intervention-suggestion > div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.brain-intervention-suggestion p { margin: 6px 0 0; line-height: 1.5; white-space: pre-wrap; }
.brain-intervention-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.brain-intervention-form .field > small { display: block; margin-top: 6px; color: var(--muted); }
.brain-review-check {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 14px;
  font-weight: 800;
  cursor: pointer;
}
.brain-review-check input { width: 20px; height: 20px; accent-color: var(--orange); }
.brain-field-active {
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff8e8;
}
.brain-form-action { display: flex; align-items: end; justify-content: flex-end; padding-bottom: 14px; }
.brain-admin-health { margin-bottom: 16px; }
.brain-admin-preview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 16px;
  border-color: #a5c83f;
  background: linear-gradient(135deg, #f8ffe4, #fff8e8);
}
.brain-admin-preview-card h3 { margin: 5px 0 8px; }
.brain-admin-preview-card p { max-width: 760px; line-height: 1.5; }
.brain-admin-preview-labels { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.brain-admin-preview-safeguards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
  margin: 14px 0 0;
  padding-left: 20px;
}
.brain-admin-preview-dialog {
  width: min(920px, calc(100vw - 32px));
  max-width: none;
  height: min(860px, calc(100dvh - 32px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid #a5c83f;
  border-radius: 22px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 28px 80px rgba(20, 32, 15, .34);
}
.brain-admin-preview-dialog::backdrop {
  background: rgba(13, 22, 11, .72);
  backdrop-filter: blur(3px);
}
.brain-admin-preview-shell {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.brain-admin-preview-header {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.brain-admin-preview-header h2 { margin: 0; }
.brain-admin-preview-header p { margin: 5px 0 0; color: var(--muted); }
.brain-admin-preview-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  background: var(--soft);
}
.brain-admin-preview-banner {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 13px 15px;
  border: 1px solid #e5ae42;
  border-radius: 13px;
  color: #513a00;
  background: #fff5d8;
}
.brain-admin-preview-dialog button:disabled {
  opacity: .72;
  cursor: not-allowed;
}
.brain-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 16px;
}
.brain-card-heading h3, .brain-briefing-head h3 { margin: 4px 0 0; }
.brain-briefing-card { border-color: #a7c844; background: linear-gradient(135deg, #faffeb, #fff); }
.brain-calibration-panel { margin-top: 14px; }
.brain-calibration-caveat { margin: 14px 0; line-height: 1.5; }
.brain-calibration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}
.brain-calibration-grid > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--soft);
}
.brain-calibration-grid strong { font-size: 1.2rem; }
.brain-calibration-grid span { color: var(--muted); font-size: .76rem; }
.brain-calibration-panel > small { display: block; margin-top: 10px; color: var(--muted); }
.brain-briefing-counts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 17px 0;
}
.brain-briefing-counts > div { display: grid; gap: 3px; padding: 10px; border-radius: 11px; background: rgba(255,255,255,.78); text-align: center; }
.brain-briefing-counts strong { font-size: 1.35rem; }
.brain-briefing-counts span { color: var(--muted); font-size: .76rem; }
.brain-reason-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.brain-reason-chips span { padding: 6px 9px; border-radius: 999px; color: #425420; background: #edf6d5; font-size: .76rem; font-weight: 800; }
.brain-briefing-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(95, 116, 44, .2);
}
.brain-briefing-section h4 { margin: 0 0 10px; }
.brain-briefing-columns,
.brain-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.brain-briefing-list,
.brain-briefing-prompt-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.brain-briefing-list li,
.brain-briefing-prompt-list li {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.7);
}
.brain-briefing-prompt-list li {
  align-items: flex-start;
  flex-direction: column;
}
.brain-briefing-prompt-list span { line-height: 1.45; }
.brain-config-section {
  min-width: 0;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.brain-config-section legend { padding: 0 6px; font-weight: 900; }
.brain-config-section > .muted { margin: 0 0 12px; line-height: 1.45; }
.brain-config-grid-five { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.brain-config-schedule {
  margin: 16px 0;
  padding: 14px;
  border-radius: 13px;
  background: var(--soft);
}
.brain-config-schedule h4,
.brain-config-schedule p { margin-top: 0; }
.brain-config-schedule dl { display: grid; gap: 8px; margin: 0; }
.brain-config-schedule dl > div {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.brain-config-schedule dt { font-weight: 850; }
.brain-config-schedule dd { margin: 0; text-align: right; }
.brain-evaluation-card { display: grid; gap: 18px; }
.brain-evaluation-result { margin-top: 16px; }

@media (min-width: 641px) and (max-width: 1100px) {
  .brain-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brain-coach-row { grid-template-columns: minmax(240px, 1fr) minmax(120px, .4fr) auto; }
  .brain-coach-reason { grid-column: 1 / -1; }
  .brain-coach-row > .button { grid-column: 1 / -1; width: 100%; }
  .brain-admin-health { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brain-admin-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .brain-home-card, .brain-plan-intro, .brain-action-card, .brain-support-card,
  .brain-coach-row, .brain-admin-layout, .brain-admin-preview-card { grid-template-columns: 1fr; }
  .brain-admin-preview-card > .button { width: 100%; }
  .brain-admin-preview-safeguards { grid-template-columns: 1fr; }
  .brain-admin-preview-dialog {
    width: 100vw;
    height: 100dvh;
    margin: 0;
    border-width: 0;
    border-radius: 0;
  }
  .brain-admin-preview-header {
    align-items: stretch;
    flex-direction: column;
    padding: max(14px, env(safe-area-inset-top)) 16px 14px;
  }
  .brain-admin-preview-header .button { width: 100%; min-height: 48px; }
  .brain-admin-preview-scroll {
    padding: 16px 14px max(24px, env(safe-area-inset-bottom));
  }
  .brain-home-mark { width: 46px; height: 46px; }
  .brain-home-card .button, .brain-plan-intro .button, .brain-action-card .button,
  .brain-support-card .button, .brain-coach-row .button { width: 100%; }
  .brain-action-number { width: 36px; height: 36px; }
  .brain-button-row { align-items: stretch; flex-direction: column; }
  .brain-button-row .button { width: 100%; }
  .brain-filter-bar { grid-template-columns: 1fr; }
  .brain-filter-search { grid-column: auto; }
  .brain-filter-actions { align-items: stretch; flex-direction: column; }
  .brain-filter-actions .button { width: 100%; }
  .brain-coach-summary, .brain-admin-health { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brain-coach-row { align-items: stretch; }
  .brain-coach-signal { justify-items: start; }
  .brain-form-action { padding: 0; }
  .brain-form-action .button { width: 100%; }
  .brain-briefing-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brain-card-heading, .brain-briefing-head, .brain-intervention-head { align-items: flex-start; flex-direction: column; }
  .brain-intervention-suggestion { grid-template-columns: 1fr; }
  .brain-briefing-columns, .brain-config-grid { grid-template-columns: 1fr; }
  .brain-config-schedule dl > div { align-items: flex-start; flex-direction: column; }
  .brain-config-schedule dd { text-align: left; }
  .brain-plan-updated { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .brain-success::after,
  .community-comment.is-entering::before { animation: none !important; opacity: 0; }
  .primary-nav .nav-selection-pill, .primary-nav .nav-icon, .primary-nav .nav-label { transition: none !important; }
  .primary-nav > button.active .nav-icon, .primary-nav > button.active .nav-label { transform: none; }
  .community-comment.is-entering,
  .community-comment.is-deleting,
  .community-comment.is-removing,
  .community-comment-count.is-counting,
  .community-comment-replies.is-expanding,
  .community-comment-replies.is-collapsing,
  .private-message-bubble.is-entering,
  .private-message-bubble.is-pending small::before,
  .private-message-typing i,
  .completion-celebration.is-pending,
  .completion-celebration.is-pending > span::after,
  .optimistic-sync-note::before,
  .community-pull-refresh,
  .community-pull-refresh-fruit-mark,
  .community-pull-refresh.is-popping .community-pull-refresh-fruit-mark,
  .community-pull-refresh.is-refreshing .community-pull-refresh-fruit-mark {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .community-mention-menu,
  .community-mention-token.is-new,
  .community-feed.is-refreshing,
  .community-feed.is-refreshing::before,
  .community-feed-skeleton::after,
  .community-skeleton-card::after,
  .community-image-shell.is-loading::after,
  .community-post.is-replacing-skeleton,
  .community-post.is-feed-entering,
  .community-load-more-status.is-loading::before {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .community-feed.is-refreshing,
  .community-feed.is-loading-more,
  .community-post.is-feed-entering,
  .community-post.is-replacing-skeleton,
  .community-image-full,
  .community-image.is-progressive { opacity: 1 !important; transform: none !important; filter: none !important; }
  .community-feed-skeleton::after,
  .community-skeleton-card::after { display: none; }
  .community-image-shell.is-loading::after { display: none; }
  .skeleton-card::after { display: none !important; animation: none !important; }
  .fruit-up-guide-message.pending .fruit-up-guide-message-body { animation: none !important; }
}

@media (max-width: 640px) {
  .content-disclosure > summary { min-height: 64px; padding: 14px; }
  .content-disclosure-toggle { min-width: 72px; width: auto; padding: 7px 10px; }
  .content-disclosure-body { padding: 15px; }
  .member-game-guide-grid { grid-template-columns: 1fr; }
  .daily-quest-guide-steps { grid-template-columns: 1fr; }
  .daily-quest-guide-steps section { padding: 12px; }
  .challenge-information-disclosure .content-disclosure-body,
  .challenge-board-disclosure .content-disclosure-body { padding: 0 13px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .content-disclosure-body { animation: none; }
  .home-communications-body { animation: none; }
}

.attendance-roster-card {
  display: grid;
  gap: 18px;
}

.attendance-roster-toolbar,
.attendance-roster-add {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: end;
}

.attendance-roster-add {
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 220px) auto;
  padding: 16px;
  border: 1px solid rgba(185, 255, 46, 0.2);
  border-radius: 16px;
  background: rgba(185, 255, 46, 0.04);
}

.attendance-roster-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(100px, 1fr));
  gap: 10px;
}

.attendance-roster-summary span {
  display: grid;
  gap: 2px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.attendance-roster-summary strong {
  color: var(--lime);
  font-size: 1.35rem;
}

.attendance-roster-summary small,
.attendance-member small {
  color: var(--muted);
}

.attendance-roster-list {
  display: grid;
  gap: 10px;
}

.attendance-roster-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.1fr) minmax(150px, 0.55fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.attendance-member {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: center;
  min-width: 0;
}

.attendance-member > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.attendance-member strong,
.attendance-member small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.attendance-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(185, 255, 46, 0.3);
  border-radius: 50%;
  background: rgba(185, 255, 46, 0.1);
  color: var(--lime);
  font-weight: 800;
}

.attendance-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .section-head-actions {
    align-self: stretch;
    justify-content: space-between;
  }

  .context-help-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .context-help-footer .button { width: 100%; }
}

@media (max-width: 900px) {
  .attendance-roster-summary {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
  }

  .attendance-roster-row {
    grid-template-columns: minmax(210px, 1fr) minmax(150px, 0.7fr);
  }

  .attendance-note-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .attendance-roster-toolbar,
  .attendance-roster-add,
  .attendance-roster-row {
    grid-template-columns: 1fr;
  }

  .attendance-roster-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attendance-note-field {
    grid-column: auto;
  }

  .attendance-roster-row .button,
  .attendance-roster-add .button {
    width: 100%;
  }
}

/* Progress and Recognition V2 */
.weekly-reset-home-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin: 0 0 18px;
  border-color: #b9d655;
  background: linear-gradient(135deg, #f8ffe1, #fff);
}
.weekly-reset-home-card h2,
.weekly-reset-home-card p { margin-top: 4px; margin-bottom: 4px; }
.weekly-reset-home-action {
  min-width: 190px;
  display: grid;
  gap: 10px;
  justify-items: stretch;
}
.weekly-reset-home-action .status { justify-self: end; }
.recognition-center { margin: 24px 0 36px; }
.recognition-headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  color: #fff;
  border-color: #53684e;
  background:
    radial-gradient(circle at 90% 10%, rgba(185,229,49,.2), transparent 32%),
    linear-gradient(135deg, #17211a, #334337);
  box-shadow: 0 18px 48px rgba(23,36,26,.18);
}
.recognition-headline .eyebrow { color: var(--lime); }
.recognition-headline h2 { margin: 5px 0 8px; color: #fff; }
.recognition-headline p { margin: 0; color: #dfe8df; }
.recognition-headline-score {
  min-width: 150px;
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 17px;
  background: rgba(255,255,255,.08);
  text-align: center;
}
.recognition-headline-score strong {
  color: var(--lime);
  font-size: clamp(2.7rem, 7vw, 4rem);
  line-height: 1;
}
.recognition-headline-score span {
  color: #e7eee7;
  font-size: .82rem;
  font-weight: 800;
}
.recognition-unavailable { margin: 14px 0; }
.weekly-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 22px;
}
.weekly-summary-strip > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.weekly-summary-strip strong { color: #2f4810; font-size: 1.22rem; }
.weekly-summary-strip span { color: var(--muted); font-size: .76rem; font-weight: 800; }
.weekly-summary-strip small { color: #557421; font-size: .7rem; font-weight: 800; }
.weekly-reset-section { margin: 26px 0 34px; scroll-margin-top: 145px; }
.weekly-reset-readback {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-color: #b9d655;
  background: linear-gradient(135deg, #fbffe9, #fff);
}
.weekly-reset-readback > div {
  min-width: 0;
  padding: 13px;
  border-radius: 12px;
  background: rgba(255,255,255,.78);
}
.weekly-reset-readback > div > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.weekly-reset-readback p {
  margin: 0;
  line-height: 1.5;
  white-space: pre-wrap;
}
.weekly-reset-readback > small { grid-column: 1 / -1; color: var(--muted); }
.weekly-reset-editor,
.achievement-showcase-editor,
.achievement-explorer,
.admin-achievement-workspace { padding: 0; overflow: hidden; }
.weekly-reset-editor > summary,
.achievement-showcase-editor > summary,
.achievement-explorer > summary,
.admin-achievement-workspace > summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 900;
}
.weekly-reset-editor > summary:focus-visible,
.achievement-showcase-editor > summary:focus-visible,
.achievement-explorer > summary:focus-visible,
.admin-achievement-workspace > summary:focus-visible {
  outline: 3px solid rgba(236,111,35,.28);
  outline-offset: -3px;
}
.weekly-reset-editor[open] > summary,
.achievement-showcase-editor[open] > summary,
.achievement-explorer[open] > summary,
.admin-achievement-workspace[open] > summary { border-bottom: 1px solid var(--line); }
.weekly-reset-editor form,
.achievement-showcase-editor form { padding: 18px; }
.weekly-reset-coach-choice { align-items: flex-start; margin: 14px 0; }
.weekly-reset-coach-choice span,
.achievement-share-consent span,
.achievement-showcase-options .choice span { display: grid; gap: 4px; }
.weekly-reset-coach-choice small,
.achievement-share-consent small,
.achievement-showcase-options small { color: var(--muted); font-weight: 500; line-height: 1.4; }
.weekly-reset-empty { margin: 16px 0 26px; }
.weekly-reset-empty h3 { margin-top: 0; }
.personal-best-grid,
.achievement-feature-grid,
.achievement-next-grid,
.achievement-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.personal-best-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
}
.personal-best-card > span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.personal-best-card > strong {
  color: #2d450f;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  overflow-wrap: anywhere;
}
.personal-best-card > small { color: var(--muted); }
.achievement-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-color: #d4ddce;
}
.achievement-card.earned {
  border-color: #a8c94a;
  background: linear-gradient(145deg, #fbffe9, #fff);
}
.achievement-card.locked { background: #fcfdfc; }
.achievement-card.compact { padding: 17px; }
.achievement-card h3 { margin: 0; line-height: 1.25; }
.achievement-card p { margin: 0; line-height: 1.45; }
.achievement-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.achievement-card-top > div {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.achievement-medal {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  color: #29400b;
  background: linear-gradient(135deg, var(--lime), #8ebc22);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.38);
  font-size: 1.1rem;
  font-weight: 950;
}
.achievement-card.locked .achievement-medal {
  color: #637067;
  background: #e8ece9;
}
.achievement-tier,
.achievement-category {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 8px;
  overflow: hidden;
  border-radius: 999px;
  color: #354a17;
  background: #effacb;
  font-size: .69rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.achievement-category { color: var(--muted); background: var(--soft); }
.achievement-earned-date {
  margin-top: auto !important;
  color: #3e5e17;
  font-size: .8rem;
  font-weight: 850;
}
.achievement-progress { display: grid; gap: 7px; margin-top: auto; }
.achievement-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: .76rem;
}
.achievement-progress .progress-track { height: 8px; }
.achievement-share-button { width: 100%; margin-top: 4px; }
.recognition-empty { grid-column: 1 / -1; }
.member-profile-achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.member-profile-achievements .section-head { align-items: flex-start; }
.community-profile-achievements {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d5e99a;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8ffe1, #fff);
}
.community-profile-achievements > div { display: grid; gap: 8px; }
.community-profile-achievements > div > span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 9px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid rgba(127,155,48,.18);
}
.community-profile-achievements > div > span:first-child { border-top: 0; }
.community-profile-achievements b {
  grid-row: 1 / 3;
  color: #658a16;
  font-size: 1.05rem;
}
.community-profile-achievements small { color: var(--muted); }
.achievement-showcase-editor { margin-top: 13px; }
.achievement-showcase-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}
.achievement-showcase-options .choice { align-items: flex-start; }
.achievement-explorer { margin-top: 28px; }
.achievement-explorer-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(150px, .6fr));
  gap: 10px;
  padding: 16px 16px 0;
}
#achievementExplorerStatus,
#adminAchievementSearchStatus { margin: 8px 16px; }
.achievement-explorer-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-height: 760px;
  padding: 8px 16px 18px;
  overflow-y: auto;
}
.achievement-explorer-item[hidden],
.admin-achievement-item[hidden] { display: none; }
.achievement-explorer-item .achievement-card { height: 100%; }
.achievement-share-dialog {
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(185,229,49,.55);
  border-radius: 22px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 26px 80px rgba(13,24,16,.38);
}
.achievement-share-dialog::backdrop {
  background: rgba(13,24,16,.74);
  backdrop-filter: blur(4px);
}
.achievement-share-dialog form { position: relative; padding: 27px; }
.achievement-share-dialog h2 { margin: 5px 0 14px; }
.achievement-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 1.6rem;
}
.achievement-share-preview {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid #d4e997;
  border-radius: 14px;
  background: #f8ffe1;
}
.achievement-share-preview > div { min-width: 0; display: grid; gap: 4px; }
.achievement-share-preview small { color: var(--muted); }
.achievement-share-consent { align-items: flex-start; margin: 18px 0; }
.achievement-dialog-actions,
.admin-achievement-actions,
.coach-recognition-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.coach-recognition-section { margin: 26px 0; }
.coach-recognition-queue { display: grid; gap: 10px; }
.coach-recognition-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-color: #b9d655;
  background: linear-gradient(135deg, #fbffe9, #fff);
}
.coach-recognition-medal {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #24370d;
  background: var(--lime);
  font-size: 1.25rem;
}
.coach-recognition-copy { min-width: 0; }
.coach-recognition-copy > span {
  color: #4d6d1d;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.coach-recognition-copy h3,
.coach-recognition-copy p { margin: 3px 0; }
.coach-recognition-copy small { color: var(--muted); }
.coach-recognition-empty { text-align: center; }
.coach-weekly-reset-section { margin: 28px 0; }
.coach-weekly-reset-list { display: grid; gap: 12px; }
.coach-weekly-reset-card { display: grid; gap: 14px; }
.coach-weekly-reset-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.coach-weekly-reset-head small { color: var(--muted); }
.coach-weekly-reset-head h3 { margin: 3px 0 0; }
.coach-weekly-reset-statuses {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.coach-weekly-reset-copy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.coach-weekly-reset-copy > div {
  min-width: 0;
  padding: 13px;
  border-radius: 12px;
  background: var(--soft);
}
.coach-weekly-reset-copy strong { display: block; margin-bottom: 6px; }
.coach-weekly-reset-copy p,
.coach-weekly-reset-copy ul { margin: 0; white-space: pre-wrap; }
.coach-weekly-reset-copy ul { padding-left: 20px; }
.admin-achievement-section { margin-top: 30px; }
.admin-manual-award-card {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(320px, 1.45fr);
  gap: 22px;
  margin-bottom: 12px;
  border-color: #b9d655;
  background: linear-gradient(135deg, #fbffe9, #fff);
}
.admin-manual-award-card h3 { margin: 4px 0 8px; }
.admin-manual-award-card p { margin-bottom: 0; }
.admin-achievement-search { max-width: 560px; margin: 16px; }
.admin-achievement-list {
  display: grid;
  gap: 10px;
  max-height: 760px;
  padding: 0 16px 18px;
  overflow-y: auto;
}
.admin-achievement-item {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcfb;
}
.admin-achievement-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.admin-achievement-item-head > div { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-achievement-item form {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.3fr);
  gap: 10px;
  align-items: end;
}
.admin-achievement-item .field { margin: 0; }
.admin-achievement-actions { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .achievement-explorer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .achievement-explorer-tools { grid-template-columns: 1fr 1fr; }
  .achievement-explorer-tools .field:first-child { grid-column: 1 / -1; }
  .weekly-reset-readback { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .high-water-fruit-list ol { grid-template-columns: 1fr; }
  .challenge-agreement-actions, .challenge-agreement-actions .button { width: 100%; }
  .badge-board-summary { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .badge-board-summary > div { min-width: 0; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid #d7e6aa; }
  .badge-category summary { padding: 17px 18px; }
  .badge-category .badge-grid { padding: 0 12px 12px; }
  .badge-grid { grid-template-columns: 1fr; }
  .badge-card { min-height: 220px; }
  .weekly-reset-home-card,
  .recognition-headline,
  .coach-recognition-row { grid-template-columns: 1fr; }
  .weekly-reset-home-action { min-width: 0; }
  .weekly-reset-home-action .status { justify-self: start; }
  .weekly-reset-home-action .button,
  .achievement-dialog-actions .button,
  .coach-recognition-actions .button,
  .admin-achievement-actions .button { width: 100%; }
  .recognition-headline-score { width: 100%; min-width: 0; text-align: left; }
  .weekly-summary-strip,
  .personal-best-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .achievement-feature-grid,
  .achievement-next-grid,
  .achievement-recent-grid,
  .member-profile-achievement-grid,
  .achievement-explorer-list,
  .achievement-showcase-options,
  .weekly-reset-readback,
  .achievement-explorer-tools,
  .admin-achievement-item form,
  .admin-manual-award-card,
  .coach-weekly-reset-copy { grid-template-columns: 1fr; }
  .achievement-explorer-tools .field:first-child { grid-column: auto; }
  .achievement-explorer-list { max-height: none; }
  .achievement-share-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }
  .achievement-share-dialog form { padding: 23px 18px; }
  .coach-recognition-actions { align-items: stretch; flex-direction: column; }
  .coach-weekly-reset-head { flex-direction: column; }
  .coach-weekly-reset-statuses { justify-content: flex-start; }
  .admin-achievement-item-head { align-items: flex-start; }
  .weekly-reset-section { scroll-margin-top: 80px; }
}

/* RC36 appearance controls. The member's explicit choice overrides the
   device preference and is applied before first paint in index.html. */
.theme-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--soft);
  font-weight: 850;
  cursor: pointer;
}
.theme-toggle-icon { width: 20px; font-size: 1.15rem; line-height: 1; }
.theme-toggle-label { font-size: .82rem; }

html[data-theme="dark"] {
  --ink: #f3f7f3;
  --muted: #b4c1b7;
  --line: #35443a;
  --soft: #1b251e;
  --danger: #ff8378;
  --success: #79d889;
  --orange-dark: #ff9c62;
  --surface-shadow: 0 10px 28px rgba(0,0,0,.28);
  --surface-shadow-raised: 0 18px 44px rgba(0,0,0,.42);
  --fruit-up-orange-surface: #462414;
  --fruit-up-orange-raised: #542814;
  --fruit-up-orange-field: #321b11;
  --fruit-up-orange-border: #bf7042;
  --fruit-up-orange-text: #fff7f0;
  --fruit-up-orange-muted: #ffc7a6;
  --fruit-up-orange-accent: #ff9c62;
  color-scheme: dark;
  color: var(--ink);
  background: #0e1510;
}
html[data-theme="dark"] body { position: relative; background: #0e1510; color: var(--ink); }
html[data-theme="dark"] body::before {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 34%, rgba(12,168,79,.13), transparent 34%),
    radial-gradient(ellipse at 82% 66%, rgba(239,45,45,.1), transparent 32%),
    linear-gradient(116deg, transparent 36%, rgba(12,168,79,.055) 47%, transparent 58%),
    linear-gradient(64deg, transparent 40%, rgba(239,45,45,.045) 50%, transparent 60%);
  background-size: 125% 125%, 130% 130%, 190% 190%, 210% 210%;
  opacity: .72;
  transform: translate3d(-2%, -1%, 0);
  animation: fruit-up-dark-ambient var(--fruit-up-ambient-duration) var(--motion-ease-smooth) infinite;
}
html[data-theme="dark"] .app-shell { position: relative; z-index: 1; background: transparent; color: var(--ink); }
@keyframes fruit-up-dark-ambient {
  0%, 100% { opacity: .48; transform: translate3d(-3%, -2%, 0) scale(1); }
  50% { opacity: .76; transform: translate3d(2%, 1%, 0) scale(1.035); }
}
html[data-theme="dark"] .login-screen {
  background: radial-gradient(circle at top, #392413, #0e1510 58%);
}
html[data-theme="dark"] :where(
  .login-card,
  .topbar,
  .main-nav,
  .nav-menu,
  .card,
  .choice,
  .button.secondary,
  .score-choice span,
  .protocol-choice > span,
  .admin-achievement-item,
  .community-profile-dialog > div,
  .community-conversation-dialog,
  .community-conversation-panel,
  .app-update-card
) {
  color: var(--ink);
  background: #151e18;
  border-color: var(--line);
}
html[data-theme="dark"] .brain-admin-preview-dialog,
html[data-theme="dark"] .brain-admin-preview-header {
  color: var(--ink);
  background: #151e18;
  border-color: var(--line);
}
html[data-theme="dark"] .brain-admin-preview-scroll { background: #101713; }
html[data-theme="dark"] .brain-admin-preview-banner {
  color: #ffe9ae;
  border-color: #8a682a;
  background: #3b3017;
}
html[data-theme="dark"] .community-conversation-header {
  color: var(--ink);
  background: linear-gradient(135deg, #1b281d, #202a22);
}
html[data-theme="dark"] .community-conversation-close {
  color: var(--ink);
  border-color: var(--line);
  background: #1b251e;
}
html[data-theme="dark"] .community-post-placeholder {
  border-color: #485b31;
  background: rgba(41,56,23,.22);
}
html[data-theme="dark"] :where(
  input,
  select,
  textarea,
  .field input,
  .field select,
  .field textarea
) {
  color: var(--ink);
  background: #111914;
  border-color: #425248;
}
html[data-theme="dark"] :where(input, textarea)::placeholder { color: #8e9b91; }
html[data-theme="dark"] .text-button,
html[data-theme="dark"] .main-nav button,
html[data-theme="dark"] .main-nav a { color: var(--muted); }
html[data-theme="dark"] .main-nav .active,
html[data-theme="dark"] .nav-menu-list button:hover,
html[data-theme="dark"] .nav-menu-list a:hover {
  color: #ffad7d;
  background: #382116;
}
html[data-theme="dark"] .nav-selection-pill {
  border-color: rgba(255, 173, 125, .24);
  background: linear-gradient(145deg, rgba(255, 94, 0, .24), rgba(185, 229, 49, .13));
  box-shadow: 0 5px 16px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
html[data-theme="dark"] .nav-menu-list button,
html[data-theme="dark"] .nav-menu-list a,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .header-menu-button { background: #1b251e; border-color: var(--line); }
html[data-theme="dark"] .header-menu-button[aria-expanded="true"],
html[data-theme="dark"] .header-menu-button.active {
  color: #ffad7d;
  background: #382116;
}
/* Keep the More panel on the member's chosen theme during iOS fixed-overlay
   repaints. These explicit selectors also cover WebKit versions that do not
   apply the grouped :where(.nav-menu) rule above. */
html[data-theme="dark"] .nav-menu,
html[data-nav-menu-theme="dark"] .nav-menu {
  color: var(--ink);
  border-color: var(--line);
  background: #151e18;
  color-scheme: dark;
}
html[data-theme="dark"] .nav-menu-list,
html[data-nav-menu-theme="dark"] .nav-menu-list {
  color: var(--ink);
  background: #151e18;
}
html[data-nav-menu-theme="dark"] .nav-menu-list button,
html[data-nav-menu-theme="dark"] .nav-menu-list a {
  color: var(--muted);
  border-color: var(--line);
  background: #1b251e;
}
html[data-nav-menu-theme="dark"] .nav-menu-header,
html[data-nav-menu-theme="dark"] .nav-menu .nav-menu-close {
  color: var(--fruit-up-orange-text);
  border-color: var(--fruit-up-orange-accent);
  background: var(--fruit-up-orange-raised);
}
html[data-theme="dark"] .hero { background: linear-gradient(135deg, #1b241e, #29372d); }
html[data-theme="dark"] .hero p { color: #d3ddd5; }
html[data-theme="dark"] .today-welcome-meta time,
html[data-theme="dark"] .today-welcome-meta strong { background: rgba(5, 12, 8, .6); }
html[data-theme="dark"] .status { background: #263129; }
html[data-theme="dark"] .status.done { color: #a5ecae; background: #17381e; }
html[data-theme="dark"] .status.pending { color: #caffb8; background: #193d25; }
html[data-theme="dark"] .status.open { color: #d5f58b; background: #26391f; }
html[data-theme="dark"] .status.upcoming { color: #d4d9d5; background: #2a312d; }
html[data-theme="dark"] .status.closed { color: #ffaaa3; background: #48221f; }
html[data-theme="dark"] .master-music-card {
  border-color: #8c562c;
  background: linear-gradient(135deg, #3b2417, #251a13);
}
html[data-theme="dark"] .master-music-card.is-last-known {
  border-color: #776747;
  background: linear-gradient(135deg, #302a1f, #211f19);
}
html[data-theme="dark"] .fruit-up-live-now-card.is-upcoming {
  color: var(--ink);
  border-color: #587531;
  background: linear-gradient(135deg, #1d2b1d, #151e18);
}
html[data-theme="dark"] .fruit-up-live-now-card.is-starting {
  color: var(--ink);
  border-color: #9b6b24;
  background: linear-gradient(135deg, #352916, #1c1b14);
}
html[data-theme="dark"] .fruit-up-live-now-card.is-quiet {
  color: var(--ink);
  background: var(--soft);
}
html[data-theme="dark"] .fruit-up-live-now-card:not(.is-live) .fruit-up-live-now-countdown {
  color: #d1f66a;
}
html[data-theme="dark"] .guided-agenda li.closed,
html[data-theme="dark"] .agenda-availability.closed { color: #ffaaa3; }
html[data-theme="dark"] .agenda-availability.complete,
html[data-theme="dark"] .agenda-availability.pending { border-color: #4d8b4b; color: #d6ffc8; background: #183d25; }
html[data-theme="dark"] .agenda-availability.upcoming { border-color: #526354; color: #ccd6cb; background: #263127; }
html[data-theme="dark"] :where(.notice, .message) { color: #ffe0a0; background: #3b3017; }
html[data-theme="dark"] .message.error { color: #ffaaa3; background: #3c1d1a; }
html[data-theme="dark"] :where(.conditional-panel, .protocol-summary) { background: #1b251e; }
html[data-theme="dark"] :where(.map-form-assurance, .map-draft-proof, .verification-date-summary) {
  color: var(--fruit-up-orange-text);
  border-color: var(--fruit-up-orange-border);
  background: var(--fruit-up-orange-surface);
}
html[data-theme="dark"] .map-submission-status {
  border-color: #426b4b;
  color: #d9f7df;
  background: #172a1c;
}
html[data-theme="dark"] .map-submission-status.is-disabled {
  border-color: #8b6330;
  color: #ffe1a8;
  background: #2d2113;
}
html[data-theme="dark"] #mapForm [data-map-submit]:disabled {
  border-color: #5f5547;
  color: #c8bcaa;
  background: #342f29;
}
html[data-theme="dark"] :where(.map-routine-prefill-notice, .map-routine-preference) {
  color: #efffc1;
  border-color: #718d2c;
  background: #293817;
}
html[data-theme="dark"] .map-routine-prefill-notice strong { color: #efffc1; }
html[data-theme="dark"] .map-routine-clear-current { color: #efffc1; border-color: #86a92b; }
html[data-theme="dark"] :where(.map-answer-chip, .map-number-action, .map-compose-answer) {
  color: var(--fruit-up-orange-text);
  border-color: var(--fruit-up-orange-border);
  background: var(--fruit-up-orange-field);
}
html[data-theme="dark"] :where(.map-answer-chip, .map-number-action, .map-compose-answer):hover,
html[data-theme="dark"] :where(.map-answer-chip, .map-number-action, .map-compose-answer):focus-visible {
  border-color: var(--fruit-up-orange-accent);
  background: var(--fruit-up-orange-raised);
}
html[data-theme="dark"] .map-answer-chip.selected {
  color: #fff;
  border-color: var(--fruit-up-orange-accent);
  background: #d94f00;
}
html[data-theme="dark"] .map-voice-button { border-color: #5d9d68; background: #275b34; }
html[data-theme="dark"] .map-voice-button[data-listening="true"] { border-color: #c85449; background: #8b2f27; }
html[data-theme="dark"] :where(.map-day-control, .sleep-summary) {
  color: #c6efcc;
  background: #14281a;
  border-color: #355a3e;
}
html[data-theme="dark"] :where(.map-day-control.grace-active, .sleep-summary.warning) {
  color: #ffe0a0;
  background: #362a14;
  border-color: #785d26;
}
html[data-theme="dark"] .sleep-summary.invalid { color: #ffaaa3; background: #3c1d1a; }
html[data-theme="dark"] .skeleton-card {
  background: linear-gradient(90deg, #19221c 25%, #253129 50%, #19221c 75%);
  background-size: 220% 100%;
}
html[data-theme="dark"] .fruit-up-official-mark { border-color: rgba(99,223,126,.68); background: radial-gradient(circle at 25% 75%, rgba(239,59,63,.34), transparent 55%), #102018; }
html[data-theme="dark"] .daily-action-card.empty::after,
html[data-theme="dark"] .master-home-card.empty::after,
html[data-theme="dark"] .coach-message-home-card.empty::after { opacity: .17; }
html[data-theme="dark"] :where(.community-post, .community-directory-card, .inbox-item) {
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
html[data-theme="dark"] .community-category-chip { color: #cbd6cd; border-color: #405047; background: #1b251e; }
html[data-theme="dark"] .community-category-chip:hover,
html[data-theme="dark"] .community-category-chip:focus-visible,
html[data-theme="dark"] .community-category-chip.active { color: #efffc1; border-color: #86a92b; background: #293817; }
html[data-theme="dark"] .community-category-indicator { border-color: #86a92b; background: linear-gradient(145deg, #293817, #223214); box-shadow: 0 5px 15px rgba(0,0,0,.25), inset 0 0 0 1px rgba(239,255,193,.08); }
html[data-theme="dark"] .community-category-chip.active { border-color: transparent; background: transparent; }
html[data-theme="dark"] .community-category-badge { color: #efffc1; border-color: #718d2c; background: #293817; }
html[data-theme="dark"] .community-post-starters { border-color: #607b27; background: linear-gradient(145deg, #233215, #19231d); }
html[data-theme="dark"] .community-draft-photo { border-color: #607b27; background: linear-gradient(145deg, #233215, #19231d); }
html[data-theme="dark"] .progress-track { background: #2a352d; }
html[data-theme="dark"] .daily-fruit-up-quest,
html[data-theme="dark"] .community-harvest-card,
html[data-theme="dark"] .admin-challenge-preset { border-color: #8f6417; background: linear-gradient(145deg, #3c2814, #211b17); }
html[data-theme="dark"] .progress-ring-track { stroke: #334039; }
html[data-theme="dark"] .progress-ring-value { stroke: var(--fruit-up-orange-accent); }
html[data-theme="dark"] .community-pull-refresh-label { color: var(--fruit-up-orange-muted); }
html[data-theme="dark"] .community-pull-refresh-base { opacity: .32; filter: grayscale(1) brightness(.78); }
html[data-theme="dark"] .community-pull-refresh.is-ready .community-pull-refresh-label { color: var(--fruit-up-orange-accent); }
html[data-theme="dark"] .private-message-bubble { background: #1b251e; }
html[data-theme="dark"] .private-message-bubble.is-pending { border-color: rgba(255,184,140,.48); box-shadow: 0 9px 24px rgba(0,0,0,.24); }
html[data-theme="dark"] .private-message-bubble.sent.is-pending { color: #fff; background: linear-gradient(135deg, #e95600, #d97500); }
html[data-theme="dark"] .private-message-reply-preview { color: var(--fruit-up-orange-muted); background: rgba(0,0,0,.18); }
html[data-theme="dark"] .private-message-reaction { color: var(--fruit-up-orange-text); border-color: var(--fruit-up-orange-border); background: var(--fruit-up-orange-raised); }
html[data-theme="dark"] .private-message-reaction:hover, html[data-theme="dark"] .private-message-reaction:focus-visible, html[data-theme="dark"] .private-message-reaction.active { color: #fff; border-color: var(--fruit-up-orange-accent); background: #71391d; }
html[data-theme="dark"] .private-message-compose-reply { color: var(--fruit-up-orange-text); background: var(--fruit-up-orange-field); }
html[data-theme="dark"] .private-message-quick-emojis button { border-color: var(--fruit-up-orange-border); background: var(--fruit-up-orange-raised); }
html[data-theme="dark"] .daily-action-detail.is-optimistic { border-color: var(--fruit-up-orange-accent); box-shadow: 0 15px 38px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,174,126,.12); }
html[data-theme="dark"] .optimistic-sync-note { color: var(--fruit-up-orange-muted); }
html[data-theme="dark"] .optimistic-sync-note::before { background: var(--fruit-up-orange-accent); box-shadow: 0 0 0 3px rgba(255,156,98,.14); }
html[data-theme="dark"] .community-mention-menu {
  color: var(--fruit-up-orange-text);
  border-color: var(--fruit-up-orange-border);
  background: rgba(70,36,20,.98);
  box-shadow: 0 24px 68px rgba(0,0,0,.5), 0 0 0 1px rgba(255,156,98,.08);
}
html[data-theme="dark"] .community-mention-option { color: var(--fruit-up-orange-text); }
html[data-theme="dark"] .community-mention-option small { color: var(--fruit-up-orange-muted); }
html[data-theme="dark"] .community-mention-option:hover,
html[data-theme="dark"] .community-mention-option:focus-visible,
html[data-theme="dark"] .community-mention-option.active,
html[data-theme="dark"] .community-mention-option[aria-selected="true"] {
  color: var(--fruit-up-orange-text);
  border-color: var(--fruit-up-orange-accent);
  background: var(--fruit-up-orange-raised);
}
html[data-theme="dark"] .community-mention-token {
  color: var(--fruit-up-orange-text);
  border-color: var(--fruit-up-orange-border);
  background: linear-gradient(135deg, var(--fruit-up-orange-raised), var(--fruit-up-orange-field));
}
html[data-theme="dark"] .community-feed-skeleton {
  --community-skeleton-surface: var(--fruit-up-orange-surface);
  --community-skeleton-fill: #67341c;
  --community-skeleton-line: #57301d;
  --community-skeleton-media: #5d321e;
  border-color: var(--fruit-up-orange-border);
  box-shadow: 0 12px 34px rgba(0,0,0,.3);
}
html[data-theme="dark"] .community-skeleton-card {
  --community-skeleton-surface: var(--fruit-up-orange-surface);
  --community-skeleton-fill: #67341c;
  --community-skeleton-line: #57301d;
  --community-skeleton-media: #5d321e;
  border-color: var(--fruit-up-orange-border);
  background: var(--fruit-up-orange-surface);
  box-shadow: 0 12px 34px rgba(0,0,0,.3);
}
html[data-theme="dark"] .community-feed-skeleton::after {
  background: linear-gradient(102deg, transparent 18%, rgba(255,174,126,.15) 48%, transparent 78%);
}
html[data-theme="dark"] .community-skeleton-card::after {
  background: linear-gradient(102deg, transparent 18%, rgba(255,174,126,.13) 48%, transparent 78%);
}
html[data-theme="dark"] .community-image-shell,
html[data-theme="dark"] .community-image { background: var(--fruit-up-orange-field); }
html[data-theme="dark"] .community-image-shell.is-loading::after {
  background: linear-gradient(102deg, transparent 24%, rgba(255,174,126,.12) 49%, transparent 74%);
}
html[data-theme="dark"] .community-image-error {
  color: var(--fruit-up-orange-muted);
  background: var(--fruit-up-orange-field);
}
html[data-theme="dark"] .community-load-more-status {
  color: var(--fruit-up-orange-muted);
  border-color: var(--fruit-up-orange-border);
  background: var(--fruit-up-orange-surface);
}
html[data-theme="dark"] .community-load-more-status.is-error { color: #ffb4ad; border-color: #a84e43; background: #4a211b; }
html[data-theme="dark"] .community-load-more-status.is-complete { color: #f0ffc5; border-color: #829f38; background: #2c371b; }
html[data-theme="dark"] .community-comment {
  --community-comment-surface: var(--fruit-up-orange-surface);
  --community-comment-highlight: #6a351a;
  color: var(--fruit-up-orange-text);
  background-color: var(--community-comment-surface);
  box-shadow: inset 0 0 0 1px var(--fruit-up-orange-border);
}
html[data-theme="dark"] .community-comment-reply { --community-comment-surface: var(--fruit-up-orange-raised); }
html[data-theme="dark"] .community-comment-replies { border-left-color: rgba(255, 156, 98, .55); }
html[data-theme="dark"] .community-comment-removed {
  color: var(--fruit-up-orange-muted);
  border-color: var(--fruit-up-orange-border);
  background: var(--fruit-up-orange-field);
}
html[data-theme="dark"] .community-comment-removed-mark { color: var(--fruit-up-orange-text); background: var(--fruit-up-orange-raised); }
html[data-theme="dark"] .today-stats-card { background: linear-gradient(135deg, #1b281d, #151e18); }
html[data-theme="dark"] .context-help-trigger {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
/* The help mark is now the Fruit Up logo with the shared swirl treatment, so
   the old dark-theme disc would paint a coloured circle over the logo. The
   mark reads correctly in both themes without a per-theme override. */
html[data-theme="dark"] .context-help-note {
  border-color: rgba(255, 156, 98, .38);
  background: linear-gradient(135deg, var(--fruit-up-orange-raised), var(--fruit-up-orange-field));
}
html[data-theme="dark"] .context-help-note strong,
html[data-theme="dark"] .context-help-note p { color: var(--fruit-up-orange-text); }
html[data-theme="dark"] .today-stat-metric { background: #111914; }
html[data-theme="dark"] .today-result-metric.is-pending { border-color: #7b6527; background: #372f18; }
html[data-theme="dark"] .today-result-metric.is-pending > strong { color: #ffe49a; }
html[data-theme="dark"] .today-result-metric.is-met { border-color: #536f2a; background: #253219; }
html[data-theme="dark"] .today-result-metric.is-met > strong { color: #dcff91; }
html[data-theme="dark"] .today-result-metric.is-not_met { border-color: #8c4940; background: #3c211d; }
html[data-theme="dark"] .today-result-metric.is-not_met > strong { color: #ffb5ad; }
html[data-theme="dark"] .walking-conditions {
  color: var(--fruit-up-orange-text);
  border-color: var(--fruit-up-orange-border);
  background: linear-gradient(145deg, var(--fruit-up-orange-surface), #2f2119);
}
html[data-theme="dark"] .walking-conditions-meta,
html[data-theme="dark"] .walking-conditions-footer > small,
html[data-theme="dark"] .walking-conditions > small,
html[data-theme="dark"] .walking-conditions-attribution,
html[data-theme="dark"] .walking-conditions-current span,
html[data-theme="dark"] .walking-conditions-reasons,
html[data-theme="dark"] .walking-conditions-disable { color: var(--fruit-up-orange-muted); }
html[data-theme="dark"] .walking-conditions-current strong { color: var(--fruit-up-orange-text); }
html[data-theme="dark"] .walking-conditions-air-quality { color: #edffc2; border-color: #536d28; background: #283719; }
html[data-theme="dark"] .walking-conditions.fruit-up-walking-signature {
  border-color: #6da84b;
  background: linear-gradient(135deg, #162219, #2b1c16);
  box-shadow: 0 0 0 1px rgba(185,229,53,.22), 0 10px 28px rgba(12,168,79,.16), 0 0 28px rgba(239,45,45,.15);
}
html[data-theme="dark"] .walking-conditions-air-quality.is-moderate { color: #ffe5a0; border-color: #745d27; background: #3c3118; }
html[data-theme="dark"] .walking-conditions-air-quality.is-use-caution,
html[data-theme="dark"] .walking-conditions-air-quality.is-limit-outdoor { color: #ffc0ba; border-color: #754039; background: #4a241f; }
html[data-theme="dark"] .walking-window { color: #edffc2; border-color: #536d28; background: #283719; }
html[data-theme="dark"] .walking-window.is-caution { color: #ffe5a0; border-color: #745d27; background: #3c3118; }
html[data-theme="dark"] .walking-conditions-tip,
html[data-theme="dark"] .walking-conditions-message { color: var(--fruit-up-orange-text); background: var(--fruit-up-orange-raised); }
html[data-theme="dark"] .walking-conditions-message.error { color: #ffc0ba; background: #4a241f; }
html[data-theme="dark"] .walking-conditions-setup-form input {
  color: var(--fruit-up-orange-text);
  border-color: var(--fruit-up-orange-border);
  background: var(--fruit-up-orange-field);
}
html[data-theme="dark"] .walking-conditions-skeleton span { background: var(--fruit-up-orange-raised); }
html[data-theme="dark"] .walking-conditions-disable:hover,
html[data-theme="dark"] .walking-conditions-disable:focus-visible { color: #ffc0ba; }
html[data-theme="dark"] .walking-conditions-expand,
html[data-theme="dark"] .walking-conditions-collapse { color: var(--fruit-up-orange-accent); }
html[data-theme="dark"] .announcement-card.compact { border-color: #3d4b41; background: #151f18; }
html[data-theme="dark"] .announcement-read-state.new { color: #efffc1; background: #293817; }
html[data-theme="dark"] .weekly-weight-focus-card {
  color: var(--fruit-up-orange-text);
  border-color: var(--fruit-up-orange-border);
  border-left-color: var(--lime);
  background: linear-gradient(135deg, var(--fruit-up-orange-surface), #2e2119);
}
html[data-theme="dark"] .weekly-weight-focus-card.is-empty {
  border-left-color: var(--gold);
  background: linear-gradient(135deg, var(--fruit-up-orange-surface), #332719);
}
html[data-theme="dark"] .weekly-weight-focus-card small { color: var(--fruit-up-orange-muted); }
html[data-theme="dark"] .weekly-weight-focus-pledge { color: #eaffad; background: #31421e; }
html[data-theme="dark"] .weekly-weight-focus-lock { color: #ffe4a2; background: #463515; }
html[data-theme="dark"] footer { color: var(--muted); }
html[data-theme="dark"] .nav-menu-backdrop { background: rgba(0,0,0,.58); }
html[data-theme="dark"] img { color-scheme: normal; }
html[data-theme="dark"] .daily-quest-guide-steps section {
  border-color: var(--fruit-up-orange-border);
  background: var(--fruit-up-orange-surface);
}
html[data-theme="dark"] .daily-quest-standard {
  background: color-mix(in srgb, var(--lime) 10%, var(--fruit-up-orange-surface));
}

/* Warm orange replaces pale/white state boxes in dark mode. Ordinary cards
   stay dark green so the interface remains balanced and easy to scan. */
html[data-theme="dark"] .protocol-choice input:checked + span,
html[data-theme="dark"] .map-receipt-dialog,
html[data-theme="dark"] .map-receipt-next,
html[data-theme="dark"] .map-receipt-connected,
html[data-theme="dark"] .busy-card,
html[data-theme="dark"] .admin-tabs,
html[data-theme="dark"] .admin-map-toggle,
html[data-theme="dark"] .calendar-admin-shortcut,
html[data-theme="dark"] .calendar-admin-image-field,
html[data-theme="dark"] .master-admin-fields,
html[data-theme="dark"] .brain-field-active,
html[data-theme="dark"] .alert-urgent,
html[data-theme="dark"] .alert-attention,
html[data-theme="dark"] .nav-menu-header,
html[data-theme="dark"] .nav-menu .nav-menu-close,
html[data-theme="dark"] .daily-action-card.empty,
html[data-theme="dark"] .daily-action-detail.complete,
html[data-theme="dark"] .map-action-link.complete,
html[data-theme="dark"] .brain-home-card.brain-preparing,
html[data-theme="dark"] .community-view-tabs .button.active,
html[data-theme="dark"] .admin-tabs button[aria-selected="true"],
html[data-theme="dark"] .community-toolbar #communitySavedToggle.active,
html[data-theme="dark"] .reaction-button,
html[data-theme="dark"] .comment-reaction-button:hover,
html[data-theme="dark"] .comment-reaction-button:focus-visible,
html[data-theme="dark"] .comment-reaction-button.active,
html[data-theme="dark"] .community-profile-dialog,
html[data-theme="dark"] .community-profile-close button,
html[data-theme="dark"] .community-profile-about,
html[data-theme="dark"] .community-profile-private,
html[data-theme="dark"] .community-profile-achievements,
html[data-theme="dark"] .calendar-grid,
html[data-theme="dark"] .calendar-day.empty,
html[data-theme="dark"] .calendar-day.today,
html[data-theme="dark"] .calendar-event-dialog,
html[data-theme="dark"] .calendar-event-dialog-close button,
html[data-theme="dark"] .calendar-event-dialog-facts > div,
html[data-theme="dark"] .calendar-event-dialog-description,
html[data-theme="dark"] .challenge-accountability-status,
html[data-theme="dark"] .challenge-protocol-copy,
html[data-theme="dark"] .high-water-fruit-list,
html[data-theme="dark"] .challenge-verification-preview,
html[data-theme="dark"] .challenge-agreement-dialog,
html[data-theme="dark"] .challenge-agreement-dialog .dialog-close-button,
html[data-theme="dark"] .challenge-agreement-confirmation,
html[data-theme="dark"] .content-disclosure,
html[data-theme="dark"] .leaderboard li.current,
html[data-theme="dark"] .badge-board-summary,
html[data-theme="dark"] .badge-category,
html[data-theme="dark"] .badge-card.earned,
html[data-theme="dark"] .badge-card.locked,
html[data-theme="dark"] .badge-icon,
html[data-theme="dark"] .weekly-summary-strip > div,
html[data-theme="dark"] .weekly-reset-readback,
html[data-theme="dark"] .weekly-reset-readback > div,
html[data-theme="dark"] .achievement-card.earned,
html[data-theme="dark"] .achievement-card.locked,
html[data-theme="dark"] .achievement-share-dialog,
html[data-theme="dark"] .achievement-dialog-close,
html[data-theme="dark"] .achievement-share-preview,
html[data-theme="dark"] .help-jump-nav,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .help-callout {
  color: var(--fruit-up-orange-text);
  border-color: var(--fruit-up-orange-border);
  background: var(--fruit-up-orange-surface);
}

html[data-theme="dark"] .community-view-tabs .button.active,
html[data-theme="dark"] .community-toolbar #communitySavedToggle.active,
html[data-theme="dark"] .reaction-button.active,
html[data-theme="dark"] .comment-reaction-button.active,
html[data-theme="dark"] .calendar-day.today,
html[data-theme="dark"] .challenge-agreement-confirmation,
html[data-theme="dark"] .leaderboard li.current,
html[data-theme="dark"] .badge-card.earned,
html[data-theme="dark"] .achievement-card.earned {
  color: var(--fruit-up-orange-text);
  border-color: var(--fruit-up-orange-accent);
  background: var(--fruit-up-orange-raised);
}

html[data-theme="dark"] :where(
  .map-receipt-next span,
  .calendar-event-dialog-facts span,
  .calendar-event-dialog-description > span,
  .content-disclosure-heading small,
  .challenge-accountability-status span,
  .high-water-fruit-list p,
  .weekly-summary-strip span,
  .weekly-reset-readback > div > span,
  .community-profile-achievements small
) { color: var(--fruit-up-orange-muted); }

html[data-theme="dark"] :where(
  .challenge-protocol-promise,
  .weekly-summary-strip strong,
  .weekly-summary-strip small,
  .personal-best-card > strong,
  .achievement-earned-date,
  .community-profile-achievements b
) { color: var(--fruit-up-orange-text); }

html[data-theme="dark"] :where(
  .challenge-agreement-dialog,
  .calendar-event-dialog,
  .achievement-share-dialog
) :where(input, select, textarea, .choice, .button.secondary) {
  color: var(--fruit-up-orange-text);
  border-color: var(--fruit-up-orange-border);
  background: var(--fruit-up-orange-field);
}

@media (max-width: 640px) {
  .theme-toggle,
  .header-menu-button { width: 44px; min-width: 44px; padding: 0; }
  .theme-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .header-menu-button > span:not(.nav-unread-badge) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .kitchen-tool-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kitchen-tool-nav .button { min-width: 0; padding-inline: 10px; }
  .progress-destination-links .button { width: 100%; }
  .profile-settings-shortcuts { display: grid; grid-template-columns: 1fr; }
  .profile-settings-shortcuts .button { width: 100%; }
  .weekly-weight-focus-badge { width: 100%; border-radius: 16px; }
  .weekly-weight-focus-card { align-items: stretch; flex-direction: column; }
  .weekly-weight-focus-pledge,
  .weekly-weight-focus-lock,
  .weekly-weight-focus-card .button { width: 100%; }
  .today-stats-card .section-head { align-items: stretch; flex-direction: column; }
  .today-stats-grid { grid-template-columns: 1fr; }
  .today-result-metric { grid-column: auto; }
  .guided-agenda li {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    row-gap: 8px;
    padding-block: 12px;
  }
  .guided-agenda li .agenda-item-title {
    grid-column: 1;
    min-width: 0;
    line-height: 1.3;
  }
  .guided-agenda li > :where(
    .agenda-completed-actions,
    .agenda-item-actions,
    .agenda-availability,
    .text-link
  ) {
    grid-column: 1;
    justify-self: start;
  }
  .agenda-completed-actions,
  .agenda-item-actions {
    align-items: center;
    justify-content: flex-start;
    gap: 7px 12px;
    text-align: left;
  }
  .agenda-optional > p { display: grid; }
  .walking-conditions { min-height: 0; padding: 14px; }
  .walking-conditions-heading { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .walking-conditions-status { grid-column: 2; justify-self: start; }
  .walking-conditions-footer { align-items: stretch; flex-direction: column; }
  .walking-conditions-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .walking-conditions-setup-form .walking-conditions-actions { grid-template-columns: 1fr; }
  .walking-conditions-actions .button { width: 100%; }
  .walking-conditions-disable { grid-column: 1 / -1; justify-self: start; }
  .walking-conditions-skeleton { padding-left: 0; }
  .announcement-card-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .announcement-card-actions { justify-content: flex-start; flex-wrap: wrap; }
  .home-communications-head { align-items: flex-start; }
  .home-communications-actions { width: 100%; justify-content: flex-start; }
  .home-communications-actions .button { flex: 1 1 132px; }
  .challenge-activity-summary { min-height: 64px; padding: 12px 14px; }
  .challenge-activity-summary-action { min-width: 66px; }
  .challenge-activity-compact .challenge-activity-list { padding-inline: 14px; }
  .challenge-activity-list > div { gap: 9px; }
  .compact-support-button { min-height: 40px; padding-inline: 9px; }
}

.private-messaging-layout {
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.4fr);
  gap: 16px;
}
.private-conversation-list h3 { margin-top: 0; }
.private-conversation-row {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--soft);
  text-align: left;
  cursor: pointer;
}
.private-conversation-row > span:nth-child(2) { min-width: 0; }
.private-conversation-row > small {
  grid-column: 2 / -1;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.private-conversation-row.unread { border-color: var(--orange); box-shadow: inset 4px 0 0 var(--orange); }
.private-conversation-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.private-conversation-header .private-conversation-back { margin-left: auto; }
.private-conversation-panel:focus { outline: none; }
.private-message-thread {
  min-height: 220px;
  max-height: 430px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 4px;
  overflow-y: auto;
}
.private-message-bubble {
  width: fit-content;
  max-width: min(78%, 560px);
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 15px 15px 15px 4px;
  background: var(--soft);
  transition: opacity var(--motion-duration-quick) var(--motion-ease-smooth), border-color var(--motion-duration-quick) var(--motion-ease-smooth), box-shadow var(--motion-duration-quick) var(--motion-ease-smooth);
}
.private-message-bubble.sent {
  align-self: flex-end;
  color: #fff;
  border-color: transparent;
  border-radius: 15px 15px 4px 15px;
  background: linear-gradient(135deg, var(--orange), #ed8300);
}
.private-message-bubble p { margin: 0; white-space: pre-wrap; }
.private-message-bubble small { display: block; margin-top: 5px; opacity: .78; }
.private-message-meta { display: flex !important; align-items: center; justify-content: flex-end; gap: 7px; }
.private-message-receipt { font-weight: 800; }
.private-message-reply-preview { display: grid; gap: 1px; margin: 0 0 8px; padding: 7px 9px; border-left: 3px solid rgba(255, 94, 0, .78); border-radius: 0 9px 9px 0; color: var(--muted); background: rgba(255,255,255,.46); font-size: .78rem; line-height: 1.32; }
.private-message-reply-preview strong { color: inherit; font-size: .74rem; }
.private-message-reply-preview span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.private-message-bubble.sent .private-message-reply-preview { border-left-color: rgba(255,255,255,.72); color: rgba(255,255,255,.85); background: rgba(0,0,0,.13); }
.private-message-reactions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.private-message-reaction { min-width: 30px; min-height: 28px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.72); font-size: .82rem; line-height: 1; cursor: pointer; transition: transform var(--motion-duration-instant) var(--motion-ease-smooth), background var(--motion-duration-quick) var(--motion-ease-smooth), border-color var(--motion-duration-quick) var(--motion-ease-smooth); }
.private-message-reaction:hover, .private-message-reaction:focus-visible, .private-message-reaction.active { border-color: var(--orange); color: var(--orange-dark); background: #fff0e7; }
.private-message-reaction:active { transform: scale(.94); }
.private-message-reaction span { font-size: .68rem; font-weight: 900; }
.private-message-reply-button { margin-top: 8px; padding: 3px 0; border: 0; color: inherit; background: transparent; font-size: .76rem; font-weight: 850; opacity: .8; cursor: pointer; }
.private-message-reply-button:hover, .private-message-reply-button:focus-visible { opacity: 1; text-decoration: underline; }
.private-message-compose-reply { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; padding: 8px 9px; border-left: 3px solid var(--orange); border-radius: 0 9px 9px 0; color: var(--muted); background: #fff6f0; font-size: .8rem; }
.private-message-compose-reply button { width: 28px; min-width: 28px; min-height: 28px; padding: 0; border: 0; border-radius: 50%; color: var(--orange-dark); background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.private-message-typing {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -8px 4px 10px;
  color: var(--muted);
  font-size: .78rem;
}
.private-message-typing[hidden] { display: none; }
.private-message-typing > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}
.private-message-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  animation: private-message-typing-dot var(--motion-duration-loop-medium) var(--motion-ease-smooth) infinite;
}
.private-message-typing i:nth-child(2) { animation-delay: var(--motion-duration-quick); }
.private-message-typing i:nth-child(3) { animation-delay: var(--motion-duration-standard); }
@keyframes private-message-typing-dot {
  0%, 60%, 100% { opacity: .38; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.private-message-composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.private-message-quick-emojis { display: flex; flex-wrap: wrap; gap: 3px; }
.private-message-quick-emojis button { width: 30px; min-width: 30px; min-height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--soft); cursor: pointer; transition: transform var(--motion-duration-instant) var(--motion-ease-smooth), background var(--motion-duration-quick) var(--motion-ease-smooth); }
.private-message-quick-emojis button:hover, .private-message-quick-emojis button:focus-visible { background: #fff0e7; }
.private-message-quick-emojis button:active { transform: scale(.9); }
.private-message-bubble.is-entering { animation: private-message-enter var(--motion-duration-standard) var(--motion-ease-smooth) both; }
.private-message-bubble.is-pending { opacity: .78; border-color: rgba(255,255,255,.34); box-shadow: 0 8px 20px rgba(29,37,32,.08); }
.private-message-bubble.is-pending small { display: inline-flex; align-items: center; gap: 6px; }
.private-message-bubble.is-pending small::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; animation: optimistic-sync-pulse var(--motion-duration-loop-medium) var(--motion-ease-smooth) infinite; }
@keyframes private-message-enter {
  from { opacity: 0; transform: translateY(9px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.private-conversation-empty { min-height: 300px; display: grid; place-content: center; text-align: center; }

@media (max-width: 760px) {
  .private-messaging-layout { grid-template-columns: 1fr; }
  .private-messaging-layout.has-active-conversation .private-conversation-panel { order: -1; }
  .private-message-thread { min-height: 180px; max-height: 55vh; }
  .private-conversation-header { align-items: flex-start; flex-wrap: wrap; }
  .private-conversation-header .private-conversation-back { width: 100%; margin-left: 0; }
}

/* Fruit Up Guide assistant */
.fruit-up-bug-form textarea { min-height: 130px; }
.fruit-up-bug-form .message { margin-top: 12px; }
.master-next-join-note { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.master-next-join-note small { color: var(--muted); }
.master-session-complete-banner { display: grid; gap: 7px; margin: 16px 0 0; padding: 14px; border: 1px solid #9cce53; border-radius: 14px; color: #254b08; background: linear-gradient(135deg, #f7ffe8, #edfacd); box-shadow: inset 0 0 0 1px rgba(255,255,255,.68); }
.master-session-complete-banner .status { justify-self: start; }
.master-session-complete-banner small { color: #486c25; line-height: 1.45; }
html[data-theme="dark"] .master-session-complete-banner { border-color: #6c9833; color: #e6ffbd; background: linear-gradient(135deg, #203517, #2c461d); box-shadow: none; }
html[data-theme="dark"] .master-session-complete-banner small { color: #c4e99c; }

.fruit-up-guide-launcher {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 58;
  min-width: 54px;
  min-height: 62px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 7px 6px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #18241c, #304738);
  box-shadow: 0 16px 38px rgba(21, 34, 24, .32), 0 0 0 3px rgba(185,229,49,.22);
  cursor: pointer;
  transition: transform var(--motion-duration-quick) var(--motion-ease-smooth), box-shadow var(--motion-duration-quick) var(--motion-ease-smooth), border-color var(--motion-duration-quick) var(--motion-ease-smooth);
}
.fruit-up-guide-launcher[hidden] { display: none; }
.fruit-up-guide-launcher:hover { transform: translateY(-2px); border-color: rgba(185,229,49,.58); box-shadow: 0 20px 46px rgba(21,34,24,.38), 0 0 0 4px rgba(185,229,49,.3); }
.fruit-up-guide-launcher:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.fruit-up-guide-launcher-label {
  width: 100%;
  max-width: 68px;
  overflow: visible;
  text-align: center;
  color: rgba(255,255,255,.92);
  font-size: .58rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
}
.fruit-up-guide-launcher-label b {
  color: #d8ff67;
  font-size: .72rem;
  text-shadow: -1px 0 5px rgba(12,168,79,.9), 1px 0 5px rgba(239,45,45,.75);
}
.fruit-up-guide-logo-orb,
.fruit-up-guide-mark {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.fruit-up-guide-logo-orb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
/* Red and green swirl orbiting the Fruit Up mark. Inset and blur are kept
   tight so the motion stays inside the launcher's own box instead of bleeding
   past its rounded edge. The rotation runs continuously rather than stopping
   after two passes. */
.fruit-up-guide-logo-orb::before,
.fruit-up-guide-mark::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -2;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    rgba(44,196,113,.92) 0deg,
    rgba(205,255,72,.85) 60deg,
    rgba(44,196,113,.28) 120deg,
    rgba(255,71,57,.90) 190deg,
    rgba(255,140,60,.70) 240deg,
    rgba(255,71,57,.26) 300deg,
    rgba(44,196,113,.92) 360deg
  );
  filter: blur(3.5px);
  opacity: .85;
  pointer-events: none;
  will-change: transform;
  animation: fruit-up-guide-swirl var(--motion-duration-loop-slow) var(--motion-ease-linear) infinite;
}
.fruit-up-guide-logo-orb::after,
.fruit-up-guide-mark::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border: 1px solid rgba(209,255,91,.48);
  border-radius: inherit;
  background: rgba(12,28,17,.9);
  box-shadow: 0 0 12px rgba(185,229,49,.56), 0 0 19px rgba(239,63,52,.22);
  pointer-events: none;
}
.fruit-up-guide-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.36));
  animation: fruit-up-guide-logo-glow var(--motion-duration-loop-medium) var(--motion-ease-smooth) 2;
}
@keyframes fruit-up-guide-logo-glow {
  0%, 100% { opacity: .58; transform: scale(.94) rotate(0deg); }
  50% { opacity: .96; transform: scale(1.08) rotate(7deg); }
}
/* One continuous orbit. A steady rotation reads as a swirl around the mark;
   easing it would make the colours visibly stall at each cycle boundary. */
@keyframes fruit-up-guide-swirl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* The Ask Fruit Up panel grows out of the launcher corner instead of snapping
   open, using the shared motion tokens so it matches the rest of the app. */
@keyframes fruit-up-guide-dialog-in {
  from { opacity: 0; transform: translate3d(10px, 22px, 0) scale(.94); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes fruit-up-guide-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fruit-up-guide-dialog {
  width: min(620px, calc(100vw - 24px));
  height: min(780px, calc(100dvh - 30px));
  max-width: none;
  max-height: none;
  margin: auto 16px 16px auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 90px rgba(13, 24, 16, .38);
  transform-origin: bottom right;
}
.fruit-up-guide-dialog[open] {
  animation: fruit-up-guide-dialog-in var(--motion-duration-large) var(--motion-ease-emphasized) both;
}
.fruit-up-guide-dialog::backdrop { background: rgba(13, 23, 16, .48); backdrop-filter: blur(5px); }
.fruit-up-guide-dialog[open]::backdrop {
  animation: fruit-up-guide-backdrop-in var(--motion-duration-standard) var(--motion-ease-enter) both;
}
.fruit-up-guide-panel { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto auto auto; }
.fruit-up-guide-header {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f9fff0, #fff7ef);
}
.fruit-up-guide-header .eyebrow, .fruit-up-guide-header h2 { margin: 0; }
.fruit-up-guide-header h2 { font-size: 1.35rem; }
.fruit-up-guide-mark {
  width: 56px;
  height: 56px;
  padding: 4px;
  border-radius: 18px;
}
.fruit-up-guide-clear, .fruit-up-guide-close {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.fruit-up-guide-clear { padding: 7px 12px; }
.fruit-up-guide-close { width: 42px; padding: 0; font-size: 1.6rem; line-height: 1; }
.fruit-up-guide-messages {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f6f8f6;
}
.fruit-up-guide-message { max-width: min(88%, 510px); }
.fruit-up-guide-message.user { align-self: flex-end; }
.fruit-up-guide-message-label { display: block; margin: 0 8px 4px; color: var(--muted); font-size: .7rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.fruit-up-guide-message.user .fruit-up-guide-message-label { text-align: right; }
.fruit-up-guide-message-body {
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 5px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 5px 16px rgba(29,37,32,.06);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.fruit-up-guide-response {
  display: grid;
  gap: 10px;
  white-space: normal;
}
.fruit-up-guide-response.is-plain { white-space: pre-wrap; }
.fruit-up-guide-response :where(h3, h4, p, ul, ol) {
  margin: 0;
}
.fruit-up-guide-response h3 {
  color: var(--success);
  font-size: 1.02rem;
  line-height: 1.25;
}
.fruit-up-guide-response h4 {
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.3;
}
.fruit-up-guide-response p,
.fruit-up-guide-response li {
  font-size: .9rem;
  line-height: 1.55;
}
.fruit-up-guide-response :where(ul, ol) {
  display: grid;
  gap: 8px;
  padding-left: 1.35rem;
}
.fruit-up-guide-response li::marker {
  color: var(--orange);
  font-weight: 900;
}
.fruit-up-guide-response strong {
  color: var(--ink);
  font-weight: 900;
}
.fruit-up-guide-response hr {
  width: 100%;
  margin: 2px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.fruit-up-guide-message.assistant .fruit-up-guide-response a {
  color: var(--success);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.fruit-up-guide-message.user .fruit-up-guide-message-body { color: #fff; border-color: transparent; border-radius: 18px 18px 5px 18px; background: linear-gradient(135deg, var(--orange), #ef8500); }
.fruit-up-guide-message.pending .fruit-up-guide-message-body { color: var(--muted); animation: fruit-up-guide-pulse var(--motion-duration-loop-medium) var(--motion-ease-smooth) infinite; }
@keyframes fruit-up-guide-pulse { 50% { opacity: .58; } }
.fruit-up-guide-message-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.fruit-up-guide-message-actions .button { min-height: 40px; padding: 8px 12px; font-size: .82rem; }
.fruit-up-guide-confirmation {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding: 13px;
  border: 1px solid rgba(185,229,49,.66);
  border-radius: 15px;
  color: var(--ink);
  background: rgba(185,229,49,.1);
}
.fruit-up-guide-confirmation p {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: .82rem;
  line-height: 1.45;
  white-space: pre-line;
}
.fruit-up-guide-confirmation .button { width: fit-content; min-height: 42px; }
.fruit-up-guide-sources {
  display: block;
  margin: 8px 5px 0;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.35;
}
.fruit-up-guide-feedback {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 9px 5px 0;
  color: var(--muted);
  font-size: .72rem;
}
.fruit-up-guide-feedback-button {
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.fruit-up-guide-feedback-button:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}
.fruit-up-guide-starters { display: flex; gap: 8px; padding: 10px 16px 4px; overflow-x: auto; background: #fff; }
.fruit-up-guide-starter {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--soft);
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}
.fruit-up-guide-struggle-panel {
  display: grid;
  gap: 10px;
  max-height: min(42dvh, 390px);
  margin: 0 16px 10px;
  padding: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(198,71,41,.34);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 9%, rgba(255,226,113,.42), transparent 30%),
    linear-gradient(135deg, #fff6ec, #fffdf7);
}
.fruit-up-guide-struggle-panel[hidden] { display: none; }
.fruit-up-guide-struggle-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fruit-up-guide-struggle-header :where(.eyebrow, h3) { margin: 0; }
.fruit-up-guide-struggle-header .eyebrow { color: #a63c23; }
.fruit-up-guide-struggle-header h3 { margin-top: 3px; color: var(--ink); font-size: 1.05rem; line-height: 1.2; }
.fruit-up-guide-struggle-close {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid rgba(198,71,41,.34);
  border-radius: 999px;
  color: #8d301d;
  background: rgba(255,255,255,.72);
  font: inherit;
  font-size: .74rem;
  font-weight: 850;
  cursor: pointer;
}
.fruit-up-guide-struggle-intro { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.42; }
.fruit-up-guide-struggle-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fruit-up-guide-struggle-choices button {
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid rgba(182,72,43,.28);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255,255,255,.82);
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.24;
  text-align: left;
  cursor: pointer;
  transition: transform var(--motion-duration-quick) var(--motion-ease-smooth), border-color var(--motion-duration-quick) var(--motion-ease-smooth), box-shadow var(--motion-duration-quick) var(--motion-ease-smooth);
}
.fruit-up-guide-struggle-choices button:hover { transform: translateY(-1px); border-color: rgba(198,71,41,.65); box-shadow: 0 5px 14px rgba(132,45,28,.11); }
.fruit-up-guide-struggle-note { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.35; text-align: center; }
.fruit-up-guide-struggle-close:focus-visible,
.fruit-up-guide-struggle-choices button:focus-visible,
.fruit-up-guide-struggle-button:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.fruit-up-guide-error { margin: 8px 16px 0; }
.fruit-up-guide-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 16px 6px; background: #fff; }
.fruit-up-guide-form textarea { min-height: 54px; max-height: 132px; resize: vertical; padding: 12px 14px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: #fff; }
.fruit-up-guide-form .button { align-self: stretch; margin: 0; }
.fruit-up-guide-support-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 4px 16px 2px;
  color: var(--muted);
  background: #fff;
  font-size: .75rem;
}
.fruit-up-guide-struggle-button {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(185,229,49,.5);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #1b2c20, #3d5f3d);
  box-shadow: inset 0 0 0 1px rgba(255,94,0,.38);
  font: inherit;
  font-size: .75rem;
  font-weight: 850;
  cursor: pointer;
}
.fruit-up-guide-struggle-button[hidden] { display: none; }
.fruit-up-guide-struggle-button:hover { box-shadow: inset 0 0 0 1px rgba(255,94,0,.7), 0 4px 12px rgba(21,34,24,.16); }
.fruit-up-guide-bug-button {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--soft);
  font-size: .75rem;
  font-weight: 850;
  cursor: pointer;
}
.fruit-up-guide-bug-button:hover { border-color: rgba(185,229,49,.72); }
.fruit-up-guide-bug-button:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.fruit-up-guide-disclaimer { margin: 0; padding: 5px 16px 12px; color: var(--muted); background: #fff; font-size: .72rem; text-align: center; }

html[data-theme="dark"] .fruit-up-guide-dialog,
html[data-theme="dark"] .fruit-up-guide-header,
html[data-theme="dark"] .fruit-up-guide-starters,
html[data-theme="dark"] .fruit-up-guide-form,
html[data-theme="dark"] .fruit-up-guide-support-row,
html[data-theme="dark"] .fruit-up-guide-disclaimer { color: var(--ink); background: #151e18; border-color: var(--line); }
html[data-theme="dark"] .fruit-up-guide-header { background: linear-gradient(135deg, #1a281d, #2c2119); }
html[data-theme="dark"] .fruit-up-guide-messages { background: #0f1712; }
html[data-theme="dark"] .fruit-up-guide-message.assistant .fruit-up-guide-message-body,
html[data-theme="dark"] .fruit-up-guide-clear,
html[data-theme="dark"] .fruit-up-guide-close,
html[data-theme="dark"] .fruit-up-guide-bug-button,
html[data-theme="dark"] .fruit-up-guide-struggle-close { color: var(--ink); background: #1b251e; border-color: var(--line); }
html[data-theme="dark"] .fruit-up-guide-message.assistant .fruit-up-guide-response a,
html[data-theme="dark"] .fruit-up-guide-response h3 { color: #b6f36b; }
html[data-theme="dark"] .fruit-up-guide-form textarea { color: var(--ink); background: #111914; border-color: #425248; }
html[data-theme="dark"] .fruit-up-guide-struggle-panel { border-color: #694437; background: linear-gradient(135deg, #271c18, #1a251c); }
html[data-theme="dark"] .fruit-up-guide-struggle-choices button {
  color: var(--ink);
  background: linear-gradient(135deg, #271c18, #332019);
  border-color: #694437;
}

@media (max-width: 640px) {
  .fruit-up-guide-struggle-panel { max-height: 39dvh; margin: 0 10px 8px; padding: 12px; }
  .fruit-up-guide-struggle-choices { grid-template-columns: 1fr; }
  .fruit-up-guide-struggle-choices button { min-height: 45px; }
  .fruit-up-guide-launcher { right: 12px; bottom: calc(88px + env(safe-area-inset-bottom)); width: 56px; min-width: 56px; height: 58px; min-height: 58px; padding: 4px 4px 5px; border-radius: 18px; }
  .fruit-up-guide-launcher-label { display: block; max-width: 54px; font-size: .56rem; letter-spacing: 0; }
  .fruit-up-guide-logo-orb { width: 32px; height: 32px; }
  .fruit-up-guide-dialog { width: 100vw; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .fruit-up-guide-header { min-height: 74px; grid-template-columns: auto minmax(0, 1fr) auto auto; padding: max(10px, env(safe-area-inset-top)) 11px 10px; gap: 8px; }
  .fruit-up-guide-mark { width: 46px; height: 46px; padding: 3px; border-radius: 15px; }
  .fruit-up-guide-header h2 { font-size: 1.17rem; }
  .fruit-up-guide-clear { padding: 5px 9px; font-size: .78rem; }
  .fruit-up-guide-messages { padding: 15px 12px; }
  .fruit-up-guide-message { max-width: 94%; }
  .fruit-up-guide-form { grid-template-columns: minmax(0, 1fr) 74px; padding: 10px 10px 5px; }
  .fruit-up-guide-support-row { padding: 4px 10px 2px; }
  .fruit-up-guide-disclaimer { padding: 4px 10px max(10px, env(safe-area-inset-bottom)); }
  .app-shell > footer { padding-bottom: calc(116px + env(safe-area-inset-bottom)); }
}

.notification-browser-help {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 94, 0, .28);
  border-radius: 16px;
  background: rgba(255, 94, 0, .08);
}
.notification-browser-help[hidden] { display: none; }
.notification-browser-help p { margin: 0; }

.notification-help-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 94, 0, .2), transparent 35%),
    linear-gradient(145deg, #f7fff1, #fffaf2);
}
.notification-help-shell {
  width: min(100%, 620px);
  display: grid;
  gap: 16px;
  padding: clamp(22px, 6vw, 42px);
  border: 1px solid rgba(20, 48, 27, .14);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 70px rgba(20, 48, 27, .16);
}
.notification-help-shell > img { width: 112px; height: auto; object-fit: contain; }
.notification-help-shell h1 { margin: 0; font-size: clamp(2rem, 8vw, 3.35rem); line-height: .98; }
.notification-help-shell .lead { margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.55; }
.notification-help-steps { display: grid; gap: 12px; margin: 4px 0; padding: 0; list-style: none; counter-reset: notification-step; }
.notification-help-steps li { counter-increment: notification-step; display: grid; grid-template-columns: 44px 1fr; gap: 2px 12px; align-items: center; padding: 14px; border-radius: 16px; background: #f2f8ee; }
.notification-help-steps li::before { content: counter(notification-step); grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #138a45, #ff5e00); font-weight: 900; }
.notification-help-steps span { color: var(--muted); line-height: 1.4; }
.notification-help-note { margin: 0; padding: 12px 14px; border-left: 4px solid #ff5e00; color: #5e4b3d; background: #fff4eb; }

@media (prefers-reduced-motion: reduce) {
  .online-fruit-up-presence::before,
  .online-fruit-up-presence::after { animation: none !important; }
  .fruit-up-guide-logo-orb::before,
  .fruit-up-guide-mark::before { animation: none !important; opacity: .76; transform: none; }
  .fruit-up-help-mark::before { animation: none !important; opacity: .82; transform: none; }
  .fruit-up-guide-struggle-choices button,
  .fruit-up-guide-struggle-button { transition: none !important; }
  .fruit-up-guide-dialog[open],
  .fruit-up-guide-dialog[open]::backdrop { animation: none !important; }
}

/* Fruit Up Recipe Maker */
.recipe-maker-resource-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #f9fff0, #fff7ed);
  border-color: rgba(185,229,49,.65);
}
.recipe-maker-resource-card h2, .recipe-maker-resource-card p { margin: 0 0 6px; }
.recipe-maker-resource-icon, .recipe-maker-spark {
  display: grid;
  place-items: center;
  color: #203024;
  background: var(--lime);
  font-weight: 950;
}
.recipe-maker-resource-icon { width: 56px; height: 56px; border-radius: 17px; font-size: 1.45rem; }
.recipe-maker-hero {
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
  padding: clamp(24px, 6vw, 44px);
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(185,229,49,.3), transparent 35%), linear-gradient(135deg, #17261c, #38523e);
  box-shadow: var(--surface-shadow-raised);
}
.recipe-maker-hero h2 { margin: 5px 0 10px; font-size: clamp(2rem, 5vw, 3rem); }
.recipe-maker-hero p:not(.eyebrow) { max-width: 690px; margin: 0; color: #e5eee7; }
.recipe-maker-spark { width: 100px; height: 100px; flex: 0 0 100px; border-radius: 30px; font-size: 2.6rem; transform: rotate(5deg); box-shadow: 0 18px 45px rgba(0,0,0,.23); }
.recipe-maker-form { padding: clamp(20px, 5vw, 34px); }
.recipe-maker-form fieldset { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.recipe-maker-form legend { margin-bottom: 12px; font-size: 1.35rem; font-weight: 900; }
.recipe-type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.recipe-type-card { position: relative; cursor: pointer; }
.recipe-type-card input { position: absolute; opacity: 0; pointer-events: none; }
.recipe-type-card span {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
  transition: transform var(--motion-duration-quick) var(--motion-ease-smooth), border-color var(--motion-duration-standard) var(--motion-ease-smooth), background-color var(--motion-duration-standard) var(--motion-ease-smooth), box-shadow var(--motion-duration-standard) var(--motion-ease-smooth);
}
.recipe-type-card b { font-size: 1.08rem; }
.recipe-type-card small { color: var(--muted); line-height: 1.42; }
.recipe-type-card input:checked + span { border-color: var(--orange); background: #fff3eb; box-shadow: 0 8px 20px rgba(255,94,0,.13); transform: translateY(-2px); }
.recipe-type-card input:focus-visible + span { outline: 3px solid rgba(255,94,0,.25); outline-offset: 2px; }
.recipe-maker-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.recipe-maker-boundary { margin: 16px 0 0; padding: 13px 15px; border-radius: 13px; color: var(--muted); background: var(--soft); font-size: .85rem; }
.recipe-maker-note { margin-top: 18px; }
.recipe-maker-note h3, .recipe-maker-note p { margin: 0 0 5px; }
.recipe-result {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--surface-shadow-raised);
}
.recipe-result-body { padding: clamp(22px, 5vw, 40px); }
.recipe-result-body h2 { margin: 4px 0 10px; font-size: clamp(2rem, 5vw, 3rem); }
.recipe-description { max-width: 780px; color: var(--muted); font-size: 1.08rem; }
.recipe-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.recipe-facts span { padding: 7px 11px; border-radius: 999px; color: #2c4a1d; background: #edf9cf; font-size: .82rem; font-weight: 850; }
.recipe-columns { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 6vw, 54px); }
.recipe-columns h3 { font-size: 1.35rem; }
.recipe-columns ul, .recipe-columns ol { display: grid; gap: 9px; padding-left: 24px; }
.recipe-fit { margin-top: 24px; padding: 16px 18px; border-left: 5px solid var(--lime); border-radius: 12px; background: var(--soft); }
.recipe-fit p { margin: 5px 0 0; }
.recipe-safety { margin-top: 16px; color: var(--muted); font-size: .86rem; }
.recipe-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.master-next-preview, .master-next-session-preview { margin: 14px 0 0; padding: 12px 14px; border-radius: 13px; border-left: 4px solid var(--lime); background: var(--soft); color: var(--ink); line-height: 1.5; }
.master-next-preview { display: grid; gap: 4px; }
.master-next-preview strong, .master-next-session-preview strong { color: var(--green); }
html[data-theme="dark"] .master-next-preview, html[data-theme="dark"] .master-next-session-preview { background: #1b2b20; border-left-color: var(--orange); }
html[data-theme="dark"] .master-next-preview strong, html[data-theme="dark"] .master-next-session-preview strong { color: #ffd09e; }

html[data-theme="dark"] .recipe-maker-resource-card { background: linear-gradient(135deg, #1c291e, #2d2119); border-color: #4d6531; }
html[data-theme="dark"] .recipe-type-card input:checked + span { color: var(--ink); border-color: var(--orange); background: #382116; }
html[data-theme="dark"] .recipe-result { color: var(--ink); background: #151e18; border-color: var(--line); }
html[data-theme="dark"] .recipe-facts span { color: #cff2a9; background: #26391f; }

.juice-maker-resource-card { background: linear-gradient(135deg, #f2fff7, #fff4e8); }
.juice-maker-hero { background: radial-gradient(circle at 84% 18%, rgba(255,94,0,.35), transparent 34%), linear-gradient(135deg, #10291e, #245b3a); }
.juice-maker-cup { background: linear-gradient(145deg, #ff7b25, #b9e531); }
.juice-style-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.juice-style-grid .recipe-type-card span { min-height: 145px; }
html[data-theme="dark"] .juice-maker-resource-card { background: linear-gradient(135deg, #173126, #332319); }

.fruit-finder-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; padding: clamp(22px, 5vw, 34px); background: radial-gradient(circle at 82% 18%, rgba(185,229,49,.28), transparent 33%), linear-gradient(135deg, #153324, #1f5439); color: #fff; }
.fruit-finder-hero h2 { margin: 4px 0 8px; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.fruit-finder-hero p:not(.eyebrow) { max-width: 680px; margin: 0; color: #e8f4e9; }
.fruit-finder-hero .button { flex: 0 0 auto; }
.fruit-finder-hero-action { display: grid; flex: 0 0 min(100%, 245px); gap: 9px; justify-items: stretch; }
.fruit-finder-locate-button { min-width: 220px; }
.fruit-finder-locate-button[aria-busy="true"] { cursor: wait; opacity: 1; }
.fruit-finder-locate-indicator { position: relative; width: 20px; height: 20px; flex: 0 0 20px; border: 3px solid rgba(255,255,255,.38); border-top-color: #fff; border-radius: 50%; animation: fruitFinderLocateSpin var(--motion-duration-loop-fast) var(--motion-ease-linear) infinite; }
.fruit-finder-locate-indicator::after { content: ""; position: absolute; width: 6px; height: 6px; top: 4px; left: 4px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(185,229,49,.18); }
.fruit-finder-location-status { margin: 0; color: #f2f8f3; font-size: .78rem; font-weight: 750; line-height: 1.4; text-align: center; }
.fruit-finder-ios-note { margin-bottom: 16px; padding: 18px 20px; border: 1px solid rgba(255,94,0,.28); background: linear-gradient(135deg, #fff8f1, #f7ffe9); }
.fruit-finder-ios-note h2, .fruit-finder-manual-card h2 { margin: 0 0 7px; font-size: 1.08rem; }
.fruit-finder-ios-note p { margin: 0; color: var(--muted); }
.fruit-finder-manual-card { display: grid; grid-template-columns: minmax(190px, .75fr) minmax(280px, 1.25fr); gap: 24px; align-items: center; margin-bottom: 16px; padding: 20px; }
.fruit-finder-manual-card p { margin: 0; }
.fruit-finder-manual-form { display: grid; gap: 8px; }
.fruit-finder-manual-form label { color: var(--text); font-size: .88rem; font-weight: 850; }
.fruit-finder-manual-form small { color: var(--muted); line-height: 1.45; }
.fruit-finder-manual-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.fruit-finder-manual-controls input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: var(--card); font: inherit; }
.fruit-finder-manual-controls input:focus { outline: 3px solid rgba(255,94,0,.2); border-color: var(--orange); }
.fruit-finder-note { margin-bottom: 18px; padding: 18px 20px; border-left: 5px solid var(--lime); }
.fruit-finder-note h2, .fruit-finder-message h2 { margin: 0 0 7px; font-size: 1.08rem; }
.fruit-finder-note p, .fruit-finder-message p { margin: 0; color: var(--muted); }
.fruit-finder-count { margin: 0 0 10px; color: var(--muted); font-weight: 800; }
.fruit-finder-results { display: grid; gap: 12px; }
.fruit-finder-place { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; }
.fruit-finder-place h2 { margin: 3px 0 7px; font-size: 1.2rem; }
.fruit-finder-place p { margin: 0; }
.fruit-finder-distance { display: inline-block; margin-top: 11px; padding: 5px 9px; border-radius: 999px; color: #2e4d1a; background: #effacf; font-size: .78rem; font-weight: 850; }
.fruit-finder-attribution { margin: 12px 0 0; color: var(--muted); font-size: .76rem; }
.fruit-finder-message { display: grid; gap: 13px; padding: 22px; }
.fruit-finder-message .button { justify-self: start; }
.fruit-finder-skeletons { display: grid; gap: 12px; }
.fruit-finder-skeleton { height: 126px; background: var(--soft); animation: fruitFinderSkeleton var(--motion-duration-loop-slow) var(--motion-ease-smooth) infinite; }
html[data-theme="dark"] .fruit-finder-distance { color: #d9f7ac; background: #283d1c; }
html[data-theme="dark"] .fruit-finder-skeleton { background: #1b271f; }
html[data-theme="dark"] .fruit-finder-ios-note { background: linear-gradient(135deg, #302319, #1d2b20); }
.recipe-grocery-results { margin-top: 18px; padding: 20px; }
.recipe-grocery-results h3 { margin: 3px 0 7px; }
.recipe-grocery-results > .muted { margin: 0 0 14px; }
.recipe-grocery-store-list { display: grid; gap: 10px; }
.recipe-grocery-store { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.recipe-grocery-store strong, .recipe-grocery-store small { display: block; }
.recipe-grocery-store small { margin-top: 4px; color: var(--muted); }
.recipe-grocery-actions { display: flex; align-items: center; gap: 8px; }
.recipe-grocery-feedback { display: inline-flex; gap: 4px; }
.recipe-grocery-feedback .icon-button { min-width: 34px; min-height: 34px; padding: 0; }
.recipe-grocery-featured { display: inline-block; margin: 5px 0 0; padding: 3px 7px; border-radius: 999px; background: rgba(185,229,49,.22); color: var(--text); font-size: .72rem; font-weight: 800; }
.recipe-grocery-approved { display: inline-block; margin: 5px 0 0 5px; padding: 3px 7px; border-radius: 999px; background: rgba(255,94,0,.14); color: var(--text); font-size: .72rem; font-weight: 800; }
.recipe-grocery-disclaimer { margin: 14px 0 0; color: var(--muted); font-size: .82rem; }
html[data-theme="dark"] .recipe-grocery-store { background: #1b271f; }
/* Keep late-loaded feature surfaces legible after the dark-theme rules above.
   These components are declared after the main theme block, so they need an
   explicit dark surface instead of inheriting their light white background. */
html[data-theme="dark"] :where(
  .community-guidelines,
  .map-action-link,
  .recipe-maker-resource-card,
  .juice-maker-resource-card,
  .recipe-result,
  .fruit-finder-note,
  .fruit-finder-place,
  .fruit-finder-message,
  .recipe-grocery-results,
  .recipe-grocery-store
) {
  color: var(--fruit-up-orange-text);
  border-color: var(--fruit-up-orange-border);
  background: var(--fruit-up-orange-surface);
}
html[data-theme="dark"] :where(
  .community-guidelines,
  .map-action-link,
  .recipe-maker-resource-card,
  .juice-maker-resource-card,
  .recipe-result,
  .fruit-finder-note,
  .fruit-finder-place,
  .fruit-finder-message,
  .recipe-grocery-results,
  .recipe-grocery-store
) :where(h1, h2, h3, h4, strong, label) {
  color: var(--fruit-up-orange-text);
}

/* A Foundational-upgrade action is a primary navigation affordance. Keep its
   label dark against a saturated orange surface so it remains unmistakable on
   OLED dark-mode devices and cannot inherit a pale white-on-white pairing. */
html[data-theme="dark"] .midday-upgrade-card .button.secondary {
  color: #201006;
  border-color: #ffc08d;
  background: linear-gradient(135deg, #ff9c62, #f26b20);
  box-shadow: 0 8px 20px rgba(0,0,0,.26);
}
html[data-theme="dark"] .midday-upgrade-card .button.secondary:hover,
html[data-theme="dark"] .midday-upgrade-card .button.secondary:focus-visible {
  color: #160a03;
  border-color: #ffd3b3;
  background: linear-gradient(135deg, #ffb17d, #ff7a2d);
}

/* RC122: compact controls give dense member screens a consistent, branded way
   to make room without the abrupt, generic "Shrink" buttons. */
.fruit-card-collapse-button,
.walking-conditions-expand,
.walking-conditions-collapse {
  position: relative;
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 6px 2px 8px;
  border: 0;
  border-radius: 0;
  color: #176e3d;
  background: transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
  transition: color var(--motion-duration-quick) var(--motion-ease-smooth), transform var(--motion-duration-quick) var(--motion-ease-smooth);
}
.fruit-card-collapse-button::after,
.walking-conditions-expand::after,
.walking-conditions-collapse::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ca84f 0%, #b9e535 54%, #ef2d2d 100%);
  opacity: .82;
  transform: scaleX(.68);
  transform-origin: left center;
  transition: transform var(--motion-duration-quick) var(--motion-ease-smooth), opacity var(--motion-duration-quick) var(--motion-ease-smooth);
}
.fruit-card-collapse-button:hover,
.fruit-card-collapse-button:focus-visible,
.walking-conditions-expand:hover,
.walking-conditions-expand:focus-visible,
.walking-conditions-collapse:hover,
.walking-conditions-collapse:focus-visible { color: var(--orange-dark); transform: translateX(2px); }
.fruit-card-collapse-button:hover::after,
.fruit-card-collapse-button:focus-visible::after,
.walking-conditions-expand:hover::after,
.walking-conditions-expand:focus-visible::after,
.walking-conditions-collapse:hover::after,
.walking-conditions-collapse:focus-visible::after { opacity: 1; transform: scaleX(1); }
.fruit-card-collapse-button--inline { flex: 0 0 auto; }
.daily-action-collapse-button { margin-top: 6px; }
.daily-action-card { position: relative; }
.daily-action-card.is-collapsed { grid-template-columns: minmax(0,1fr) minmax(126px,170px); gap: 14px; padding-top: 18px; padding-bottom: 18px; }
.daily-action-card.is-collapsed .daily-action-copy > p:not(.eyebrow),
.daily-action-card.is-collapsed .daily-action-copy > .source-pill,
.daily-action-card.is-collapsed .daily-action-copy > .coach-feedback,
.daily-action-card.is-collapsed .daily-action-meta > span:not(.status) { display: none; }
.daily-action-card.is-collapsed .daily-action-copy { display: grid; gap: 5px; }
.daily-action-card.is-collapsed .daily-action-meta { min-height: 20px; }
.daily-action-card.is-collapsed h2 { margin: 0; font-size: clamp(1.12rem, 4vw, 1.42rem); }
.reminder-preferences-launcher.is-saved { border-color: #9fcf65; background: linear-gradient(135deg, #f5fce7, #fff); }
.reminder-preferences-save-confirmation { display: inline-flex; align-items: center; gap: 9px; color: #35620b; font-weight: 800; }
.fruit-up-mini-spinner { width: 17px; height: 17px; flex: 0 0 auto; border: 3px solid rgba(239,45,45,.32); border-top-color: #ef2d2d; border-right-color: #0ca84f; border-radius: 50%; animation: fruit-up-spin var(--motion-duration-loop-fast) var(--motion-ease-linear) infinite; }
@keyframes fruit-up-spin { to { transform: rotate(360deg); } }
.admin-table-wrap .receipt { min-width: 720px; }
.guide-chapter-card { position: relative; overflow: hidden; border-color: #cbdcb0; background: linear-gradient(145deg, #fff, #f3fae6); }
.guide-chapter-card::after { content: ""; position: absolute; width: 100px; height: 100px; right: -38px; bottom: -54px; border-radius: 50%; background: radial-gradient(circle, rgba(239,45,45,.24), rgba(12,168,79,.16) 54%, transparent 56%); pointer-events: none; }
.guide-chapter-card-brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.guide-chapter-card-brand .eyebrow { margin: 0; }
.guide-chapter-card-brand img { width: 38px; height: 30px; object-fit: contain; }
.help-guide-visual-hero { display: grid; grid-template-columns: minmax(130px, .75fr) minmax(0,1fr); gap: 18px; align-items: center; overflow: hidden; border-color: #c7dd90; background: linear-gradient(135deg, #f7ffec, #fff6ef); }
.help-guide-visual-hero img { width: 100%; min-height: 128px; height: 100%; object-fit: cover; border-radius: 14px; box-shadow: 0 8px 22px rgba(23,36,26,.15); }

/* Dark mode safety net. Form controls and light utility cards always retain a
   deliberate dark surface with high-contrast text—even when feature styles
   are loaded after the main theme block. */
html[data-theme="dark"] :where(input, select, textarea, .field input, .field select, .field textarea) { color: #fff7f0 !important; background: #21170f !important; border-color: #bd7045 !important; color-scheme: dark; caret-color: #fff7f0; }
html[data-theme="dark"] .time-picker-trigger { color: #ffcfad; border-color: #bd7045; background: #21170f; }
html[data-theme="dark"] .time-picker-trigger.is-set,
html[data-theme="dark"] .time-picker-current { color: #efffcf; border-color: #74953c; background: #203018; }
html[data-theme="dark"] .time-picker-control { color: #ffcfad; }
html[data-theme="dark"] :where(input, select, textarea):focus { border-color: #ffaf7b !important; box-shadow: 0 0 0 3px rgba(255,156,98,.22); }
html[data-theme="dark"] :where(input, textarea, select):-webkit-autofill,
html[data-theme="dark"] :where(input, textarea, select):-webkit-autofill:hover,
html[data-theme="dark"] :where(input, textarea, select):-webkit-autofill:focus { -webkit-text-fill-color: #fff7f0 !important; box-shadow: 0 0 0 1000px #21170f inset !important; caret-color: #fff7f0; }
html[data-theme="dark"] .master-response-card :where(input, select, textarea, .field input, .field select, .field textarea) { color: #fff7f0 !important; background: #21170f !important; border-color: #bd7045 !important; }
html[data-theme="dark"] .master-response-card :where(input, textarea)::placeholder { color: #ffcfad !important; opacity: 1; }
html[data-theme="dark"] :where(.choice, .faq-item, .help-guide-visual-hero, .guide-chapter-card, .reminder-preferences-launcher.is-saved) { color: #fff7f0; border-color: #995d3d; background: #241b14; }
html[data-theme="dark"] :where(.choice, .faq-item, .help-guide-visual-hero, .guide-chapter-card, .reminder-preferences-launcher.is-saved) :where(h1,h2,h3,h4,p,strong,label,small) { color: inherit; }
html[data-theme="dark"] .reminder-preferences-save-confirmation { color: #d9f7ac; }
html[data-theme="dark"] .fruit-card-collapse-button,
html[data-theme="dark"] .walking-conditions-expand,
html[data-theme="dark"] .walking-conditions-collapse { color: var(--fruit-up-orange-accent); }
html[data-theme="dark"] .walking-weather-badge { color: #d9f4ff; border-color: #4d85af; background: #17334a; }
html[data-theme="dark"] .walking-weather-badge.is-snow { color: #e2f6ff; border-color: #5683a2; background: #1d3444; }
html[data-theme="dark"] .daily-action-card.is-collapsed { background: linear-gradient(135deg, #17211a, #2a3523); }
html[data-theme="dark"] .replay-passcode code { color: #fff7f0; border-color: #9b6a43; background: #21170f; }
html[data-theme="dark"] .replay-passcode-copy { color: #e5fbbf; border-color: #7cab3f; background: #21301d; }
html[data-theme="dark"] .replay-passcode-copy.is-copied { color: #1f3610; background: var(--lime); }

@media (max-width: 700px) {
  .daily-action-card.is-collapsed { grid-template-columns: 1fr; padding-right: 96px; }
  .daily-action-card.is-collapsed .daily-action-cta { justify-content: flex-start; }
  .daily-action-card.is-collapsed .daily-action-cta .button { min-width: 0; }
  .help-guide-visual-hero { grid-template-columns: 1fr; }
  .help-guide-visual-hero img { max-height: 182px; }
}

@media (max-width: 820px) {
  .coach-operations-head,
  .coach-map-monitor-head { display: grid; }
  .coach-operations-metrics,
  .coach-map-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coach-operations-metrics > div:nth-child(2),
  .coach-map-summary > div:nth-child(2) { border-right: 0; }
  .coach-operations-metrics > div:nth-child(n + 3),
  .coach-map-summary > div:nth-child(n + 3) { border-top: 1px solid #dcebd5; }
  .coach-map-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .coach-map-states,
  .coach-map-signal { grid-column: 1 / -1; }
  .coach-map-open { grid-column: 2; grid-row: 1; }
}

html[data-theme="dark"] .coach-operations-overview,
html[data-theme="dark"] .coach-map-monitor { border-color: #446844; background: linear-gradient(145deg, #132217, #182a1b 62%, #2b2118); box-shadow: none; }
html[data-theme="dark"] .coach-operations-head > p,
html[data-theme="dark"] .coach-map-member span,
html[data-theme="dark"] .coach-map-signal { color: #c1d0bf; }
html[data-theme="dark"] .coach-operations-metrics,
html[data-theme="dark"] .coach-map-summary { border-color: #405a41; background: rgba(11, 27, 15, .72); }
html[data-theme="dark"] .coach-operations-metrics > div,
html[data-theme="dark"] .coach-map-summary > div,
html[data-theme="dark"] .coach-map-row { border-color: #405a41; background: rgba(19, 37, 22, .72); }
html[data-theme="dark"] .coach-map-row:nth-child(even) { background: rgba(24, 48, 29, .86); }
html[data-theme="dark"] .coach-operations-metrics span,
html[data-theme="dark"] .coach-map-summary span { color: #c7d7c5; }
html[data-theme="dark"] .coach-monitor-live { border-color: #4f8e59; color: #d7ffc8; background: #193f25; }
html[data-theme="dark"] .coach-map-state { border-color: #526554; color: #dae5d8; background: #1c2c20; }
html[data-theme="dark"] .coach-map-state.is-complete { border-color: #477c45; color: #d9ffd1; background: #173c23; }
html[data-theme="dark"] .coach-map-state.is-pending { border-color: #926f35; color: #ffe0a5; background: #3d2d14; }
html[data-theme="dark"] .coach-map-state.is-not-required { color: #b7c0b5; background: #253227; }

/* Dark-mode control contract: editable fields and light action surfaces must
   never fall back to white. A single warm Fruit Up orange surface keeps every
   field obvious while preserving high contrast for members who need it. */
html[data-theme="dark"] :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea,
  [contenteditable="true"]
) {
  color: #fff8f2 !important;
  background: #74361f !important;
  border-color: #e18a54 !important;
  caret-color: #fff8f2;
  color-scheme: dark;
}
html[data-theme="dark"] :where(input, textarea)::placeholder { color: #ffd0b7 !important; opacity: 1; }
html[data-theme="dark"] :where(input, textarea, select):-webkit-autofill,
html[data-theme="dark"] :where(input, textarea, select):-webkit-autofill:hover,
html[data-theme="dark"] :where(input, textarea, select):-webkit-autofill:focus {
  -webkit-text-fill-color: #fff8f2 !important;
  box-shadow: 0 0 0 1000px #74361f inset !important;
}
html[data-theme="dark"] :where(
  .button.secondary,
  .map-answer-chip,
  .map-number-action,
  .map-compose-answer,
  .map-voice-button,
  .choice,
  .score-choice span,
  .protocol-choice > span
) {
  color: #fff8f2 !important;
  border-color: #e18a54 !important;
  background: linear-gradient(135deg, #7d3a20, #a34d25) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 213, 185, .1);
}
html[data-theme="dark"] :where(
  .button.secondary,
  .map-answer-chip,
  .map-number-action,
  .map-compose-answer,
  .map-voice-button,
  .choice,
  .score-choice span,
  .protocol-choice > span
) :where(small, strong, span, label) { color: inherit; }
html[data-theme="dark"] .score-choice input:checked + span {
  color: #fff !important;
  border-color: #ffb184 !important;
  background: linear-gradient(135deg, #f05a00, #d97600) !important;
  box-shadow: 0 0 0 3px rgba(255, 177, 132, .2), 0 8px 20px rgba(0, 0, 0, .34) !important;
}
html[data-theme="dark"] .sunday-prep-section {
  color: var(--ink);
  border-color: #71943a !important;
  background: linear-gradient(145deg, #1d2d1d, #151e18);
  box-shadow: inset 0 0 0 1px rgba(209, 246, 106, .08);
}
html[data-theme="dark"] .sunday-prep-section .eyebrow {
  color: #d1f66a;
}
html[data-theme="dark"] .button.secondary:disabled {
  color: #ffe4d3 !important;
  border-color: #975337 !important;
  background: #542819 !important;
  opacity: .72;
}
@keyframes fruitFinderSkeleton { 0%, 100% { opacity: 1; transform: translateZ(0); } 50% { opacity: .62; transform: translateZ(0); } }
@keyframes fruitFinderLocateSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .fruit-finder-locate-indicator,
  .fruit-finder-skeleton { animation: none; }
}

@media (max-width: 1100px) {
  .juice-style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .recipe-maker-resource-card { grid-template-columns: auto minmax(0, 1fr); }
  .recipe-maker-resource-card .button { grid-column: 1 / -1; width: 100%; }
  .recipe-maker-spark { display: none; }
  .recipe-maker-hero { min-height: 0; }
  .recipe-type-grid, .recipe-maker-options, .recipe-columns { grid-template-columns: 1fr; }
  .juice-style-grid { grid-template-columns: 1fr; }
  .recipe-type-card span { min-height: 92px; }
  .recipe-result-actions, .recipe-result-actions .button { width: 100%; }
  .fruit-finder-hero, .fruit-finder-place { align-items: stretch; flex-direction: column; }
  .fruit-finder-hero .button, .fruit-finder-place .button, .fruit-finder-message .button { width: 100%; }
  .fruit-finder-manual-card, .fruit-finder-manual-controls { grid-template-columns: 1fr; }
  .fruit-finder-manual-controls .button { width: 100%; }
  .recipe-grocery-store { align-items: stretch; flex-direction: column; }
  .recipe-grocery-actions { justify-content: space-between; }
}

/* Find Anything */
.universal-search-open {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #e7b89e;
  border-radius: 999px;
  color: var(--orange-dark);
  background: #fff7f2;
  font-weight: 900;
  cursor: pointer;
}
.universal-search-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: min(820px, calc(100dvh - 24px));
  margin: max(12px, 5dvh) auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 90px rgba(26, 19, 15, .32);
  overflow: hidden;
}
.universal-search-dialog::backdrop {
  background: rgba(26, 19, 15, .58);
  backdrop-filter: blur(5px);
}
.universal-search-panel {
  display: flex;
  flex-direction: column;
  max-height: min(820px, calc(100dvh - 24px));
}
.universal-search-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 14px;
}
.universal-search-header h2,
.universal-search-header p { margin: 0; }
.universal-search-header .eyebrow { margin-bottom: 4px; }
.universal-search-header > div > p:last-child {
  margin-top: 5px;
  color: var(--muted);
}
.universal-search-close {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--soft);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.universal-search-filter-guide {
  margin: 0 24px 12px;
  padding: 14px;
  border: 1px solid #f1c4a7;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7f2, #fbfff0);
}
.universal-search-filter-guide h3,
.universal-search-filter-guide p { margin: 0; }
.universal-search-filter-guide h3 {
  color: var(--orange-dark);
  font-size: 1rem;
}
.universal-search-filter-guide > p {
  margin-top: 4px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.4;
}
.universal-search-filter-guide ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}
.universal-search-filter-guide li {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(206, 121, 63, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
}
.universal-search-filter-guide li strong {
  color: var(--ink);
  font-size: .78rem;
}
.universal-search-filter-guide li span {
  color: var(--muted);
  font-size: .71rem;
  line-height: 1.3;
}
.universal-search-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 0 24px;
}
.universal-search-form input {
  min-height: 54px;
  width: 100%;
  padding-left: 48px;
  border: 2px solid #ef8e51;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
}
.universal-search-form .button { min-height: 54px; }
.universal-search-input-icon {
  position: absolute;
  z-index: 1;
  left: 40px;
  top: 16px;
  width: 22px;
  height: 22px;
  color: var(--orange-dark);
  pointer-events: none;
}
.universal-search-input-icon svg { width: 100%; height: 100%; }
.universal-search-filters {
  display: flex;
  gap: 8px;
  padding: 0 24px 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.universal-search-filter-hint {
  margin: 4px 24px 10px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35;
}
.universal-search-filter-hint strong { color: var(--ink); }
.universal-search-filters button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--soft);
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}
.universal-search-filters button.active {
  border-color: var(--orange);
  color: #fff;
  background: var(--orange);
}
.universal-search-status {
  margin: 8px 24px;
  color: var(--muted);
  font-size: .9rem;
}
.universal-search-status.error { color: var(--danger); }
.universal-search-results {
  min-height: 120px;
  padding: 2px 14px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.universal-search-result {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.universal-search-result:hover,
.universal-search-result:focus-visible {
  outline: 0;
  border-radius: 14px;
  background: var(--soft);
  box-shadow: inset 0 0 0 2px rgba(255, 94, 0, .22);
}
.universal-search-result-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.universal-search-result-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.universal-search-result-heading strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.universal-search-result-heading small,
.universal-search-result-metadata {
  color: var(--muted);
  font-weight: 750;
}
.universal-search-result-heading small { white-space: nowrap; }
.universal-search-result-excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.universal-search-skeleton {
  height: 76px;
  margin: 8px 10px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--soft), #fff0e7, var(--soft));
  animation: universalSearchLoading var(--motion-duration-loop-medium) var(--motion-ease-smooth) infinite;
}
.universal-search-target {
  outline: 4px solid rgba(255, 94, 0, .3);
  outline-offset: 4px;
  transition: outline-color var(--motion-duration-standard) var(--motion-ease-smooth);
}
@keyframes universalSearchLoading {
  0%, 100% { opacity: .58; transform: translateZ(0); }
  50% { opacity: 1; transform: translateZ(0); }
}
html[data-theme="dark"] .universal-search-open {
  color: #fff5ed;
  border-color: #a95a31;
  background: #582815;
}
html[data-theme="dark"] .universal-search-dialog {
  color: #fff8f2;
  background: #1f2421;
}
html[data-theme="dark"] .universal-search-filter-guide {
  border-color: #71472f;
  background: linear-gradient(135deg, #33251f, #252c20);
}
html[data-theme="dark"] .universal-search-filter-guide li {
  border-color: #604331;
  background: rgba(255, 255, 255, .04);
}
html[data-theme="dark"] .universal-search-filter-guide li strong,
html[data-theme="dark"] .universal-search-filter-hint strong { color: #fff8f2; }
html[data-theme="dark"] .universal-search-close,
html[data-theme="dark"] .universal-search-filters button {
  color: #fff5ed;
  border-color: #82583d;
  background: #3a2b22;
}
html[data-theme="dark"] .universal-search-filters button.active {
  border-color: #ff8b46;
  background: #bd4a14;
}
html[data-theme="dark"] .universal-search-skeleton {
  background: linear-gradient(90deg, #2f2a27, #5b301e, #2f2a27);
}
@media (max-width: 760px) {
  .universal-search-open > span { display: none; }
  .universal-search-open { width: 44px; padding: 0; justify-content: center; }
  .universal-search-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }
  .universal-search-panel { height: 100dvh; max-height: none; }
  .universal-search-header { padding: max(18px, env(safe-area-inset-top)) 16px 12px; }
  .universal-search-header > div > p:last-child { display: none; }
  .universal-search-filter-guide {
    margin-inline: 16px;
    padding: 12px;
  }
  .universal-search-filter-guide ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .universal-search-filter-guide li { padding: 7px 8px; }
  .universal-search-form {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 16px;
  }
  .universal-search-form .button { display: none; }
  .universal-search-input-icon { left: 32px; }
  .universal-search-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding-inline: 16px;
    overflow-x: visible;
  }
  .universal-search-filters button {
    min-width: 0;
    width: 100%;
    padding-inline: 5px;
    font-size: .78rem;
  }
  .universal-search-filter-hint { margin-inline: 16px; }
  .universal-search-status { margin-inline: 16px; }
  .universal-search-results { padding-inline: 8px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .universal-search-result-heading { display: grid; gap: 2px; }
  .universal-search-result-heading small { white-space: normal; }
}
@media (max-width: 390px) {
  .universal-search-result {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
}
html[data-theme="dark"] .profile-birthday-settings {
  border-color: #718d2c;
  background: linear-gradient(135deg, #25331d, #34271f);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
@media (prefers-reduced-motion: reduce) {
  .universal-search-skeleton { animation: none; }
  .universal-search-target { scroll-behavior: auto; }
}
/* Weekly Step Challenge --------------------------------------------------- */
.weekly-step-page {
  min-height: calc(100dvh - 12rem);
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.weekly-step-page-tabs {
  display: inline-flex;
  gap: .35rem;
  margin-top: .25rem;
  padding: .3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--surface-shadow-soft);
}

.weekly-step-page-tabs :where(span.active, button) {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
}

.weekly-step-page-tabs span.active {
  color: #172006;
  background: linear-gradient(135deg, #a3e635, #facc15);
}

.weekly-step-page-tabs button {
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.weekly-step-challenge-launcher {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--brand) 38%, var(--border));
  background:
    radial-gradient(circle at 10% 0%, rgba(132, 204, 22, .2), transparent 35%),
    var(--surface);
}

.weekly-step-challenge-launcher-icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, #facc15, #f97316);
  box-shadow: 0 12px 28px rgba(234, 179, 8, .28);
  font-size: 1.8rem;
}

.weekly-step-opt-in {
  border: 1px solid color-mix(in srgb, #84cc16 40%, var(--border));
  background:
    linear-gradient(135deg, rgba(132, 204, 22, .1), transparent 50%),
    var(--surface);
}

.weekly-step-opt-in-note,
.weekly-step-proof-help {
  display: grid;
  gap: .25rem;
  margin: .8rem 0 1rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(132, 204, 22, .32);
  border-radius: .9rem;
  background: rgba(132, 204, 22, .09);
}

.weekly-step-proof-help {
  margin-bottom: 0;
  font-size: .9rem;
  line-height: 1.45;
}

.weekly-step-arena {
  --step-lime: #a3e635;
  --step-gold: #facc15;
  --step-orange: #fb923c;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(163, 230, 53, .28);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  color: #f8fafc;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(2, 6, 23, .99)),
    #020617;
  box-shadow:
    0 30px 70px rgba(2, 6, 23, .42),
    inset 0 1px rgba(255, 255, 255, .07);
}

.weekly-step-arena button {
  min-height: 44px;
}

.weekly-step-glow {
  position: absolute;
  z-index: -1;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  filter: blur(72px);
  opacity: .13;
  pointer-events: none;
}

.weekly-step-glow-one {
  top: -13rem;
  right: -6rem;
  background: var(--step-lime);
}

.weekly-step-glow-two {
  bottom: 18%;
  left: -14rem;
  background: #f97316;
}

.weekly-step-arena-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 23rem);
  gap: 1.25rem;
  align-items: end;
}

.weekly-step-kicker,
.weekly-step-week {
  margin: 0;
  color: var(--step-lime);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.weekly-step-arena-header h2 {
  max-width: 14ch;
  margin: .35rem 0;
  color: #fff;
  font-size: clamp(2.35rem, 7vw, 5.25rem);
  font-style: italic;
  font-weight: 1000;
  letter-spacing: -.075em;
  line-height: .88;
  text-transform: uppercase;
}

.weekly-step-prize {
  display: flex;
  gap: .85rem;
  align-items: center;
  min-height: 6.25rem;
  padding: 1rem;
  border: 1px solid rgba(250, 204, 21, .5);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(250, 204, 21, .2), rgba(234, 88, 12, .08)),
    rgba(15, 23, 42, .72);
  box-shadow: 0 15px 35px rgba(234, 179, 8, .12);
  backdrop-filter: blur(14px);
}

.weekly-step-prize > span {
  font-size: 2.65rem;
}

.weekly-step-prize div {
  display: grid;
  gap: .15rem;
}

.weekly-step-prize small,
.weekly-step-prize em {
  color: #fde68a;
  font-size: .72rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.weekly-step-prize strong {
  color: #fff;
  line-height: 1.15;
}

.weekly-step-score-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 1.35rem 0;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 1rem;
  background: rgba(148, 163, 184, .18);
}

.weekly-step-score-strip > span {
  display: grid;
  gap: .12rem;
  padding: .85rem 1rem;
  background: rgba(15, 23, 42, .86);
  text-align: center;
}

.weekly-step-score-strip small {
  color: #94a3b8;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.weekly-step-score-strip strong {
  color: var(--step-gold);
  font-size: 1.28rem;
  font-variant-numeric: tabular-nums;
}

.weekly-step-status-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(163, 230, 53, .28);
  border-radius: 1rem;
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(14px);
}

.weekly-step-status-card h2,
.weekly-step-status-card p {
  margin: 0;
}

.weekly-step-status-card p:not(.eyebrow) {
  margin-top: .25rem;
  color: #cbd5e1;
}

.weekly-step-status-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: .9rem;
  background: rgba(163, 230, 53, .16);
  font-size: 1.5rem;
}

.weekly-step-upcoming {
  display: flex;
  gap: .7rem;
  align-items: center;
  margin: .8rem 0 1rem;
  padding: .75rem .9rem;
  border-radius: .8rem;
  color: #ecfccb;
  background: rgba(77, 124, 15, .25);
}

.weekly-step-upcoming p {
  flex: 1;
  margin: 0;
}

.weekly-step-upcoming .text-button {
  color: #fff;
}

.weekly-step-board-toolbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0 .75rem;
}

.weekly-step-lane-tabs {
  display: inline-flex;
  gap: .35rem;
  padding: .3rem;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: .95rem;
  background: rgba(15, 23, 42, .7);
}

.weekly-step-lane-tabs button,
.weekly-step-refresh {
  border: 0;
  border-radius: .7rem;
  color: #cbd5e1;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.weekly-step-lane-tabs button {
  padding: .65rem .85rem;
}

.weekly-step-lane-tabs button.active {
  color: #172006;
  background: linear-gradient(135deg, var(--step-lime), #bef264);
  box-shadow: 0 8px 24px rgba(163, 230, 53, .22);
}

.weekly-step-refresh {
  padding: .55rem .75rem;
}

.weekly-step-refresh:hover {
  color: #fff;
  background: rgba(148, 163, 184, .1);
}

.weekly-step-board-panel {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, .64);
  box-shadow: 0 18px 48px rgba(2, 6, 23, .35);
  backdrop-filter: blur(16px);
}

.weekly-step-board-scroll {
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
  touch-action: pan-y;
}

.weekly-step-board-scroll:focus-visible {
  outline: 3px solid rgba(163, 230, 53, .65);
  outline-offset: -3px;
}

.weekly-step-board-heading {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.2rem .35rem;
}

.weekly-step-board-heading h2 {
  margin: .15rem 0 0;
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-style: italic;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.weekly-step-live {
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  white-space: nowrap;
  color: #d9f99d;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.weekly-step-live i {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--step-lime);
  box-shadow: 0 0 0 .25rem rgba(163, 230, 53, .12);
  animation: weekly-step-live-pulse var(--motion-duration-loop-fast) var(--motion-ease-smooth) infinite;
}

.weekly-step-board-intro {
  max-width: 68rem;
  margin: 0;
  padding: 0 1.2rem 1rem;
  color: #cbd5e1;
}

.weekly-step-leaderboard {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0 1rem 1rem;
  list-style: none;
}

.weekly-step-row {
  display: grid;
  grid-template-columns: 3rem 3.5rem minmax(0, 1fr) minmax(8rem, auto);
  gap: .75rem;
  align-items: center;
  min-height: 5.4rem;
  padding: .75rem .9rem;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 1rem;
  background: rgba(2, 6, 23, .54);
}

.weekly-step-row.weekly-step-rank-1 {
  border-color: rgba(250, 204, 21, .62);
  background:
    linear-gradient(100deg, rgba(250, 204, 21, .16), transparent 54%),
    rgba(2, 6, 23, .7);
  box-shadow: 0 10px 30px rgba(234, 179, 8, .1);
}

.weekly-step-row.weekly-step-rank-2 {
  border-color: rgba(203, 213, 225, .45);
}

.weekly-step-row.weekly-step-rank-3 {
  border-color: rgba(251, 146, 60, .45);
}

.weekly-step-row.is-current {
  outline: 2px solid var(--step-lime);
  outline-offset: -2px;
}

.weekly-step-rank {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 1000;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.weekly-step-avatar {
  display: grid;
  width: 3.35rem;
  height: 3.35rem;
  overflow: hidden;
  place-items: center;
  border: 2px solid rgba(163, 230, 53, .75);
  border-radius: 50%;
  color: #172006;
  background: linear-gradient(135deg, var(--step-lime), #facc15);
  font-size: .9rem;
  font-weight: 1000;
}

.weekly-step-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.weekly-step-member {
  display: grid;
  min-width: 0;
  gap: .25rem;
}

.weekly-step-member > strong {
  overflow: hidden;
  color: #fff;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-step-member > small {
  color: #94a3b8;
}

.weekly-step-tie {
  margin-left: .25rem;
  padding: .1rem .35rem;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(250, 204, 21, .12);
  font-size: .6rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.weekly-step-proof-dots {
  display: flex;
  gap: .22rem;
}

.weekly-step-proof-dots span {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 50%;
  color: #64748b;
  font-size: .56rem;
  font-weight: 900;
}

.weekly-step-proof-dots span.is-complete {
  border-color: var(--step-lime);
  color: #172006;
  background: var(--step-lime);
  box-shadow: 0 0 12px rgba(163, 230, 53, .22);
}

.weekly-step-total {
  color: var(--step-gold);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-style: italic;
  font-weight: 1000;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.weekly-step-total small {
  display: block;
  color: #94a3b8;
  font-size: .62rem;
  font-style: normal;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.weekly-step-empty {
  display: grid;
  justify-items: center;
  padding: 2.5rem 1rem 3rem;
  text-align: center;
}

.weekly-step-empty > span {
  font-size: 2.5rem;
}

.weekly-step-empty h3 {
  margin: .5rem 0 .2rem;
  color: #fff;
}

.weekly-step-empty p {
  max-width: 36rem;
  margin: 0;
  color: #94a3b8;
}

.weekly-step-rules,
.weekly-step-last-week {
  margin-top: 1rem;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 1rem;
  background: rgba(15, 23, 42, .64);
}

.weekly-step-rules summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  padding: .85rem 1rem;
  cursor: pointer;
}

.weekly-step-rules summary span {
  display: grid;
}

.weekly-step-rules summary small {
  color: var(--step-lime);
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.weekly-step-rules summary strong {
  color: #fff;
}

.weekly-step-rules > div {
  padding: 0 1rem 1rem;
  color: #cbd5e1;
}

.weekly-step-rules > div p:last-child {
  margin-bottom: 0;
}

.weekly-step-last-week {
  padding: 1rem;
}

.weekly-step-last-week h2 {
  color: #fff;
}

.weekly-step-last-week .weekly-step-leaderboard {
  padding-inline: 0;
}

.weekly-step-last-week .muted {
  color: #94a3b8;
}

.weekly-step-ticker {
  display: flex;
  gap: .65rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 1.25rem -2rem -2rem;
  padding: .8rem 1rem;
  color: #172006;
  background: linear-gradient(90deg, var(--step-lime), #facc15, #fb923c);
  font-size: .73rem;
  font-weight: 1000;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes weekly-step-live-pulse {
  50% {
    opacity: .45;
    transform: scale(.78);
  }
}

@media (max-width: 760px) {
  .weekly-step-page {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
  }

  .weekly-step-page-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    border-radius: 1rem;
  }

  .weekly-step-page-tabs :where(span.active, button) {
    border-radius: .75rem;
    padding-inline: .6rem;
    font-size: .86rem;
  }

  .weekly-step-challenge-launcher,
  .weekly-step-arena-header,
  .weekly-step-status-card {
    grid-template-columns: 1fr;
  }

  .weekly-step-challenge-launcher-icon,
  .weekly-step-status-icon {
    width: 3rem;
    height: 3rem;
  }

  .weekly-step-prize {
    min-height: 0;
  }

  .weekly-step-status-card .button {
    width: 100%;
  }

  .weekly-step-board-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .weekly-step-lane-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .weekly-step-lane-tabs button {
    padding-inline: .45rem;
    font-size: .82rem;
  }

  .weekly-step-refresh {
    align-self: end;
  }

  .weekly-step-row {
    grid-template-columns: 2.25rem 3rem minmax(0, 1fr);
    gap: .55rem;
  }

  .weekly-step-avatar {
    width: 3rem;
    height: 3rem;
  }

  .weekly-step-total {
    grid-column: 3;
    text-align: left;
  }

  .weekly-step-proof-dots span {
    width: 1.1rem;
    height: 1.1rem;
  }

  .weekly-step-upcoming {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .weekly-step-upcoming .text-button {
    margin-left: 1.7rem;
  }

  .weekly-step-ticker {
    margin-inline: -1rem;
    margin-bottom: -1rem;
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    padding: .85rem 1rem calc(.85rem + env(safe-area-inset-bottom));
    line-height: 1.35;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 430px) {
  .weekly-step-score-strip {
    grid-template-columns: 1fr;
  }

  .weekly-step-board-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .weekly-step-member > strong {
    white-space: normal;
  }
}

/* Games & Challenges · RC189 */
.games-live-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  padding: clamp(22px, 4vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(178, 235, 33, .55);
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0, rgba(178, 235, 33, .22), transparent 35%),
    linear-gradient(135deg, #122819, #0b1510);
  box-shadow: 0 18px 44px rgba(13, 33, 19, .18);
}
.games-live-hero h2 { margin: 4px 0 8px; color: #fff; font-size: clamp(1.55rem, 4vw, 2.35rem); }
.games-live-hero p { max-width: 690px; margin: 0; color: rgba(255, 255, 255, .78); line-height: 1.55; }
.games-live-hero .eyebrow { color: var(--lime); }
.games-live-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(178, 235, 33, .4);
  border-radius: 999px;
  color: #efffc6;
  background: rgba(178, 235, 33, .1);
  font-size: .8rem;
  font-weight: 900;
  white-space: nowrap;
}
.games-live-badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(178, 235, 33, .12); }
.weekly-game-rhythm { margin-bottom: 18px; }
.game-launch-card > .fruit-up-game-logo {
  position: absolute;
  top: 18px;
  right: 18px;
}
.game-launch-card > .game-launch-icon { margin-right: 58px; }
.weekly-game-rhythm-list { display: grid; gap: 8px; }
.weekly-game-rhythm-list > div {
  display: grid;
  grid-template-columns: minmax(125px, .55fr) minmax(0, 1.6fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.weekly-game-rhythm-list > div.is-live {
  border-color: #92ba29;
  background: linear-gradient(90deg, rgba(178, 235, 33, .2), rgba(178, 235, 33, .05));
  box-shadow: inset 4px 0 0 #88ad20;
}
.weekly-game-rhythm-list strong { font-size: .82rem; }
.weekly-game-rhythm-list span { color: var(--muted); font-size: .88rem; }
.weekly-game-rhythm-list small { display: inline-flex; align-items: center; gap: 6px; color: #42650a; font-size: .7rem; font-weight: 950; white-space: nowrap; }
.weekly-game-rhythm-list small i { width: 7px; height: 7px; border-radius: 50%; background: #79a313; }
.comeback-quest { margin-bottom: 18px; border-color: #e5b060; background: linear-gradient(145deg, #fff9ed, #fff); }
.comeback-quest-heading { display: grid; grid-template-columns: auto 1fr; gap: 15px; align-items: start; }
.comeback-quest-heading h2 { margin: 4px 0 6px; }
.comeback-quest-heading p { margin: 0; line-height: 1.5; }
.comeback-quest-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(145deg, #e75d17, #9d3606); font-size: 1.5rem; font-weight: 950; }
.comeback-quest > .button { margin: 18px 0 0 63px; }
.comeback-actions { display: grid; gap: 9px; margin-top: 18px; }
.comeback-actions > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid #e8cfaa;
  border-radius: 15px;
  background: rgba(255, 255, 255, .72);
}
.comeback-actions > div > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #733007; background: #ffe6c2; font-weight: 950; }
.comeback-actions > div.is-complete > span { color: #18340b; background: var(--lime); }
.comeback-actions p, .comeback-actions small { margin: 0; }
.comeback-actions p { display: grid; gap: 3px; }
.comeback-actions small { color: var(--muted); line-height: 1.35; }
.mystery-fruit-mission {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  border-color: #bbb4e6;
  background: linear-gradient(145deg, #f9f6ff, #fff);
}
.mystery-fruit-mission.is-live { border-color: #8e7ad8; box-shadow: 0 18px 42px rgba(88, 67, 155, .12); }
.mystery-fruit-mission h2 { margin: 4px 0 7px; }
.mystery-fruit-mission p { margin: 0; line-height: 1.5; }
.mystery-fruit-visual { display: grid; width: 88px; height: 88px; place-items: center; border-radius: 28px; color: #fff; background: linear-gradient(145deg, #6d4fc2, #392573); font-size: 2.4rem; font-weight: 950; box-shadow: 0 14px 30px rgba(57, 37, 115, .22); }
.mystery-fruit-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.sunday-game-celebration { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; border-color: #c6d75b; background: linear-gradient(145deg, #f7ffdc, #fff); }
.sunday-game-celebration h2 { margin: 4px 0 7px; }
.sunday-game-celebration p { margin: 0; }
.sunday-game-celebration > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.fruit-bingo-card { overflow: hidden; border-color: #c8dd87; background: linear-gradient(145deg, #fff, #fbffe9); }
.fruit-bingo-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.fruit-bingo-heading h2 { margin: 4px 0 7px; font-size: clamp(1.65rem, 4vw, 2.4rem); }
.fruit-bingo-heading p { margin: 0; line-height: 1.5; }
.fruit-bingo-score {
  min-width: 106px;
  padding: 13px;
  border: 1px solid #c7dc86;
  border-radius: 18px;
  color: #18300e;
  background: #efffc4;
  text-align: center;
}
.fruit-bingo-score strong { display: block; font-size: 1.8rem; line-height: 1; }
.fruit-bingo-score strong span { font-size: .86rem; }
.fruit-bingo-score small { display: block; margin-top: 6px; font-size: .7rem; font-weight: 850; }
.fruit-bingo-swipe-note { margin: 15px 0 9px; color: var(--muted); font-size: .8rem; font-weight: 760; }
.fruit-bingo-loading-help { margin: 10px 0 0; color: var(--muted); font-size: .82rem; }
.fruit-bingo-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 2px 12px;
  scrollbar-color: #a9c653 transparent;
  -webkit-overflow-scrolling: touch;
}
.fruit-bingo-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: 8px;
  min-width: 620px;
}
.fruit-bingo-square {
  position: relative;
  display: grid;
  min-height: 122px;
  grid-template-rows: auto 1fr auto;
  gap: 7px;
  align-items: start;
  padding: 11px;
  border: 2px solid #d9e3d7;
  border-radius: 16px;
  color: #203026;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition:
    transform var(--motion-duration-quick) var(--motion-ease-standard),
    border-color var(--motion-duration-quick) var(--motion-ease-standard),
    box-shadow var(--motion-duration-quick) var(--motion-ease-standard);
}
.fruit-bingo-square:not(:disabled):active { transform: scale(.97); }
.fruit-bingo-square:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.fruit-bingo-category { color: #5c695f; font-size: .62rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.fruit-bingo-square strong { font-size: .79rem; line-height: 1.28; overflow-wrap: anywhere; }
.fruit-bingo-check {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  justify-self: end;
  border-radius: 50%;
  color: #526057;
  background: #edf1ee;
  font-weight: 950;
}
.fruit-bingo-square.category-map { border-color: #ffbea0; background: #fff8f4; }
.fruit-bingo-square.category-fruit { border-color: #b7d867; background: #fbffe8; }
.fruit-bingo-square.category-movement { border-color: #8fd1ca; background: #effcf9; }
.fruit-bingo-square.category-learning { border-color: #9dbbeb; background: #f4f8ff; }
.fruit-bingo-square.category-community { border-color: #d9a6e7; background: #fcf5ff; }
.fruit-bingo-square.category-prep { border-color: #f2d166; background: #fffbed; }
.fruit-bingo-square.category-free {
  place-items: center;
  color: #f8ffdf;
  border-color: #7ba20f;
  background: linear-gradient(145deg, #4e7308, #183510);
  text-align: center;
}
.fruit-bingo-square.is-complete:not(.category-free) {
  border-color: #6f9f11;
  box-shadow: inset 0 0 0 2px rgba(178, 235, 33, .34);
}
.fruit-bingo-square.is-complete .fruit-bingo-check { color: #17390a; background: var(--lime); }
.fruit-bingo-square:disabled { cursor: default; opacity: 1; }
.fruit-bingo-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 7px; }
.fruit-bingo-footer p { margin: 0; line-height: 1.45; }
.fruit-bingo-footer span { color: var(--muted); font-size: .85rem; }
.games-lineup { margin-top: 24px; }
.games-lineup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.game-launch-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.game-launch-card h3 { margin: 5px 0 8px; font-size: 1.35rem; }
.game-launch-card > p:not(.eyebrow) { margin: 0 0 14px; color: var(--muted); line-height: 1.5; }
.game-launch-card > .button { margin-top: auto; }
.game-launch-icon { display: grid; width: 52px; height: 52px; place-items: center; margin-bottom: 13px; border-radius: 16px; background: var(--soft); font-size: 1.55rem; }
.game-launch-step { border-color: #b8d45e; background: linear-gradient(145deg, #fbffe9, var(--card)); }
.game-launch-quest { border-color: #f0ba78; background: linear-gradient(145deg, #fff8ef, var(--card)); }
.game-launch-harvest { border-color: #86cdc2; background: linear-gradient(145deg, #f0fffb, var(--card)); }
.game-launch-sprint { border-color: #7bc4a2; background: linear-gradient(145deg, #effcf6, var(--card)); }
.game-launch-challenge { border-color: #b2bde8; background: linear-gradient(145deg, #f5f7ff, var(--card)); }
.games-safety-note { margin-top: 18px; }
.game-meaning {
  width: 100%;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .68);
}
.game-meaning summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}
.game-meaning summary::-webkit-details-marker { display: none; }
.game-meaning > div { padding: 0 14px 14px; border-top: 1px solid var(--line); }
.game-meaning ul { display: grid; gap: 7px; margin: 13px 0 0; padding-left: 19px; color: var(--muted); font-size: .82rem; line-height: 1.48; }
.game-meaning p { margin: 12px 0 0; color: var(--ink); font-size: .79rem; font-weight: 720; line-height: 1.45; }

/* Connected Games, Boards & Badges · RC202 */
.game-system-overview {
  position: relative;
  margin-bottom: 18px;
  overflow: hidden;
  border-color: #a8cc46;
  background:
    radial-gradient(circle at 100% 0, rgba(178, 235, 33, .2), transparent 32%),
    linear-gradient(145deg, #fbffe8, #fff);
}
.game-system-overview > .fruit-up-game-logo {
  position: absolute;
  top: 18px;
  right: 18px;
}
.game-system-overview .section-heading { padding-right: 54px; }
.game-system-overview .games-live-badge {
  color: #365c0e;
  border-color: #a8cc46;
  background: rgba(178, 235, 33, .18);
}
.game-system-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}
.game-system-steps li {
  display: grid;
  min-width: 0;
  gap: 9px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d6e7a6;
  border-radius: 15px;
  background: rgba(255, 255, 255, .82);
}
.game-system-steps li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #17370b;
  background: var(--lime);
  font-size: .78rem;
  font-weight: 950;
}
.game-system-steps li div { display: grid; gap: 3px; }
.game-system-steps small { color: var(--muted); line-height: 1.35; }
.game-board-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.game-board-legend > span {
  display: grid;
  gap: 2px;
  padding: 11px 13px;
  border-radius: 13px;
  color: #fff;
  background: #173321;
}
.game-board-legend small { color: rgba(255, 255, 255, .72); }
.game-badge-guide {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  border-color: #efbd6d;
  background: linear-gradient(145deg, #fff9ef, #fff);
}
.game-badge-guide h2 { margin: 3px 0 7px; }
.game-badge-guide p { margin: 0; line-height: 1.5; }
.game-badge-path {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}
.game-badge-path > span {
  display: grid;
  min-height: 86px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 9px;
  align-content: center;
  padding: 12px;
  border: 1px solid #eed7b1;
  border-radius: 14px;
  background: rgba(255, 255, 255, .8);
}
.game-badge-path b {
  display: grid;
  width: 29px;
  height: 29px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
}
.game-badge-path small { color: var(--muted); }
.game-badge-path > i { color: var(--orange); font-style: normal; font-weight: 950; }
.game-badge-note { color: var(--muted); font-size: .84rem; }
.game-badge-guide > .button { justify-self: start; }
.my-active-games {
  margin-bottom: 18px;
  border-color: #a7c8bf;
}
.my-active-games .section-heading > small {
  max-width: 290px;
  color: var(--muted);
  line-height: 1.4;
  text-align: right;
}
.my-active-games-grid { display: grid; gap: 8px; }
.my-active-games-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 64px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.my-active-games-grid article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--card);
  font-weight: 950;
}
.my-active-games-grid article > div { display: grid; gap: 2px; }
.my-active-games-grid small { color: var(--muted); line-height: 1.35; }
.my-active-games-grid .text-button {
  min-height: 44px;
  color: var(--orange);
  font-weight: 900;
}
.game-connection {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 4px 0 16px;
}
.game-connection > div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.game-connection dt {
  margin-bottom: 3px;
  color: #5f7d12;
  font-size: .64rem;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.game-connection dd {
  margin: 0;
  color: var(--ink);
  font-size: .77rem;
  line-height: 1.42;
}
.game-mini-board {
  margin-top: 16px;
  padding: 13px;
  border: 1px solid #cfc7ef;
  border-radius: 15px;
  background: rgba(255, 255, 255, .7);
}
.game-mini-board > p { display: grid; gap: 2px; }
.game-mini-board > p small { color: var(--muted); }
.game-mini-board ol {
  display: grid;
  gap: 7px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}
.game-mini-board li {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: .82rem;
}
.game-mini-board li span {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #ece8fb;
  font-size: .7rem;
  font-weight: 950;
}
.game-mini-board li.is-complete { color: var(--ink); font-weight: 800; }
.game-mini-board li.is-complete span { color: #17370b; background: var(--lime); }
.game-mini-board li > div { display: grid; min-width: 0; gap: 3px; }
.game-mini-board li > div small { color: var(--muted); line-height: 1.4; }
.game-mini-board li .text-button {
  width: fit-content;
  min-height: 40px;
  padding: 6px 0;
  color: var(--orange);
  text-align: left;
  font-weight: 900;
}
.game-mini-board li.is-optional {
  align-items: flex-start;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.fruit-bingo-square.is-automatic .fruit-bingo-category {
  display: inline-flex;
  width: fit-content;
  padding: 3px 6px;
  border-radius: 999px;
  color: #17370b;
  background: #d9f99d;
}
.fruit-bingo-square.is-automatic { cursor: default; }
.map-game-connection {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #b8d45e;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(178, 235, 33, .17), transparent 38%),
    linear-gradient(145deg, #fbffe9, #fff);
}
.map-game-connection h2 { margin: 2px 0 8px; font-size: 1.15rem; }
.map-game-connection ul {
  display: grid;
  gap: 5px;
  margin: 0 0 8px;
  padding-left: 19px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.42;
}
.map-game-connection .text-button {
  min-height: 44px;
  padding-inline: 0;
  color: var(--orange);
  font-weight: 900;
}
.weekly-step-connection {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: center;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(163, 230, 53, .28);
  border-radius: 1rem;
  color: #e2e8f0;
  background: rgba(77, 124, 15, .18);
}
.weekly-step-connection h3,
.weekly-step-connection p { margin: 0; }
.weekly-step-connection h3 { color: #fff; }
.weekly-step-connection > p { color: #cbd5e1; line-height: 1.5; }
.weekly-step-window-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 1rem 0;
}
.weekly-step-window-tabs button {
  display: grid;
  min-height: 64px;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: .9rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, .72);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.weekly-step-window-tabs button > span {
  grid-row: 1 / 3;
  font-size: 1.3rem;
}
.weekly-step-window-tabs button small { color: #94a3b8; }
.weekly-step-window-tabs button.active {
  border-color: var(--step-lime);
  color: #172006;
  background: linear-gradient(135deg, var(--step-lime), #facc15);
  box-shadow: 0 10px 28px rgba(163, 230, 53, .2);
}
.weekly-step-window-tabs button.active small { color: #31420b; }
.weekly-step-window-tabs button:focus-visible,
.weekly-step-lane-tabs button:focus-visible,
.weekly-step-refresh:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.weekly-step-board-panel.is-weekend {
  border-color: rgba(250, 204, 21, .42);
  background:
    radial-gradient(circle at 100% 0, rgba(250, 204, 21, .09), transparent 32%),
    rgba(15, 23, 42, .68);
}
.challenge-launcher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.challenge-migration-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  border-color: #b8d45e;
}
.challenge-migration-note h2,
.challenge-migration-note p { margin: 0; }
.challenge-migration-note > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 700px) {
  .games-live-hero, .fruit-bingo-heading, .fruit-bingo-footer { align-items: stretch; flex-direction: column; }
  .games-live-badge { align-self: flex-start; }
  .fruit-bingo-score { width: 100%; }
  .games-lineup-grid { grid-template-columns: 1fr; }
  .game-launch-card { min-height: 0; }
  .weekly-game-rhythm-list > div { grid-template-columns: 1fr; gap: 5px; }
  .weekly-game-rhythm-list small { justify-self: start; }
  .comeback-actions > div { grid-template-columns: auto minmax(0, 1fr); }
  .comeback-actions .button { grid-column: 1 / -1; width: 100%; }
  .comeback-quest > .button { width: 100%; margin-left: 0; }
  .mystery-fruit-mission { grid-template-columns: 1fr; }
  .mystery-fruit-visual { width: 70px; height: 70px; border-radius: 22px; }
  .sunday-game-celebration { align-items: stretch; flex-direction: column; }
  .game-system-overview .section-heading { align-items: flex-start; flex-direction: column; }
  .game-system-steps { grid-template-columns: 1fr; }
  .game-system-steps li { grid-template-columns: auto minmax(0, 1fr); }
  .game-board-legend, .game-connection { grid-template-columns: 1fr; }
  .game-badge-path { grid-template-columns: 1fr; }
  .game-badge-path > i { display: none; }
  .game-badge-guide > .button { width: 100%; }
  .my-active-games .section-heading { align-items: flex-start; flex-direction: column; }
  .my-active-games .section-heading > small { text-align: left; }
  .my-active-games-grid article { grid-template-columns: auto minmax(0, 1fr); }
  .my-active-games-grid .text-button { grid-column: 1 / -1; width: 100%; text-align: left; }
  .weekly-step-connection, .challenge-migration-note { grid-template-columns: 1fr; }
  .challenge-launcher-actions { justify-content: stretch; }
  .challenge-launcher-actions .button,
  .challenge-migration-note .button { width: 100%; }
}

@media (max-width: 430px) {
  .weekly-step-window-tabs { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  /* Keep every primary header action fully visible on the narrowest iPhones.
     Sign out remains available in the Menu under My account. */
  #signOutButton { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fruit-bingo-square { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .weekly-step-live i {
    animation: none;
  }

}

html[data-theme="dark"] .fruit-bingo-card {
  border-color: #5f762f;
  background: linear-gradient(145deg, #18231a, #121a15);
}
html[data-theme="dark"] .fruit-bingo-score {
  color: #efffc6;
  border-color: #607a31;
  background: #263718;
}
html[data-theme="dark"] .fruit-bingo-square:not(.category-free) {
  color: var(--ink);
  border-color: #425044;
  background: #19221c;
}
html[data-theme="dark"] .fruit-bingo-category { color: #b8c5ba; }
html[data-theme="dark"] .game-launch-card {
  color: var(--ink);
  border-color: var(--line);
  background: linear-gradient(145deg, #18221b, #121a15);
}
html[data-theme="dark"] .comeback-quest,
html[data-theme="dark"] .mystery-fruit-mission,
html[data-theme="dark"] .sunday-game-celebration {
  color: var(--ink);
  border-color: var(--line);
  background: linear-gradient(145deg, #1c251e, #121a15);
}
html[data-theme="dark"] .comeback-actions > div {
  border-color: var(--line);
  background: #18211b;
}
html[data-theme="dark"] .weekly-game-rhythm-list small { color: #c8ed72; }
html[data-theme="dark"] .game-meaning { background: #151e18; }
html[data-theme="dark"] .fruit-up-game-logo {
  border-color: rgba(185, 229, 49, .28);
  background: rgba(255, 255, 255, .94);
}
html[data-theme="dark"] .game-system-overview,
html[data-theme="dark"] .game-badge-guide,
html[data-theme="dark"] .map-game-connection,
html[data-theme="dark"] .game-mini-board {
  color: var(--ink);
  border-color: var(--line);
  background: linear-gradient(145deg, #1c251e, #121a15);
}
html[data-theme="dark"] .game-system-steps li,
html[data-theme="dark"] .game-badge-path > span,
html[data-theme="dark"] .my-active-games-grid article,
html[data-theme="dark"] .game-connection > div {
  border-color: var(--line);
  background: #18211b;
}
html[data-theme="dark"] .game-connection dt { color: #c8ed72; }
html[data-theme="dark"] .game-board-legend > span { background: #0b1710; }
html[data-theme="dark"] .game-system-overview .games-live-badge {
  color: #efffc6;
  border-color: rgba(178, 235, 33, .4);
  background: rgba(178, 235, 33, .1);
}
html[data-theme="dark"] .map-receipt-connected > strong { color: #ffe4c2; }

.monthly-survey-today-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-color: #d8e7a9;
  background:
    radial-gradient(circle at 100% 0, rgba(185, 229, 49, .16), transparent 36%),
    #fff;
}
.monthly-survey-today-card.is-due {
  border-color: rgba(255, 94, 0, .48);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 94, 0, .12), transparent 38%),
    #fff;
}
.monthly-survey-today-card.is-complete {
  grid-template-columns: auto minmax(0, 1fr);
}
.monthly-survey-today-card h2,
.monthly-survey-today-card p { margin: 0; }
.monthly-survey-today-card p:not(.eyebrow) { margin-top: 5px; }
.monthly-survey-card-mark,
.monthly-survey-confirmation-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #233006;
  background: var(--lime);
  font-weight: 900;
  letter-spacing: -.02em;
}
.monthly-survey-today-card.is-due .monthly-survey-card-mark {
  color: #fff;
  background: var(--orange);
}
.monthly-survey-intro,
.monthly-survey-form,
.monthly-survey-locked {
  width: min(100%, 820px);
  margin-inline: auto;
}
.monthly-survey-intro { margin-bottom: 16px; }
.monthly-survey-intro.is-due { border-color: rgba(255, 94, 0, .48); }
.monthly-survey-form {
  display: grid;
  gap: 22px;
}
.monthly-survey-question {
  margin: 0;
  padding: 0;
  border: 0;
}
.monthly-survey-question > legend,
.monthly-survey-question > label {
  display: block;
  margin-bottom: 9px;
  font-weight: 800;
}
.monthly-survey-rating {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.monthly-survey-rating label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}
.monthly-survey-rating input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.monthly-survey-rating span {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 8px 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  text-align: center;
  background: #fff;
  transition:
    border-color var(--motion-duration-small) var(--motion-ease-standard),
    background var(--motion-duration-small) var(--motion-ease-standard),
    transform var(--motion-duration-small) var(--motion-ease-standard);
}
.monthly-survey-rating strong { font-size: 1.25rem; }
.monthly-survey-rating small {
  font-size: .72rem;
  line-height: 1.15;
}
.monthly-survey-rating input:checked + span {
  border-color: var(--orange);
  color: #502000;
  background: #fff0e7;
  box-shadow: inset 0 0 0 1px var(--orange);
}
.monthly-survey-rating input:focus-visible + span {
  outline: 3px solid rgba(255, 94, 0, .24);
  outline-offset: 2px;
}
.monthly-survey-privacy {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.monthly-survey-privacy legend { padding: 0 6px; font-weight: 850; }
.monthly-survey-privacy .choice { align-items: flex-start; }
.monthly-survey-privacy .choice span { display: grid; gap: 3px; }
.monthly-survey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.monthly-survey-confirmation {
  display: grid;
  justify-items: start;
  gap: 12px;
}
.monthly-survey-confirmation h2,
.monthly-survey-confirmation p { margin: 0; }
.monthly-survey-confirmation-mark {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  font-size: 1.6rem;
}
.admin-monthly-survey-report {
  margin-top: 28px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.admin-monthly-survey-metrics {
  margin-block: 14px;
}
.admin-monthly-survey-feedback > .section-head {
  margin-top: 0;
}
.admin-monthly-survey-responses {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.admin-monthly-survey-responses > details {
  padding: 0;
  overflow: clip;
}
.admin-monthly-survey-responses summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  cursor: pointer;
}
.admin-monthly-survey-responses summary span {
  color: var(--muted);
  text-align: right;
}
.admin-monthly-survey-response-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}
.admin-monthly-survey-response-body p {
  overflow-wrap: anywhere;
}

html[data-theme="dark"] .monthly-survey-today-card,
html[data-theme="dark"] .monthly-survey-today-card.is-due,
html[data-theme="dark"] .monthly-survey-rating span {
  color: var(--ink);
  border-color: var(--line);
  background:
    radial-gradient(circle at 100% 0, rgba(185, 229, 49, .08), transparent 36%),
    #18211b;
}
html[data-theme="dark"] .monthly-survey-rating input:checked + span {
  color: #ffe7d4;
  border-color: #ff8d4a;
  background: #4b2618;
}

@media (max-width: 700px) {
  .monthly-survey-today-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .monthly-survey-today-card .button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .monthly-survey-rating { gap: 5px; }
  .monthly-survey-rating span {
    min-height: 66px;
    padding-inline: 2px;
  }
  .monthly-survey-rating small { font-size: .62rem; }
  .monthly-survey-actions .button { width: 100%; }
  .admin-monthly-survey-responses summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-monthly-survey-responses summary span { text-align: left; }
}

.route-target-highlight {
  scroll-margin-top: 150px;
  outline: 4px solid var(--lime);
  outline-offset: 5px;
  animation: route-target-pulse var(--motion-duration-large) var(--motion-ease-enter) both;
}

@keyframes route-target-pulse {
  0%, 100% { outline-color: rgba(185, 229, 49, .12); }
  18%, 72% { outline-color: rgba(185, 229, 49, .95); }
}

html[data-theme="dark"] .route-target-highlight {
  outline-color: var(--lime);
}

@media (max-width: 700px) {
  .route-target-highlight { scroll-margin-top: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  .route-target-highlight { animation: none; }
}
.preserve-lines {
  white-space: pre-line;
}

.admin-map-correction {
  max-width: 58rem;
}

.admin-map-correction-fields {
  align-items: start;
}

.admin-map-correction .message p:last-child {
  margin-bottom: 0;
}
