:root {
  color-scheme: dark;
  --bg: #071016;
  --bg-2: #0a151d;
  --panel: rgba(12, 27, 37, 0.9);
  --panel-solid: #0d1b25;
  --panel-2: rgba(17, 37, 49, 0.8);
  --line: rgba(152, 205, 225, 0.15);
  --line-strong: rgba(152, 205, 225, 0.26);
  --text: #edf8fb;
  --muted: #91aab4;
  --muted-2: #6f8994;
  --cyan: #42e7f5;
  --cyan-2: #00b9d8;
  --mint: #68f0bd;
  --violet: #8d7cff;
  --warning: #ffd166;
  --danger: #ff6b7d;
  --success: #63e6ad;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 18px;
  --radius-sm: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(66, 231, 245, 0.08), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(141, 124, 255, 0.07), transparent 28rem),
    linear-gradient(180deg, #071016 0%, #08131a 45%, #050b10 100%);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
  z-index: -2;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

code,
kbd {
  font-family: var(--mono);
}

code {
  color: #a9f6ff;
}

kbd {
  display: inline-flex;
  min-width: 1.75rem;
  min-height: 1.65rem;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  color: #cfe7ee;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.76rem;
}

[hidden],
.is-hidden {
  display: none !important;
}

.page-glow {
  position: fixed;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
}

.page-glow--one {
  top: 22%;
  left: -14rem;
  background: var(--cyan);
}

.page-glow--two {
  right: -16rem;
  bottom: 10%;
  background: var(--violet);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(152, 205, 225, 0.11);
  background: rgba(5, 12, 17, 0.82);
  backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(66, 231, 245, 0.28);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(66, 231, 245, 0.14), rgba(141, 124, 255, 0.05));
  box-shadow: inset 0 0 24px rgba(66, 231, 245, 0.04), 0 0 28px rgba(66, 231, 245, 0.08);
  transform: rotate(45deg);
}

.brand-mark i {
  position: absolute;
  display: block;
  width: 13px;
  height: 13px;
  border: 2px solid var(--cyan);
  opacity: 0.78;
}

.brand-mark i:nth-child(1) {
  transform: translate(-6px, -6px);
}

.brand-mark i:nth-child(2) {
  transform: translate(6px, 6px);
}

.brand-mark i:nth-child(3) {
  width: 6px;
  height: 6px;
  border: 0;
  background: var(--mint);
}

.brand > span:last-child {
  display: grid;
  gap: 0.06rem;
}

.brand strong {
  letter-spacing: 0.06em;
  font-size: 0.9rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.version-chip,
.panel-meta,
.status-pill,
.count-badge,
.summary-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #bbd1d9;
  white-space: nowrap;
}

.version-chip {
  gap: 0.45rem;
  padding: 0.42rem 0.72rem;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.version-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}

main {
  width: min(1500px, 94vw);
  margin: 0 auto;
}

.hero {
  max-width: 1000px;
  padding: 7.5rem 0 4.5rem;
}

.eyebrow,
.step-label,
.section-label {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.3rem;
}

.eyebrow span {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero h1 code {
  display: inline-block;
  padding: 0 0.12em;
  color: var(--cyan);
  background: linear-gradient(90deg, var(--cyan), #9df8ff 55%, var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: inherit;
  font-weight: inherit;
}

.hero > p {
  max-width: 850px;
  margin: 1.65rem 0 0;
  color: #9db4bd;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.6rem;
}

.hero-badges span {
  padding: 0.38rem 0.68rem;
  border: 1px solid rgba(66, 231, 245, 0.13);
  border-radius: 999px;
  color: #b7cbd2;
  background: rgba(66, 231, 245, 0.035);
  font-size: 0.76rem;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
  padding-bottom: 6rem;
}

.sidebar,
.content-panel,
.model-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(14, 30, 40, 0.93), rgba(9, 20, 28, 0.9));
  box-shadow: var(--shadow);
}

.sidebar {
  position: sticky;
  top: 92px;
  overflow: hidden;
}

.panel-heading,
.section-heading,
.model-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel-heading {
  padding: 1.35rem 1.35rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.panel-heading--wide {
  padding: 1.5rem 1.7rem 1.3rem;
}

.panel-heading h2,
.section-heading h2,
.model-heading h3 {
  margin: 0.2rem 0 0;
  letter-spacing: -0.025em;
}

.panel-heading h2,
.section-heading h2 {
  font-size: 1.2rem;
}

.panel-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(66, 231, 245, 0.055);
}

.panel-meta {
  padding: 0.35rem 0.65rem;
  font-family: var(--mono);
  font-size: 0.69rem;
}

.sidebar-section {
  display: grid;
  gap: 0.88rem;
  padding: 1.2rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.sidebar-section:last-of-type {
  border-bottom: 0;
}

.section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.field,
.compact-field,
.color-field {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

.field > span,
.compact-field > span,
.color-field > span,
.range-field > span {
  color: #c6d9df;
  font-size: 0.77rem;
  font-weight: 700;
}

.field small,
.range-field small {
  color: var(--muted-2);
  font-size: 0.68rem;
  line-height: 1.45;
}

.field--grow {
  flex: 1 1 180px;
}

input[type="text"],
textarea,
select {
  width: 100%;
  min-height: 42px;
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(152, 205, 225, 0.16);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: rgba(2, 9, 13, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  resize: vertical;
  min-height: 78px;
}

select {
  cursor: pointer;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
  border-color: rgba(66, 231, 245, 0.58);
  background: rgba(4, 15, 21, 0.75);
  box-shadow: 0 0 0 3px rgba(66, 231, 245, 0.09);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
  cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--cyan-2);
}

.radio-stack {
  display: grid;
  gap: 0.62rem;
}

.radio-card {
  position: relative;
  cursor: pointer;
}

.radio-card > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card__body {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem 0.82rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.radio-card__body strong {
  font-size: 0.78rem;
}

.radio-card__body small {
  color: var(--muted-2);
  font-size: 0.67rem;
  line-height: 1.45;
}

.radio-card > input:checked + .radio-card__body {
  border-color: rgba(66, 231, 245, 0.44);
  background: linear-gradient(145deg, rgba(66, 231, 245, 0.1), rgba(141, 124, 255, 0.045));
  box-shadow: inset 0 0 22px rgba(66, 231, 245, 0.035);
}

.radio-card:focus-within .radio-card__body {
  box-shadow: 0 0 0 3px rgba(66, 231, 245, 0.1);
}

.check-stack {
  display: grid;
  gap: 0.55rem;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #b9cdd4;
  cursor: pointer;
  font-size: 0.74rem;
  line-height: 1.35;
}

.check-row input {
  flex: 0 0 auto;
  margin-top: 0.12rem;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1.1rem 1.35rem 1.25rem;
  color: #8da6b0;
  background: rgba(66, 231, 245, 0.025);
  font-size: 0.69rem;
}

.privacy-note > span {
  color: var(--mint);
}

.privacy-note p {
  margin: 0;
}

.privacy-note strong {
  color: #cfe3e9;
}

button {
  border: 0;
}

.primary-button,
.secondary-button,
.ghost-button,
.small-button,
.text-button,
.icon-button,
.download-button {
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.primary-button,
.secondary-button,
.ghost-button,
.small-button {
  min-height: 40px;
  padding: 0.58rem 0.9rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.75rem;
}

.primary-button {
  color: #022028;
  background: linear-gradient(135deg, #75f4ff, #35dbe9 58%, #5cf0bf);
  box-shadow: 0 12px 28px rgba(37, 208, 225, 0.18);
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 15px 32px rgba(37, 208, 225, 0.25);
}

.secondary-button {
  border: 1px solid rgba(66, 231, 245, 0.24);
  color: #c9f8fc;
  background: rgba(66, 231, 245, 0.07);
}

.secondary-button:hover:not(:disabled),
.ghost-button:hover:not(:disabled),
.small-button:hover:not(:disabled) {
  border-color: rgba(66, 231, 245, 0.42);
  background: rgba(66, 231, 245, 0.105);
  transform: translateY(-1px);
}

.secondary-button--full {
  width: 100%;
}

.ghost-button,
.small-button {
  border: 1px solid var(--line);
  color: #adbec5;
  background: rgba(255, 255, 255, 0.025);
}

.text-button {
  padding: 0;
  color: var(--cyan);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 800;
}

.icon-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 1.12rem;
}

.danger-button:hover {
  border-color: rgba(255, 107, 125, 0.4);
  color: #ffd6dc;
  background: rgba(255, 107, 125, 0.09);
}

button:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(66, 231, 245, 0.18);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none !important;
}

.content-column {
  display: grid;
  gap: 1.35rem;
  min-width: 0;
}

.content-panel {
  overflow: hidden;
}

.drop-zone {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  min-height: 270px;
  margin: 1.35rem 1.7rem;
  padding: 2rem;
  border: 1px dashed rgba(66, 231, 245, 0.3);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(66, 231, 245, 0.045), rgba(141, 124, 255, 0.025)),
    rgba(2, 9, 13, 0.24);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: rgba(66, 231, 245, 0.7);
  background:
    linear-gradient(135deg, rgba(66, 231, 245, 0.1), rgba(141, 124, 255, 0.05)),
    rgba(2, 9, 13, 0.34);
}

.drop-zone.is-dragging {
  transform: scale(1.005);
}

.drop-visual {
  position: relative;
  display: grid;
  width: 130px;
  height: 130px;
  place-items: center;
  margin: 0 auto;
}

.drop-visual::before,
.drop-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.drop-visual::before {
  inset: 6px;
  border: 1px solid rgba(66, 231, 245, 0.16);
  animation: spin 13s linear infinite;
}

.drop-visual::after {
  inset: 24px;
  border: 1px dashed rgba(141, 124, 255, 0.22);
  animation: spin 8s linear infinite reverse;
}

.file-symbol {
  position: relative;
  z-index: 2;
  display: grid;
  width: 62px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(66, 231, 245, 0.45);
  border-radius: 10px 16px 10px 10px;
  color: var(--cyan);
  background: linear-gradient(145deg, rgba(66, 231, 245, 0.15), rgba(6, 23, 31, 0.9));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24), inset 0 0 26px rgba(66, 231, 245, 0.04);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.file-symbol::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 17px;
  height: 17px;
  border-left: 1px solid rgba(66, 231, 245, 0.4);
  border-bottom: 1px solid rgba(66, 231, 245, 0.4);
  background: #102934;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.cube {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(104, 240, 189, 0.6);
  background: rgba(104, 240, 189, 0.12);
  transform: rotate(30deg);
}

.cube--one {
  top: 20px;
  left: 19px;
}

.cube--two {
  right: 20px;
  bottom: 18px;
  width: 8px;
  height: 8px;
  border-color: rgba(141, 124, 255, 0.7);
}

.drop-copy h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.025em;
}

.drop-copy p {
  max-width: 680px;
  margin: 0.6rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.7;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.asset-area {
  margin: 0 1.7rem 1.55rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.asset-area__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.asset-area__heading strong {
  font-size: 0.8rem;
}

.asset-area__heading span {
  color: var(--muted-2);
  font-size: 0.68rem;
}

.asset-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 32px;
  align-items: center;
}

.asset-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 280px;
  padding: 0.28rem 0.35rem 0.28rem 0.3rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #afc4cc;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.68rem;
}

.asset-chip img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  image-rendering: pixelated;
  object-fit: contain;
  background: repeating-conic-gradient(#26353b 0 25%, #101a1f 0 50%) 50% / 8px 8px;
}

.asset-chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-chip button {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 5px;
  color: #9cb1b9;
  background: transparent;
  cursor: pointer;
}

.asset-chip button:hover {
  color: #ffd5dc;
  background: rgba(255, 107, 125, 0.1);
}

.muted {
  color: var(--muted-2);
  font-size: 0.7rem;
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 3.8rem 2rem;
  text-align: center;
}

.empty-state__icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  transform: rotate(45deg);
}

.empty-state__icon span {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(66, 231, 245, 0.42);
  transform: rotate(-45deg);
}

.empty-state h2 {
  margin: 0;
  font-size: 1.2rem;
}

.empty-state p {
  max-width: 720px;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.models-section {
  display: grid;
  gap: 1rem;
}

.section-heading {
  align-items: end;
  padding: 0.2rem 0.3rem;
}

.section-heading > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted-2);
  font-size: 0.72rem;
  text-align: right;
}

.count-badge {
  min-width: 28px;
  height: 26px;
  margin-left: 0.35rem;
  padding: 0 0.5rem;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.72rem;
  vertical-align: middle;
}

.models-container {
  display: grid;
  gap: 1rem;
}

.model-card {
  overflow: hidden;
}

.model-card__header {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.model-number {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(66, 231, 245, 0.23);
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(66, 231, 245, 0.055);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
}

.model-heading {
  min-width: 0;
  flex: 1;
}

.model-heading h3 {
  overflow: hidden;
  color: #eaf8fb;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-heading p {
  margin: 0.2rem 0 0;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  padding: 0.32rem 0.58rem;
  font-size: 0.64rem;
  font-weight: 800;
}

.status-pill--success {
  border-color: rgba(99, 230, 173, 0.24);
  color: #a8f2d0;
  background: rgba(99, 230, 173, 0.06);
}

.status-pill--warning {
  border-color: rgba(255, 209, 102, 0.24);
  color: #ffe5a1;
  background: rgba(255, 209, 102, 0.06);
}

.status-pill--danger {
  border-color: rgba(255, 107, 125, 0.28);
  color: #ffc0c9;
  background: rgba(255, 107, 125, 0.07);
}

.model-card__body {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.field-grid {
  display: grid;
  gap: 0.85rem;
}

.field-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.range-field {
  align-content: start;
}

.range-field output {
  color: var(--cyan);
  font-family: var(--mono);
}

.model-section {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.08);
}

.model-section > summary,
.warning-box > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.model-section > summary {
  padding: 0.82rem 0.95rem;
  color: #d5e7ec;
  font-size: 0.78rem;
  font-weight: 800;
}

.model-section > summary::-webkit-details-marker,
.warning-box > summary::-webkit-details-marker {
  display: none;
}

.model-section > summary::before {
  content: "+";
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  margin-right: -0.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--cyan);
  font-family: var(--mono);
}

.model-section[open] > summary::before {
  content: "−";
}

.model-section > summary > span:first-of-type {
  flex: 1;
}

.summary-count {
  min-width: 26px;
  height: 22px;
  padding: 0 0.45rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.61rem;
}

.model-section__content {
  display: grid;
  gap: 1rem;
  padding: 0 0.95rem 0.95rem;
  border-top: 1px solid var(--line);
}

.texture-list {
  display: grid;
}

.texture-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(150px, 190px);
  gap: 0.75rem;
  align-items: center;
  padding: 0.82rem 0;
  border-bottom: 1px solid rgba(152, 205, 225, 0.09);
}

.texture-row:last-child {
  border-bottom: 0;
}

.texture-thumb {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: repeating-conic-gradient(#27373d 0 25%, #111b20 0 50%) 50% / 10px 10px;
}

.texture-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.texture-placeholder {
  color: var(--muted-2);
  font-size: 1.25rem;
}

.texture-info {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.texture-info strong {
  overflow: hidden;
  font-size: 0.77rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.texture-resource,
.mini-note {
  overflow: hidden;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.61rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.18rem;
  color: #a6bac1;
  font-size: 0.64rem;
}

.status-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-dot--embedded,
.status-dot--matched {
  color: var(--success);
}

.status-dot--external {
  color: var(--warning);
}

.status-dot--missing,
.status-dot--unsupported {
  color: var(--danger);
}

.compact-field select {
  min-height: 38px;
  font-size: 0.72rem;
}

.section-caption {
  padding-top: 0.2rem;
  border-top: 1px solid var(--line);
}

.section-caption h4 {
  margin: 0;
  font-size: 0.78rem;
}

.section-caption p {
  margin: 0.22rem 0 0;
  color: var(--muted-2);
  font-size: 0.65rem;
}

.tint-slots {
  display: grid;
  gap: 0.65rem;
}

.tint-slot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: end;
  padding: 0.72rem;
  border: 1px solid rgba(152, 205, 225, 0.11);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
}

.tint-index {
  display: grid;
  width: 36px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(66, 231, 245, 0.22);
  border-radius: 9px;
  color: var(--cyan);
  background: rgba(66, 231, 245, 0.045);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
}

.color-field {
  flex: 0 1 210px;
}

.color-controls {
  display: grid;
  grid-template-columns: 42px minmax(110px, 1fr);
  gap: 0.45rem;
}

input[type="color"] {
  width: 42px;
  height: 42px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(2, 9, 13, 0.54);
  cursor: pointer;
}

.color-decimal {
  display: grid;
  min-width: 82px;
  min-height: 42px;
  place-items: center;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #a9c3cc;
  background: rgba(0, 0, 0, 0.12);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.empty-inline {
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.012);
  font-size: 0.72rem;
  text-align: center;
}

.warning-box {
  border: 1px solid rgba(255, 209, 102, 0.2);
  border-radius: 11px;
  color: #d9c995;
  background: rgba(255, 209, 102, 0.035);
}

.warning-box > summary {
  padding: 0.7rem 0.82rem;
  font-size: 0.69rem;
  font-weight: 800;
}

.warning-box ul {
  margin: 0;
  padding: 0 1rem 0.85rem 2rem;
  color: #b8aa7d;
  font-size: 0.66rem;
}

.warning-box li + li {
  margin-top: 0.28rem;
}

.commands-list {
  display: grid;
  gap: 0.8rem;
  padding: 1.25rem 1.7rem 1.55rem;
}

.command-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(2, 9, 13, 0.34);
}

.command-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.68rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.command-card header strong {
  font-size: 0.75rem;
}

.command-card code {
  display: block;
  overflow-x: auto;
  padding: 0.9rem;
  color: #d7f8fb;
  font-size: 0.72rem;
  line-height: 1.65;
  white-space: pre;
  scrollbar-width: thin;
}

.command-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  padding: 0.68rem 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.62rem;
}

.command-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
}

.command-legend i {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  background: var(--swatch, white);
  box-shadow: 0 0 10px color-mix(in srgb, var(--swatch, white) 45%, transparent);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 1.2rem 1.7rem 0;
}

.summary-item {
  display: grid;
  gap: 0.28rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
}

.summary-item span {
  color: var(--muted-2);
  font-size: 0.64rem;
}

.summary-item strong {
  overflow: hidden;
  color: #d9edf2;
  font-family: var(--mono);
  font-size: 0.85rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.export-state {
  display: grid;
  gap: 0.2rem;
  margin: 0.9rem 1.7rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
}

.export-state strong {
  font-size: 0.76rem;
}

.export-state span {
  color: var(--muted);
  font-size: 0.68rem;
}

.export-state--success {
  border-color: rgba(99, 230, 173, 0.22);
  background: rgba(99, 230, 173, 0.04);
}

.export-state--warning {
  border-color: rgba(255, 209, 102, 0.22);
  background: rgba(255, 209, 102, 0.04);
}

.export-state--danger {
  border-color: rgba(255, 107, 125, 0.24);
  background: rgba(255, 107, 125, 0.045);
}

.download-button {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  width: calc(100% - 3.4rem);
  margin: 0 1.7rem 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(66, 231, 245, 0.45);
  border-radius: 13px;
  color: #052128;
  background: linear-gradient(135deg, #7af4ff 0%, #42e7f5 45%, #67f0bd 100%);
  box-shadow: 0 17px 35px rgba(25, 191, 207, 0.18);
  text-align: left;
}

.download-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(25, 191, 207, 0.26);
}

.download-button__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(0, 40, 48, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.34);
  font-size: 1.2rem;
  font-weight: 900;
}

.download-button > span:nth-child(2) {
  display: grid;
  gap: 0.08rem;
}

.download-button strong {
  font-size: 0.85rem;
}

.download-button small {
  color: rgba(3, 42, 50, 0.72);
  font-size: 0.65rem;
}

.download-button__arrow {
  font-size: 1.25rem;
}

.shortcut-note {
  margin: -0.25rem 0 1.2rem;
  color: var(--muted-2);
  font-size: 0.64rem;
  text-align: center;
}

.icon-state {
  min-height: 30px;
}

.icon-preview {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #afc4cc;
  font-size: 0.67rem;
}

.icon-preview img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  image-rendering: pixelated;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1500px, 94vw);
  margin: 0 auto;
  padding: 1.5rem 0 2.3rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.66rem;
}

footer span:first-child {
  color: #a9c4cc;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.toasts {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  display: grid;
  gap: 0.55rem;
  width: min(390px, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  padding: 0.78rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: #d8eaef;
  background: rgba(10, 24, 32, 0.96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: auto;
  font-size: 0.72rem;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast__icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 7px;
  font-family: var(--mono);
  font-weight: 900;
}

.toast--success .toast__icon {
  color: var(--success);
}

.toast--error .toast__icon {
  color: var(--danger);
}

.toast--info .toast__icon {
  color: var(--cyan);
}

.busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  color: #cfeaf0;
  background: rgba(2, 8, 11, 0.76);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.is-busy .busy-overlay {
  opacity: 1;
  visibility: visible;
}

.spinner {
  display: flex;
  gap: 0.45rem;
}

.spinner i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--cyan);
  animation: bounce 800ms ease-in-out infinite alternate;
}

.spinner i:nth-child(2) {
  animation-delay: 120ms;
  background: var(--mint);
}

.spinner i:nth-child(3) {
  animation-delay: 240ms;
  background: var(--violet);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  to { transform: translateY(-12px) rotate(45deg); opacity: 0.55; }
}

@media (max-width: 1120px) {
  .workspace {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .field-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .texture-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .texture-row .compact-field {
    grid-column: 2;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar {
    min-height: 68px;
    padding: 0 3vw;
  }

  .version-chip {
    display: none;
  }

  main {
    width: min(96vw, 100%);
  }

  .hero {
    padding: 5.2rem 0.5rem 3rem;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .sidebar-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .sidebar-section > .section-label,
  .sidebar-section > .section-label-row,
  .sidebar-section > .radio-stack,
  .sidebar-section > .check-stack,
  .sidebar-section > .icon-state,
  .sidebar-section > .secondary-button--full {
    grid-column: 1 / -1;
  }

  .privacy-note {
    grid-column: 1 / -1;
  }

  .drop-zone {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .button-row {
    justify-content: center;
  }

  .asset-area__heading,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading > p {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .topbar-actions .ghost-button {
    display: none;
  }

  .brand strong {
    font-size: 0.8rem;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 13vw, 3.5rem);
  }

  .hero-badges span {
    font-size: 0.68rem;
  }

  .sidebar-section {
    grid-template-columns: 1fr;
  }

  .panel-heading,
  .panel-heading--wide {
    padding: 1.1rem;
  }

  .drop-zone {
    margin: 1rem;
    padding: 1.4rem 1rem;
  }

  .asset-area,
  .commands-list {
    margin-left: 0;
    margin-right: 0;
  }

  .asset-area {
    padding: 1rem;
  }

  .field-grid--three {
    grid-template-columns: 1fr;
  }

  .model-card__header {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }

  .model-card__header .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .model-card__body {
    padding: 0.85rem;
  }

  .texture-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .texture-row .compact-field {
    grid-column: 1 / -1;
  }

  .tint-slot {
    align-items: stretch;
  }

  .tint-index {
    align-self: end;
  }

  .color-field {
    flex: 1 1 180px;
  }

  .color-decimal {
    flex: 1 0 80px;
    align-self: end;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
    padding: 1rem 1rem 0;
  }

  .export-state {
    margin: 0.8rem 1rem;
  }

  .download-button {
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    width: 94vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
