@font-face {
  font-family: Manrope;
  src: local("Manrope");
  font-display: swap;
}
:root {
  font-family: Manrope, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  color: #1d1d1f;
  background: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --primary: #0071e3;
  --primary-hover: #0062c4;
  --surface: #fff;
  --line: #e6e6e9;
  --soft: #f5f5f7;
  --curve: cubic-bezier(0.22, 1, 0.36, 1);
  --hairline: color-mix(in srgb, var(--text) 8%, transparent);
  --glass: color-mix(in srgb, var(--surface) 82%, transparent);
  --surface-secondary: color-mix(in srgb, var(--soft) 65%, var(--surface));
  --shadow: 0 2px 4px #1d1d1f04, 0 8px 24px #1d1d1f07;
  --shadow-raised: 0 4px 8px #1d1d1f05, 0 16px 40px #1d1d1f0d;
  --shadow-sheet: 0 8px 24px #1d1d1f0a, 0 32px 96px #1d1d1f21;
  --press-duration: 120ms;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
summary,
.select-control,
.file-button {
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.3s var(--curve),
    color 0.3s var(--curve),
    box-shadow 0.3s var(--curve),
    border-color 0.3s var(--curve),
    opacity 0.3s var(--curve),
    scale 0.3s var(--curve),
    transform 0.5s var(--curve);
}
button:not(:disabled):active,
summary:active,
.select-control:active,
.file-button:not(:has(input:disabled)):active,
.source-details a:active {
  scale: 0.98;
  transition-duration: var(--press-duration);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a:active {
  opacity: 0.64;
  transition-duration: var(--press-duration);
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #0071e380;
  outline-offset: 4px;
}
p {
  text-wrap: pretty;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
[hidden] {
  display: none !important;
}
i[data-icon] {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: currentColor;
  mask: var(--icon) center/contain no-repeat;
  -webkit-mask: var(--icon) center/contain no-repeat;
  vertical-align: middle;
}
button i {
  pointer-events: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -64px;
  left: 24px;
  background: var(--primary);
  color: #fff;
  padding: 12px;
  z-index: 100;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}

/* Navigation */
.sidebar {
  width: 216px;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 32px 16px 24px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  backdrop-filter: blur(24px);
  border-right: 1px solid var(--hairline);
  z-index: 15;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.brand img {
  border-radius: 8px;
}
.brand-en {
  display: block;
  font-size: 12px;
  line-height: 20px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.sidebar nav {
  margin-top: 48px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  min-height: 48px;
  border-radius: 12px;
  margin-bottom: 8px;
  text-align: left;
  font-size: 14px;
  line-height: 20px;
  color: #5f5f64;
}
.nav-item i {
  width: 20px;
  height: 20px;
}
.nav-item:hover {
  background: #efeff2;
  color: var(--text);
}
.nav-item.selected {
  background: var(--glass);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px #ffffffb3;
  color: var(--text);
  font-weight: 600;
}
.nav-item.selected i {
  color: var(--primary);
}
.nav-count {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
}
.sidebar-help {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 16px;
  color: var(--muted);
  font-size: 14px;
  border-radius: 8px;
}
.sidebar-help:hover {
  background: #efeff2;
  color: var(--primary);
}
.sidebar-help > i:last-child {
  margin-left: auto;
  width: 14px;
  height: 14px;
}
.sidebar-foot {
  font-size: 12px;
  line-height: 20px;
  color: #75757a;
  margin: 16px 16px 0;
}
.app-shell {
  margin-left: 216px;
}
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 40px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
}
.breadcrumb strong {
  font-weight: 500;
}
.top-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}
.mode-pill {
  font-size: 12px;
  line-height: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 9999px;
  background: #34a5710d;
  box-shadow: inset 0 0 0 1px #34a57114;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34a571;
  flex-shrink: 0;
}
.icon-button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
}
.icon-button:hover {
  background: #ededf0;
  color: var(--text);
}
.mobile-menu {
  display: none;
}
.top-actions > .icon-button {
  background: var(--surface-secondary);
}
.top-actions > .icon-button i {
  width: 18px;
  height: 18px;
}
main {
  max-width: 1560px;
  padding: 40px 40px 0;
  margin: auto;
  outline: none;
}

/* Intro and discovery */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 16px 0 40px;
  padding: 0 0 8px;
}
.eyebrow {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: 48px;
  line-height: 1;
  letter-spacing: -2px;
  font-weight: 600;
  margin: 0 0 16px;
  max-width: 680px;
  color: #1d1d1f;
}
.hero p {
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
  margin: 0;
  max-width: 680px;
}
.hero-start {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  line-height: 20px;
  color: var(--primary);
  padding: 12px 16px;
  border-radius: 9999px;
  background: var(--glass);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px #ffffffb3;
  white-space: nowrap;
}
.hero-start i {
  width: 16px;
  height: 16px;
}
.hero-start:hover {
  color: var(--primary-hover);
  transform: translateX(2px);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}
.section-heading h2 {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.section-heading h2 span {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  background: color-mix(in srgb, var(--text) 4%, transparent);
  border-radius: 9999px;
  padding: 4px 12px;
}
.section-heading p {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  margin: 8px 0 0;
}
.search-box {
  width: 320px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  color: var(--muted);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 2px #1d1d1f03;
  transition:
    background 0.3s var(--curve),
    box-shadow 0.3s var(--curve);
}
.search-box > i {
  width: 18px;
  height: 18px;
}
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
}
.search-box input::placeholder {
  color: #737378;
}
.search-box:focus-within {
  border-color: #0071e370;
  background: white;
  box-shadow: 0 0 0 3px #0071e314;
}
.search-box input:focus-visible {
  outline: 0;
}
.search-box kbd {
  font: inherit;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  color: #737378;
}
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 8px;
  border: 1px solid #ffffffb3;
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  box-shadow: 0 2px 8px #1d1d1f03;
}
.category-tabs {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  padding: 4px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--text) 3%, transparent);
}
.category-tab {
  font-size: 14px;
  line-height: 20px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  white-space: nowrap;
  color: #66666b;
  font-weight: 500;
}
.category-tab:hover {
  background: #e9e9ed;
  color: var(--text);
}
.category-tab.active {
  color: var(--text);
  background: var(--surface);
  font-weight: 600;
  box-shadow:
    0 2px 8px #1d1d1f0a,
    inset 0 0 0 1px #ffffffb3;
}
.catalog-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.select-control {
  display: flex;
  align-items: center;
  position: relative;
  color: var(--muted);
  border-radius: 8px;
}
.select-control:hover {
  background: #eaeaee;
}
.select-control select {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 12px 24px 12px 8px;
  min-height: 44px;
  font-size: 12px;
  line-height: 20px;
  color: inherit;
  cursor: pointer;
  min-width: 88px;
}
.select-control i {
  width: 12px;
  height: 12px;
  position: absolute;
  right: 8px;
  pointer-events: none;
}
.view-toggle {
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--text) 4%, transparent);
  padding: 4px;
  border-radius: 12px;
}
.view-toggle button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
}
.view-toggle i {
  width: 16px;
  height: 16px;
}
.view-toggle button.active {
  color: var(--text);
  background: white;
  box-shadow: 0 1px 4px #0000000d;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.scene-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  box-shadow:
    var(--shadow),
    inset 0 1px 0 #ffffffcc;
  transition:
    transform 0.5s var(--curve),
    box-shadow 0.3s var(--curve),
    border-color 0.3s var(--curve),
    background 0.3s var(--curve),
    scale 0.3s var(--curve);
}
.scene-card:focus-within {
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
  box-shadow: var(--shadow-raised);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.scene-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--scene-bg, #eaf2fe);
  color: var(--scene-color, #2671c9);
  box-shadow:
    inset 0 1px 0 #ffffffa3,
    0 2px 4px #1d1d1f03;
}
.scene-icon i {
  width: 28px;
  height: 28px;
}
.favorite-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #87878c;
  margin-right: -8px;
}
.favorite-button i {
  width: 20px;
  height: 20px;
}
.favorite-button:hover {
  background: #f5f5f7;
  color: #d3546a;
}
.favorite-button.active {
  color: #d3546a;
  background: #fff1f3;
}
.scene-card h3 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 16px 0 8px;
  min-height: 28px;
}
.scene-card h3 button {
  padding: 0;
  text-align: left;
  font: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}
.scene-card h3 button:hover {
  color: var(--primary);
}
.card-description {
  font-size: 14px;
  line-height: 24px;
  color: var(--muted);
  height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}
.card-category {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--scene-bg, var(--soft)) 60%, transparent);
}
.card-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  padding: 8px 16px;
  min-height: 44px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  background: #eef5ff;
  color: var(--primary);
  white-space: nowrap;
}
.card-launch i {
  width: 16px;
  height: 16px;
}
.card-launch:hover {
  background: var(--primary);
  color: white;
}
.catalog-grid.list-view {
  grid-template-columns: 1fr;
  gap: 12px;
}
.list-view .scene-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr 176px;
  grid-template-rows: auto auto;
  gap: 8px 24px;
  padding: 24px 80px 24px 24px;
  border-radius: 16px;
  align-items: center;
}
.list-view .card-top {
  grid-column: 1;
  grid-row: 1/3;
}
.list-view .favorite-button {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}
.list-view h3 {
  grid-column: 2;
  min-height: 0;
  margin: 0;
}
.list-view .card-description {
  grid-column: 2;
  height: auto;
  max-height: 48px;
}
.list-view .card-bottom {
  grid-column: 3;
  grid-row: 1/3;
  margin: 0;
  padding-top: 0;
}
.load-more-wrap {
  text-align: center;
  padding: 32px 0 8px;
}
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  padding: 12px 24px;
  min-height: 44px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  background: var(--surface-secondary);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px var(--hairline);
  color: #454549;
}
.secondary-button:hover {
  background: #dedee5;
  color: var(--text);
}
.secondary-button i {
  width: 16px;
  height: 16px;
}
.load-more-wrap p {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  margin: 12px 0 0;
}
.empty-state {
  grid-column: 1/-1;
  background: white;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 64px 24px;
  text-align: center;
}
.empty-state > i {
  width: 40px;
  height: 40px;
  color: #8a8a90;
  margin-bottom: 16px;
}
.empty-state h3 {
  font-size: 20px;
  line-height: 28px;
  color: var(--text);
  margin: 8px 0;
  font-weight: 600;
}
.empty-state p {
  font-size: 14px;
  line-height: 24px;
  color: var(--muted);
  margin-bottom: 24px;
}
.skeleton-card {
  height: 328px;
  background: #eaeaee;
  border-radius: 24px;
  animation: pulse 1.6s var(--curve) infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  margin-top: 32px;
  font-size: 12px;
  line-height: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
footer > div {
  display: flex;
  align-items: center;
  gap: 16px;
}
footer button {
  font-size: 12px;
  line-height: 20px;
  color: var(--muted);
  padding: 8px;
  min-height: 44px;
  border-radius: 8px;
}
footer button:hover {
  color: var(--primary);
}

/* Details and help */
dialog {
  color: var(--text);
  border: 1px solid #ffffffb3;
  border-radius: 24px;
  padding: 0;
  max-height: 90dvh;
  box-shadow:
    var(--shadow-sheet),
    inset 0 0 0 1px var(--hairline);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(24px);
}
dialog::backdrop {
  background: color-mix(in srgb, var(--soft) 48%, transparent);
  backdrop-filter: blur(16px) saturate(0.85);
}
dialog.is-opening {
  animation: sheet-in 0.5s var(--curve) both;
}
dialog.is-closing {
  animation: sheet-out 0.2s var(--curve) both;
  pointer-events: none;
}
dialog.is-opening::backdrop {
  animation: veil-in 0.5s var(--curve) both;
}
dialog.is-closing::backdrop {
  animation: veil-out 0.2s var(--curve) both;
}
@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes sheet-out {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
@keyframes veil-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes veil-out {
  to {
    opacity: 0;
  }
}
.detail-dialog {
  width: 680px;
  max-width: calc(100vw - 32px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 24px 32px 0;
}
.dialog-heading .eyebrow {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1px;
}
.dialog-heading .icon-button {
  background: color-mix(in srgb, var(--text) 5%, transparent);
}
.dialog-close {
  background: color-mix(in srgb, var(--text) 5%, transparent);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.detail-body {
  padding: 24px 32px 32px;
}
.detail-title {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}
.detail-title h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.detail-title p {
  font-size: 12px;
  line-height: 20px;
  color: var(--muted);
  margin: 0;
}
.detail-description {
  font-size: 14px;
  line-height: 24px;
  color: var(--muted);
  white-space: pre-line;
  max-height: 200px;
  overflow: auto;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px var(--hairline);
}
.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0;
  margin: 24px 0;
}
.detail-facts > div {
  padding: 16px;
  background: var(--surface-secondary);
  border: 1px solid var(--hairline);
  border-radius: 16px;
}
.detail-facts span {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  margin-bottom: 8px;
}
.detail-facts strong {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.detail-body h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  margin: 24px 0 12px;
}
.capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.capabilities span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--primary) 5%, var(--surface));
  color: #55555b;
  font-size: 12px;
  line-height: 16px;
  border-radius: 9999px;
}
.capabilities i {
  width: 16px;
  height: 16px;
  color: var(--primary);
}
.detail-section {
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.detail-section h3 {
  margin-top: 0;
}
.detail-note {
  font-size: 12px;
  line-height: 24px;
  color: var(--muted);
  padding: 4px 16px;
  background: var(--surface-secondary);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  margin-top: 24px;
}
.detail-note summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.detail-note summary::-webkit-details-marker {
  display: none;
}
.detail-note summary i,
.context-note summary > i:last-child {
  width: 16px;
  height: 16px;
  margin-left: auto;
  transition: transform 0.3s var(--curve);
}
.detail-note[open] summary i,
.context-note[open] summary > i:last-child {
  transform: rotate(180deg);
}
.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-bottom: 8px;
}
.detail-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  border-radius: 8px;
}
.detail-links i {
  width: 16px;
  height: 16px;
}
.detail-note a {
  color: var(--primary);
}
.detail-note a:hover {
  text-decoration: underline;
}
.detail-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  padding: 12px 24px;
  min-height: 44px;
  background: var(--primary);
  color: white;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  box-shadow:
    0 4px 12px #0071e31a,
    inset 0 1px 0 #ffffff26;
}
.primary-button:hover {
  background: var(--primary-hover);
}
.primary-button i {
  width: 16px;
  height: 16px;
}
.prompt-details {
  font-size: 14px;
  line-height: 20px;
  margin-top: 24px;
  background: var(--surface-secondary);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 4px 16px;
}
.prompt-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  min-height: 44px;
  color: #55555b;
  border-radius: 8px;
}
.prompt-origin {
  font-size: 12px;
  line-height: 20px;
  color: var(--muted);
}
.prompt-content {
  font-family: inherit;
  font-size: 12px;
  line-height: 20px;
  white-space: pre-wrap;
  background: var(--soft);
  border-radius: 12px;
  padding: 16px;
  max-height: 240px;
  overflow: auto;
  color: #55555b;
}
.text-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  font-size: 12px;
  line-height: 20px;
  color: var(--primary);
}
.text-button i {
  width: 16px;
  height: 16px;
}
.text-button:hover {
  color: var(--primary-hover);
}
.guide-dialog {
  width: 640px;
  max-width: calc(100vw - 32px);
}
#guide-content {
  padding: 16px 32px 32px;
}
#guide-content h2 {
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -1px;
  margin: 8px 0 24px;
  font-weight: 600;
}
#guide-content h3 {
  font-size: 16px;
  line-height: 24px;
  margin: 24px 0 8px;
  font-weight: 600;
}
#guide-content p,
#guide-content li {
  font-size: 14px;
  line-height: 24px;
  color: var(--muted);
}
#guide-content a {
  color: var(--primary);
}
.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.guide-steps > div {
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}
.guide-steps strong {
  font-size: 24px;
  line-height: 32px;
  color: #898990;
  font-weight: 400;
}
.guide-steps h3 {
  margin: 8px 0 !important;
  font-size: 14px !important;
  line-height: 20px !important;
}
.guide-steps p {
  font-size: 12px !important;
  line-height: 20px !important;
  margin: 0;
}

/* Conversation */
.chat-dialog {
  width: 1180px;
  height: 800px;
  max-width: calc(100vw - 48px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
}
.chat-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--hairline);
  background: var(--glass);
}
.chat-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.chat-heading > div {
  min-width: 0;
}
.chat-heading .scene-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.chat-heading .scene-icon i {
  width: 24px;
  height: 24px;
}
.chat-heading h2 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  margin: 0;
}
.chat-heading > div > span {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.chat-header-actions .mode-pill {
  margin-right: 16px;
}
.chat-layout {
  display: flex;
  height: calc(100% - 80px);
}
.chat-context {
  width: 248px;
  flex-shrink: 0;
  overflow: auto;
  background: color-mix(in srgb, var(--soft) 70%, transparent);
  padding: 16px;
}
.context-label {
  font-size: 12px;
  line-height: 20px;
  color: var(--muted);
  margin-bottom: 16px;
}
.chat-context h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  margin: 0 0 12px;
}
.chat-context p {
  font-size: 14px;
  line-height: 24px;
  color: var(--muted);
  margin: 0;
}
.context-card {
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.context-capabilities {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.context-capabilities li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: var(--surface-secondary);
  font-size: 14px;
  line-height: 20px;
  transition: background 0.2s var(--curve);
}
.context-capabilities i {
  width: 16px;
  height: 16px;
  color: var(--primary);
}
.context-note {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  padding: 4px 12px;
  background: var(--surface-secondary);
  border: 1px solid var(--hairline);
  border-radius: 16px;
}
.context-note summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
  font-weight: 500;
}
.context-note summary::-webkit-details-marker {
  display: none;
}
.context-note p {
  padding: 0 4px 12px;
}
.context-note i {
  width: 16px;
  height: 16px;
}
.conversation {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface-secondary);
}
.message-scroll {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}
.chat-welcome {
  max-width: 620px;
  margin: auto;
  padding: 48px 32px 24px;
  text-align: center;
}
.welcome-symbol {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--scene-bg, #edf5ff);
  color: var(--scene-color, var(--primary));
  box-shadow:
    inset 0 1px 0 #ffffffb3,
    var(--shadow);
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
}
.welcome-symbol i {
  width: 32px;
  height: 32px;
}
.chat-welcome h3 {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.5px;
  font-weight: 600;
  margin: 0 0 12px;
}
.chat-welcome > p {
  font-size: 14px;
  line-height: 24px;
  max-width: 440px;
  margin: 0 auto 24px;
  color: var(--muted);
}
.sample-label {
  font-size: 14px;
  line-height: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  text-align: left;
  margin: 24px 0 12px;
  color: var(--muted);
}
.sample-label i {
  width: 14px;
  height: 14px;
}
.sample-prompts {
  display: grid;
  gap: 12px;
}
.sample-prompts button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  min-height: 48px;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
  color: #55555b;
}
.sample-prompts button:hover {
  background: #eaf2fe;
  border-color: #d8e7fc;
  color: var(--primary);
}
.sample-prompts i {
  width: 16px;
  height: 16px;
}
.message {
  display: flex;
  gap: 12px;
  max-width: 800px;
  margin: 24px auto;
  padding: 0 32px;
}
.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: var(--scene-bg, #edf5ff);
  color: var(--scene-color, var(--primary));
  font-size: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 #ffffffb3,
    0 2px 4px #1d1d1f05;
}
.message-avatar i,
.message-avatar svg {
  width: 20px;
  height: 20px;
}
.message.user {
  flex-direction: row-reverse;
}
.message.user .message-avatar {
  background: #efeff2;
  color: #707077;
}
.message-content {
  max-width: calc(100% - 44px);
  min-width: 0;
  font-size: 16px;
  line-height: 24px;
  color: #46464b;
}
.message.assistant .message-content {
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: 4px 24px 24px 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.message.assistant > .message-avatar {
  margin-top: 24px;
}
.message-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.message.user .message-label {
  justify-content: flex-end;
}
.message-badge {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, transparent);
  border-radius: 9999px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}
.message-status {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 4px 8px;
  border-radius: 9999px;
  background: var(--surface-secondary);
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}
.message-text {
  overflow-wrap: anywhere;
}
.message-text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.message-sources:empty {
  display: none;
}
.source-details {
  margin-bottom: 16px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface-secondary);
}
.source-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  border-radius: 12px;
}
.source-details summary::-webkit-details-marker {
  display: none;
}
.source-details summary > i,
.source-details a > i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.source-details summary > i:last-child {
  margin-left: auto;
  transition: transform 0.3s var(--curve);
}
.source-details[open] summary > i:last-child {
  transform: rotate(180deg);
}
.source-details summary b {
  margin-left: 4px;
  color: var(--text);
  font-weight: 600;
}
.source-details ol {
  list-style: none;
  padding: 0 8px 8px;
  margin: 0;
}
.source-details a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  min-height: 44px;
}
.source-details a:hover {
  background: var(--soft);
}
.source-number {
  min-width: 16px;
  font-size: 12px;
  color: var(--muted);
}
.source-info {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.source-info strong {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text);
  overflow-wrap: anywhere;
}
.message.user .message-text {
  background: #edf4ff;
  padding: 12px 16px;
  white-space: pre-wrap;
  border-radius: 16px 4px 16px 16px;
  box-shadow: inset 0 0 0 1px #0071e30a;
}
.message-text h2,
.message-text h3,
.message-text h4 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--text);
}
.message-text p {
  margin: 0 0 8px;
  white-space: pre-wrap;
}
.message-text strong {
  font-weight: 600;
  color: var(--text);
}
.message-text ul,
.message-text ol {
  padding-left: 24px;
  margin: 8px 0;
}
.message-text table {
  display: block;
  overflow: auto;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface);
  font-size: 14px;
  line-height: 20px;
  margin: 16px 0;
}
.message-text td,
.message-text th {
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 8px 12px;
  text-align: left;
  white-space: nowrap;
}
.message-text th {
  background: var(--surface-secondary);
  font-weight: 600;
}
.message-text tbody tr:last-child td {
  border-bottom: 0;
}
.message-text tr,
.message-text li {
  transition: background 0.2s var(--curve);
}
.message-text code {
  font-family: inherit;
  background: #f1f1f4;
  padding: 2px 4px;
  border-radius: 4px;
}
.message-text hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}
.message-copy {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.message-copy i {
  width: 14px;
  height: 14px;
}
.message-copy:hover {
  color: var(--primary);
}
.message-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.message-retry {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--primary);
}
.message-retry i {
  width: 16px;
  height: 16px;
}
.message-retry:hover {
  color: var(--text);
}
.message-partial {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.streaming .message-text::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  margin-left: 4px;
  border-radius: 2px;
  vertical-align: middle;
  background: var(--primary);
  animation: pulse 1.6s var(--curve) infinite;
}
.reply-skeleton {
  width: 300px;
  max-width: 50vw;
}
.reply-skeleton span {
  display: block;
  height: 12px;
  border-radius: 4px;
  background: #ededf0;
  margin: 8px 0;
  animation: pulse 1.6s var(--curve) infinite;
}
.reply-skeleton span:nth-child(2) {
  width: 80%;
}
.reply-skeleton span:nth-child(3) {
  width: 58%;
}
.composer-area {
  padding: 16px 32px;
  background: color-mix(in srgb, var(--surface-secondary) 88%, transparent);
  backdrop-filter: blur(20px);
}
.composer-area form {
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 12px;
  background: var(--glass);
  box-shadow:
    var(--shadow-raised),
    inset 0 1px 0 #ffffffcc;
  transition:
    box-shadow 0.3s var(--curve),
    border-color 0.3s var(--curve);
}
.composer-area form:focus-within {
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
  box-shadow:
    var(--shadow-raised),
    0 0 0 3px #0071e30d;
}
.composer-area textarea {
  display: block;
  width: 100%;
  min-height: 64px;
  padding: 4px;
  border: 0;
  outline: none !important;
  background: none;
  resize: none;
  font-size: 14px;
  line-height: 24px;
  color: var(--text);
}
.composer-area textarea::placeholder {
  color: #79797f;
}
.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.composer-bottom > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.chat-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--muted);
  background: var(--surface);
}
.chat-option i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.chat-option .option-check {
  visibility: hidden;
}
.chat-option[aria-pressed="true"] {
  border-color: #b9d8fb;
  background: #edf4ff;
  color: var(--primary-hover);
  box-shadow:
    0 2px 4px #0071e308,
    inset 0 1px 0 #ffffff80;
}
.chat-option[aria-pressed="true"] .option-check {
  visibility: visible;
}
.chat-option:not(:disabled):hover {
  background: var(--soft);
}
.chat-option[aria-pressed="true"]:not(:disabled):hover {
  background: #e3efff;
}
.chat-option:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.chat-options-hint {
  margin: 8px 4px 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.file-button {
  position: relative;
  cursor: pointer;
}
.file-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-button:focus-within {
  outline: 3px solid #0071e380;
  outline-offset: 2px;
}
.file-button i {
  width: 20px;
  height: 20px;
}
.send-button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  box-shadow:
    0 4px 12px #0071e326,
    inset 0 1px 0 #ffffff33;
}
.send-button:hover {
  background: var(--primary-hover);
}
.send-button i {
  width: 20px;
  height: 20px;
}
.composer-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.inline-error {
  font-size: 12px;
  line-height: 20px;
  color: #a45128;
  background: #fff3e9;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font-size: 12px;
  line-height: 20px;
  padding: 8px 12px;
  border: 1px solid #d6e7fc;
  background: #f0f6ff;
  border-radius: 8px;
  margin-bottom: 8px;
  color: #3b6c9f;
}
.attachment span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment i {
  width: 16px;
  height: 16px;
}
.attachment button {
  display: grid;
  place-items: center;
  padding: 4px;
}
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: #272727e8;
  backdrop-filter: blur(16px);
  color: white;
  border-radius: 9999px;
  padding: 12px 24px;
  box-shadow: 0 8px 24px #0000001a;
  max-width: calc(100vw - 32px);
  font-size: 14px;
  line-height: 20px;
  z-index: 100;
}

/* Material and pointer feedback share the same restrained elevation scale. */
@media (hover: hover) {
  .scene-card:hover {
    transform: translateY(-4px);
    scale: 1.01;
    box-shadow:
      var(--shadow-raised),
      inset 0 1px 0 #ffffffcc;
    border-color: color-mix(in srgb, var(--text) 10%, transparent);
  }
  .scene-card:has(button:not(:disabled):active) {
    scale: 0.995;
    transform: translateY(0);
    transition-duration: var(--press-duration);
  }
  .list-view .scene-card:hover {
    transform: translateY(-2px);
    scale: 1.002;
    background: color-mix(in srgb, var(--primary) 2%, var(--surface));
  }
  .list-view .scene-card:has(button:not(:disabled):active) {
    scale: 0.995;
    transform: translateY(0);
    transition-duration: var(--press-duration);
  }
  :where(
      .primary-button,
      .secondary-button,
      .card-launch,
      .hero-start,
      .send-button,
      .sample-prompts button
    ):not(:disabled):hover {
    scale: 1.01;
    box-shadow: var(--shadow-raised);
  }
  :where(
      .nav-item,
      .category-tab,
      .icon-button,
      .chat-option,
      .favorite-button
    ):not(:disabled):hover {
    scale: 1.01;
  }
  .view-toggle button:not(:disabled):hover,
  .message-copy:hover,
  .message-retry:hover,
  footer button:hover,
  .text-button:hover,
  .source-details summary:hover,
  .prompt-details summary:hover,
  .context-note summary:hover,
  .detail-note summary:hover {
    background: color-mix(in srgb, var(--primary) 5%, transparent);
    color: var(--primary-hover);
  }
  .search-box:hover {
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .message-text tbody tr:hover,
  .message-text li:hover,
  .context-capabilities li:hover {
    background: color-mix(in srgb, var(--primary) 4%, transparent);
  }
  .message-text a:hover,
  .detail-links a:hover,
  .brand:hover {
    opacity: 0.76;
  }
}

/* Adaptive layout */
@media (min-width: 1600px) {
  main {
    padding: 48px 64px 0;
  }
  .hero {
    margin-bottom: 48px;
  }
  .catalog-grid {
    gap: 24px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 192px;
  }
  .app-shell {
    margin-left: 192px;
  }
  .topbar {
    padding: 0 32px;
  }
  main {
    padding: 32px 32px 0;
  }
  .hero h1 {
    font-size: 36px;
    line-height: 40px;
    letter-spacing: -1px;
  }
  .hero {
    margin-bottom: 32px;
  }
  .hero-start {
    font-size: 12px;
  }
  .filter-bar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  .catalog-controls {
    margin-left: auto;
  }
  .category-tab {
    font-size: 12px;
    padding: 8px 12px;
  }
  .catalog-grid {
    gap: 16px;
  }
  .scene-card {
    padding: 24px;
  }
  .scene-card h3 {
    font-size: 18px;
  }
  .card-category {
    font-size: 12px;
  }
  .card-launch {
    padding: 8px 12px;
  }
  .search-box {
    width: 280px;
  }
  .composer-foot > span:last-child {
    display: none;
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 184px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .app-shell {
    margin-left: 184px;
  }
  .brand {
    padding: 0 8px;
  }
  .nav-item {
    padding: 12px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    display: block;
  }
  .hero-start {
    margin-top: 12px;
    font-size: 14px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .section-heading {
    gap: 16px;
  }
  .section-heading h2 {
    font-size: 20px;
    line-height: 28px;
  }
  .search-box {
    width: 240px;
  }
  .search-box kbd {
    display: none;
  }
  .category-tabs {
    gap: 4px;
  }
  .category-tab {
    font-size: 12px;
    padding: 8px 12px;
  }
  .filter-bar {
    gap: 8px;
  }
  .catalog-controls {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }
  .list-view .scene-card {
    grid-template-columns: 56px 1fr 104px;
    gap: 8px 16px;
  }
  .list-view .card-category {
    display: none;
  }
  .chat-context {
    width: 216px;
    padding: 16px;
  }
  .chat-dialog {
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
  }
  footer > div > span {
    display: none;
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: 248px;
    transform: translateX(-100%);
    transition: transform 0.5s var(--curve);
    padding: 32px 16px 24px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-scrim {
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, var(--soft) 48%, transparent);
    backdrop-filter: blur(16px);
    z-index: 14;
  }
  .app-shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-grid;
  }
  .topbar {
    height: 64px;
    padding: 0 16px;
  }
  .breadcrumb {
    gap: 8px;
  }
  .top-actions {
    gap: 8px;
  }
  .top-actions > .icon-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: none;
  }
  .mode-pill {
    font-size: 12px;
  }
  .brand {
    padding: 0 12px;
  }
  .sidebar nav {
    margin-top: 40px;
  }
  .nav-item {
    padding: 12px 16px;
  }
  .topbar .breadcrumb strong {
    font-size: 14px;
  }
  main {
    padding: 32px 24px 0;
  }
  .hero {
    margin: 0 0 32px;
  }
  .eyebrow {
    font-size: 12px;
    line-height: 16px;
    margin-bottom: 12px;
  }
  .hero h1 {
    font-size: 30px;
    line-height: 36px;
    letter-spacing: -1px;
    margin-bottom: 12px;
  }
  .hero p {
    font-size: 14px;
    line-height: 24px;
    max-width: 320px;
  }
  .hero-start {
    font-size: 14px;
    min-height: 44px;
    margin-top: 8px;
  }
  .section-heading {
    display: block;
    margin-bottom: 16px;
  }
  .section-heading h2 {
    font-size: 24px;
    line-height: 32px;
  }
  .section-heading p {
    font-size: 14px;
    line-height: 20px;
  }
  .search-box {
    width: 100%;
    margin-top: 16px;
    height: 48px;
    border-radius: 12px;
  }
  .category-tabs {
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding: 4px;
    scrollbar-width: none;
  }
  .category-tabs::-webkit-scrollbar {
    display: none;
  }
  .category-tab {
    font-size: 12px;
    padding: 8px 12px;
    min-height: 44px;
  }
  .filter-bar {
    display: block;
    margin-bottom: 16px;
    border-radius: 16px;
  }
  .catalog-controls {
    margin-top: 8px;
    justify-content: space-between;
    gap: 8px;
  }
  .select-control select {
    font-size: 12px;
    min-width: 96px;
  }
  .view-toggle {
    margin-left: auto;
  }
  .view-toggle button {
    width: 44px;
    height: 44px;
  }
  .catalog-grid {
    gap: 16px;
  }
  .scene-card {
    padding: 24px;
    border-radius: 24px;
  }
  .scene-card h3 {
    font-size: 18px;
    line-height: 28px;
    min-height: 28px;
  }
  .card-description {
    font-size: 14px;
    line-height: 24px;
  }
  .scene-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .scene-icon i {
    width: 26px;
    height: 26px;
  }
  .favorite-button {
    margin-right: -8px;
  }
  .card-bottom {
    gap: 8px;
  }
  .card-category {
    font-size: 12px;
  }
  .card-launch {
    font-size: 14px;
    padding: 8px 12px;
  }
  .list-view .scene-card {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto auto;
    padding: 24px 64px 24px 16px;
    gap: 8px 12px;
  }
  .list-view .card-top {
    grid-row: 1/3;
  }
  .list-view h3 {
    grid-column: 2;
    min-height: 0;
    font-size: 16px;
    line-height: 24px;
  }
  .list-view .card-description {
    grid-column: 2;
    max-height: 48px;
  }
  .list-view .card-bottom {
    grid-column: 2;
    grid-row: 3;
    justify-content: flex-start;
  }
  .list-view .favorite-button {
    top: 24px;
    right: 12px;
    transform: none;
  }
  .list-view .card-launch {
    min-height: 44px;
  }
  .load-more-wrap {
    padding-top: 24px;
  }
  footer {
    flex-wrap: wrap;
    margin-top: 24px;
    padding: 24px 0;
    gap: 12px;
  }
  footer > div {
    gap: 16px;
  }
  .chat-dialog {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .chat-header {
    height: 72px;
    padding: 12px;
    gap: 8px;
  }
  .chat-heading {
    gap: 8px;
  }
  .chat-heading > .scene-icon {
    display: none;
  }
  .chat-heading h2 {
    font-size: 16px;
    line-height: 24px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .chat-heading > div > span {
    font-size: 12px;
    line-height: 16px;
  }
  .chat-header-actions {
    gap: 0;
  }
  .chat-header-actions .mode-pill {
    display: none;
  }
  .chat-header-actions > .icon-button,
  .chat-heading > .icon-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
  .chat-layout {
    height: calc(100% - 72px);
  }
  .chat-context {
    display: none;
  }
  .chat-welcome {
    padding: 40px 24px 24px;
  }
  .chat-welcome h3 {
    font-size: 24px;
    line-height: 32px;
  }
  .chat-welcome > p {
    font-size: 14px;
    line-height: 24px;
  }
  .message {
    padding: 0 16px;
    margin: 24px 0;
    gap: 8px;
  }
  .message-avatar {
    width: 32px;
    height: 32px;
  }
  .composer-area {
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  }
  .composer-area textarea {
    min-height: 64px;
  }
  .composer-foot {
    font-size: 12px;
    line-height: 20px;
    justify-content: center;
    margin-top: 8px;
  }
  .chat-option {
    font-size: 12px;
    line-height: 16px;
    padding: 8px;
    gap: 4px;
  }
  .composer-bottom > .composer-tools {
    gap: 4px;
    flex-wrap: wrap;
  }
  .chat-option .option-check {
    width: 12px;
    height: 12px;
  }
  .message-content {
    max-width: calc(100% - 40px);
    font-size: 14px;
    line-height: 24px;
  }
  .message.assistant .message-content {
    padding: 16px;
    border-radius: 4px 16px 16px 16px;
  }
  .message.assistant > .message-avatar {
    margin-top: 16px;
  }
  .send-button {
    width: 44px;
    height: 44px;
  }
  .detail-body {
    padding: 24px;
  }
  .dialog-heading {
    padding: 16px 24px 0;
  }
  .detail-title {
    gap: 12px;
    align-items: flex-start;
  }
  .detail-title h2 {
    font-size: 20px;
    line-height: 28px;
  }
  .detail-facts {
    gap: 8px;
    padding: 0;
  }
  .detail-facts > div {
    padding: 12px;
  }
  .detail-facts span {
    font-size: 12px;
    line-height: 20px;
  }
  .detail-facts strong {
    font-size: 12px;
    line-height: 20px;
  }
  .detail-actions {
    flex-wrap: wrap;
  }
  .detail-actions > button {
    flex: 1;
    white-space: nowrap;
    font-size: 12px;
    padding: 12px 16px;
  }
  .detail-note {
    line-height: 24px;
  }
  .guide-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .guide-steps > div {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 0 12px;
  }
  .guide-steps strong {
    grid-row: 1/3;
    align-self: center;
  }
  .guide-steps h3 {
    margin: 0 0 4px !important;
  }
  .guide-steps p {
    grid-column: 2;
  }
  #guide-content {
    padding: 16px 24px 24px;
  }
  #guide-content h2 {
    font-size: 24px;
    line-height: 32px;
  }
}
@media (max-width: 560px) {
  .catalog-controls {
    flex-wrap: wrap;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 30px;
    line-height: 36px;
    letter-spacing: -1px;
  }
  .scene-card h3 {
    min-height: 0;
    margin-top: 16px;
  }
  .card-description {
    margin-top: 4px;
  }
  .scene-card {
    padding: 24px;
  }
  .card-bottom {
    margin-top: auto;
  }
  .card-category {
    font-size: 12px;
  }
  .scene-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }
  .scene-icon i {
    width: 28px;
    height: 28px;
  }
  .list-view .scene-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .list-view .scene-icon i {
    width: 24px;
    height: 24px;
  }
  .category-tab {
    padding: 8px;
  }
  .toast {
    font-size: 12px;
    line-height: 20px;
  }
  .empty-state {
    padding: 40px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
    scale: 1 !important;
  }
  .scene-card:hover,
  .scene-card:has(button:not(:disabled):active),
  .list-view .scene-card:has(button:not(:disabled):active),
  .list-view .scene-card:hover,
  .hero-start:hover {
    transform: none;
  }
}
