/* Explicit foreground/background pairs in every interactive state. */
#iva-journey button.iva-primary:is(:hover,:active,:focus-visible),#iva-journey .iva-link.iva-primary:is(:hover,:active,:focus-visible){background:#b9ce95;color:#183528;border-color:#7c9b68;-webkit-text-fill-color:currentColor}
#iva-journey button:not(.iva-primary):is(:hover,:active){background:var(--iv-line);color:var(--iv-ink);-webkit-text-fill-color:currentColor}
#iva-journey button:focus-visible,.forest-prompt button:focus-visible,#forest-hud button:focus-visible{outline:3px solid #809c64;outline-offset:3px}
#iva-journey button[aria-pressed=true]{background:#c8dba7;color:#183528}
#iva-journey button:disabled{background:#e2e7dc;color:#66725d;opacity:1}
#life-panel button:is(:hover,:active),#life-hud button:is(:hover,:active),#life-overlay button:is(:hover,:active){background:#dce7ca;color:#183528;-webkit-text-fill-color:currentColor}
#life-dock button[hidden]{display:none!important}
#life-dock button.active:is(:hover,:active),#life-panel button.life-primary:is(:hover,:active),#life-hud button.life-primary:is(:hover,:active){background:#c8dba7;color:#183528}
html[data-uds-neighbours=false] [data-tab=neighbours],html[data-uds-neighbours=false] [data-iva-action=neighbours],html[data-uds-neighbours=false] [data-ex-view=social]{display:none!important}
.forest-prompt{box-sizing:border-box;width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 30px);overflow:auto;border:1px solid #bbc9af;border-radius:20px;background:#f7f7ef;color:#213c2f;padding:28px;font:14px/1.55 Manrope,Arial,sans-serif}
.forest-prompt::backdrop{background:#10251bcc;backdrop-filter:blur(5px)}.forest-prompt h2{font-size:24px;line-height:1.2;margin-top:0}.forest-prompt label{display:grid;gap:8px}.forest-prompt input{font:inherit;padding:12px;border:1px solid #8a9c7a;border-radius:9px;background:#fff;color:#1d3629;width:100%;box-sizing:border-box}.forest-prompt button{font:inherit;background:#254c38;color:#fff;border:1px solid #597250;border-radius:9px;padding:11px 16px;cursor:pointer;margin:6px 6px 0 0}.forest-prompt button:hover{background:#c5d6a4;color:#203626}
#forest-hud{position:absolute;right:18px;top:64px;z-index:44;width:280px;box-sizing:border-box;max-height:calc(100% - 165px);overflow:auto;padding:18px;border:1px solid #78927066;border-radius:16px;background:#f5f6edeb;color:#203d2e;backdrop-filter:blur(12px);font:12px/1.5 Manrope,Arial,sans-serif;box-shadow:0 14px 45px #16332133}
#forest-hud[hidden]{display:none}#forest-hud strong{font-size:17px;display:block;max-width:230px}#forest-hud small{display:block;font-size:10px;color:#53634f;margin-top:10px}#forest-hud button{font:inherit;background:#edf0e1;border:1px solid #98ae85;border-radius:8px;padding:9px;color:#203d2e;cursor:pointer;touch-action:none}#forest-hud button:hover,#forest-hud button:active{background:#c5d6a4;color:#203d2e}#forest-hud button:disabled{color:#788071;background:#e2e5d9;cursor:default}#forest-hud .forest-collapse{float:right;padding:0 8px;font-size:20px}.forest-pad{display:flex;gap:7px;margin:12px 0}.forest-pad button{flex:1;min-height:43px}.forest-actions{display:flex;flex-wrap:wrap;gap:7px}.forest-companion{display:block;margin:8px 0}#forest-hud.collapsed .forest-controls{display:none}
.uds-map-credit{position:absolute;bottom:9px;left:12px;background:#f6f8efd9;color:#294235;z-index:40;padding:3px 7px;border-radius:4px;font:10px/1.2 Arial,sans-serif}.uds-map-credit[hidden]{display:none}
.uds-project-header nav a,.uds-project-header nav button{font-family:inherit!important;line-height:1.35!important}
#life-panel:not([hidden])~#forest-hud{display:none}
@media(max-width:700px){#forest-hud{top:auto;bottom:104px;right:12px;width:235px;max-height:45%}#forest-hud .forest-controls>p{display:none}#forest-hud strong{font-size:14px}.forest-pad{margin:8px 0}.forest-prompt{padding:22px}#life-dock{overflow-x:auto;scrollbar-width:thin;bottom:36px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.iva-avatar,.iva-head,.iva-eyes .lid{animation:none!important}}

body.uds-forest-active .iva-dock{display:none!important}

body.three .iva-dock{display:none!important}

@media(max-width:700px){#forest-hud{top:65px;bottom:auto;max-height:48%;padding:12px;width:225px}#forest-hud.collapsed .forest-controls{display:block}#forest-hud.collapsed .forest-actions,#forest-hud.collapsed>small,#forest-hud.collapsed #forest-status,#forest-hud.collapsed .forest-companion{display:none}#forest-hud.collapsed .forest-pad{margin:10px 0 0}#forest-hud .forest-collapse{margin-left:4px}}

@media(max-width:700px){#life-panel{top:64px;bottom:104px;height:auto;max-height:none}}
