:root {
  color-scheme: dark;
  --bg: #151716;
  --panel: #202321;
  --raised: #292e2a;
  --text: #f0eee5;
  --muted: #adb6ab;
  --line: #3a413b;
  --accent: #efc78c;
  --ink: #272016;
  --bad: #f2a3a0;
  --good: #b9d1aa;
  font:
    15px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font:
    500 clamp(2rem, 4vw, 3rem)/1.12 Georgia,
    serif;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}
h2 {
  font:
    500 1.65rem Georgia,
    serif;
}
h3 {
  font-size: 1rem;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--text);
  border-radius: 9px;
  min-height: 42px;
  padding: 8px 15px;
  transition: background 0.16s;
}
button:hover {
  background: #3c443e;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 650;
}
button.danger {
  color: var(--bad);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--accent);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 44px;
}
input[type="checkbox"] {
  width: 19px;
  min-height: 19px;
  accent-color: var(--accent);
}
textarea {
  min-height: 110px;
  resize: vertical;
}
label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
}
label.check {
  display: flex;
  align-items: center;
  gap: 12px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
aside {
  border-right: 1px solid var(--line);
  padding: 32px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand {
  font:
    600 2.1rem Georgia,
    serif;
  letter-spacing: -0.04em;
}
.brand span {
  color: var(--accent);
}
.eyebrow {
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 6px 0 32px;
}
nav {
  display: grid;
  gap: 5px;
}
nav button {
  text-align: left;
  background: none;
  border-color: transparent;
  color: var(--muted);
}
nav button.active {
  color: var(--accent);
  background: var(--raised);
  border-color: var(--line);
}
aside .account {
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--muted);
}
main {
  padding: 48px clamp(20px, 5vw, 80px);
  max-width: 1250px;
  width: 100%;
}
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}
.subtitle {
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 28px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.wide {
  grid-column: 1/-1;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 0;
}
.muted,
small {
  color: var(--muted);
}
.mono,
pre,
code {
  font:
    13px/1.55 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--bg);
  padding: 16px;
  border-radius: 8px;
  max-height: 600px;
  overflow: auto;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child {
  border-bottom: 0;
}
.badge {
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.75rem;
  color: var(--good);
}
.login {
  max-width: 430px;
  margin: 10vh auto;
  padding: 30px;
}
.login form {
  display: grid;
  gap: 20px;
}
.login .brand {
  margin-bottom: 5px;
}
.login h1 {
  font-size: 2rem;
}
.login .card {
  margin-top: 40px;
}
.table {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th,
td {
  text-align: left;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-weight: 500;
}
.tool {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.tool:last-child {
  border: 0;
}
#status:not(:empty) {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 10;
  background: var(--accent);
  color: var(--ink);
  border-radius: 12px;
  padding: 16px 24px;
  max-width: min(90vw, 600px);
  box-shadow: 0 10px 40px #0006;
}
#status.error {
  background: var(--bad);
}
.bar {
  height: 9px;
  min-width: 2px;
  background: var(--accent);
  border-radius: 3px;
}
.chart {
  display: grid;
  gap: 14px;
}
.chartrow {
  display: grid;
  grid-template-columns: 95px 1fr 65px;
  align-items: center;
  gap: 15px;
  font-size: 0.82rem;
}
details {
  margin: 15px 0;
}
summary {
  cursor: pointer;
  color: var(--accent);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 12px;
}
.userform {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.event {
  border-left: 2px solid var(--line);
  padding: 8px 0 8px 18px;
  margin: 15px 0;
}
.event strong {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.event p {
  margin: 6px 0;
}
.empty {
  padding: 45px 0;
  color: var(--muted);
}
@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
  }
  aside {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px;
  }
  .brand {
    font-size: 1.8rem;
  }
  .eyebrow {
    margin-bottom: 16px;
  }
  nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  nav button {
    white-space: nowrap;
  }
  aside .account {
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
  }
  main {
    padding: 28px 20px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
  }
  .topline {
    align-items: flex-start;
    margin-bottom: 25px;
  }
  .tool {
    grid-template-columns: 1fr 120px;
  }
  .login {
    margin: 4vh auto;
    padding: 20px;
  }
  .row {
    gap: 12px;
  }
  .topline select {
    max-width: 150px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.shot {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-top: 12px;
}
/* Luna — shared Android Aurora / Dusk palette and approved web layout. */

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #eeeaf8;
  background: #111022;
  font:
    14px/1.5 Inter,
    system-ui,
    sans-serif;
  --bg: #111022;
  --surface: #181729;
  --high: #1d1c2d;
  --accent: #cdb4fa;
  --muted: #a09aaf;
  --edge: #3c354d;
}
body.dusk {
  --bg: #1c1220;
  --surface: #231a27;
  --high: #2a212e;
  --accent: #f2c48c;
  --muted: #b4a1ae;
  --edge: #493b48;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.review {
  position: relative;
  z-index: 10;
  background: #0b0b16;
  border-bottom: 1px solid #ffffff15;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
}
.review strong {
  color: #cdb4fa;
  font-size: 10px;
  letter-spacing: 2px;
}
.review .spacer {
  flex: 1;
}
.seg {
  display: flex;
  padding: 3px;
  border-radius: 50px;
  background: #ffffff08;
  border: 1px solid #ffffff10;
}
.seg button {
  background: none;
  border: 0;
  border-radius: 30px;
  color: #a09aaf;
  padding: 7px 14px;
  font-size: 12px;
}
.seg button.on {
  background: #cdb4fa22;
  color: #eeeaf8;
}
.quiet {
  background: transparent;
  border: 1px solid var(--edge);
  border-radius: 30px;
  padding: 8px 16px;
  color: var(--muted);
}
.scene {
  position: relative;
  min-height: 790px;
  background: var(--bg);
  overflow: hidden;
  transition: background 0.5s;
}
#sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.header {
  height: 94px;
  border-bottom: 1px solid #ffffff09;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 650;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}
.header small {
  color: var(--muted);
  letter-spacing: 2px;
  font-size: 9px;
}
.header-right {
  display: flex;
  gap: 16px;
  align-items: center;
}
.status {
  border: 1px solid var(--edge);
  border-radius: 30px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 11px;
}
.status i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #b7edcf;
  border-radius: 50%;
  margin-right: 7px;
}
.login-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  max-width: 1130px;
  margin: 40px auto 20px;
  padding: 0 40px;
  gap: 85px;
  align-items: center;
  min-height: 580px;
}
.planet-wrap {
  text-align: center;
}
.planet {
  width: 340px;
  height: 340px;
  max-width: 100%;
  display: block;
  margin: auto;
}
.eyebrow {
  color: var(--accent);
  letter-spacing: 2.6px;
  font-size: 10px;
  font-weight: 500;
}
.planet-wrap h1 {
  font-size: 40px;
  font-weight: 550;
  letter-spacing: -1.6px;
  margin: 16px 0 10px;
}
.muted {
  color: var(--muted);
}
.planet-wrap p {
  font-size: 14px;
  margin: 0;
}
.formcard {
  background: linear-gradient(145deg, #ffffff06, transparent), var(--surface);
  border: 1px solid var(--edge);
  border-radius: 28px;
  padding: 38px;
  box-shadow: 0 30px 90px #0002;
}
h2 {
  font-weight: 550;
  font-size: 29px;
  letter-spacing: -0.9px;
  margin: 8px 0;
}
label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 24px;
}
input,
select {
  display: block;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--edge);
  border-radius: 12px;
  color: #eeeaf8;
  padding: 13px 15px;
  margin-top: 8px;
  outline: none;
}
.primary {
  border: 0;
  background: var(--accent);
  color: #302139;
  border-radius: 30px;
  padding: 13px 23px;
  font-weight: 650;
}
.formcard .primary {
  width: 100%;
  margin-top: 28px;
}
.foot {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 22px;
}
.bottom {
  position: relative;
  text-align: center;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  padding: 20px;
}
.workspace {
  display: none;
  position: relative;
  grid-template-columns: 224px 1fr;
  min-height: 680px;
}
.workspace aside {
  border-right: 1px solid #ffffff0b;
  padding: 26px 18px;
  background: #11102255;
}
.navgroup {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.8px;
  padding: 12px 14px 7px;
}
.navbutton {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  color: var(--muted);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 12px;
  margin: 2px 0;
}
.navbutton.active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.workspace main {
  padding: 34px 40px;
  max-width: 1170px;
  width: 100%;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.page-heading h1 {
  font-size: 32px;
  font-weight: 550;
  letter-spacing: -1px;
  margin: 5px 0;
}
.account {
  border: 1px solid var(--edge);
  padding: 8px 13px;
  border-radius: 30px;
  font-size: 12px;
}
.welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px;
  border-radius: 24px;
  border: 1px solid var(--edge);
  background: linear-gradient(110deg, #cdb4fa0a, transparent);
  margin-bottom: 24px;
}
.welcome h2 {
  font-size: 23px;
}
.welcome .planet {
  width: 146px;
  height: 146px;
  margin: -28px 0;
}
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.card {
  background: color-mix(in srgb, var(--surface) 93%, transparent);
  border: 1px solid var(--edge);
  border-radius: 22px;
  padding: 24px;
}
.card h3 {
  font-size: 16px;
  font-weight: 550;
  margin: 0;
}
.card p {
  color: var(--muted);
  font-size: 12px;
}
.card label {
  margin-top: 18px;
}
.savebar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  font-size: 11px;
  color: var(--muted);
}
.testview {
  display: none;
  max-width: 850px;
  margin: auto;
}
.test-welcome {
  text-align: center;
}
.test-welcome .planet {
  width: 290px;
  height: 290px;
}
.test-welcome h2 {
  font-size: 32px;
}
.suggestions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 24px 0;
}
.suggestions button {
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: var(--surface);
  padding: 12px 18px;
  font-size: 12px;
}
.composer {
  display: flex;
  border: 1px solid var(--edge);
  background: var(--surface);
  border-radius: 25px;
  padding: 9px 10px 9px 20px;
  align-items: center;
  gap: 10px;
}
.composer input {
  border: 0;
  background: none;
  margin: 0;
  padding: 4px;
  flex: 1;
}
.conversation {
  display: none;
  min-height: 370px;
}
.message {
  max-width: 80%;
  border: 1px solid var(--edge);
  background: var(--surface);
  border-radius: 20px;
  padding: 20px;
  margin: 18px 0;
}
.message.user {
  margin-left: auto;
  background: #ffc6b713;
  color: #ffc6b7;
}
.mini {
  width: 42px;
  height: 42px !important;
  margin: 0 !important;
}
.splash {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 8;
  background: #101622;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.splash canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.splash img {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  margin-bottom: 35px;
  box-shadow: 0 0 95px #cdb4fa18;
}
.splash h1 {
  position: relative;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -1.6px;
  margin: 0 0 12px;
}
.splash p {
  position: relative;
  font-size: 10px;
  letter-spacing: 2px;
  color: #c4d8ee;
}
.splash .skip {
  position: absolute;
  right: 24px;
  bottom: 24px;
}
.splash .splashfoot {
  position: absolute;
  bottom: 40px;
  font-size: 9px;
  letter-spacing: 2.5px;
  color: #c4d8ee99;
}
.hidden {
  display: none !important;
}
@media (max-width: 850px) {
  .login-grid {
    gap: 25px;
    padding: 0 25px;
    grid-template-columns: 1fr;
  }
  .planet-wrap .planet {
    width: 230px;
    height: 230px;
  }
  .planet-wrap h1 {
    font-size: 30px;
  }
  .formcard {
    max-width: 480px;
    width: 100%;
    margin: auto;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .workspace aside {
    display: flex;
    overflow: auto;
    padding: 12px;
  }
  .navgroup {
    display: none;
  }
  .navbutton {
    white-space: nowrap;
    width: auto;
  }
  .workspace main {
    padding: 24px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .header {
    padding: 0 24px;
  }
  .header-right small {
    display: none;
  }
  .welcome .planet {
    width: 100px;
    height: 100px;
  }
  .review {
    gap: 9px;
  }
  .review .spacer {
    display: none;
  }
  .scene {
    min-height: 900px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

body {
  background: var(--bg);
  --panel: var(--surface);
  --raised: var(--high);
  --text: #eeeaf8;
  --line: var(--edge);
  --ink: #302139;
  --bad: #ffb4ab;
  --good: #b7edcf;
}
h1,
h2,
.brand {
  font-family: Inter, system-ui, sans-serif;
}
.scene {
  min-height: 100vh;
}
.shell {
  position: relative;
  min-height: calc(100vh - 94px);
  grid-template-columns: 224px 1fr;
}
.shell aside {
  height: calc(100vh - 94px);
  padding: 26px 18px;
  border-color: #ffffff0b;
  background: #11102235;
  overflow: auto;
}
.shell main {
  padding: 34px 40px;
  max-width: 1170px;
}
.shell nav {
  display: block;
}
.shell nav button {
  min-height: 32px;
}
.shell .account {
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.shell .account button {
  font-size: 11px;
  padding: 5px 10px;
  min-height: 32px;
}
.topline {
  margin-bottom: 25px;
}
.topline h1 {
  font-size: 32px;
  font-weight: 550;
  margin: 5px 0;
  letter-spacing: -1px;
}
.topline label {
  margin: 0;
  min-width: 140px;
}
.topline select {
  margin-top: 4px;
  padding: 8px 13px;
  border-radius: 25px;
}
.card h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
}
.card {
  margin-bottom: 20px;
}
input,
select,
textarea {
  background: var(--bg);
  border-radius: 12px;
}
textarea {
  margin-top: 8px;
}
.subtitle {
  font-size: 13px;
}
.grid .card {
  margin-bottom: 0;
}
.profile-card .grid {
  gap: 0 20px;
}
.profile-card label {
  margin-top: 18px;
}
.profile-grid {
  align-items: start;
}
.profile-grid .card {
  height: 100%;
}
.header-right {
  gap: 12px;
}
.header-controls {
  display: flex;
  gap: 8px;
}
.header-controls button {
  font-size: 11px;
  min-height: 34px;
}
.header .seg button {
  padding: 6px 10px;
  min-height: 28px;
}
.status {
  white-space: nowrap;
}
.status i {
  background: #b7edcf;
}
.login-grid {
  min-height: 580px;
}
.formcard p {
  font-size: 14px;
}
.formcard input {
  margin-top: 8px;
}
.formcard button {
  margin-top: 28px;
}
.luna-footer {
  position: relative;
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 2px;
}
.splash {
  position: fixed;
}
.splash .skip {
  min-height: 38px;
}
.testview {
  display: block;
}
.test-welcome h2 {
  margin: 8px 0;
}
.test-welcome .planet {
  width: 290px;
  height: 290px;
}
.test-policy {
  font-size: 11px;
  max-width: 600px;
  margin: 16px auto 24px;
  text-align: center;
}
.composer textarea {
  resize: vertical;
  min-height: 44px;
  max-height: 150px;
  flex: 1;
  margin: 0;
  border: 0;
  padding: 8px;
  background: transparent;
}
.composer .primary {
  min-width: 44px;
}
.conversation .message p {
  margin: 6px 0 0;
  white-space: pre-wrap;
}
.conversation .message {
  overflow-wrap: anywhere;
}
.testview.has-conversation .test-welcome {
  display: none;
}
.testview.has-conversation .conversation {
  display: block;
}
.testview.has-conversation .composer {
  margin-top: 20px;
}
.conversation .message.user {
  color: #ffc6b7;
}
.luna-tool-results {
  margin: 15px 0;
}
.luna-tool-results pre {
  max-height: 300px;
}
.suggestions button:hover {
  border-color: var(--accent);
}
.splash h1 {
  font-family: Inter, system-ui, sans-serif;
}
.empty {
  color: var(--muted);
}
button.primary:hover {
  filter: brightness(1.08);
  background: var(--accent);
}
.welcome h2 {
  font-family: Inter, system-ui, sans-serif;
}
.header .brand {
  color: #eeeaf8;
}
.formcard .eyebrow {
  margin-bottom: 0;
}
.formcard h2 {
  font-size: 29px;
}
.splash[hidden] {
  display: none;
}
.profile-card input,
.profile-card select {
  margin-top: 8px;
}
@media (min-width: 1600px) {
  .login-grid {
    margin-top: 65px;
  }
}
@media (max-width: 850px) {
  .header {
    height: auto;
    min-height: 94px;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 24px;
  }
  .header-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .header-right > small,
  .header-right > .status {
    display: none;
  }
  .header-controls {
    flex-wrap: wrap;
  }
  .shell {
    grid-template-columns: 1fr;
  }
  .shell aside {
    position: static;
    height: auto;
    padding: 12px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--edge);
    display: block;
    overflow: visible;
  }
  .shell nav {
    display: flex;
    overflow-x: auto;
  }
  .shell .navbutton {
    width: auto;
    margin-right: 4px;
    white-space: nowrap;
  }
  .shell .navgroup {
    display: none;
  }
  .shell .account {
    margin: 12px 0 0;
    padding: 0;
  }
  .shell main {
    padding: 24px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .login-grid {
    padding: 20px 24px;
    margin: 0 auto;
    gap: 25px;
  }
  .scene {
    min-height: 100vh;
  }
  .topline {
    gap: 10px;
  }
  .welcome {
    padding: 20px;
  }
  .welcome .muted {
    font-size: 12px;
  }
  .welcome .planet {
    flex-shrink: 0;
  }
  .test-welcome .planet {
    width: 230px;
    height: 230px;
  }
  .suggestions {
    flex-wrap: wrap;
  }
  .profile-card .grid {
    grid-template-columns: 1fr;
  }
  .header-controls .quiet {
    padding: 7px 10px;
  }
}
@media (max-width: 440px) {
  .header {
    padding: 16px 20px;
  }
  .header-right {
    width: 100%;
    justify-content: flex-start;
  }
  .formcard {
    padding: 26px;
  }
  .planet-wrap h1 {
    font-size: 27px;
  }
  .topline {
    flex-wrap: wrap;
  }
  .topline label {
    width: 100%;
  }
  .topline select {
    max-width: none;
  }
  .shell main {
    padding: 24px 18px;
  }
  .welcome .planet {
    width: 86px;
    height: 86px;
  }
  .welcome h2 {
    font-size: 20px;
  }
  .welcome .eyebrow {
    font-size: 9px;
  }
  .card {
    padding: 20px;
  }
  .tool {
    grid-template-columns: 1fr;
  }
  .row {
    flex-wrap: wrap;
  }
  .chartrow {
    grid-template-columns: 80px 1fr 60px;
  }
}

.signin-arrow {
  float: right;
}
.test-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Chat uses the approved Luna scene, themes and motion controls. */
.chat-main{max-width:980px;margin:auto;padding:24px}.chat-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.chat-toolbar select{max-width:260px}.chat-main #messages{min-height:40vh}.bubble{margin:24px 0;padding:20px;border:1px solid #cdb4fa33;border-radius:20px;white-space:pre-wrap;overflow-wrap:anywhere}.from-user{margin-left:12%;background:#cdb4fa12}.attachment{width:100px;height:100px;object-fit:cover;border-radius:12px;margin:6px}.result-row{display:flex;overflow-x:auto;gap:14px}.result-tile{min-width:220px;max-width:300px;padding:16px;border:1px solid #cdb4fa33;border-radius:14px;white-space:normal}.result-tile img{width:180px;height:240px;object-fit:cover;border-radius:8px}.result-tile a{display:block}.chat-main textarea{width:100%;box-sizing:border-box}.chat-main form{position:relative;padding:18px;border-radius:20px;background:var(--panel,#19172c)}@media(max-width:600px){.chat-main{padding:12px}.chat-toolbar{gap:8px}.from-user{margin-left:5%}.chat-toolbar select{max-width:180px}}
