/* Dasoni web app 2.2.4 (64) — Flutter 5-tab IA parity. */
:root {
  --wa224-accent: #5b5ded;
  --wa224-accent-strong: #4748d5;
  --wa224-bg: #f2f4f6;
  --wa224-surface: #fff;
  --wa224-ink: #191f28;
  --wa224-sub: #596579;
  --wa224-muted: #8b95a1;
  --wa224-line: #eaedf0;
}

html, body, button, input, textarea, select {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
}

.app-shell { background: var(--wa224-bg); }
.views { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
.view { background: var(--wa224-bg); scrollbar-width: none; }
.view::-webkit-scrollbar { display: none; }
.view.active { animation: wa224-view-in .2s ease-out both; }
.loading[data-v224] { gap: 10px; color: var(--wa224-muted); }
.loading[data-v224]::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 2px solid #d9dde4;
  border-top-color: var(--wa224-accent);
  border-radius: 50%;
  animation: wa224-spin .75s linear infinite;
}

@keyframes wa224-spin { to { transform: rotate(360deg); } }
@keyframes wa224-view-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Flutter MainShell bottom bar: mission · consult · home · community · my */
.bottom-nav {
  height: calc(66px + env(safe-area-inset-bottom));
  padding: 8px 10px max(12px, env(safe-area-inset-bottom));
  align-items: center;
  border-top: 1px solid #f0f2f4;
  background: rgba(255,255,255,.98);
}
.tab { min-height: 48px; border-radius: 12px; font-size: 10.5px; font-weight: 650; }
.tab b { width: 27px; height: 27px; margin-bottom: 2px; }
.tab b svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab.home b {
  width: 46px;
  height: 46px;
  margin: 0 auto;
  border: 0;
  background: #353c49;
  box-shadow: 0 4px 12px rgba(53,60,73,.24);
}
.tab.home b svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.tab.active { color: var(--wa224-accent); }

/* Shared tab canvas */
.wa224-page { min-height: 100%; color: var(--wa224-ink); background: var(--wa224-bg); }
.wa224-art-header {
  position: relative;
  min-height: var(--dasoni-tab-art-height, 216px);
  overflow: hidden;
  padding: calc(20px + env(safe-area-inset-top)) 20px 20px;
  background-image:
    linear-gradient(180deg, rgba(242,244,246,.94), rgba(242,244,246,.5) 48%, var(--wa224-bg) 100%),
    var(--wa224-art);
  background-position: center, var(--dasoni-tab-art-position, center bottom);
  background-size: cover;
}
.wa224-art-header.compact { min-height: var(--dasoni-tab-art-height, 216px); }
.wa224-kicker { color: var(--wa224-sub); font-size: 13px; font-weight: 650; }
.wa224-title { max-width: 400px; margin: 0; font-size: 28px; line-height: 1.25; letter-spacing: -.5px; font-weight: 700; }
.wa224-home-page .wa224-title { margin-top: 5px; }
.wa224-subtitle { max-width: 390px; margin: 6px 0 0; color: var(--wa224-sub); font-size: 13.5px; line-height: 1.55; }
.wa224-avatar {
  position: absolute;
  top: calc(20px + env(safe-area-inset-top));
  right: 20px;
  width: 52px;
  height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: var(--wa224-accent);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 8px 24px rgba(35,42,65,.14);
}
.wa224-avatar.pro { padding: 3px; background: linear-gradient(135deg,#6c5ce7,#a855f7); }
.wa224-avatar img { width: 100%; height: 100%; border: 2px solid var(--wa224-bg); border-radius: 50%; object-fit: cover; }
.wa224-quote {
  width: calc(100% - 60px);
  margin-top: 13px;
  padding: 7px 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--wa224-sub);
  text-align: left;
  font-size: 12.5px;
  line-height: 1.45;
}
.wa224-quote svg { width: 16px; height: 16px; flex: 0 0 auto; fill: currentColor; }
.wa224-streak { margin-left: 7px; padding: 3px 8px; border-radius: 999px; background: #efecff; color: var(--wa224-accent); font-size: 11px; font-weight: 750; }
.wa224-content { margin-top: -18px; padding: 0 20px 40px; position: relative; z-index: 1; }
.wa224-stack { display: flex; flex-direction: column; gap: 12px; }
.wa224-section-title { margin: 18px 2px 8px; color: var(--wa224-muted); font-size: 12.5px; font-weight: 800; letter-spacing: -.2px; }
.wa224-card { border: 0; border-radius: 20px; background: var(--wa224-surface); box-shadow: 0 1px 0 rgba(17,24,39,.02); }
button.wa224-card { width: 100%; color: inherit; text-align: left; cursor: pointer; }
button.wa224-card:active, .wa224-post:active { transform: scale(.992); }
.wa224-chevron { color: #a2abb7; font-size: 22px; line-height: 1; }
.wa224-empty { padding: 34px 20px; color: var(--wa224-muted); text-align: center; font-size: 13px; line-height: 1.65; }
.wa224-retry { margin-top: 13px; padding: 10px 15px; border: 0; border-radius: 12px; background: #e9e7ff; color: var(--wa224-accent-strong); font-weight: 750; }

/* Home briefing — Flutter HomeHeroCard parity */
.wa224-brief-card { position: relative; overflow: hidden; min-height: 260px; padding: 20px; background: linear-gradient(135deg,#283f34,#507260); color: #fff; }
.wa224-brief-card.element-fire { background: linear-gradient(135deg,#5d2e29,#a05245); }
.wa224-brief-card.element-earth { background: linear-gradient(135deg,#554531,#8b7557); }
.wa224-brief-card.element-metal { background: linear-gradient(135deg,#1f242b,#515d69); }
.wa224-brief-card.element-water { background: linear-gradient(135deg,#182d4b,#315579); }
.wa224-brief-hanja { position: absolute; z-index: 0; right: -3px; top: 10px; color: rgba(255,255,255,.075); font-family: "Ma Shan Zheng","Noto Serif CJK KR",serif; font-size: 128px; font-weight: 800; line-height: 1; pointer-events: none; }
.wa224-brief-card > *:not(.wa224-brief-hanja) { position: relative; z-index: 1; }
.wa224-brief-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wa224-brief-tag { max-width: 100%; padding: 7px 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.34); border-radius: 10px; background: rgba(255,255,255,.09); color: #fff; font-size: 11.5px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.wa224-basis { padding: 5px 8px; border-radius: 999px; background: #f2f4f6; color: var(--wa224-muted); font-size: 10px; font-weight: 650; }
.wa224-brief-card h2 { max-width: 350px; margin: 16px 0 0; color: #fff; font-size: 22px; line-height: 1.35; letter-spacing: -.5px; }
.wa224-brief-card p { display: -webkit-box; max-width: 370px; margin: 10px 0 0; overflow: hidden; color: rgba(255,255,255,.89); font-size: 13px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.wa224-brief-evidence { width: fit-content; max-width: 100%; margin-top: 16px; padding: 8px 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.26); border-radius: 10px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); font-size: 11px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.wa224-brief-evidence span { margin-left: 5px; font-size: 16px; line-height: 0; vertical-align: -1px; }
.wa224-element-line { margin-top: 13px; display: flex; align-items: center; gap: 7px; color: var(--wa224-muted); font-size: 11px; }
.wa224-element-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa224-energy); }
.wa224-step-card { padding: 16px 16px 16px 18px; display: grid; grid-template-columns: 26px minmax(0,1fr) 48px; gap: 13px; align-items: center; }
.wa224-step-heading { margin: 18px 2px 8px; display: flex; align-items: center; justify-content: space-between; color: var(--wa224-muted); font-size: 12.5px; font-weight: 800; letter-spacing: -.2px; }
.wa224-step-heading button { width: 34px; height: 34px; margin: -9px -5px -9px 0; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 18px; cursor: pointer; }
.wa224-check { width: 25px; height: 25px; border: 2px solid #d8dde4; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.wa224-step-card.done .wa224-check { border-color: var(--wa224-accent); background: var(--wa224-accent); }
.wa224-step-copy b { display: block; font-size: 15px; line-height: 1.35; }
.wa224-step-copy span { display: -webkit-box; margin-top: 4px; overflow: hidden; color: var(--wa224-sub); font-size: 11.5px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wa224-progress-ring { --p: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--wa224-accent) calc(var(--p)*1%),#eceff3 0); }
.wa224-progress-ring::after { content: attr(data-label); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--wa224-surface); color: var(--wa224-sub); font-size: 10px; font-weight: 800; }
.wa224-steps { padding: 16px 18px; display: flex; align-items: center; gap: 13px; }
.wa224-steps-ring { --p: 0; width: 54px; height: 54px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#12b886 calc(var(--p)*1%),#e8ecef 0); }
.wa224-steps-ring::after { content: ""; width: 42px; height: 42px; border-radius: 50%; background: var(--wa224-surface); }
.wa224-steps-copy { min-width: 0; flex: 1; }
.wa224-steps-copy b { display: block; font-size: 15px; }
.wa224-steps-copy span { display: block; margin-top: 4px; color: var(--wa224-muted); font-size: 11.5px; }
.wa224-inbox { display: flex; flex-direction: column; gap: 8px; }
.wa224-inbox-row { width: 100%; min-height: 64px; padding: 13px 14px; display: flex; align-items: center; gap: 12px; border: 0; color: inherit; text-align: left; }
.wa224-inbox-icon { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 13px; display: grid; place-items: center; background: var(--wa224-inbox-tint,#efecff); color: var(--wa224-accent); font-size: 17px; }
.wa224-inbox-copy { min-width: 0; flex: 1; }
.wa224-inbox-copy b, .wa224-inbox-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa224-inbox-copy b { font-size: 13.5px; letter-spacing: -.2px; }
.wa224-inbox-copy span { margin-top: 2px; color: var(--wa224-sub); font-size: 11.5px; }
.wa224-badge { min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 10px; background: var(--wa224-accent); color: #fff; font-size: 10px; font-weight: 800; }
.wa224-story { padding: 16px 14px; }
.wa224-story-author { display: block; color: var(--wa224-muted); font-size: 11.5px; }
.wa224-story h3 { margin: 10px 0 0; font-size: 14.5px; line-height: 1.45; }
.wa224-story-bottom { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; }
.wa224-story-counts { color: var(--wa224-muted); white-space: nowrap; }
.wa224-story-link { color: var(--wa224-accent); font-weight: 750; white-space: nowrap; }
.wa224-season { position: relative; overflow: hidden; min-height: 142px; padding: 18px; background: linear-gradient(135deg,#3a241b,#241009); color: #fff8e9; }
.wa224-season::after { content: ""; position: absolute; inset: 0; background: var(--wa224-season-art) center/cover; opacity: .24; pointer-events: none; }
.wa224-season > * { position: relative; z-index: 1; }
.wa224-season small { color: #e4ba6e; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.wa224-season h3 { max-width: 285px; margin: 12px 0 0; font-size: 20px; line-height: 1.3; white-space: pre-line; }
.wa224-season p { margin: 7px 0 0; color: #b39d86; font-size: 11.5px; }
.wa224-deep-row { padding: 15px 16px; display: flex; align-items: center; gap: 11px; }
.wa224-deep-row-copy { min-width: 0; flex: 1; }
.wa224-deep-row-copy b, .wa224-deep-row-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa224-deep-row-copy b { font-size: 14.5px; }
.wa224-deep-row-copy span { margin-top: 3px; color: var(--wa224-muted); font-size: 11.5px; }
.plan-value { display: inline-flex; align-items: center; gap: 4px; }
.plan-value img { width: 20px; height: 20px; object-fit: contain; }

/* Consult hub */
.wa224-consult-page { position: relative; overflow: hidden; }
.wa224-consult-page::before { content: ""; position: absolute; z-index: 0; top: 0; left: 0; right: 0; height: 216px; background-image: linear-gradient(180deg,rgba(242,244,246,.96),rgba(242,244,246,.66) 34%,rgba(242,244,246,0) 66%,var(--wa224-bg) 100%),var(--wa224-art); background-position: center,center bottom; background-size: cover; pointer-events: none; }
.wa224-consult-page > * { position: relative; z-index: 1; }
.wa224-consult-page .wa224-art-header { min-height: 0; overflow: visible; padding: calc(20px + env(safe-area-inset-top)) 20px 16px; background: none; }
.wa224-consult-page .wa224-subtitle { font-size: 14px; font-weight: 500; }
.wa224-consult-page .wa224-content { margin-top: 0; padding-top: 0; }
.wa224-coach { width: 100%; overflow: hidden; padding: 15px; border-radius: 18px; background: linear-gradient(135deg,#2e3a8c,var(--wa224-accent)); color: #fff !important; text-align: left; }
.wa224-coach-head { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 9px; color: #fff; font-size: 11px; font-weight: 750; }
.wa224-coach-head > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa224-coach-followup { padding: 4px 8px; border-radius: 8px; background: rgba(255,255,255,.18); font-size: 10px; }
.wa224-coach-bubble { display: -webkit-box; max-height: 83px; margin-top: 10px; padding: 10px 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 13px 13px 13px 5px; background: rgba(255,255,255,.13); color: #fff; font-size: 13.5px; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.wa224-coach-actions { margin-top: 11px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.wa224-coach-primary, .wa224-coach-secondary { min-height: 39px; padding: 0 13px; border: 0; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.wa224-coach-primary { background: #fff; color: var(--wa224-accent-strong); font-size: 13.5px; }
.wa224-coach-secondary { border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.12); color: #fff; font-size: 12px; }
.wa224-reading { padding: 15px; border-radius: 18px; display: flex; align-items: center; gap: 13px; }
.wa224-reading-icon { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg,#7c6cf0,#a855f7); color: #fff; font-family: "Ma Shan Zheng",serif; font-size: 24px; }
.wa224-sparkle-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wa224-reading-copy { min-width: 0; flex: 1; }
.wa224-reading-copy b { display: block; font-size: 15px; }
.wa224-reading-copy p { margin: 5px 0 0; color: var(--wa224-sub); font-size: 11.5px; line-height: 1.5; }
.wa224-reading-title { display: flex; align-items: center; gap: 7px; }
.wa224-reading-title b { min-width: 0; }
.wa224-reading-badge { display: inline-flex; flex: 0 0 auto; padding: 4px 7px; border-radius: 8px; background: #efecff; color: var(--wa224-accent); font-size: 10px; font-weight: 800; }
.wa224-compat { padding: 17px; display: flex; align-items: center; gap: 13px; }
.wa224-compat-orbs { width: 54px; height: 48px; position: relative; flex: 0 0 auto; }
.wa224-compat-orbs i { position: absolute; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #eef0ff; color: var(--wa224-accent); font-family: "Ma Shan Zheng",serif; font-style: normal; font-size: 18px; }
.wa224-compat-orbs i:last-child { right: 0; bottom: 0; background: #fff0f4; color: #d45374; }
.wa224-thread-list { display: flex; flex-direction: column; gap: 8px; }
.wa224-thread { width: 100%; padding: 13px 15px; display: flex; align-items: center; gap: 13px; border: 0; border-radius: 16px; color: inherit; text-align: left; }
.wa224-thread-icon { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(91,93,237,.12); }
.wa224-thread-copy { min-width: 0; flex: 1; }
.wa224-thread-copy b, .wa224-thread-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa224-thread-copy b { font-size: 15px; letter-spacing: -.3px; }
.wa224-thread-copy span { margin-top: 4px; color: var(--wa224-sub); font-size: 12.5px; }
.wa224-thread time { flex: 0 0 auto; color: var(--wa224-muted); font-size: 11px; }
.wa224-topic-icon { width: 20px; height: 20px; flex: 0 0 auto; object-fit: contain; }
.wa224-topic-icon.emoji { display: grid; place-items: center; font-size: 16px; }
.wa224-thread-icon .wa224-topic-icon { width: 26px; height: 26px; }
.wa224-threads-screen { padding: 4px 16px 40px; }
.wa224-thread-pick-label { margin-bottom: 8px; color: var(--wa224-muted); font-size: 11.5px; font-weight: 800; letter-spacing: -.2px; }
.wa224-thread-picks { margin: 0 -16px 12px; padding: 0 16px; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.wa224-thread-picks::-webkit-scrollbar { display: none; }
.wa224-thread-pick { height: 36px; padding: 0 12px; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 15px; background: var(--wa224-surface); color: var(--wa224-sub); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.wa224-thread-note { margin: 14px 0 0; color: var(--wa224-muted); font-size: 12px; line-height: 1.6; }
.wa224-thread-hint { margin: 6px 0 0; color: var(--wa224-muted); font-size: 11.5px; line-height: 1.6; }

/* Community */
.wa224-community-page { position: relative; overflow: hidden; }
.wa224-community-page::before { content: ""; position: absolute; z-index: 0; top: 0; left: 0; right: 0; height: 216px; background-image: linear-gradient(180deg,rgba(242,244,246,.96),rgba(242,244,246,.66) 34%,rgba(242,244,246,0) 66%,var(--wa224-bg) 100%),var(--wa224-art); background-position: center,center bottom; background-size: cover; pointer-events: none; }
.wa224-community-page > * { position: relative; z-index: 1; }
.wa224-community-page .wa224-art-header { min-height: 0; overflow: visible; padding: calc(20px + env(safe-area-inset-top)) 20px 16px; background: none; }
.wa224-community-page .wa224-subtitle { font-size: 14px; font-weight: 500; }
.wa224-community-page .wa224-content { margin-top: 0; padding-top: 4px; }
.wa224-community-page .wa224-category-bar { margin-top: 14px; }
.wa224-web-content { padding-bottom: 12px; }
.wa224-community-section-title { padding: 4px 20px 10px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.wa224-community-section-title b { color: var(--wa224-ink); font-size: 15px; font-weight: 800; letter-spacing: -.3px; }
.wa224-community-section-title span { color: var(--wa224-muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.wa224-carousel { width: calc(100% - 20px); height: 172px; margin-left: 20px; padding: 0 20px 6px 0; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.wa224-carousel::-webkit-scrollbar { display: none; }
.wa224-campaign { position: relative; width: 290px; height: 166px; flex: 0 0 290px; overflow: hidden; padding: 0; border: 0; border-radius: 20px; background: #262c3b; color: #fff; text-align: left; scroll-snap-align: start; }
.wa224-campaign img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wa224-campaign::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.35) 52%,rgba(20,10,5,.85)); }
.wa224-campaign-copy { position: absolute; z-index: 1; inset: 0; padding: 16px 16px 16px 18px; display: flex; flex-direction: column; }
.wa224-campaign-copy small { display: flex; align-items: center; gap: 8px; color: #e4ba6e; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; }
.wa224-campaign-copy small i { width: 7px; height: 7px; flex: 0 0 auto; background: currentColor; }
.wa224-campaign-copy b { display: block; max-width: 250px; margin-top: auto; white-space: pre-line; font-size: 20px; line-height: 1.22; letter-spacing: -.4px; }
.wa224-campaign-foot { margin-top: 8px; display: flex !important; align-items: center; gap: 8px; }
.wa224-campaign-foot > span { min-width: 0; flex: 1; overflow: hidden; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.wa224-campaign-foot > i { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.28); color: #e4ba6e; font-size: 20px; font-style: normal; }
.wa224-companion-entry { padding: 15px 16px; display: flex; align-items: center; gap: 12px; }
.wa224-companion-entry .wa224-inbox-icon { border-radius: 12px; background: rgba(91,93,237,.12); color: var(--wa224-accent); }
.wa224-people-icon svg { width: 21px; height: 21px; fill: currentColor; }
.wa224-category-bar { position: sticky; top: 0; z-index: 5; margin: 0 -20px; padding: 7px 20px; display: flex; gap: 7px; overflow-x: auto; background: rgba(242,244,246,.95); backdrop-filter: blur(14px); scrollbar-width: none; }
.wa224-category-bar::-webkit-scrollbar { display: none; }
.wa224-category { height: 38px; padding: 0 14px; border: 1px solid #e4e7ec; border-radius: 15px; display: inline-flex; align-items: center; gap: 6px; background: var(--wa224-surface); color: var(--wa224-sub); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.wa224-category.active { border-color: var(--wa224-accent); background: var(--wa224-accent); color: #fff; }
.wa224-category-icon { width: 19px; height: 19px; object-fit: contain; }
.wa224-feed { display: flex; flex-direction: column; gap: 8px; }
.wa224-post { padding: 14px 15px; cursor: pointer; }
.wa224-author { display: flex; align-items: center; gap: 8px; }
.wa224-author-avatar { width: 27px; height: 27px; padding: 0; flex: 0 0 auto; overflow: hidden; border: 0; border-radius: 50%; display: grid; place-items: center; background: #e9e7ff; color: var(--wa224-accent); font-size: 10px; font-weight: 800; }
.wa224-author-avatar.interactive, .wa224-author-name.interactive { cursor: pointer; }
.wa224-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wa224-author-copy { min-width: 0; flex: 1; }
.wa224-author-name { max-width: 100%; padding: 0; display: block; overflow: hidden; border: 0; background: transparent; color: inherit; font-size: 12.5px; font-weight: 800; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.wa224-author-copy span { display: block; margin-top: 2px; color: var(--wa224-muted); font-size: 10.5px; }
.wa224-cat { padding: 4px 7px; border-radius: 8px; background: #f2f4f6; color: var(--wa224-sub); font-size: 10px; font-weight: 750; }
.wa224-post h3 { margin: 10px 0 0; font-size: 15px; line-height: 1.45; }
.wa224-post p { display: -webkit-box; margin: 6px 0 0; overflow: hidden; color: var(--wa224-sub); font-size: 12.8px; line-height: 1.6; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.wa224-attached { margin-top: 9px; padding: 10px 12px; border-radius: 12px; background: #f7f8fa; color: var(--wa224-sub); font-size: 11.5px; line-height: 1.5; }
.wa224-reactions { margin: 7px 0 -8px -8px; display: flex; align-items: center; gap: 4px; color: var(--wa224-muted); }
.wa224-reaction { min-height: 38px; padding: 8px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 12px; background: transparent; color: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.wa224-reaction svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wa224-reaction.liked { color: #e0245e; }
.wa224-reaction.liked svg { fill: currentColor; stroke: currentColor; }
.wa224-reaction:focus-visible, .wa224-author-avatar:focus-visible, .wa224-author-name:focus-visible { outline: 2px solid color-mix(in srgb,var(--wa224-accent) 58%,transparent); outline-offset: 1px; }
.wa224-community-fab { position: absolute; right: 18px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 8; width: 56px; height: 56px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--wa224-accent); color: #fff; box-shadow: 0 11px 28px rgba(91,93,237,.3); }
.wa224-community-fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Five-tab header typography follows ElementArtHeader.titleStyle. */
.mission-art { padding-top: calc(20px + env(safe-area-inset-top)) !important; }
.mission-title-row h1,
.profile-bar h1 {
  margin: 0;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.25;
  letter-spacing: -.5px !important;
}
.profile-page { position: relative; }
.profile-bar {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 71px;
  height: auto !important;
  padding: calc(20px + env(safe-area-inset-top)) 20px 16px !important;
  display: flex !important;
  align-items: center;
}
.profile-bar h1 { grid-column: auto !important; }
.profile-tools { grid-column: auto !important; margin-left: auto; }
.profile-body { padding-top: 10px !important; }

/* Notification body sheet mirrors the native long-notification sheet. */
.notification-body-mask {
  position: absolute;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: flex-end;
  background: rgba(17,24,39,.58);
}
.notification-body-sheet {
  width: 100%;
  max-height: 80%;
  padding: 10px 20px calc(12px + env(safe-area-inset-bottom));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 20px 20px 0 0;
  background: var(--wa224-surface);
  color: var(--wa224-ink);
  box-shadow: 0 -18px 48px rgba(17,24,39,.2);
  animation: wa224-thread-sheet-in .24s ease-out both;
}
.notification-body-handle { width: 36px; height: 4px; flex: 0 0 auto; margin: 0 auto 16px; border-radius: 999px; background: #d9dde4; }
.notification-body-scroll { min-height: 0; flex: 1; overflow-y: auto; padding-bottom: 8px; }
.notification-body-sheet h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.3px; }
.notification-body-date { display: block; margin-top: 6px; color: var(--wa224-muted); font-size: 12px; }
.notification-body-copy { margin: 16px 0 0; color: var(--wa224-sub); font-size: 15px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.notification-body-close { width: 100%; height: 48px; flex: 0 0 auto; margin-top: 8px; border: 0; border-radius: 14px; background: var(--wa224-bg); color: var(--wa224-ink); font-size: 15px; font-weight: 600; }
.wa224-load-more { width: 100%; min-height: 44px; margin-top: 10px; border: 0; border-radius: 14px; background: #e5e8ed; color: var(--wa224-sub); font-weight: 750; }

/* 2.2.4 sheets: board detail, composer, threads */
.wa224-panel { position: absolute; inset: 0; z-index: 120; display: none; flex-direction: column; background: var(--wa224-bg); color: var(--wa224-ink); }
.wa224-panel.open { display: flex; animation: wa224-panel-in .22s ease-out both; }
@keyframes wa224-panel-in { from { opacity: .4; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
.wa224-panel-head { min-height: calc(58px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0; display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; border-bottom: 1px solid var(--wa224-line); background: var(--wa224-surface); }
.wa224-panel-head h2 { margin: 0; text-align: center; font-size: 16px; }
.wa224-panel-head button { width: 42px; height: 42px; border: 0; background: transparent; color: inherit; font-size: 25px; }
.wa224-panel-scroll { min-height: 0; flex: 1; overflow: auto; padding: 14px 16px calc(30px + env(safe-area-inset-bottom)); }
.wa224-detail-body { padding: 16px; }
.wa224-detail-body h3 { margin: 12px 0 0; font-size: 18px; line-height: 1.45; }
.wa224-detail-body > p { margin: 10px 0 0; color: var(--wa224-sub); font-size: 14px; line-height: 1.75; white-space: pre-wrap; }
.wa224-comment-title { margin: 16px 2px 8px; color: var(--wa224-muted); font-size: 12px; font-weight: 800; }
.wa224-comment { margin-bottom: 8px; padding: 12px 14px; border-radius: 14px; background: var(--wa224-surface); }
.wa224-comment b { font-size: 12px; }
.wa224-comment time { margin-left: 6px; color: var(--wa224-muted); font-size: 10px; }
.wa224-comment p { margin: 5px 0 0; color: var(--wa224-sub); font-size: 13px; line-height: 1.55; }
.wa224-comment-form { padding: 8px 10px max(8px,env(safe-area-inset-bottom)); display: flex; gap: 8px; border-top: 1px solid var(--wa224-line); background: var(--wa224-surface); }
.wa224-comment-form textarea, .wa224-form input, .wa224-form textarea, .wa224-form select { width: 100%; border: 1px solid #dce1e7; outline: 0; background: var(--wa224-surface); color: var(--wa224-ink); font: inherit; }
.wa224-comment-form textarea { min-height: 44px; max-height: 92px; padding: 11px 14px; resize: none; border: 0; border-radius: 22px; background: #f2f4f6; font-size: 13px; }
.wa224-comment-form button { width: 44px; height: 44px; flex: 0 0 auto; border: 0; border-radius: 15px; background: var(--wa224-accent); color: #fff; }
.wa224-form { display: flex; flex-direction: column; gap: 12px; }
.wa224-form label { color: var(--wa224-sub); font-size: 12px; font-weight: 750; }
.wa224-form input, .wa224-form textarea, .wa224-form select { margin-top: 7px; padding: 12px 13px; border-radius: 12px; }
.wa224-form textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.wa224-form-help { color: var(--wa224-muted); font-size: 10.5px; text-align: right; }
.wa224-submit { min-height: 48px; border: 0; border-radius: 15px; background: var(--wa224-accent); color: #fff; font-weight: 800; }
.wa224-submit:disabled { opacity: .5; }
.wa224-consent { padding: 16px; border-radius: 15px; background: #fff8e6; color: #755615; font-size: 12px; line-height: 1.65; }
.wa224-consent strong { display: block; margin-bottom: 5px; color: #5f4105; }

/* New coach thread: server-driven topics and personas */
.wa224-thread-sheet-mask { position: absolute; inset: 0; z-index: 190; display: flex; align-items: flex-end; background: rgba(18,23,31,.5); backdrop-filter: blur(2px); }
.wa224-thread-sheet { width: 100%; max-height: min(88%,760px); display: flex; flex-direction: column; overflow: hidden; border-radius: 26px 26px 0 0; background: var(--wa224-surface); color: var(--wa224-ink); box-shadow: 0 -18px 50px rgba(18,24,35,.18); animation: wa224-thread-sheet-in .24s ease-out both; }
@keyframes wa224-thread-sheet-in { from { transform: translateY(28px); opacity: .65; } to { transform: translateY(0); opacity: 1; } }
.wa224-thread-sheet.loading { min-height: 210px; padding: 12px 22px calc(30px + env(safe-area-inset-bottom)); }
.wa224-thread-sheet.loading p { margin: auto; color: var(--wa224-muted); font-size: 13px; }
.wa224-thread-sheet-handle { width: 42px; height: 4px; flex: 0 0 auto; margin: 10px auto 5px; border-radius: 999px; background: #dfe3e8; }
.wa224-thread-sheet > header { min-height: 54px; padding: 0 12px; display: grid; grid-template-columns: 72px minmax(0,1fr) 72px; align-items: center; border-bottom: 1px solid var(--wa224-line); }
.wa224-thread-sheet > header h2 { margin: 0; text-align: center; font-size: 17px; letter-spacing: -.3px; }
.wa224-thread-sheet > header button { min-height: 42px; padding: 0; border: 0; background: transparent; color: var(--wa224-sub); font-size: 13px; font-weight: 750; }
.wa224-thread-sheet > header button:first-child { text-align: left; }
.wa224-thread-sheet > header button:last-child { text-align: right; }
.wa224-thread-sheet > header button.primary { color: var(--wa224-accent); }
.wa224-thread-sheet > header button:disabled { color: var(--wa224-muted); opacity: .45; }
.wa224-thread-sheet-scroll { min-height: 0; overflow: auto; padding: 18px 20px calc(28px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.wa224-thread-title-field > span, .wa224-thread-sheet-section h3 { display: block; margin: 0 0 10px; color: var(--wa224-ink); font-size: 13px; font-weight: 800; }
.wa224-thread-title-field small, .wa224-thread-sheet-section h3 small { margin-left: 4px; color: var(--wa224-muted); font-size: 10px; font-weight: 650; }
.wa224-thread-title-field input { width: 100%; height: 50px; padding: 0 15px; border: 1px solid var(--wa224-line); border-radius: 15px; outline: 0; background: var(--wa224-bg); color: var(--wa224-ink); font: inherit; font-size: 14px; }
.wa224-thread-title-field input:focus { border-color: var(--wa224-accent); box-shadow: 0 0 0 3px rgba(91,93,237,.12); }
.wa224-thread-title-field input::placeholder { color: var(--wa224-muted); }
.wa224-thread-sheet-section { margin-top: 24px; }
.wa224-thread-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.wa224-thread-topic { min-height: 40px; padding: 0 12px; border: 1px solid var(--wa224-line); border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; background: var(--wa224-bg); color: var(--wa224-sub); font-size: 12px; font-weight: 750; }
.wa224-thread-topic.selected { border-color: var(--wa224-accent); background: rgba(91,93,237,.1); color: var(--wa224-accent); }
.wa224-thread-personas { display: flex; flex-direction: column; gap: 8px; }
.wa224-thread-persona { width: 100%; min-height: 70px; padding: 11px 12px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--wa224-line); border-radius: 18px; background: var(--wa224-bg); color: var(--wa224-ink); text-align: left; }
.wa224-thread-persona.selected { border-color: var(--wa224-accent); box-shadow: inset 0 0 0 1px var(--wa224-accent); }
.wa224-thread-persona.locked { opacity: .52; }
.wa224-thread-persona-avatar { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg,#e9e7ff,#f4efff); color: var(--wa224-accent); font-size: 15px; font-weight: 850; }
.wa224-thread-persona-copy { min-width: 0; flex: 1; }
.wa224-thread-persona-copy b, .wa224-thread-persona-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa224-thread-persona-copy b { font-size: 14px; }
.wa224-thread-persona-copy b small { margin-left: 7px; padding: 3px 6px; border-radius: 7px; background: rgba(91,93,237,.12); color: var(--wa224-accent); font-size: 9px; }
.wa224-thread-persona-copy span { margin-top: 4px; color: var(--wa224-muted); font-size: 11px; }
.wa224-thread-choice { width: 20px; height: 20px; flex: 0 0 auto; border: 2px solid #d4d9e0; border-radius: 50%; }
.wa224-thread-persona.selected .wa224-thread-choice { border: 6px solid var(--wa224-accent); }
.wa224-thread-catalog-empty { margin: 0; padding: 20px 14px; border-radius: 15px; background: var(--wa224-bg); color: var(--wa224-muted); text-align: center; font-size: 12px; }

/* Home reading evidence → private energy record (Flutter parity) */
.wa224-evidence-mask { position: absolute; inset: 0; z-index: 210; display: flex; align-items: flex-end; background: rgba(18,23,31,.55); opacity: 0; transition: opacity .2s ease-out; }
.wa224-evidence-mask.open { opacity: 1; }
.wa224-evidence-sheet { width: 100%; max-height: min(90%,760px); padding: 12px 22px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; border-radius: 28px 28px 0 0; background: var(--wa224-surface); color: var(--wa224-ink); box-shadow: 0 -16px 48px rgba(17,24,39,.18); animation: wa224-evidence-in .24s ease-out both; }
@keyframes wa224-evidence-in { from { transform: translateY(26px); } to { transform: translateY(0); } }
.wa224-evidence-handle { width: 40px; height: 4px; margin: 0 auto 22px; border-radius: 999px; background: #e0e3e8; }
.wa224-evidence-sheet h2 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.35; letter-spacing: -.4px; }
.wa224-evidence-sub { margin: 8px 0 0; color: var(--wa224-sub); font-size: 13px; line-height: 1.6; }
.wa224-evidence-list { margin-top: 16px; padding: 4px 14px; border-radius: 14px; background: #f7f8fa; }
.wa224-evidence-row { min-height: 46px; padding: 11px 0; border-bottom: 1px solid #e7eaee; color: var(--wa224-sub); font-size: 12.5px; line-height: 1.55; overflow-wrap: anywhere; }
.wa224-evidence-row:last-child { border-bottom: 0; }
.wa224-evidence-row b { color: var(--wa224-accent); font-weight: 750; }
.wa224-evidence-caution { margin-top: 14px; display: flex; align-items: flex-start; gap: 8px; color: var(--wa224-muted); font-size: 12.5px; line-height: 1.55; }
.wa224-evidence-caution svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wa224-evidence-record { width: 100%; min-height: 82px; margin-top: 18px; padding: 14px 14px 14px 16px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 16px; background: rgba(91,93,237,.08); color: var(--wa224-ink); text-align: left; cursor: pointer; }
.wa224-evidence-record > svg { width: 23px; height: 23px; flex: 0 0 auto; fill: none; stroke: var(--wa224-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wa224-evidence-record > span { min-width: 0; flex: 1; }
.wa224-evidence-record b, .wa224-evidence-record small { display: block; }
.wa224-evidence-record b { color: var(--wa224-accent); font-size: 14.5px; font-weight: 750; }
.wa224-evidence-record small { margin-top: 3px; color: var(--wa224-sub); font-size: 12px; line-height: 1.5; }
.wa224-evidence-record i { color: var(--wa224-accent); font-size: 24px; font-style: normal; }

.wa224-panel.wa224-record-panel { overflow: hidden; }
.wa224-record-page { min-height: 100%; flex: 1; overflow-y: auto; position: relative; color: var(--wa224-ink); background: var(--wa224-bg); scrollbar-width: none; }
.wa224-record-page::-webkit-scrollbar { display: none; }
.wa224-record-page::before { content: ""; position: absolute; z-index: 0; top: 0; left: 0; right: 0; height: calc(270px + env(safe-area-inset-top)); background-image: linear-gradient(180deg,rgba(242,244,246,.9),rgba(242,244,246,.5) 52%,var(--wa224-bg) 100%),var(--wa224-record-art); background-position: center, center bottom; background-size: cover; pointer-events: none; }
.wa224-record-back { position: absolute; z-index: 2; top: calc(8px + env(safe-area-inset-top)); left: 6px; width: 44px; height: 44px; padding: 11px; border: 0; border-radius: 50%; background: transparent; color: var(--wa224-ink); }
.wa224-record-back svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.wa224-record-page > header { position: relative; z-index: 1; padding: calc(72px + env(safe-area-inset-top)) 20px 16px; }
.wa224-record-page > header h1 { margin: 0; font-size: 28px; line-height: 1.25; letter-spacing: -.5px; }
.wa224-record-page > header p { margin: 6px 0 0; color: var(--wa224-sub); font-size: 13.5px; font-weight: 500; line-height: 1.45; }
.wa224-record-page > main { position: relative; z-index: 1; padding: 0 20px 40px; }
.wa224-record-card { padding: 18px 20px 8px; border-radius: 20px; background: var(--wa224-surface); }
.wa224-record-overline { display: flex; align-items: center; justify-content: space-between; color: var(--wa224-muted); font-size: 12px; font-weight: 650; }
.wa224-record-overline > span:last-child { color: var(--wa224-accent); font-size: 20px; line-height: .8; }
.wa224-record-hero { margin-top: 14px; display: flex; align-items: center; gap: 16px; }
.wa224-record-orb { width: 64px; height: 64px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--record-color); color: #fff; font-family: "Ma Shan Zheng","Noto Serif CJK KR",serif; font-size: 36px; box-shadow: 0 7px 16px color-mix(in srgb,var(--record-color) 35%,transparent); }
.wa224-record-hero > span:last-child { min-width: 0; }
.wa224-record-hero h2 { margin: 0; color: var(--wa224-ink); font-size: 19px; font-weight: 800; line-height: 1.3; letter-spacing: -.3px; white-space: pre-line; }
.wa224-record-hero p { margin: 4px 0 0; color: var(--wa224-muted); font-size: 12.5px; line-height: 1.45; }
.wa224-record-bars { margin-top: 20px; }
.wa224-record-bar { min-height: 38px; display: grid; grid-template-columns: 26px 48px minmax(0,1fr) 46px 20px; align-items: center; column-gap: 10px; }
.wa224-record-glyph { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb,var(--record-color) 14%,transparent); color: var(--record-color); font-size: 12px; font-weight: 750; }
.wa224-record-name { color: var(--wa224-sub); font-size: 13px; font-weight: 500; }
.wa224-record-name.best { color: var(--wa224-ink); font-weight: 700; }
.wa224-record-track { height: 8px; overflow: hidden; border-radius: 4px; background: color-mix(in srgb,var(--record-color) 10%,transparent); }
.wa224-record-track i { height: 100%; display: block; border-radius: inherit; background: var(--record-color); }
.wa224-record-bar > b { text-align: right; font-size: 13px; }
.wa224-record-warn { width: 17px; height: 17px; fill: none; stroke: #f59e0b; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wa224-record-stats { margin-top: 14px; padding: 16px 0 14px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #f0f1f4; border-bottom: 1px solid #f0f1f4; }
.wa224-record-stats > div { min-width: 0; display: flex; align-items: center; gap: 9px; }
.wa224-record-stats > div + div { padding-left: 13px; border-left: 1px solid #f0f1f4; }
.wa224-record-stat-icon { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; }
.wa224-record-stat-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wa224-record-stat-icon.done { background: rgba(91,93,237,.11); color: var(--wa224-accent); }
.wa224-record-stat-icon.streak { background: rgba(245,158,11,.11); color: #f59e0b; }
.wa224-record-stats small, .wa224-record-stats b, .wa224-record-stats em { display: block; }
.wa224-record-stats small { color: var(--wa224-muted); font-size: 10px; }
.wa224-record-stats b { margin-top: 2px; font-size: 15px; }
.wa224-record-stats em { margin-top: 1px; overflow: hidden; color: var(--wa224-sub); font-size: 9.5px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.wa224-record-coach { width: 100%; min-height: 48px; padding: 4px 2px; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--wa224-accent); text-align: left; }
.wa224-record-coach svg { width: 18px; height: 18px; fill: currentColor; }
.wa224-record-coach span { flex: 1; font-size: 13px; font-weight: 750; }
.wa224-record-coach b { font-size: 20px; }
.wa224-record-empty { padding: 26px 20px 22px; text-align: center; }
.wa224-record-empty-elements { display: flex; justify-content: center; gap: 10px; }
.wa224-record-empty-elements span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb,var(--record-color) 12%,transparent); color: var(--record-color); font-size: 16px; font-weight: 750; }
.wa224-record-empty h2 { margin: 18px 0 0; font-size: 19px; line-height: 1.35; letter-spacing: -.3px; white-space: pre-line; }
.wa224-record-empty > p { margin: 8px 0 0; color: var(--wa224-muted); font-size: 13.5px; line-height: 1.5; white-space: pre-line; }
.wa224-record-dots { width: fit-content; margin: 18px auto 0; padding: 12px 16px; display: flex; align-items: center; border-radius: 999px; background: #f7f8fa; }
.wa224-record-dots span { width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: #d8dce1; }
.wa224-record-dots span.on { background: var(--wa224-accent); }
.wa224-record-dots b { margin-left: 4px; color: var(--wa224-sub); font-size: 13px; }
.wa224-record-empty > button { width: 100%; height: 46px; margin-top: 16px; border: 0; border-radius: 12px; background: var(--wa224-accent); color: #fff; font-size: 14.5px; font-weight: 750; }
.wa224-record-loading { min-height: 280px; display: grid; align-content: center; justify-items: center; gap: 10px; color: var(--wa224-muted); text-align: center; }
.wa224-record-loading > span { width: 24px; height: 24px; border: 2px solid #d9dde4; border-top-color: var(--wa224-accent); border-radius: 50%; animation: wa224-spin .75s linear infinite; }
.wa224-record-loading p { margin: 0; font-size: 13px; }
.wa224-record-loading button { height: 42px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--wa224-accent); color: #fff; font-weight: 750; }

/* Board author profile + full-screen profile image (Flutter BoardUserScreen parity) */
.wa224-user-hero { padding: 18px 16px; display: flex; align-items: center; gap: 14px; }
.wa224-user-avatar { width: 68px; height: 68px; padding: 0; flex: 0 0 auto; overflow: hidden; border: 0; border-radius: 50%; display: grid; place-items: center; background: #e9e7ff; color: var(--wa224-accent); font-size: 22px; font-weight: 850; }
.wa224-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wa224-user-copy { min-width: 0; flex: 1; }
.wa224-user-copy h3 { margin: 0; overflow: hidden; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.wa224-user-copy p { margin: 6px 0 0; color: var(--wa224-muted); font-size: 12px; }
.wa224-user-posts-title { margin: 18px 3px 9px; color: var(--wa224-muted); font-size: 12px; font-weight: 800; }
.wa224-image-viewer { position: absolute; inset: 0; z-index: 220; display: grid; grid-template-rows: auto minmax(0,1fr); background: rgba(5,7,12,.96); color: #fff; animation: wa224-image-in .18s ease-out both; }
.wa224-image-viewer-head { min-height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0; display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; }
.wa224-image-viewer-head button { width: 42px; height: 42px; border: 0; background: transparent; color: #fff; font-size: 28px; }
.wa224-image-viewer-head b { overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.wa224-image-viewer-body { min-height: 0; padding: 14px; display: grid; place-items: center; }
.wa224-image-viewer-body img { max-width: 100%; max-height: 100%; object-fit: contain; }
@keyframes wa224-image-in { from { opacity: 0; } to { opacity: 1; } }

/* Dark mode */
html[data-theme="dark"] {
  --wa224-bg: #171c24;
  --wa224-surface: #222936;
  --wa224-ink: #f5f7fa;
  --wa224-sub: #b3bdca;
  --wa224-muted: #8d98a8;
  --wa224-line: #303947;
}
html[data-theme="dark"] .bottom-nav { border-color: #2b3442; background: rgba(25,31,41,.98); }
html[data-theme="dark"] .wa224-art-header { background-image: linear-gradient(180deg,rgba(23,28,36,.9),rgba(23,28,36,.66) 52%,var(--wa224-bg) 100%),var(--wa224-art); }
html[data-theme="dark"] .wa224-streak { background: rgba(91,93,237,.18); }
html[data-theme="dark"] .wa224-basis, html[data-theme="dark"] .wa224-cat, html[data-theme="dark"] .wa224-attached { background: #303846; }
html[data-theme="dark"] .wa224-category-bar { background: rgba(23,28,36,.95); }
html[data-theme="dark"] .wa224-category { background: #2b3340; color: #b5bfcc; }
html[data-theme="dark"] .wa224-category.active { background: var(--wa224-accent); color: #fff; }
html[data-theme="dark"] .wa224-community-page::before { background-image: linear-gradient(180deg,rgba(23,28,36,.96),rgba(23,28,36,.66) 34%,rgba(23,28,36,0) 66%,var(--wa224-bg) 100%),var(--wa224-art); }
html[data-theme="dark"] .wa224-consult-page::before { background-image: linear-gradient(180deg,rgba(23,28,36,.96),rgba(23,28,36,.66) 34%,rgba(23,28,36,0) 66%,var(--wa224-bg) 100%),var(--wa224-art); }
html[data-theme="dark"] .notification-body-sheet { background: #222936; color: #f5f7fa; }
html[data-theme="dark"] .notification-body-copy { color: #b5bfcc; }
html[data-theme="dark"] .notification-body-close { background: #171c24; color: #f5f7fa; }
html[data-theme="dark"] .wa224-progress-ring { background: conic-gradient(var(--wa224-accent) calc(var(--p)*1%),#343d4b 0); }
html[data-theme="dark"] .wa224-steps-ring { background: conic-gradient(#12b886 calc(var(--p)*1%),#343d4b 0); }
html[data-theme="dark"] .wa224-comment-form textarea { background: #303846; color: var(--wa224-ink); }
html[data-theme="dark"] .wa224-form input, html[data-theme="dark"] .wa224-form textarea, html[data-theme="dark"] .wa224-form select { border-color: #3a4555; }
html[data-theme="dark"] .wa224-consent { background: #3b3421; color: #e9cc84; }
html[data-theme="dark"] .wa224-thread-sheet-handle { background: #4a5565; }
html[data-theme="dark"] .wa224-thread-persona-avatar { background: #303846; }
html[data-theme="dark"] .wa224-evidence-handle { background: #4a5565; }
html[data-theme="dark"] .wa224-evidence-list, html[data-theme="dark"] .wa224-record-dots { background: #303846; }
html[data-theme="dark"] .wa224-evidence-row { border-color: #3a4555; }
html[data-theme="dark"] .wa224-record-page::before { background-image: linear-gradient(180deg,rgba(23,28,36,.9),rgba(23,28,36,.62) 52%,var(--wa224-bg) 100%),var(--wa224-record-art); }
html[data-theme="dark"] .wa224-record-stats, html[data-theme="dark"] .wa224-record-stats > div + div { border-color: #303947; }

@media (max-width: 380px) {
  .wa224-art-header { padding-left: 16px; padding-right: 16px; }
  .wa224-content { padding-left: 16px; padding-right: 16px; }
  .wa224-category-bar { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .wa224-campaign { width: 260px; flex-basis: 260px; }
  .wa224-title { font-size: 28px; }
  .wa224-community-page .wa224-art-header { padding-left: 20px; padding-right: 20px; }
  .wa224-community-page .wa224-content { padding-left: 20px; padding-right: 20px; }
  .wa224-community-page .wa224-category-bar { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .wa224-community-page .wa224-campaign { width: 290px; flex-basis: 290px; }
  .wa224-record-page > main { padding-left: 16px; padding-right: 16px; }
  .wa224-record-card { padding-left: 16px; padding-right: 16px; }
  .wa224-record-bar { grid-template-columns: 26px 38px minmax(0,1fr) 40px 17px; column-gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
