/* Theme IDs and base colours from Trip Saver popup; Juno keeps its own readable surfaces. */
body{--juno-bg:#0b1313;--juno-panel:#102223;--juno-menu:#112f24;--juno-card:#18332e;--juno-ink:#f4f3e8;--juno-muted:#b2c9bd;--juno-line:#7ba59140;--juno-accent:#10b981;--juno-gold:#e8c57d;--juno-on-action:#062c20}
body[data-theme=light]{--juno-bg:#f9f6f0;--juno-panel:#fffef9;--juno-menu:#f9f6f0;--juno-card:#f0ebe1;--juno-ink:#204035;--juno-muted:#4b6058;--juno-line:#20403533;--juno-accent:#059669;--juno-gold:#85651f;--juno-on-action:#fffef9;color-scheme:light}
body[data-theme=blue]{--juno-bg:#090b14;--juno-panel:#0a1024;--juno-menu:#10182c;--juno-card:#17223b;--juno-ink:#e2e8f0;--juno-muted:#afc0da;--juno-line:#93c5fd40;--juno-accent:#3b82f6;--juno-on-action:#fffef9}
body[data-theme=wine]{--juno-bg:#1c080e;--juno-panel:#2d0a16;--juno-menu:#260a14;--juno-card:#411524;--juno-ink:#fff5f7;--juno-muted:#fecdd3;--juno-line:#fda4af40;--juno-accent:#e11d48;--juno-on-action:#fffef9}
body[data-theme]{--bg:var(--juno-bg);--panel:var(--juno-panel);--ink:var(--juno-ink);--muted:var(--juno-muted);--line:var(--juno-line);--green:var(--juno-accent);--gold:var(--juno-gold);background:var(--juno-bg);color:var(--juno-ink)}
body[data-theme] .conversation-panel,body[data-theme] .context-card,body[data-theme] .publish-dialog{background:var(--juno-panel);border-color:var(--juno-line);color:var(--juno-ink)}
body[data-theme] .conversation-header,body[data-theme] .composer-wrap{background:transparent;border-color:var(--juno-line)}
body[data-theme] .composer-options-panel,body[data-theme] .language-menu{background:var(--juno-menu);color:var(--juno-ink);border-color:var(--juno-line)}
body[data-theme] .rich-card,body[data-theme] .route-proposal,body[data-theme] .message.user .message-content,body[data-theme] #chat-form,body[data-theme] .proposal-days{background:var(--juno-card);color:var(--juno-ink);border-color:var(--juno-line)}
body[data-theme] .message.assistant .message-content,body[data-theme] .message.user .message-content,body[data-theme] .welcome h3,body[data-theme] .welcome p,body[data-theme] .rich-card p,body[data-theme] .rich-card li,body[data-theme] .route-proposal>p,body[data-theme] .proposal-days li,body[data-theme] .hero-copy p,body[data-theme] .section-description{color:var(--juno-ink)}
body[data-theme] .welcome-note,body[data-theme] .discovery-caption,body[data-theme] .privacy-note,body[data-theme] .image-credit,body[data-theme] .proposal-days li small,body[data-theme] .voice-mode-note,body[data-theme] #connection-status,body[data-theme] #embed-context-label,body[data-theme] .live-voice-copy strong,body[data-theme] .live-voice-copy p{color:var(--juno-muted)}
body[data-theme] input,body[data-theme] textarea,body[data-theme] select{color:var(--juno-ink);background:var(--juno-card);border-color:var(--juno-line)}
body[data-theme] textarea{background:transparent}body[data-theme] textarea::placeholder{color:var(--juno-muted)}
body[data-theme] .suggestions button,body[data-theme] .language-trigger,body[data-theme] .mic-button,body[data-theme] .icon-button,body[data-theme] .latest-message-button{background:var(--juno-card);border-color:var(--juno-line);color:var(--juno-ink)}
body[data-theme] .send-button,body[data-theme] .explore-button,body[data-theme] .publish-actions button[type=submit]{background:var(--juno-accent);border-color:var(--juno-accent);color:var(--juno-on-action)}
body[data-theme] .context-tab,body[data-theme] .voice-mode-trigger,body[data-theme] .voice-toggle,body[data-theme] .draft-toolbar button,body[data-theme] .language-menu button{color:var(--juno-ink)}
body[data-theme] .context-tab.active,body[data-theme] .rich-card h4,body[data-theme] .route-proposal h4,body[data-theme] .proposal-days h5,body[data-theme] .rich-card a,body[data-theme] .route-proposal a{color:var(--juno-gold)}
body[data-theme=light] .brand .official-logo{filter:brightness(.28)}
body[data-theme=light] .live-voice-panel{background:transparent}
body[data-theme=light] .prototype,body[data-theme=light] .top-meta,body[data-theme=light] .tiny-label,body[data-theme=light] .orb-caption,body[data-theme=light] .conversation-header h2>span,body[data-theme=light] .context-pill,body[data-theme=light] .intro-line{color:var(--juno-muted)}
body[data-theme=light] .rich-card .image-credit-links a,body[data-theme=light] .tool-card p,body[data-theme=light] .message-label,body[data-theme=light] .public-consent{color:var(--juno-muted)}
body[data-theme=light] .language-menu button[aria-selected=true]{background:#e8c57d44;color:#204035}

/* Persistent orbital identity and the upper settings drawer. */
.conversation-header .juno-avatar{width:52px;height:52px;min-width:52px;background:transparent;border:0;position:relative;overflow:visible}
#juno-header-earth{width:100%;height:100%;display:block;border-radius:50%}.juno-avatar .avatar-brand-logo{display:none;width:100%;height:100%;border-radius:50%}
body[data-avatar=logo] #juno-header-earth{display:none}body[data-avatar=logo] .juno-avatar .avatar-brand-logo{display:block;animation:avatarLogoTurn 30s linear infinite}
.avatar-satellite{position:absolute;inset:-5px;border:1px solid #e8c57d30;border-radius:50%;pointer-events:none;animation:avatarOrbit 18s linear infinite}.avatar-satellite::before{content:'';position:absolute;top:3px;left:8px;width:8px;height:5px;background:#e8c57d;border-radius:2px;box-shadow:-6px 0 0 -1px #8bbdb9,6px 0 0 -1px #8bbdb9;border:1px solid #f9f7f0}.avatar-satellite::after{content:'';position:absolute;top:0;left:13px;width:1px;height:5px;background:#e8c57d}
.header-settings{position:relative;margin-left:auto;flex-shrink:0}.header-menu-trigger,.menu-close{display:grid;place-items:center;min-width:40px;min-height:40px;border-radius:12px;border:1px solid var(--juno-line);background:var(--juno-card);color:var(--juno-gold);cursor:pointer}.header-menu{position:absolute;right:0;top:49px;z-index:30;width:min(330px,calc(100vw - 40px));max-height:calc(100dvh - 150px);overflow:auto;overscroll-behavior:contain;border:1px solid var(--juno-line);border-radius:20px;padding:18px;background:var(--juno-menu);box-shadow:0 24px 75px #0006;color:var(--juno-ink);text-align:left;animation:materialize .22s ease}.header-menu-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.header-menu-heading h3{font:600 20px Outfit,sans-serif;margin:0;color:var(--juno-ink)}.menu-close{min-width:30px;min-height:30px;font-size:22px;background:transparent;border:0}.menu-primary-action{display:flex;align-items:center;gap:9px;width:100%;padding:12px;border-radius:12px;border:1px solid var(--juno-line);background:var(--juno-card);color:var(--juno-ink);font-size:12px}.menu-primary-action>span:first-child{font-size:20px;color:var(--juno-gold)}.menu-section{border-top:1px solid var(--juno-line);padding-top:15px;margin-top:15px}.menu-section h4{font:600 11px Outfit,sans-serif;color:var(--juno-muted);margin:0 0 10px}.header-menu .draft-toolbar{padding:0;border:0;display:grid;grid-template-columns:1fr 1fr;gap:9px;min-height:0}.header-menu .draft-toolbar button{min-height:32px;padding:5px 0;font-size:10px;text-align:left;color:var(--juno-ink);margin:0}.theme-choices{display:grid;grid-template-columns:1fr 1fr;gap:7px}.theme-choices button,.avatar-choices button{display:flex;align-items:center;gap:7px;min-height:38px;border:1px solid var(--juno-line);border-radius:10px;padding:8px;background:var(--juno-card);color:var(--juno-ink);font-size:10px;text-align:left}.theme-choices button[aria-checked=true],.avatar-choices button[aria-checked=true]{border-color:var(--juno-gold);box-shadow:inset 0 0 0 1px var(--juno-gold)}.theme-swatch{width:13px;height:13px;border:1px solid #7ba59188;border-radius:50%;flex-shrink:0}.swatch-dark{background:#10b981}.swatch-light{background:#f9f6f0}.swatch-blue{background:#3b82f6}.swatch-wine{background:#9f1239}.avatar-choices{display:flex;gap:7px}.avatar-choices button{flex:1;justify-content:center}.header-menu .avatar-choice-title{margin-top:15px}.header-menu .live-earth-rotation{margin:8px 0 0;color:var(--juno-gold)}.menu-tools{display:grid;gap:7px}.menu-tools a{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--juno-line);padding:10px;border-radius:10px;font-size:11px;color:var(--juno-ink);text-decoration:none;background:var(--juno-card)}.menu-tools a::after{content:'↗';color:var(--juno-gold)}.header-context{font-size:10px;color:var(--juno-muted);line-height:1.6;margin:14px 0 0;border-top:1px solid var(--juno-line);padding-top:10px}.header-menu .tools-note{font-size:9px;color:var(--juno-muted);line-height:1.6;margin:9px 0 0}
body[data-juno-rotation=off] .avatar-satellite,body[data-juno-rotation=off] .avatar-brand-logo{animation-play-state:paused}
@keyframes avatarOrbit{to{transform:rotate(360deg)}}@keyframes avatarLogoTurn{to{transform:rotate(360deg)}}
@media(max-width:430px){.conversation-header .juno-avatar{width:45px;height:45px;min-width:45px}.header-menu{right:-2px;max-height:calc(100dvh - 125px);padding:15px}.header-menu-trigger{min-width:38px;min-height:38px}}
@media(prefers-reduced-motion:reduce){.header-menu{animation:none}.avatar-satellite,.avatar-brand-logo{animation-play-state:paused!important}body[data-juno-rotation=on] .avatar-satellite,body[data-juno-rotation=on] .avatar-brand-logo{animation-play-state:running!important}}
/* Explicit rotation opt-in also restores CSS motion disabled by the global preference. */
body[data-juno-rotation=on] .avatar-satellite{animation:avatarOrbit 18s linear infinite!important}
body[data-juno-rotation=on][data-avatar=logo] .juno-avatar .avatar-brand-logo{animation:avatarLogoTurn 30s linear infinite!important}
/* The official mark orbits as a satellite and counter-rotates to stay upright. */
.juno-avatar .avatar-satellite{display:block;inset:-5px;border-color:#e8c57d30;transform-origin:center;animation:avatarOrbit 18s linear infinite}
.juno-avatar .avatar-satellite::before,.juno-avatar .avatar-satellite::after{display:none!important;content:none!important}
.juno-avatar .avatar-satellite .orbit-brand-mark{display:block;position:absolute;top:-5px;left:calc(50% - 6.5px);width:13px!important;height:13px!important;max-width:13px!important;max-height:13px!important;border-radius:0!important;object-fit:contain;animation:brandStayUpright 18s linear infinite;transform-origin:center;filter:drop-shadow(0 0 2px #102223)}
body[data-juno-rotation=off] .avatar-satellite,body[data-juno-rotation=off] .orbit-brand-mark{animation-play-state:paused!important}
body[data-juno-rotation=on] .avatar-satellite .orbit-brand-mark{animation:brandStayUpright 18s linear infinite!important}
@keyframes brandStayUpright{to{transform:rotate(-360deg)}}
@media(prefers-reduced-motion:reduce){.avatar-satellite .orbit-brand-mark{animation-play-state:paused!important}body[data-juno-rotation=on] .avatar-satellite .orbit-brand-mark{animation-play-state:running!important}}
