/* EarthOnline 3D: the page frame and the header. Copied from EarthOnline Chat (eol_chat/web/public/style.css,
   2026-10-02): its base and its header, nothing else. One theme, pure black; the interface is black, white and grey,
   and colour comes from the mark and from the models themselves. Tokens, type sizes and every control (buttons,
   fields, the dialog) are public/v2/ui.css, Chat's, copied as it is and loaded first. This site's pages: 3d.css. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font: var(--text-base)/var(--lh-base) var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--fg); text-decoration-color: var(--muted); text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
a, button, input, textarea, summary { touch-action: manipulation; }
/* one focus ring for links and the rest, keyboard only (controls draw shadcn's own, ui.css); a field has none: the caret is the mark */
:focus-visible:not(.input, .textarea) { outline: 2px solid var(--ring); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
b, strong { font-weight: 600; }
::placeholder { color: var(--muted); opacity: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sep { color: var(--muted); }
code { background: var(--chip); padding: 1px 6px; border-radius: var(--r-s); font: inherit; font-size: var(--text-sm); }
button { font: inherit; }

/* ---- the header (Chat's) ----
   It spans the window: the brand at its left edge and what you can do at its right, 24px in (16px on a phone). It
   stays at the top of the window. At the very top it is part of the page: no ground, no line. Scrolled down at all,
   the page passes under dark glass with a hairline; the change is at once, never a fade. The line is a border that is
   always there (transparent at rest), so the header is 52px in every state and nothing under it moves. */
.top { position: sticky; top: 0; z-index: 10; overflow-x: clip; border-bottom: 1px solid transparent; }
@keyframes top-scrolled { to { border-bottom-color: rgb(255 255 255 / .1); background: rgb(0 0 0 / .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); } }
@supports (animation-timeline: scroll()) {
  .top { animation: top-scrolled steps(1, jump-end) both; animation-timeline: scroll(root block); animation-range: 0px 1px; }
}
@supports not (animation-timeline: scroll()) {
  .top { border-bottom-color: rgb(255 255 255 / .1); background: rgb(0 0 0 / .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 51px; gap: 16px; padding: 0 24px; }
/* brand lockup: mark + parent brand (semibold) + this Bubble's name (regular). One line, one font; the mark in its colour. */
.brand { display: flex; align-items: center; gap: 8px; flex: none; font-size: 20px; font-weight: 400; line-height: 1; text-decoration: none; white-space: nowrap; }
.brand b { font-weight: 600; }
.logo { display: block; flex: none; width: 28px; height: 28px; }
.bar-start, .bar-end { flex: 1 1 0; display: flex; align-items: center; }
.bar-end { justify-content: flex-end; gap: 12px; }
/* Connect your agent stands alone in the middle of the header, in the one coloured button, where Chat has New post
   (Bonan 10-02: "chat header 里的 Post button，在这里是 Connect your agent"); the two sides share what is left
   equally, so it is centred (Chat's rule) */
.bar-mid { flex: none; display: flex; align-items: center; }
/* you: your robot's face alone, as on Chat; your menu opens under it, right edges lined up (ui.css .menu) */
.bar-end .me { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-right: -4px; border-radius: 50%; anchor-name: --me; }
.bar-end .me:hover, .bar-end .me[aria-current] { background: var(--bg2); }
#me-menu { position-anchor: --me; }
.eol-robot { display: block; flex: none; }
/* narrower than 720px the brand is its mark alone (GitHub, Vercel and Linear on a phone); its name stays for screen readers */
@media (max-width: 720px) { .bar-start .brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
@media (max-width: 640px) { .bar { padding: 0 16px; } }

/* the text given to an agent, in a dialog (Chat's .prompt) */
.prompt { margin: 16px 0 0; padding: 20px; border-radius: var(--radius-box); background: var(--bg2); font: inherit; font-size: var(--text-sm); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) { .prompt { padding: 16px; } }
