.clawd-custom-art { display: none; }
/* Focus scrolling must stay in the settings scroller; offscreen sibling pages
   otherwise let scrollIntoView shift the entire app shell horizontally. */
#app:has(#page-assistant-settings.active #pet-css-editor[open]) { overflow: clip; }
#clawd.custom-appearance {
    width: var(--custom-pet-width,60px); height: var(--custom-pet-height,60px);
    animation: none !important; transform: none !important; transition: none !important;
}
#clawd.custom-appearance .clawd-character {
    width: 100%; height: 100%; border-radius: 0; filter: none; background: transparent;
    contain: strict; overflow: hidden; transform: none !important; animation: none !important;
    opacity: var(--custom-pet-opacity,1);
    transition: opacity .35s ease !important;
}
#clawd.custom-appearance.pet-idle .clawd-character { opacity: var(--custom-pet-idle-opacity,.35); }
#clawd.custom-appearance .clawd-svg { display: none; }
#clawd.custom-appearance .clawd-custom-art { display: block; }
#clawd.custom-appearance .clawd-bubble { display: none; }
#page-assistant-settings .pet-css-editor { padding-top: 16px; border-top: 1px solid var(--settings-line,var(--border)); margin-top: 16px; }
.pet-css-editor summary { color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; }
.pet-css-editor p { font-size: 12px; line-height: 1.7; color: var(--text3); margin: 12px 0; }
.pet-opacity-setting { margin-top: 16px; }
.pet-opacity-setting p { color: var(--text3); font-size: 12px; line-height: 1.7; margin-top: 8px; }
#pet-opacity-status:empty { display: none; }
.pet-css-preview-stage { display: grid; place-items: center; min-height: 160px; margin: 14px 0; border-radius: 18px; background: var(--bg2); }
#pet-css-preview { display: block; position: relative; overflow: hidden; contain: strict; pointer-events: none; }
.pet-css-editor label { display: block; margin: 12px 0 8px; font-size: 12px; color: var(--text2); }
#page-assistant-settings :is(#pet-css-input, #pet-css-copy-source) { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 280px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: 12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace; resize: vertical; tab-size: 2; }
#pet-css-status { min-height: 20px; }
.pet-css-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pet-css-actions button { flex: 1 1 130px; }
#floating-companion-picker [data-floating-companion="custom"] { grid-column: 1 / -1; }
@media (prefers-reduced-motion:reduce) { #clawd.custom-appearance .clawd-character { transition:none !important; } }
