:root {
  color-scheme: dark;
  --bg: #0a1016;
  --panel: #111a22;
  --line: #27333d;
  --text: #e0e7e6;
  --muted: #8c9da7;
  --accent: #c1dcd3;
  --soft: #81aaa4;
  --gold: #bbaf8a;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
summary,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: white;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
header {
  height: 112px;
  max-width: 1536px;
  margin: auto;
  padding: 0 5.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff09;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e4ebe5;
  font-family: Georgia, serif;
  font-size: 34px;
  letter-spacing: 1px;
}
.brand-symbol {
  display: block;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1px;
  flex-shrink: 0;
  width: 82px;
}
.brand-nimmer,
.brand-still {
  display: flex;
  justify-content: space-between;
  font-weight: 400;
  letter-spacing: 0;
}
.brand-nimmer {
  width: 125%;
  transform: scaleX(.8);
  transform-origin: left center;
  font: 400 23px/1 system-ui, sans-serif;
  color: #e4ebe5;
}
.brand-still {
  font: 400 23px/1 Georgia, serif;
  color: #afc5bc;
}
.brand-still > span {
  transform: scaleY(1.06);
}
.brand-caption {
  margin-left: 4px;
  font: 9px system-ui;
  letter-spacing: 2.4px;
  color: #9aaea4;
  white-space: nowrap;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
}
.app-version {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.03em;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 7px;
  white-space: nowrap;
}
.edition {
  letter-spacing: 0.15em;
  color: var(--muted);
  font-size: 10px;
}
.player {
  max-width: 1536px;
  margin: auto;
  min-height: calc(100svh - 190px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 70px 11%;
}
.player-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  width: 100%;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.23em;
  color: var(--soft);
  font-weight: 500;
  margin: 0 0 26px;
}
h1 {
  font-size: clamp(56px, 6.3vw, 92px);
  font-weight: 300;
  letter-spacing: -0.065em;
  line-height: 1.04;
  margin: 0 0 28px;
}
h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.045em;
}
.intro {
  color: #9eafb5;
  line-height: 1.85;
  font-size: 15px;
  margin: 0 0 48px;
}
.style-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 20px;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.tonality {
  color: var(--muted);
  margin-left: 16px;
  font-size: 9px;
}
.transport {
  padding: 24px 26px;
  border: 1px solid #52666c55;
  border-radius: 16px;
  background: #10202a80;
  backdrop-filter: blur(16px);
  max-width: 520px;
}
.transport-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.play-button {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  min-height: 50px;
  min-width: 108px;
  background: var(--accent);
  color: #142523;
  border: 0;
  border-radius: 30px;
  font-size: 13px;
}
.play-button:hover {
  background: #e0efe9;
}
.play-button span:first-child {
  font-size: 12px;
}
.icon-button {
  background: transparent;
  border: 1px solid #45576088;
  color: #b7c8ca;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  font-size: 14px;
}
.state {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: 9px;
  line-height: 1.3;
  font-size: 11px;
}
.state span:last-child {
  color: var(--muted);
  font-size: 9px;
}
.volume-row {
  display: flex;
  gap: 17px;
  align-items: center;
  margin-top: 26px;
  color: var(--muted);
  font-size: 10px;
}
.volume-row input {
  flex: 1;
  width: 50px;
}
.volume-row output {
  min-width: 35px;
  text-align: right;
}
input[type="range"] {
  accent-color: var(--accent);
  height: 18px;
  cursor: pointer;
}
.quiet {
  color: #71868e;
  font-size: 10px;
  letter-spacing: 0.035em;
  margin: 18px 0 0;
}
.orbital {
  position: absolute;
  right: -2%;
  top: 4%;
  height: 90%;
  width: 70%;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent, #000 28%);
  opacity: 0.85;
}
.planet {
  position: absolute;
  right: 4%;
  top: 16%;
  width: clamp(300px, 41vw, 650px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 25% 20%, #6485842a, transparent 45%),
    radial-gradient(
      ellipse at 73% 70%,
      #080f1a 10%,
      #142837 46%,
      #45686a55 70%,
      #aac2ad66 91%,
      #b6c9b975 97%,
      #314541 100%
    );
  box-shadow:
    -20px -24px 100px #5c837c10,
    inset 3px 2px 60px #b1c6b713;
  transform: rotate(-25deg);
}
.orbit {
  position: absolute;
  border: 1px solid #79968c22;
  border-radius: 50%;
  transform: rotate(-32deg);
}
.orbit-one {
  width: 110%;
  height: 48%;
  top: 32%;
  right: -10%;
  box-shadow: 0 -5px 30px #657c7310;
}
.orbit-two {
  width: 120%;
  height: 55%;
  top: 29%;
  right: -15%;
  border-color: #617d7210;
}
.horizon {
  position: absolute;
  bottom: 8%;
  right: 4%;
  width: 85%;
  height: 1px;
  background: linear-gradient(to right, transparent, #668a8e44, transparent);
  transform: rotate(-32deg);
}
.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #b2c9c1;
  border-radius: 50%;
  box-shadow: 0 0 10px #d1e9e1;
}
.star-one {
  right: 18%;
  top: 10%;
}
.star-two {
  right: 69%;
  top: 27%;
  opacity: 0.4;
}
.is-playing .planet {
  animation: breathe 24s ease-in-out infinite alternate;
}
@keyframes breathe {
  to {
    filter: brightness(1.25);
    transform: rotate(-23deg) scale(1.015);
  }
}
footer {
  padding: 28px 5.5%;
  display: flex;
  justify-content: space-between;
  color: #6e838b;
  font-size: 9px;
  letter-spacing: 0.12em;
  border-top: 1px solid #ffffff09;
  max-width: 1536px;
  margin: auto;
  gap: 20px;
}
.badge {
  padding: 6px 9px;
  border: 1px solid #49605a50;
  border-radius: 5px;
  font-size: 9px;
  letter-spacing: 0.09em;
  color: var(--soft);
  white-space: nowrap;
}
.lab {
  max-width: 1660px;
  margin: auto;
  padding: 42px 4% 80px;
}
.lab-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}
.lab-heading h1 {
  font-size: clamp(25px, 3vw, 40px);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.lab-heading p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.lab-heading .eyebrow {
  margin-bottom: 14px;
}
.export-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  font-size: 11px;
}
.lab-grid {
  display: grid;
  grid-template-columns: 245px minmax(320px, 1fr) 290px;
  gap: 20px;
  align-items: start;
}
.panel {
  background: linear-gradient(135deg, #131e27, #101820);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  margin: 0 0 20px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
h2 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.panel-heading h2 {
  margin: 0;
}
.muted {
  color: var(--muted);
  font-size: 10px;
}
.hint {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin: 12px 0;
}
label {
  font-size: 11px;
  color: #a9bac0;
  display: block;
  margin: 14px 0 7px;
}
input:not([type="range"], [type="checkbox"]),
select,
textarea {
  width: 100%;
  background: #0b141c;
  color: var(--text);
  border: 1px solid #31434f;
  border-radius: 6px;
  padding: 10px 11px;
  min-height: 40px;
  max-width: 100%;
}
select {
  font-size: 12px;
}
textarea {
  resize: vertical;
}
.button {
  background: var(--accent);
  border: 1px solid transparent;
  color: #172924;
  padding: 11px 17px;
  border-radius: 7px;
  font-size: 11px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
}
.button:hover {
  filter: brightness(1.08);
}
.button.secondary {
  background: #17252d;
  color: #bccdce;
  border-color: #344851;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
  padding: 10px 3px;
  min-height: 40px;
}
.library > .button,
.rating > .button,
.manual > #save-manual {
  width: 100%;
  margin-top: 16px;
}
.candidate-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 490px;
  overflow: auto;
  margin: 18px -8px;
  padding: 0 8px;
}
.candidate {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  background: #0d171f;
  border: 1px solid #263842;
  border-radius: 7px;
  padding: 13px 12px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.4;
}
.candidate small {
  font-size: 9px;
  color: var(--muted);
}
.candidate.selected {
  border-color: #8cae9d;
  background: #23343066;
}
.check {
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.6;
  font-size: 11px;
  cursor: pointer;
}
.check input {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.group-locks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 15px;
}
.group-locks label {
  margin: 7px 0;
}
.ab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}
.ab-card {
  border: 1px solid #2c414d;
  background: #0d171f;
  border-radius: 9px;
  padding: 16px;
}
.ab-card.active {
  border-color: #b0c9ba;
  background: #1d302d55;
}
.ab-card > label:first-child {
  font-size: 28px;
  font-weight: 300;
  color: var(--accent);
  margin: 0 0 13px;
}
.ab-card > .button {
  width: 100%;
  margin: 16px 0 8px;
}
.ab-card input {
  width: 100%;
}
.small-label {
  font-size: 10px;
  display: flex;
  justify-content: space-between;
}
.inline-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 12px;
}
.lab-volume {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.lab-volume label {
  margin: 0;
  min-width: 110px;
}
.lab-volume input {
  flex: 1;
  min-width: 30px;
}
.lab-volume output {
  font-size: 10px;
  color: var(--muted);
  min-width: 40px;
}
.pair-vote {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.pair-vote button {
  background: #1b2a33;
  color: #c1cfce;
  border: 1px solid #344954;
  border-radius: 6px;
  min-height: 41px;
  font-size: 11px;
}
.pair-vote button:hover {
  border-color: var(--accent);
}
.variant-controls {
  display: flex;
  gap: 14px;
  align-items: end;
  margin: 17px 0;
}
.variant-controls label {
  flex: 1;
  margin: 0;
}
.variant-controls select {
  margin-top: 7px;
}
.variant-controls button {
  min-width: 150px;
}
details {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
}
details.panel {
  padding: 20px;
  margin-top: 0;
}
summary {
  font-size: 12px;
  color: #bed0d1;
  cursor: pointer;
  padding: 3px 0;
  min-height: 27px;
}
.spec-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
}
.spec-grid input {
  font-size: 11px;
}
.knobs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 25px;
  margin-top: 12px;
}
.knob {
  margin: 13px 0;
}
.knob span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
}
.knob output {
  color: var(--accent);
  white-space: nowrap;
}
.knob input {
  width: 100%;
  margin-top: 9px;
}
.monitor-grid > div {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11px;
}
.monitor-grid span {
  flex: 1;
}
.tiny {
  border: 1px solid var(--line);
  background: #17252d;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 10px;
  min-height: 36px;
}
.tiny[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: #2e453e;
}
fieldset {
  padding: 0;
  border: 0;
  margin: 20px 0;
}
legend {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
}
.tag-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag-list label {
  margin: 0;
  position: relative;
}
.tag-list input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.tag-list span {
  display: block;
  font-size: 10px;
  padding: 7px 9px;
  border: 1px solid #31424c;
  border-radius: 20px;
  cursor: pointer;
}
.tag-list input:checked + span {
  border-color: var(--accent);
  color: var(--accent);
  background: #2e453e;
}
.tag-list input:focus-visible + span {
  outline: 2px solid var(--accent);
}
.favorite {
  color: var(--gold);
  margin: 18px 0;
}
.stack-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
  font-size: 11px;
}
.rating h2 {
  line-height: 1.5;
  font-size: 18px;
}
.rating .eyebrow {
  margin-bottom: 18px;
}
.guide .eyebrow {
  margin-bottom: 16px;
}
.guide ol {
  padding-left: 18px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.guide li {
  margin: 12px 0;
}
.guide b {
  color: #c3d1ce;
  font-weight: 500;
}
.render-status {
  position: fixed;
  z-index: 10;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  width: 530px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: #233b38;
  box-shadow: 0 8px 50px #0008;
  border: 1px solid #6b8c7f;
  border-radius: 10px;
  font-size: 11px;
}
.render-status progress {
  width: 110px;
  accent-color: var(--accent);
  margin-left: auto;
}
.render-status button {
  color: white;
  white-space: nowrap;
}
#toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: fixed;
  right: 24px;
  bottom: 25px;
  z-index: 12;
  border: 1px solid #52695d;
  border-radius: 8px;
  background: #20342e;
  color: #dae8df;
  box-shadow: 0 8px 30px #0005;
  padding: 10px 10px 10px 16px;
  font-size: 12px;
  max-width: min(460px, 90vw);
  line-height: 1.65;
  box-sizing: border-box;
  pointer-events: auto;
}
#toast[hidden] {
  display: none;
}
#toast-message {
  display: block;
  flex: 1;
  min-width: 0;
  max-height: min(40vh, 320px);
  overflow: auto;
  overflow-wrap: anywhere;
  padding: 10px 0;
}
#toast-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}
#toast-close:hover,
#toast-close:focus-visible {
  background: #ffffff12;
  border-color: currentColor;
}
#toast-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
#toast-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
#toast.error {
  background: #402b2b;
  border-color: #93635b;
}
@media (min-width: 1450px) {
  .lab-grid {
    grid-template-columns: 265px minmax(400px, 1fr) 315px;
  }
  .panel {
    padding: 25px;
  }
}
@media (max-width: 1150px) {
  .lab {
    padding: 35px 3%;
  }
  .lab-grid {
    grid-template-columns: 215px minmax(320px, 1fr);
  }
  .lab-right {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .lab-right .rating {
    grid-row: span 2;
  }
  .lab-right .panel {
    margin: 0;
  }
  .panel {
    padding: 18px;
  }
  .player {
    padding-left: 8%;
  }
  .orbital {
    right: -14%;
    width: 85%;
  }
  .state {
    margin-left: 0;
  }
}
@media (max-width: 720px) {
  header {
    height: 82px;
    padding: 0 6%;
  }
  .edition {
    display: none;
  }
  nav {
    font-size: 10px;
    gap: 12px;
  }
  nav .badge {
    display: none;
  }
  .player {
    min-height: calc(100svh - 155px);
    padding: 70px 7% 40px;
    align-items: flex-start;
  }
  .player-content {
    padding-top: 10px;
  }
  .eyebrow {
    font-size: 9px;
  }
  h1 {
    font-size: 69px;
  }
  .intro {
    font-size: 13px;
    margin-bottom: 40px;
  }
  .orbital {
    right: -57%;
    top: 8%;
    width: 130%;
    height: 76%;
    opacity: 0.6;
  }
  .planet {
    width: 400px;
    top: 8%;
  }
  .transport {
    padding: 20px 18px;
    max-width: 500px;
  }
  .transport-top {
    gap: 9px;
  }
  .play-button {
    min-width: 94px;
    min-height: 48px;
  }
  .icon-button {
    width: 36px;
    height: 36px;
  }
  .state {
    font-size: 10px;
    margin-left: 3px;
  }
  .state span:last-child {
    font-size: 8px;
  }
  footer {
    font-size: 8px;
    padding: 24px 6%;
    line-height: 1.5;
  }
  .lab {
    padding: 30px 5% 80px;
  }
  .lab-heading {
    display: block;
  }
  .lab-heading h1 {
    font-size: 30px;
    line-height: 1.2;
  }
  .export-links {
    flex-direction: row;
    justify-content: flex-start;
    margin: 20px 0 0;
  }
  .lab-grid {
    display: flex;
    flex-direction: column;
  }
  .library,
  .lab-center,
  .lab-right {
    width: 100%;
  }
  .library {
    margin-bottom: 0;
  }
  .candidate-list {
    max-height: 220px;
  }
  .lab-right {
    display: block;
  }
  .lab-right .panel {
    margin-bottom: 20px;
  }
  .panel {
    padding: 19px;
  }
  .ab-grid {
    gap: 10px;
  }
  .ab-card {
    padding: 12px;
  }
  .ab-card select {
    font-size: 10px;
  }
  .ab-card .button {
    padding: 10px 6px;
  }
  .panel-heading .badge {
    font-size: 7px;
  }
  .spec-grid {
    grid-template-columns: 1fr 1fr;
  }
  .spec-grid label:first-child {
    grid-column: 1/-1;
  }
  .knobs {
    grid-template-columns: 1fr;
  }
  .render-status {
    bottom: 12px;
    padding: 10px 15px;
    gap: 10px;
    font-size: 10px;
  }
  .render-status progress {
    width: 60px;
  }
  #toast {
    bottom: 82px;
    right: 5%;
  }
  .variant-controls button {
    min-width: 130px;
  }
  .inline-controls .button {
    padding: 10px 12px;
  }
  .lab-volume label {
    min-width: 95px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.cosmic { margin-bottom:30px; }
.cosmic .eyebrow { margin-bottom:10px; }
.cosmic-families { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0; }
.cosmic-families .candidate { min-height:105px; }
.cosmic-families span {font-size:10px;color:var(--soft);}
.cosmic-columns {display:grid;grid-template-columns: minmax(0,1fr) minmax(0,1fr);gap:30px;}
.cosmic-columns>div {min-width:0;}
.cosmic .spec-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
.cosmic-review {border-top:1px solid var(--line);padding-top:20px;margin-top:20px;}
.cosmic-saved {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:420px;overflow:auto;}
.event-timeline svg,#ce-diagnostics svg {width:100%;height:auto;max-height:160px;background:#0b141c;border-radius:8px;}
.event-log {max-height:300px;overflow:auto;}
.event-log table {width:100%;border-collapse:collapse;font-size:10px;}
.event-log td,.event-log th {text-align:left;padding:9px;border-bottom:1px solid var(--line);}
.cosmic pre {white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px;max-height:250px;overflow:auto;}
#ce-progress {width:100%;accent-color:var(--accent);}
@media(max-width:900px){.cosmic-columns{grid-template-columns:minmax(0,1fr)}.cosmic-saved{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.cosmic-families{grid-template-columns:repeat(2,minmax(0,1fr));}.cosmic .spec-grid{grid-template-columns:1fr;}.cosmic-saved{grid-template-columns:1fr;}.cosmic .panel-heading{align-items:flex-start}.cosmic .panel-heading a{font-size:10px}}
/* Keep the complete homepage signature visible alongside the app navigation. */
@media(max-width:600px){header{height:auto;min-height:106px;display:grid;grid-template-columns:minmax(0,1fr);gap:9px;padding-top:13px;padding-bottom:13px}.brand{gap:10px;font-size:30px;width:max-content;max-width:100%}.brand-symbol{width:38px;height:38px}.brand-wordmark{width:76px}.brand-nimmer,.brand-still{font-size:21px}.brand-caption{font-size:8px;letter-spacing:1.5px;margin-left:4px}header>nav{width:100%;min-width:0}header>nav .app-version{margin-left:auto}}

.beta-badge{font-size:10px;letter-spacing:.12em;color:#ddcfa9;border:1px solid #5a5039;border-radius:4px;padding:5px 7px;white-space:nowrap}
header>nav{gap:16px;flex-wrap:wrap}
#admin-logout{font-size:12px;padding:6px 9px;min-height:30px}
.world-identity{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0 10px;font-size:12px;color:var(--muted)}
#world-name{color:var(--text)}
.login-page{width:min(440px,100%);margin:7vh auto;padding:24px}
.login-page h1{font-size:40px;line-height:1.2}
#login-form{display:grid;gap:12px;margin:32px 0}
#login-form input{width:100%;padding:12px;min-height:44px}
#login-form label{font-size:13px}
#login-submit{margin-top:12px;justify-content:center}
#login-error{font-size:13px;color:#edb4a4}
#admin-session-warning{position:fixed;z-index:10000;bottom:12px;left:12px;right:12px;padding:16px;background:#28332f;border:1px solid #bca36e;border-radius:8px;font-size:14px}
@media(max-width:600px){header>nav{gap:9px}.edition{font-size:8px}.app-version{font-size:9px;padding:5px}}
