/* Member design tokens. Shared by real accounts and the isolated demo. */
body[data-desk-palette]{--desk-bg:#f8f9fa;--desk-paper:#fff;--desk-ink:#18181b;--desk-muted:#62626b;--desk-line:#e2e6eb;--desk-accent:#047857;--desk-tint:#ecfdf5;--desk-shadow:0 1px 3px #0000000d,0 10px 20px -5px #00000005;--bg:var(--desk-bg);--surface:var(--desk-paper);--text:var(--desk-ink);--muted:var(--desk-muted);--line:var(--desk-line)}
body[data-desk-palette=sage]{--desk-bg:#f4f8f5;--desk-tint:#eaf6ef;--desk-accent:#246248}
body[data-desk-palette=dusk]{--desk-bg:#f7f7fb;--desk-tint:#f0edfa;--desk-accent:#65458e}
body.signed-in[data-desk-palette],body[data-desk-palette]:has(.app-shell){background:var(--desk-bg);background-image:none;color:var(--desk-ink);font-size:16px;line-height:1.65}
body[data-desk-palette] :is(h1,h2,h3,h4){color:var(--desk-ink);font-weight:650;letter-spacing:-.025em}
body[data-desk-palette] :is(.topbar,.sidebar),.signed-in[data-desk-palette]>header,.signed-in[data-desk-palette] .member-tabs{background:var(--desk-paper);border-color:var(--desk-line)}
.signed-in[data-desk-palette]{grid-template-columns:256px minmax(0,1fr)}
body[data-desk-palette] .app-shell{grid-template-columns:256px minmax(0,1fr);max-width:none}
.signed-in[data-desk-palette] .member-tabs,body[data-desk-palette] .sidebar{position:sticky;top:0;align-self:start;min-height:calc(100vh - 80px);max-height:100vh;overflow-y:auto;padding:28px 16px;gap:8px}
.signed-in[data-desk-palette] .member-tabs a,body[data-desk-palette] .sidebar nav a{font-size:15px;padding:12px 14px;border:1px solid transparent;border-radius:10px;color:var(--desk-muted);transition:background .2s,color .2s}
.signed-in[data-desk-palette] .member-tabs a:hover,body[data-desk-palette] .sidebar nav a:hover{background:#f4f5f6;transform:none;color:var(--desk-ink)}
.signed-in[data-desk-palette] .member-tabs a[aria-current=page],body[data-desk-palette] .sidebar nav a.active{background:var(--desk-tint);color:var(--desk-accent);font-weight:600;border-color:#b9e4d1;box-shadow:inset 3px 0 var(--desk-accent)}
body[data-desk-palette] :is(.member-tabs a small,.sidebar nav a small){font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important;font-size:11px;background:#f1f3f5;border-radius:4px;padding:1px 5px;color:#62626b;align-self:center}
body[data-desk-palette] .sidebar-note{margin-top:28px;padding:20px 12px;border-color:var(--desk-line);color:var(--desk-muted)}
.sidebar-member{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--desk-ink);margin-bottom:5px}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#059669;box-shadow:0 0 0 4px #ecfdf5}
body[data-desk-palette] :is(.helper,.profile-bio,.identity p,.dashboard-head p:last-child,.page-head p:last-child,.eyebrow,.requirements,.privacy,.progress-caption){color:var(--desk-muted)}
body[data-desk-palette] :is(.dashboard-head,.page-head){margin-bottom:22px;gap:20px}
body[data-desk-palette] :is(.dashboard-head h1,.page-head h1){font-size:clamp(26px,2.4vw,34px);line-height:1.3;color:var(--desk-ink);letter-spacing:-.035em}
body[data-desk-palette] :is(.dashboard-head .eyebrow,.page-head .eyebrow){font-size:11px;letter-spacing:.13em;color:var(--desk-accent);margin-bottom:10px}
body[data-desk-palette] :is(.dashboard-head button,.btn,.secondary){border-radius:8px;box-shadow:none;font-weight:500;min-height:42px}
body[data-desk-palette] .dashboard-head button{background:white;color:var(--desk-ink);border:1px solid var(--desk-line);padding:10px 16px;white-space:nowrap}
body[data-desk-palette] .dashboard-head button:hover{background:#f4f5f6}
body[data-desk-palette] .profile-hero{background:linear-gradient(125deg,var(--desk-tint),#fff 65%,#fafafa)!important;border:1px solid #d4e9df!important;border-radius:16px!important;padding:26px 28px;box-shadow:var(--desk-shadow)}
body[data-desk-palette] .profile-hero:after{display:none}
body[data-desk-palette] .profile-hero .avatar{width:56px;height:56px;border-radius:15px;background:#d1fae5;color:#065f46;border:2px solid white;box-shadow:0 2px 6px #064e3b0d;transform:none;font-size:25px}
body[data-desk-palette] .identity{gap:16px}
body[data-desk-palette] .identity h2{font-size:23px;line-height:1.35;letter-spacing:-.025em;margin:0 0 5px}
body[data-desk-palette] .profile-bio{font-size:15px;line-height:1.7;margin:18px 0 24px}
body[data-desk-palette] :is(.badge-tag,.pill){color:var(--desk-accent);background:var(--desk-tint);border:1px solid #c9e6d8;border-radius:6px;font-size:12px;padding:3px 8px}
body[data-desk-palette] .hero-companion{width:90px;top:22px;right:26px;transform:none;opacity:.9}.hero-companion svg.badge-illustration{width:90px;height:96px}.hero-companion>span{font-size:8px;letter-spacing:1px;color:var(--desk-muted)}
body[data-desk-palette] :is(.dashboard-stats,.stats){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-color:var(--desk-line);padding-top:18px}
body[data-desk-palette] :is(.dashboard-stats>div,.stat){border-right:1px solid var(--desk-line);padding:0 16px;min-width:0}body[data-desk-palette] :is(.dashboard-stats>div,.stat):first-child{padding-left:0}body[data-desk-palette] :is(.dashboard-stats>div,.stat):last-child{border:0;padding-right:0}
body[data-desk-palette] :is(.dashboard-stats b,.stat b){font:700 28px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace!important;color:var(--desk-ink);font-variant-numeric:tabular-nums;letter-spacing:-1px}
body[data-desk-palette] :is(.dashboard-stats small,.stat small){font-size:12px;color:var(--desk-muted);letter-spacing:0}body[data-desk-palette] :is(.dashboard-stats span,.stat span){font-size:12px;color:var(--desk-muted);display:block;margin-top:3px}
body[data-desk-palette] :is(.dashboard-grid,.content-grid){grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:20px;margin-top:22px}
body[data-desk-palette] :is(.dashboard-card,.app-shell .panel,.real-badge,.badge-card){background:var(--desk-paper)!important;border:1px solid var(--desk-line)!important;border-radius:16px!important;box-shadow:var(--desk-shadow)}
body[data-desk-palette] :is(.dashboard-card,.app-shell .panel){padding:22px;margin-bottom:20px}
body[data-desk-palette] :is(.dashboard-card h2,.panel-head h2){font-size:18px;margin:0 0 16px;line-height:1.5}.dashboard-card .section-heading h2{margin:0}
body[data-desk-palette] .dashboard-grid>div:last-child>.dashboard-card:first-child h2:before{content:none}
body[data-desk-palette] :is(.section-heading,.panel-head){align-items:center;gap:12px;flex-wrap:wrap}body[data-desk-palette] :is(.section-heading h2,.panel-head h2){margin-bottom:0}
body[data-desk-palette] :is(.dashboard-card a,.quiet,.agreement-entry a){color:var(--desk-accent)}
body[data-desk-palette] .helper{font-size:13px;line-height:1.8;margin-top:14px}
body[data-desk-palette] .showcase-badges{margin-top:20px;gap:12px}
body[data-desk-palette] .showcase-badge{border-radius:12px!important;background:linear-gradient(#fafafa,#fff)!important;border:1px solid var(--desk-line);box-shadow:0 1px 2px #00000005;padding:18px 8px;overflow:hidden;position:relative}
body[data-desk-palette] :is(.showcase-badge.earned,.real-badge.earned,.badge-card:not(.locked)){border-color:#a7dfc8!important;box-shadow:0 0 0 1px #10b9810d,0 4px 12px #05966908}
body[data-desk-palette] :is(.real-badge.locked,.badge-card.locked,.showcase-badge.locked){background:#f9fafb!important;border-style:dashed!important;color:var(--desk-muted);opacity:1}
body[data-desk-palette] :is(.locked .badge-illustration){opacity:.6;filter:grayscale(.3)}
body[data-desk-palette] :is(.earned .badge-illustration,.badge-card:not(.locked) .badge-illustration){filter:drop-shadow(0 5px 7px #05966920)}
body[data-desk-palette] :is(.badge-grid:has(>.real-badge),.collection-grid){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
body[data-desk-palette] .real-badge{display:flex;flex-direction:column;align-items:flex-start;padding:22px!important}
body[data-desk-palette] .real-badge>svg{align-self:center;width:96px;height:104px}.real-badge>p{font-size:14px;line-height:1.75!important;margin:0 0 18px}
body[data-desk-palette] .real-badge h3{font-size:18px;margin:12px 0 10px}
body[data-desk-palette] .real-badge>small{color:var(--desk-muted);background:#f1f3f5;font-size:11px}
body[data-desk-palette] .real-badge>strong{font-size:12px;font-weight:500;margin-top:auto;color:var(--desk-muted);background:#eef0f3;padding:4px 9px;border-radius:6px}
body[data-desk-palette] .real-badge.earned>strong{background:#ecfdf5;color:#047857}
body[data-desk-palette] .real-badge .badge-rule-trigger{font-size:13px;color:var(--desk-accent)!important;border-top:1px solid var(--desk-line)!important;width:100%;text-align:left;padding-top:14px!important}
body[data-desk-palette] .badge-card .lock-label{margin-top:auto;padding-top:12px;font-size:13px;color:var(--desk-accent)}
body[data-desk-palette] .badge-card.locked .lock-label{color:var(--desk-muted)}
body[data-desk-palette] .growth-rule{padding:12px 0;border-color:#eef0f3;font-size:14px;align-items:center}.growth-rule strong{font-weight:600;text-align:right}.growth-rule>a{min-width:0;overflow-wrap:anywhere}
body[data-desk-palette] .progress-title{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;margin:22px 0 10px}.progress-title b{color:var(--desk-accent)!important;font-size:13px}
body[data-desk-palette] .progress-track{height:7px;background:#e9edf0;border-radius:6px;overflow:hidden}.progress-track span{display:block;width:var(--progress);height:100%;border-radius:inherit;background:linear-gradient(90deg,#34d399,#059669)}
.progress-caption{font-size:12px;line-height:1.7;margin:10px 0 18px}
body[data-desk-palette] .dashboard-action{padding:12px;margin:8px 0!important;border:1px solid var(--desk-line);border-radius:8px;align-items:center;gap:12px;font-size:14px}.dashboard-action span{background:transparent!important;color:var(--desk-accent)!important;flex-shrink:0}
body[data-desk-palette] .agreement-entry{background:transparent;border:0;border-bottom:1px solid var(--desk-line);border-radius:0;padding:14px 0;margin:0 0 18px;font-size:13px;color:var(--desk-muted)}
.contribution-empty{text-align:center;padding:26px 6px 12px}.empty-icon{display:grid;place-items:center;width:46px;height:46px;border:1px solid var(--desk-line);border-radius:13px;background:#f8faf9;margin:0 auto 12px;color:var(--desk-accent)}.ui-icon{width:20px;height:20px;flex-shrink:0}.contribution-empty h3{font-size:15px;margin:8px 0}.contribution-empty p{font-size:13px;color:var(--desk-muted);max-width:340px;margin:0 auto 18px;line-height:1.8}.contribution-cta{display:inline-flex;align-items:center;gap:8px;background:var(--desk-accent);color:white!important;padding:10px 14px;border-radius:8px;font-size:13px!important}.contribution-cta:hover{filter:brightness(.93)}
body[data-desk-palette] .xp-guide{background:var(--desk-paper);border:1px solid var(--desk-line);border-radius:16px;box-shadow:var(--desk-shadow);padding:24px;margin:24px 0 30px;color:var(--desk-ink)}
body[data-desk-palette] .xp-guide-heading small{font-size:10px;letter-spacing:.14em;color:var(--desk-muted)}body[data-desk-palette] .xp-guide h3{font-size:21px;margin:6px 0 16px}.guide-stamp{border:1px solid #c9e6d8;background:var(--desk-tint);border-radius:6px;color:var(--desk-accent);font-size:12px;padding:5px 9px}
body[data-desk-palette] .xp-routes{gap:12px}body[data-desk-palette] .xp-routes>div{background:#fff;border:1px solid var(--desk-line);border-radius:10px;padding:15px;--route-bg:#ecfdf5;--route-ink:#047857}.xp-routes>div:nth-child(2){--route-bg:#eff6ff!important;--route-ink:#1d4ed8!important}.xp-routes>div:nth-child(3){--route-bg:#fffbeb!important;--route-ink:#92400e!important}.xp-routes>div:nth-child(4){--route-bg:#faf5ff!important;--route-ink:#7e22ce!important}
body[data-desk-palette] .xp-routes b{background:var(--route-bg);color:var(--route-ink);border:1px solid currentColor;border-radius:7px;width:30px;height:30px;font-size:14px}.xp-routes h4{font-size:14px;margin:12px 0 8px}.route-metric{display:inline-block;background:var(--route-bg);color:var(--route-ink);font-size:11px;font-weight:600;border-radius:5px;padding:3px 6px;margin-bottom:8px}
body[data-desk-palette] .xp-routes p{font-size:13px;line-height:1.75;color:var(--desk-muted)}.guide-more{margin-top:18px;border-top:1px solid var(--desk-line);padding-top:8px}.guide-more>summary{font-size:13px;min-height:38px}.guide-more p{font-size:14px}.guide-more details{margin:8px 0}.guide-more summary{color:var(--desk-accent)}
body[data-desk-palette] .desk-tools{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:0 0 14px;font-size:12px;position:relative;z-index:2}.desk-shortcuts{display:flex;gap:18px;flex-wrap:wrap}.desk-shortcuts a{display:inline-flex;gap:8px;align-items:center;color:var(--desk-accent);text-decoration:none;padding:5px 0}.desk-preferences{position:relative;margin-left:auto}.desk-preferences summary{cursor:pointer;white-space:nowrap;padding:5px 0;color:var(--desk-muted)}.desk-swatches{position:absolute;right:0;top:38px;display:flex;gap:8px;background:white;border:1px solid var(--desk-line);border-radius:12px;padding:12px;box-shadow:0 10px 24px #00000012;width:max-content;max-width:calc(100vw - 36px)}body[data-desk-palette] .desk-swatches button{background:white;color:var(--desk-ink);border:1px solid transparent;border-radius:8px;padding:8px 10px;font-size:12px}.desk-swatches button[aria-pressed=true]{border-color:var(--desk-accent)!important;background:var(--desk-tint)!important}.desk-swatches i{display:block;width:24px;height:24px;border:1px solid #d5d9dd;border-radius:50%;margin:0 auto 6px;background:#f8f9fa}.desk-swatches [data-palette=sage] i{background:#cde8d7}.desk-swatches [data-palette=dusk] i{background:#e0d7f0}
body[data-desk-palette] :is(a,button,summary,input,textarea,select):focus-visible{outline:3px solid var(--desk-accent);outline-offset:4px}
#profile-editor[hidden]{display:none!important}.greeting-wave{display:inline-block;font-size:.8em;transform-origin:70% 80%}
body[data-desk-palette] :is(.xp-routes p,.helper,.contribution-empty p){font-size:14px}
body[data-desk-palette] :is(.dashboard-stats span,.stat span,.desk-tools){font-size:13px}
body[data-desk-palette] :is(.real-badge p,.showcase-badge small){color:var(--desk-muted)}
body[data-desk-palette] .member-space #content>h2{color:var(--desk-ink)}
body[data-desk-palette] .real-badge .badge-rule-trigger{border-radius:0}
body[data-desk-palette] .real-badge>strong:before{content:'';display:inline-block;width:12px;height:12px;vertical-align:-1px;margin-right:5px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
body[data-desk-palette] .real-badge.earned>strong:before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/g%3E%3C/svg%3E")}
@media(hover:hover) and (prefers-reduced-motion:no-preference){body[data-desk-palette] :is(.badge-card,.showcase-badge,.real-badge,.dashboard-action){transition:transform .2s,box-shadow .2s,background .2s}body[data-desk-palette] :is(.badge-card,.showcase-badge,.real-badge):hover{transform:translateY(-2px);box-shadow:0 7px 20px #00000009}body[data-desk-palette] .dashboard-action:hover{transform:translateX(2px);background:var(--desk-tint)}.greeting-wave{animation:member-wave .8s ease-out}.earned:hover .badge-illustration{animation:badge-shine .65s ease-out}}
@keyframes member-wave{0%,100%{transform:rotate(0)}30%{transform:rotate(18deg)}65%{transform:rotate(-8deg)}}@keyframes badge-shine{50%{filter:drop-shadow(0 0 10px #10b98166) brightness(1.08)}}
@media(min-width:761px){.signed-in[data-desk-palette] main.member-space,body[data-desk-palette] .app-shell main{padding:32px clamp(24px,3vw,48px) 48px}}
@media(max-width:1180px){body[data-desk-palette] :is(.dashboard-grid,.content-grid){grid-template-columns:1fr}body[data-desk-palette] :is(.badge-grid:has(>.real-badge),.collection-grid){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.signed-in[data-desk-palette],body[data-desk-palette] .app-shell{display:block}.signed-in[data-desk-palette] .member-tabs,body[data-desk-palette] .sidebar{position:static;min-height:0;max-height:none;padding:10px 14px;overflow-x:auto}.signed-in[data-desk-palette] .member-tabs{flex-direction:row}.signed-in[data-desk-palette] .member-tabs a{padding:9px 12px}.signed-in[data-desk-palette] .member-tabs a small{display:none}body[data-desk-palette] .profile-hero{padding:22px 18px}body[data-desk-palette] :is(.dashboard-stats,.stats){grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}body[data-desk-palette] :is(.dashboard-stats>div,.stat){border:0;padding:0}body[data-desk-palette] .hero-companion{display:none}body[data-desk-palette] .profile-hero :is(.identity,.profile-bio){max-width:100%}body[data-desk-palette] .xp-routes{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-desk-palette] :is(.dashboard-card,.app-shell .panel){padding:20px}.sidebar-note{display:none}body[data-desk-palette] .xp-guide{padding:18px}}
@media(max-width:540px){body[data-desk-palette] :is(.badge-grid:has(>.real-badge),.collection-grid){grid-template-columns:1fr}body[data-desk-palette] .desk-tools{flex-wrap:wrap;gap:8px}.desk-preferences{margin-left:0;width:100%}.desk-swatches{left:0;right:auto}.desk-shortcuts{gap:14px}body[data-desk-palette] .xp-routes{grid-template-columns:1fr}.xp-guide-heading{gap:4px}.guide-stamp{margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){body[data-desk-palette] *,body[data-desk-palette] *:before,body[data-desk-palette] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}body[data-desk-palette] :is(.badge-card,.showcase-badge,.real-badge):hover{transform:none}}

/* Motion layer: opt-in visual effects, no changes to award or permission state. */
.motion-earned,.motion-locked{position:relative;isolation:isolate}
.motion-foil{position:absolute;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none;z-index:1}
.motion-foil:after{content:'';position:absolute;inset:-40%;background:linear-gradient(125deg,transparent 35%,#bbf7d028 44%,#fff9 50%,#a5f3fc20 56%,transparent 65%);transform:translateX(-85%);opacity:0}
.motion-locked .motion-foil{display:none}
.motion-badge-tip{display:block;width:100%;font-size:12px;line-height:1.6;color:var(--desk-muted);max-height:0;opacity:0;overflow:hidden;transition:max-height .2s,opacity .2s,margin .2s;pointer-events:none}
.motion-locked:is(:hover,:focus-within) .motion-badge-tip{max-height:100px;opacity:1;margin-top:12px}
.motion-locked-progress{display:block;height:4px;background:#e2e8e5;border-radius:4px;margin-top:8px;overflow:hidden}.motion-locked-progress i{display:block;height:100%;background:var(--desk-accent);transform-origin:left;animation:motion-fill .4s ease-out}
.badge-rule-detail{position:relative}.motion-preview{display:block!important;margin:12px auto 4px;font-size:13px!important;padding:9px 14px!important}.motion-preview-note{display:block;text-align:center;font-size:12px;color:var(--desk-muted)}
.motion-particles{position:absolute;width:0;height:0;pointer-events:none;z-index:4}.motion-particles i{position:absolute;width:6px;height:6px;border-radius:1px;background:#10b981;animation:motion-spark .65s ease-out both}.motion-particles i:nth-child(3n){background:#d9aa44;width:5px;height:5px}.motion-particles i:nth-child(2n){border-radius:50%;background:#7dd3fc}
[data-count-display]{position:relative;color:transparent!important}[data-count-display] small{visibility:hidden}[data-count-display]:after{content:attr(data-count-display);position:absolute;inset:0;color:var(--desk-ink);white-space:nowrap;pointer-events:none}
.motion-progress{position:relative;overflow:hidden;transform-origin:left;animation:motion-fill .6s cubic-bezier(.16,1,.3,1)}
.motion-progress:after{content:'';position:absolute;inset:0;background:linear-gradient(100deg,transparent,#ffffff38,transparent);transform:translateX(-100%);animation:motion-sweep 3s ease-in-out infinite;animation-play-state:paused}.motion-progress.motion-visible:after{animation-play-state:running}
.motion-sync{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--desk-accent);margin-left:10px}.motion-sync:before{content:'';width:6px;height:6px;border-radius:50%;background:#059669;animation:motion-pulse 1.5s ease-in-out infinite}
.motion-nav{position:relative}.motion-nav>a{position:relative;z-index:1}.motion-nav-indicator{position:absolute;left:0;top:0;pointer-events:none;border:1px solid #b9e4d1;border-radius:10px;background:var(--desk-tint);box-shadow:inset 3px 0 var(--desk-accent);transition:transform .22s cubic-bezier(.2,.7,.3,1),width .22s,height .22s;z-index:0}
.signed-in[data-desk-palette] .member-tabs.motion-nav{position:sticky}
@media(max-width:760px){.signed-in[data-desk-palette] .member-tabs.motion-nav{position:relative;top:auto}}
.signed-in[data-desk-palette] .motion-nav a[aria-current=page],body[data-desk-palette] .motion-nav a.active{background:transparent;box-shadow:none;border-color:transparent}
.motion-arrow{display:inline-block;transition:transform .2s cubic-bezier(.2,.8,.3,1)}a:is(:hover,:focus-visible) .motion-arrow{transform:translate(2px,-2px)}
body[data-desk-palette] .profile-hero:before{content:'';position:absolute;inset:-30% 0 0 30%;background:radial-gradient(ellipse at 70% 20%,#10b981,transparent 60%);filter:blur(70px);opacity:.07;z-index:-1;pointer-events:none;animation:motion-ambient 15s ease-in-out infinite alternate;animation-play-state:paused}body[data-desk-palette] .profile-hero.motion-visible:before{animation-play-state:running}
@keyframes motion-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes motion-sweep{0%,30%{transform:translateX(-100%)}80%,100%{transform:translateX(100%)}}
@keyframes motion-pulse{50%{box-shadow:0 0 0 5px #10b98118}}
@keyframes motion-ambient{to{transform:translate(-4%,8%) scale(1.08);opacity:.1}}
@keyframes motion-spark{from{opacity:0;transform:translate(0,0) scale(.4)}20%{opacity:1}to{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(80deg) scale(.3)}}
@keyframes motion-lock{25%{transform:rotate(-4deg)}75%{transform:rotate(4deg)}}
@keyframes motion-locked-breathe{50%{opacity:.72}}
@media(prefers-reduced-motion:no-preference){.motion-locked.motion-visible>.badge-illustration{animation:motion-locked-breathe 4s ease-in-out infinite}}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 body[data-desk-palette] .motion-earned.is-tilting{transform:perspective(850px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) translateY(-2px);transition:transform .12s ease-out;will-change:transform}
 .motion-earned:hover .motion-foil:after{opacity:1;transform:translateX(85%);transition:transform .65s ease-out,opacity .15s}
 body[data-desk-palette] .motion-locked:hover>strong:before{animation:motion-lock .4s ease-in-out}
}
body.motion-paused *,body.motion-paused *:before,body.motion-paused *:after{animation-play-state:paused!important}
@media(hover:none){.motion-badge-tip{max-height:none;opacity:1;margin-top:10px}.motion-foil{display:none}}
@media(prefers-reduced-motion:reduce){.motion-foil,.motion-particles{display:none}.motion-nav-indicator{transition:none}.motion-progress{transform:none}.motion-progress:after{display:none}.motion-earned.is-tilting,a .motion-arrow{transform:none!important}}

/* Small, intentional profile play. All motion is user-triggered. */
.reply-thread[hidden]{display:none!important}.reply-thread{border-top:1px solid var(--desk-line);margin-top:18px;padding-top:18px}.reply-thread h4{font-size:17px;margin:0 0 12px}.forum-reply{padding:16px 0;border-bottom:1px solid var(--desk-line)}.forum-reply .post-body{font-size:15px;margin:10px 0}.forum-reply .post-author{gap:6px 8px;line-height:1.8}.post-author>strong{font-size:15px;color:var(--desk-ink)}.reply-compose{margin-top:20px}.reply-compose textarea{min-height:110px}.reply-compose .helper{margin:0}.reply-compose button{justify-self:start}.reply-message{font-size:14px;color:var(--desk-accent);overflow-wrap:anywhere}.reply-thread>a{font-size:13px;color:var(--desk-accent)}.reply-queue{margin-top:36px;padding-top:24px;border-top:1px solid var(--desk-line)}.reply-submission{background:var(--desk-paper);border:1px solid var(--desk-line);padding:22px;border-radius:16px;margin:16px 0}.reply-review{margin-top:20px}.reply-review textarea{min-height:80px}.reply-toggle,.replies-more{font-size:13px;padding:9px 14px}.forum-post .badge-tag,.forum-reply .badge-tag{white-space:normal;overflow-wrap:anywhere;max-width:100%}
body[data-desk-palette] .interactive-companion{pointer-events:auto;opacity:1;z-index:2}
body[data-desk-palette] .companion-hello{display:flex;flex-direction:column;align-items:center;background:transparent!important;color:var(--desk-accent);border:0;padding:0;box-shadow:none;min-height:44px;cursor:pointer}
.companion-hello>span{font-size:11px;letter-spacing:.02em;margin-top:1px}.companion-hello svg{transition:filter .2s}.companion-hello:hover svg{filter:drop-shadow(0 3px 5px #05966925)}
.companion-speech{display:none;position:absolute;right:96px;top:20px;width:180px;font-size:12px!important;line-height:1.7;letter-spacing:0!important;background:white;border:1px solid var(--desk-line);padding:10px 12px;border-radius:12px 12px 0 12px;box-shadow:var(--desk-shadow);color:var(--desk-accent)!important}.companion-speech.is-speaking{display:block}
.explore-deck{--explore-color:#047857;--explore-tint:#ecfdf5;display:grid;grid-template-columns:100px minmax(0,1fr) auto;align-items:center;gap:22px;padding:22px 24px;margin:20px 0;border:1px solid var(--desk-line);border-radius:16px;background:var(--desk-paper);box-shadow:var(--desk-shadow)}
.explore-deck[data-track=C]{--explore-color:#1d4ed8;--explore-tint:#eff6ff}.explore-deck[data-track=O]{--explore-color:#92400e;--explore-tint:#fffbeb}.explore-deck[data-track=M]{--explore-color:#7e22ce;--explore-tint:#faf5ff}
.explore-orbit{position:relative;width:100px;height:100px;border-radius:50%;background:radial-gradient(circle,var(--explore-tint),transparent 72%);transition:background .2s}.orbit-line{position:absolute;inset:18px 4px;border:1px solid var(--explore-color);opacity:.25;border-radius:50%;transform:rotate(-35deg)}.orbit-line.second{transform:rotate(45deg);inset:9px 21px}.orbit-core{position:absolute;inset:34px;border-radius:9px;background:var(--explore-tint);color:var(--explore-color);display:grid;place-items:center;font-size:17px;font-weight:650}.orbit-satellite{position:absolute;width:8px;height:8px;border-radius:50%;background:var(--explore-color);top:27px;left:12px;box-shadow:0 0 0 4px var(--explore-tint)}
.explore-kicker{font-size:10px;letter-spacing:.12em;color:var(--explore-color)}body[data-desk-palette] .explore-copy h2{font-size:17px;line-height:1.5;margin:5px 0 8px}.explore-copy p{font-size:14px;color:var(--desk-muted);line-height:1.8;margin:0 0 8px}.explore-copy a{font-size:13px;color:var(--explore-color);text-decoration:none}.explore-controls{display:flex;flex-direction:column;gap:12px;align-items:center}.explore-routes{display:flex;gap:6px}
body[data-desk-palette] .explore-routes button{width:36px;height:36px;min-height:36px;padding:0;border-radius:8px;border:1px solid var(--desk-line);background:white;color:var(--desk-muted);font-size:12px;transition:background .2s,transform .2s}.explore-routes button[aria-pressed=true]{background:var(--explore-tint)!important;color:var(--explore-color)!important;border-color:var(--explore-color)!important}body[data-desk-palette] .explore-next{background:transparent;color:var(--desk-muted);border:0;padding:6px 12px;font-size:12px}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.explore-routes button:hover{transform:translateY(-2px)}}
@media(max-width:1050px){.explore-deck{grid-template-columns:70px minmax(0,1fr);gap:16px}.explore-orbit{width:70px;height:70px}.orbit-core{inset:22px}.orbit-satellite{top:16px;left:7px;width:6px;height:6px}.explore-controls{grid-column:1/-1;flex-direction:row;justify-content:space-between}}
@media(max-width:760px){.explore-deck{padding:18px;gap:14px}body[data-desk-palette] .profile-hero .interactive-companion{display:block;position:relative;width:auto;right:auto;top:auto;float:right;margin:0 0 8px 10px}.interactive-companion .companion-hello svg{width:52px;height:56px}.companion-hello>span{font-size:10px}.companion-speech{right:0;top:76px;width:175px}.dashboard-stats{clear:both}.explore-routes button{min-width:40px!important;min-height:40px!important}.explore-copy h2{font-size:16px!important}}
/* Thread reading stays separate from the compact forum index. */
.post-preview .post-body{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.post-preview h3 a{color:inherit;text-decoration:none}
.post-preview h3 a:hover{text-decoration:underline;text-underline-offset:5px}
.thread-back{display:inline-block;margin-bottom:24px}
.post-detail .post-body{white-space:pre-wrap;overflow-wrap:anywhere}
.delete-post,.delete-reply{color:#a33535!important;border-color:#dbbaba!important;margin-top:12px}
