html.earth-home[data-theme] .cosmic-backdrop {
  --earth-cover-x:50%;--earth-cover-y:24%;
  background:#02060e url('/assets/earth-orbit.webp') var(--earth-offset-x,var(--earth-cover-x)) var(--earth-offset-y,var(--earth-cover-y)) / cover no-repeat;
  filter:none;overflow:hidden;
}
#earth-surface,.earth-city-point {position:absolute;pointer-events:none}
#earth-surface {z-index:1}
.earth-city-point {z-index:2;width:9px;height:9px;transform:translate(-50%,-50%);border:1.5px solid #fffbec;border-radius:50%;background:#1520338c;box-shadow:0 0 0 1px #0c14288a,0 0 5px #0c142866}
#earth-surface[hidden],.earth-city-point[hidden]{display:none}
html.earth-home[data-theme] .cosmic-backdrop::after {background:linear-gradient(90deg,#02061134,transparent 54%)}
html.earth-home[data-earth-light=night] .cosmic-backdrop::after {background:linear-gradient(105deg,#02061924,#050b262c)}
html.earth-home[data-theme][data-chat-layout=scenic] body.has-messages .cosmic-backdrop {
  background:#030711 linear-gradient(#020612aa,#020612aa) center/cover;
  background-image:linear-gradient(#020612a1,#020612a1),url('/assets/earth-stars.webp');
}
html.earth-home[data-chat-layout=scenic] body.has-messages .cosmic-backdrop::before {
  display:block;content:'';position:absolute;inset:auto;left:50%;top:49%;
  width:min(97cqw,68cqh);height:auto;aspect-ratio:536/714;translate:-50% -50%;
  background:url('/assets/earth-orbit-scenic.webp') center/contain no-repeat;
  mask-image:linear-gradient(transparent,#000 8%,#000 88%,transparent),linear-gradient(90deg,transparent,#000 1%,#000 99%,transparent);
  mask-composite:intersect;
}
#earth-city-trigger {
  position:fixed;z-index:3;right:clamp(24px,8vw,140px);bottom:clamp(40px,8dvh,90px);
  max-width:min(38vw,350px);min-height:42px;padding:7px 16px;border-radius:24px;
  color:#ebf1ff;background:#080f20eb;border:1px solid #7f96b962;
  font:500 13px/1.35 'Segoe UI',sans-serif;letter-spacing:.025em;cursor:pointer;
}
#earth-city-trigger:hover,#earth-city-trigger:focus-visible {border-color:#9bc7ee}
html[data-earth-light] #earth-city-trigger::before {content:'';display:inline-block;vertical-align:.02em;width:.62em;height:.62em;margin-right:.62em;border-radius:50%}
html[data-earth-light=day] #earth-city-trigger::before {background:#ffd68c;box-shadow:0 0 7px #ffca7460}
html[data-earth-light=night] #earth-city-trigger::before {box-shadow:inset -.18em -.07em #d2e2ff}
html[data-chat-layout=full] body.has-messages #earth-city-trigger,
html[data-quiet=true] body.has-messages #earth-city-trigger {display:none}
#earth-city-dialog {width:min(440px,calc(100vw - 24px));max-height:86dvh;padding:0;color:var(--text);background:var(--panel)}
#earth-city-dialog .dialog-heading {padding:16px 20px;display:flex;justify-content:space-between;align-items:center}
#earth-city-dialog .dialog-heading h2 {margin:0}
.dialog-heading>form[method=dialog] {margin:0;padding:0;display:block;flex:none}
#reply-dialect-wrap {align-self:start}
#reply-dialect-wrap[hidden] {display:none}
#reply-dialect-wrap label {display:flex;flex-direction:column;gap:8px}
#reply-dialect {width:100%;min-height:44px}
.earth-picker-body {padding:0 20px 18px}
.earth-picker-body label {display:block;margin:0 0 7px}
#earth-city-search {width:100%;min-height:42px;background:var(--field);border:1px solid var(--line);color:var(--text);padding:9px 12px;border-radius:10px;font:inherit}
.earth-search-row {display:flex;align-items:stretch;gap:8px}
.earth-search-row input {min-width:0}
#earth-apply-city {flex:none;width:auto;white-space:nowrap;margin:0;padding:8px 14px}
#earth-apply-city:disabled {opacity:.5}
.earth-picker-actions {display:flex;align-items:center;gap:12px;margin-top:12px}
#earth-status {margin:8px 0}
#earth-city-results {display:grid;max-height:min(32dvh,290px);overflow:auto}
#earth-city-results button {background:transparent;text-align:start;color:var(--text);padding:11px 8px;border:none;border-bottom:1px solid var(--line);cursor:pointer}
#earth-city-results button:hover,#earth-city-results button:focus-visible {background:var(--soft)}
.earth-credit a {color:var(--accent-text)}
@media(min-width:761px) {
  .earth-home body:not(.has-messages) .composer-area {width:min(570px,calc(var(--earth-text-edge,49vw) - var(--hero-inset)))}
}
@media(min-width:761px) and (max-width:1200px) {
  .earth-home body:not(.has-messages) .chat-stage {--hero-inset:clamp(30px,6vw,74px)}
  html.earth-home body:not(.has-messages) .cosmic-backdrop {--earth-cover-x:49%;--earth-cover-y:30%}
}
@media(max-width:849px) {
 html.earth-home[data-chat-layout=scenic] body.has-messages {--scenic-sky-height:clamp(170px,28dvh,250px)}
 html.earth-home[data-chat-layout=scenic] body.has-messages .cosmic-backdrop::before {left:33%;top:calc(50% + 22px);width:min(48cqw,calc(74cqh - 35px))}
 html.earth-home[data-chat-layout=scenic] body.has-messages #earth-city-trigger {right:9px;bottom:auto;top:calc(var(--scenic-sky-height) - 40px);min-height:32px;max-width:47vw;padding:4px 10px;font-size:12px}
}
@media(max-width:760px) and (orientation:portrait) {
  html.earth-home body:not(.has-messages) .cosmic-backdrop {--earth-cover-x:75%;--earth-cover-y:32%}
  body:not(.has-messages) #earth-city-trigger {left:clamp(16px,5vw,28px);right:auto;bottom:auto;top:clamp(66px,9dvh,90px);max-width:72vw;min-height:38px}
}
html.earth-home #welcome .wordmark h1 {
  color:#fff;background:none;-webkit-text-fill-color:#fff;text-shadow:none;
}
html.earth-home button.beyond-pass {
  color:#fcf6ff;border-color:#b799ef;background:linear-gradient(110deg,#43226a,#582b84 62%,#49216d);
  box-shadow:inset 0 1px 0 #e6d5ff2c,0 0 14px #6c30ae29;
}
html.earth-home button.beyond-pass span {color:#f1ddff}
html.earth-home button.beyond-pass:is(:hover,:focus-visible) {background:#63368c;border-color:#e4caff}
@media(min-width:761px) and (min-height:560px) {
  .earth-home body:not(.has-messages) .chat-stage {padding-top:clamp(40px,8dvh,88px)}
}
@media(min-width:761px) and (max-width:1050px) and (orientation:portrait){
  html.earth-home body:not(.has-messages) .cosmic-backdrop {inset:0 0 auto;height:58dvh;mask-image:linear-gradient(#000 60%,transparent);--earth-cover-x:67%}
  html.earth-home body:not(.has-messages) .chat-stage {justify-content:flex-end;padding-bottom:4dvh}
  html.earth-home body:not(.has-messages) .composer-area {width:min(570px,calc(100% - var(--hero-inset) * 2))}
  html.earth-home body:not(.has-messages) #earth-city-trigger {bottom:auto;top:76px}
}
html.earth-home[data-theme=dark][data-chat-layout=full] body.has-messages {
  --reading-bg:#151121;--surface:#21192f;--line:#aa93cc38;
}
@media(max-height:475px) and (orientation:landscape){
  #earth-city-trigger {right:12px;bottom:10px;min-height:32px}
  html.earth-home[data-chat-layout=scenic] body.has-messages {--scenic-sky-height:66px}
  html.earth-home[data-chat-layout=scenic] body.has-messages .cosmic-backdrop::before {left:50%;top:50%;width:min(20cqw,78cqh)}
}

#earth-city-dialog[open],#workspace-dialog[open] {
  position:fixed;inset:0;margin:auto;z-index:1000;
  box-shadow:0 0 0 100vmax #02050ed9,0 22px 80px #0008;
}
html.earth-home .beyond-hero {
  min-height:220px;padding:28px;
  background:linear-gradient(90deg,#120b26f5 10%,#120b26d9 48%,#120b2630),url('/assets/earth-orbit.webp') 77% center/cover;
}
html.earth-home .auth-art {
  background:linear-gradient(0deg,#070a1c9a,transparent 70%),url('/assets/earth-orbit.webp') 77% center/cover;
}
/* Earth and the chat occupy fixed sides even when the interface reads RTL. */
html.earth-home .main-panel {direction:ltr}
html.earth-home #welcome .wordmark {direction:ltr}
html.earth-home[dir=rtl] .welcome-question {direction:rtl;text-align:left}
html.earth-home[dir=rtl] .composer-caption>span {direction:rtl;unicode-bidi:plaintext}
html.earth-home[dir=rtl] .conversation-bar,
html.earth-home[dir=rtl] .goal-card {direction:rtl}

/* Kurus Beyond sits above the home sky and supplies its own lighting. */
#workspace-dialog.membership-view {
  --offer-padding:clamp(20px,4vw,48px);
  width:min(1040px,calc(100vw - 40px));max-width:none;max-height:min(94dvh,940px);
  overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#53465d #100e18;
  background:#0d0c14;border:1px solid #a69bac56;border-radius:22px;color:#faf6fc;
  box-shadow:0 0 0 100vmax #02050de6,0 22px 80px #000b;color-scheme:dark;
}
.membership-view .dialog-heading {
  position:relative;z-index:3;margin:0;padding:18px var(--offer-padding);
  background:#0d0c14;border-bottom:1px solid #f0d9ff18;
}
.membership-view .dialog-heading h2 {
  margin:0;color:#e8d8f0;font:650 11px/1.2 var(--font-sans,system-ui,sans-serif);
  letter-spacing:.24em;text-transform:uppercase;
}
.membership-view .dialog-heading .icon-button {
  width:34px;height:34px;border:1px solid #bba7c338;border-radius:50%;
  color:#f4eaf9;background:#201b28;font:400 23px/1 system-ui,sans-serif;
}
.membership-view .workspace-body {display:block;max-height:none;overflow:visible;padding:0}
.saturn-offer-hero {
  position:relative;isolation:isolate;overflow:hidden;display:grid;align-items:center;
  min-height:clamp(245px,32vh,335px);background:#0b0b13;
}
.saturn-offer-hero .saturn-preview-sky {position:absolute;inset:0;z-index:-2;pointer-events:none}
.saturn-offer-hero::after {
  content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,#0c0b13eb 1%,#0c0b13cb 26%,#0c0b1320 54%,transparent 66%);
}
.saturn-offer-copy {
  width:52%;max-width:515px;padding:24px 0 27px var(--offer-padding);
  box-sizing:border-box;direction:ltr;text-align:left;justify-self:left;
}
.saturn-offer-copy h3 {
  margin:0 0 15px;color:#fff6eb;font:400 clamp(46px,5.5vw,79px)/.99 Georgia,serif;
  letter-spacing:-.066em;
}
.saturn-offer-copy p {margin:0;max-width:29ch;color:#eee7ea;font-size:clamp(15px,1.6vw,21px);line-height:1.32}
.saturn-offer-copy .saturn-allowance {margin-top:5px;color:#e4c4ff;font-weight:600}
.saturn-sky-tour {
  position:absolute;right:var(--offer-padding);bottom:16px;padding:7px 12px;min-height:36px;
  border:1px solid #e1c9ef54;border-radius:999px;background:#130f1bdb;color:#f6edf9;
  font-family:inherit;font-size:12px;font-weight:550;cursor:pointer;
}
.saturn-sky-tour::after {content:' ↗';margin-inline-start:4px}
.saturn-sky-tour:hover {background:#2d2039;border-color:#e6d2ef}
.saturn-sample {
  margin:0 var(--offer-padding);padding:clamp(18px,2.4vw,28px);
  display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:center;
  gap:clamp(16px,2.5vw,36px);border:1px solid #b59fc13b;border-radius:16px;
  background:linear-gradient(126deg,#211a2b,#17151f 68%);
}
.saturn-caption {font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.16em;color:#d2b9de}
.saturn-sample-copy h4 {margin:7px 0 9px;font:400 clamp(23px,2.6vw,33px)/1.08 Georgia,serif;letter-spacing:-.04em;color:#fff5ec}
.saturn-sample-copy .saturn-sample-finding {max-width:46ch;margin:0;color:#d4cdd8;font-size:14px;line-height:1.5}
.saturn-demo-action,.saturn-billing-link {
  background:none;border:0;padding:0;color:#e3c8f9;font:600 13px/1.35 inherit;
  font-family:inherit;font-weight:600;font-size:13px;min-height:40px;cursor:pointer;
}
.saturn-demo-action {margin:5px 0 -6px}
.saturn-demo-action::after {content:' →';display:inline-block;margin-inline-start:6px}
.saturn-demo-action:hover,.saturn-billing-link:hover {color:#fff;text-decoration:underline;text-underline-offset:3px}
.saturn-sample-frames {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.saturn-frame {min-width:0;margin:0}
.saturn-frame svg {
  display:block;width:100%;aspect-ratio:154/90;border:1px solid #bba7cc3e;
  border-radius:8px;background-color:#0a0a13;
  background-image:linear-gradient(#b68cd913 1px,transparent 1px),linear-gradient(90deg,#b68cd913 1px,transparent 1px);
  background-size:12.5% 20%;
}
.saturn-field-star {fill:#f2effb}
.saturn-hot-pixel {fill:#fff1c4}
.saturn-pixel-marker {fill:none;stroke:#dfba74;stroke-width:1}
.saturn-frame figcaption {margin-top:7px;color:#c9bacf;font-size:11px;line-height:1.3}
.membership-view .workspace-body>.saturn-offer-perks {
  margin:17px var(--offer-padding);color:#c7becd;font-size:13px;line-height:1.5;
}
.saturn-offer-footer {
  padding:16px var(--offer-padding) 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;
  border-top:1px solid #d2b2e122;background:#18141e;
}
.saturn-offer-price,.saturn-offer-actions {display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
.saturn-offer-price strong {color:#fff7ed;font:400 30px/1 Georgia,serif;letter-spacing:-.04em}
.saturn-offer-price span,.saturn-offer-availability {color:#c7bacf;font-size:13px}
.saturn-offer-actions {justify-content:flex-end;align-items:center;gap:12px}
.saturn-offer-cta {
  padding:12px 22px;border:1px solid #c8aaff7a;border-radius:999px;min-height:44px;
  background:linear-gradient(110deg,#6332af,#7942b6);color:white;
  font:inherit;font-size:14px;font-weight:650;cursor:pointer;
}
.saturn-offer-cta:hover {background:#8051bb}
.membership-view>.inline-error:not(:empty) {padding-top:12px}
@media(max-width:640px) {
  #workspace-dialog.membership-view {width:calc(100vw - 16px);max-height:94dvh;border-radius:17px}
  .membership-view .dialog-heading {padding:10px var(--offer-padding)}
  .saturn-offer-hero {min-height:255px;align-items:end}
  .saturn-offer-hero::after {background:linear-gradient(0deg,#0d0c14 0%,#0d0c14e3 20%,#0d0c1440 51%,transparent 70%)}
  .saturn-offer-copy {width:100%;max-width:none;padding:110px var(--offer-padding) 18px}
  .saturn-offer-copy h3 {font-size:44px;margin-bottom:8px}
  .saturn-offer-copy p {font-size:15px}
  .saturn-sky-tour {bottom:auto;top:12px;right:14px;min-height:34px;font-size:11px}
  .saturn-sample {grid-template-columns:minmax(0,1fr);gap:15px;padding:17px}
  .saturn-sample-copy .saturn-sample-finding {font-size:13px}
  .saturn-sample-frames {max-width:370px}
  .saturn-frame svg {max-height:85px}
  .saturn-offer-footer {padding:13px var(--offer-padding)}
  .saturn-offer-price {gap:4px 7px}
}
