/* Installed release refinements; preserve Pearl proportions and natural-width type. */
.pearl-field{isolation:isolate}.pearl-number{text-shadow:none;font-size:104px}.pearl-lens{box-shadow:0 0 22px 4px #ffffffdf,inset 0 3px 7px #fff,inset 0 -3px 9px #ffffffb0,0 4px 10px #59727c25}
.emotion-face{width:28px;height:28px;filter:drop-shadow(0 2px 3px #7593a422)}.pearl-emotions button{display:flex;align-items:center;gap:7px}
.release-checklist{margin:20px 0;padding:18px;border-radius:20px;background:linear-gradient(125deg,#fafdff,#edf4ef);box-shadow:0 5px 18px #3d576410;border:1px solid #fff}.checklist-row{display:flex;gap:10px;align-items:center;margin:8px 0}.checklist-row label{flex:1;display:flex;align-items:center;gap:10px}.checklist-row input{width:20px;height:20px}.checklist-row:has(input:checked) span{text-decoration:line-through;opacity:.6}.release-checklist>input{width:100%}.release-checklist>button{margin-top:10px}.pearl-note{overflow:hidden}.pearl-note .note-image{display:block;margin:0 0 18px;height:180px}.note-image[hidden]{display:none}.pearl-note>button{margin:6px 6px 0 0}.pearl-profile-metrics{bottom:14px;gap:4px}.pearl-profile-metrics span{font-size:10px;padding:3px 5px}.avatar-placeholder img{object-fit:contain!important;width:100%;height:100%}.pearl-dialog-toggle{min-height:36px}.pearl-dialog{padding-bottom:env(safe-area-inset-bottom)}
@media(max-width:360px){.shell{padding-left:10px;padding-right:10px}.card{padding:14px}.bottom-nav>button{font-size:10px}.pearl-ranges label{grid-template-columns:84px 1fr 22px}.pearl-emotions button{font-size:12px;padding:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* Explicitly override the older Orbit layout, rather than stacking incompatible layouts. */
form.pearl-quick{flex-direction:row;gap:8px;align-items:center}form.pearl-quick>input{flex:1;width:0;order:0}form.pearl-quick>button{flex:0 0 40px;align-self:center}form.pearl-quick>button:first-child{order:1}form.pearl-quick>button:nth-child(2){order:2}
body button.primary,body .primary{background:linear-gradient(135deg,#e0f0f8,#e7f0e5);color:var(--ink);box-shadow:0 4px 12px #52697515;border:1px solid #d3e3e7}body button.primary:active{background:#d9eaf0}body button.primary:hover{background:linear-gradient(135deg,#edf8fc,#eef6e9)}
#profile .profile-intro{display:flex;flex-direction:column;align-items:stretch;gap:12px}#profile .profile-intro .avatar-stage{order:-1;width:100%;min-width:0;min-height:0;height:340px;margin:0;display:block;overflow:hidden;border-radius:22px}#profile .profile-intro .avatar-view{width:100%;max-width:none;height:100%;min-width:0}#profile .profile-intro .avatar-placeholder{height:100%}#profile .profile-intro .avatar-placeholder img{object-fit:contain;border-radius:0;width:100%;height:100%}#profile .pearl-profile-metrics{left:8px;bottom:8px;max-width:calc(100% - 16px);flex-wrap:wrap}
.card h2{font-size:22px;letter-spacing:normal}.panel h2:focus:not(:focus-visible){outline:none}.panel h2[tabindex='-1']{outline:none}#today h1{letter-spacing:normal}#today .hero{background-position:right center!important}#today .hero:before{display:none}.profile-shortcut{display:none}
.orbit-next{display:grid;grid-template-columns:30px minmax(0,1fr) 30px;gap:8px 10px;padding:18px}.orbit-next .eyebrow{grid-column:2;grid-row:1;color:var(--ink);font-size:20px;letter-spacing:normal}.orbit-next .eyebrow:before{display:none}.orbit-next h2{grid-column:2;grid-row:2;font-size:16px}.orbit-next>p:not(.eyebrow){grid-column:1;grid-row:2;font-size:10px;overflow-wrap:anywhere}.orbit-next button{grid-column:3;grid-row:2;width:30px;min-width:30px;padding:0;background:transparent;color:var(--ink);box-shadow:none}.orbit-next:before{content:'◷';grid-row:1;grid-column:1;font-size:24px;color:#7593a0}
.focus-card h2{display:block}.focus-card .section-title{display:flex}.pearl-home-notes{margin:18px 0}.pearl-home-notes h2{display:flex;align-items:center;gap:12px}.pearl-home-notes .note{margin-top:16px}.pearl-balance-history p{line-height:1.5}.balance-wheel svg circle,.balance-wheel svg line{stroke:#ccdada}
body .bottom-nav>button{color:#455962}body .bottom-nav>button.selected{color:#233b45}.pearl-dock:before{top:6px;filter:blur(8px)}
.pearl-scene{position:absolute;inset:0;border-radius:inherit;background-size:cover;background-position:right center;transition:opacity .8s ease;pointer-events:none;z-index:0}.pearl-avatar{z-index:2}.pearl-profile-metrics .mini-balance{width:24px;height:24px;display:block}.pearl-profile-metrics{align-items:center}.pearl-profile-metrics span:has(.mini-balance){padding:0;background:#ffffffe0}.orbit-next>p:not(.eyebrow){white-space:nowrap;overflow:visible}.focus-card .section-title .eyebrow,.focus-card .section-title .chip{display:none}#connectionState{font-size:9px}.header-right .connection{display:flex}
.header-right #connectionState,.header-right .live-dot{display:inline-block}.header-right #connectionState{font-size:9px;color:#657270}.header-right .live-dot{flex:0 0 4px}.header-right{gap:5px}body{padding-bottom:0}
#profile .profile-intro .avatar-caption{display:block;position:absolute;bottom:40px;font-size:10px;margin:0 10px;color:#6d7578}.avatar-view canvas{width:100%;height:100%;object-fit:contain}.avatar-view:focus-visible{outline:2px solid #8ab7c9;outline-offset:-2px}

.framework-question[hidden]{display:none!important}.framework-progress{color:var(--ink);font-size:14px}.framework-navigation{display:flex;gap:10px}.framework-navigation>button{flex:1;min-width:0}.framework-question textarea{min-height:140px}

/* Draft avatar controls stay outside the portrait, never covering the face. */
#profile .profile-intro .avatar-stage{height:340px;background:#fafbf9}
#profile .profile-intro .avatar-caption{bottom:42px;left:0;right:0;text-align:center;font-size:11px;line-height:1.35;background:#ffffffd9;border-radius:12px;padding:4px 8px;width:fit-content;max-width:calc(100% - 20px);margin:auto;pointer-events:none}
#profile .avatar-tray{order:-1;display:flex;flex-direction:column;gap:8px;padding:0 4px 4px;min-width:0}
.avatar-controls{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}
.avatar-controls button{min-height:44px;padding:9px 13px;font-size:12px;white-space:nowrap}
.avatar-controls button:first-child,.avatar-controls button:nth-child(3){font-size:20px;min-width:44px}
.avatar-tray input[type=range]{width:100%;min-height:30px;margin:0;padding:0;cursor:ew-resize}
.avatar-view{cursor:grab;user-select:none;-webkit-user-select:none}.avatar-view.dragging{cursor:grabbing}
.avatar-retry{align-self:center}.avatar-retry[hidden]{display:none}
@media(max-width:360px){#profile .profile-intro .avatar-stage{height:290px}.avatar-controls{gap:4px}.avatar-controls button{padding:8px 9px}}
