:root {
  color-scheme: light;
  --page: #f5f6fa;
  --panel: #fff;
  --ink: #171929;
  --muted: #565d73;
  --line: #e2e5ef;
  --faint: #f0f1f7;
  --primary: #5348d7;
  --primary-dark: #4437c5;
  --selected: #eeeaff;
  --selected-text: #4433b6;
  --green: #166d54;
  --radius: 15px;
  --shadow: 0 10px 32px #1822390e;
  --header: 65px;
  --rail: 81px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--page);
  font-size: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; line-height: 1.55; }
h1, h2, h3, p, dl, ol { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
textarea { resize: vertical; }
a, button, input, textarea, select, summary { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--primary); }
[hidden] { display: none !important; }
main:focus { outline: none; }
img, video { max-width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 9; border: 0; padding: 9px 14px; background: var(--panel); }
.notice { padding: 20px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.spaced { margin-top: 20px; }

.topbar { position: sticky; top: 0; z-index: 5; height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 max(24px, 3vw); background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; font-size: 21px; font-weight: 760; letter-spacing: -.035em; line-height: 1.1; }
.brand-tail { margin-left: 9px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.brand-mark { width: 29px; height: 29px; background: linear-gradient(155deg, #7a67f3, #4836d0); border-radius: 9px; display: inline-flex; align-items: center; gap: 3px; justify-content: center; box-shadow: 0 3px 9px #4e3fcb2b; }
.brand-mark i { width: 3px; border-radius: 5px; height: 9px; background: #fff; transform: rotate(31deg); }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 12px; }
.topnav { display: flex; align-items: center; height: 100%; gap: clamp(16px, 2.5vw, 38px); }
.topnav a { color: #42465b; font-size: 14px; font-weight: 600; line-height: calc(var(--header) - 3px); border-bottom: 3px solid transparent; white-space: nowrap; }
.topnav a:hover { color: var(--primary); }
.topnav [aria-current="page"] { border-bottom-color: var(--primary); color: var(--primary-dark); }
.header-actions { display: flex; align-items: center; gap: 13px; white-space: nowrap; }
.mobile-settings { display: none; }
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: calc(100vh - var(--header)); }
.rail { align-self: start; position: sticky; top: var(--header); height: calc(100dvh - var(--header)); min-height: 520px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 15px; padding: 15px 8px; border-right: 1px solid var(--line); background: #fafbfe; }
.rail nav { display: grid; width: 100%; gap: 4px; }
.rail a { display: grid; place-items: center; color: #4d536a; font-size: 12px; font-weight: 600; gap: 2px; padding: 6px 3px; border-radius: 9px; text-align: center; }
.rail a > span { display: grid; min-height: 24px; place-items: center; font-size: 19px; line-height: 1.25; }
.rail a:hover, .rail [aria-current="page"] { background: var(--selected); color: var(--selected-text); }
.rail .rail-bottom { width: 38px; height: 38px; font-size: 20px; }
.main { width: 100%; min-width: 0; max-width: 1580px; margin: 0 auto; padding: 27px clamp(18px, 2.7vw, 42px) 46px; }
.main-home { padding-top: 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 7px 13px; border: 1px solid #dce0ec; border-radius: 9px; white-space: nowrap; color: #32364b; background: #fff; font-size: 14px; font-weight: 640; line-height: 1.35; cursor: pointer; }
.btn:hover { border-color: #b7b0e9; background: #f8f7ff; }
.btn:disabled { opacity: .55; cursor: wait; }
.primary { color: #fff; background: var(--primary); border-color: var(--primary); }
.primary:hover { color: #fff; background: var(--primary-dark); border-color: var(--primary-dark); }
.subtle { background: var(--faint); border-color: transparent; }
.text-link, .table-link { color: var(--primary-dark); font-size: 14px; font-weight: 650; }
.text-link:is(button) { background: transparent; border: 0; padding: 3px 0; }
.text-link:hover, .table-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.actions, .tags { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.eyebrow { font-size: 13px; letter-spacing: .07em; font-weight: 660; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 19px; }
.page-head h1 { font-size: clamp(28px, 4vw, 39px); line-height: 1.18; letter-spacing: -.035em; }
.page-head .subtitle { color: var(--muted); font-size: 15px; margin-top: 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 14px; margin-bottom: 13px; }
.section-head h2 { font-size: 20px; line-height: 1.35; letter-spacing: -.025em; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.prose-panel { padding: 18px; }
.prose-panel h2, .detail-aside h2, .order-detail h2, .studio-settings h2 { font-size: 18px; line-height: 1.32; }
.prose-panel > p { margin: 9px 0 13px; }
.badge { display: inline-block; line-height: 1.3; padding: 4px 7px; border-radius: 6px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.badge-neutral { color: #525c6e; background: #edf0f6; }
.badge-green { color: #196446; background: #e3f7ec; }
.badge-violet { color: #4336a0; background: #eeeaff; }
.badge-red { color: #9a3341; background: #fbe8ed; }

.home-heroes { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(248px, 1fr); gap: 15px; }
.hero, .hero-side { display: grid; overflow: hidden; position: relative; isolation: isolate; color: #fff; border-radius: 17px; min-height: clamp(315px, 25vw, 368px); background: #0d0e2c; }
.hero { --hero-image-position: 61% center; align-items: center; padding: clamp(26px, 4.5vw, 64px); background-image: url("assets/hero-prism.jpg"); background-position: var(--hero-image-position); background-size: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, #100e2dc9 1%, #100e2d58 43%, #100e2d00 79%); }
.hero-motion, .studio-motion { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero-motion { object-position: var(--hero-image-position); }
.hero-motion-toggle { right: 14px; }
.hero .eyebrow { color: #e4dcff; }
.hero h1 { color: #fff; font-size: clamp(41px, 4.3vw, 68px); font-weight: 770; letter-spacing: -.055em; line-height: 1.09; margin: 8px 0 11px; }
.hero-summary { color: #ecebff; max-width: 355px; font-size: 15px; line-height: 1.66; }
.hero .actions { margin-top: 20px; }
.hero-primary { color: #fff; background: #6756ee; border-color: #8a78ff; }
.hero-primary:hover { color: #fff; background: #5040ce; border-color: #a999ff; }
.hero-secondary { color: #fff; background: #1a163b67; border-color: #a6a2d189; backdrop-filter: blur(8px); }
.hero-secondary:hover { color: #fff; background: #342d69a0; border-color: #d1cafd; }
.hero-side { align-items: end; }
.hero-side > .cover { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero-side::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #080820e9, #100d2d16 80%); }
.hero-side-body { padding: 26px; }
.hero-side-body .eyebrow { color: #d7d4ff; }
.hero-side-body h2 { margin: 3px 0 11px; font-size: clamp(23px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.04em; }
.cover { aspect-ratio: 4 / 3; background: #e6e8f2 center / cover no-repeat; }
.cover-video { background-image: url("assets/watch-poster.jpg"); }
.scene-cover { display: block; width: 100%; height: auto; object-fit: cover; }
.home-section { margin-top: 24px; }
.model-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.mini-model { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.mini-model:hover { border-color: #b6aaef; }
.mini-model > span:nth-child(2) { min-width: 0; }
.mini-model strong, .mini-model small, .cap-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-model strong { font-size: 14px; line-height: 1.35; }
.mini-model small, .cap-card small { color: var(--muted); font-size: 12px; }
.model-mark, .cap-icon { display: inline-grid; width: 43px; height: 43px; place-items: center; flex: none; border-radius: 10px; }
.cap-icon { font-weight: 770; font-size: 19px; }
.model-mark { border: 1px solid var(--line); background: var(--panel); }
.model-mark img { display: block; width: 28px; height: 28px; object-fit: contain; }
.model-mark.small { width: 33px; height: 33px; border-radius: 8px; }
.model-mark.small img { width: 22px; height: 22px; }
.tone-lavender { color: #5135a5; background: #eee8ff; }
.tone-blue { color: #215593; background: #e2efff; }
.tone-violet { color: #4c38b8; background: #e9e5ff; }
.tone-ink { color: #282d57; background: #e9eaf4; }
.tone-rose { color: #a23371; background: #fbe9f3; }
.tone-mint { color: #14674d; background: #e2f6ee; }
.tone-sand { color: #805326; background: #f7eadb; }
.feature-grid, .cap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.feature-card { display: block; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .14s, box-shadow .14s; }
.feature-card:hover, .scene-card:hover { border-color: #b6aaef; box-shadow: var(--shadow); }
.feature-card .cover { aspect-ratio: 1.65; }
.feature-body { padding: 11px 13px; }
.feature-body span { color: var(--muted); font-size: 12px; }
.feature-body h3 { font-size: 15px; line-height: 1.4; font-weight: 680; }

.workspace-start { padding: 19px; display: grid; gap: 9px; }
.workspace-start > label, .composer > label { font-weight: 650; }
.workspace-actions { display: flex; align-items: end; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.workspace-actions .field { grid-template-columns: auto 125px; align-items: center; }
.cap-card { display: flex; align-items: center; gap: 11px; padding: 13px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cap-card:hover { border-color: #b6aaef; }
.cap-card > span:nth-child(2) { min-width: 0; }
.cap-card strong { display: block; font-size: 15px; }

.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.pills a { padding: 7px 11px; color: #414760; border-radius: 8px; font-size: 14px; font-weight: 600; }
.pills a:hover, .pills [aria-current="page"] { color: var(--selected-text); background: var(--selected); }
.filter-line { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 14px; margin-bottom: 14px; }
.quick-search, .field-row { display: flex; gap: 8px; align-items: center; }
.quick-search input { width: min(100%, 230px); }
.scene-filter { margin-bottom: 5px; }
.result-count { margin: 9px 0; color: var(--muted); font-size: 14px; }
.field { display: grid; gap: 4px; align-content: start; font-size: 14px; min-width: 0; }
.field > span { font-weight: 630; }
input:not([type="file"]), textarea, select { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid #d9deeb; border-radius: 8px; background: #fff; font-size: 14px; }
select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 49%, #555b72 50%), linear-gradient(135deg, #555b72 50%, transparent 51%); background-position: calc(100% - 14px) 53%, calc(100% - 9px) 53%; background-size: 5px 5px; background-repeat: no-repeat; }
input::placeholder, textarea::placeholder { color: #686e82; }
.filter-form { display: flex; align-items: end; flex-wrap: wrap; gap: 9px; padding: 12px; margin: 12px 0; }
.filter-form .field { min-width: 125px; }
.filter-form .field:has(input:not([type="hidden"])) { flex: 1 1 180px; }
.filter-form .text-link { align-self: center; padding-inline: 7px; }
.model-grid, .scene-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.model-card { display: grid; gap: 10px; justify-items: start; padding: 17px; }
.model-card h2 { font-size: 19px; line-height: 1.3; }
.model-card p { color: var(--muted); font-size: 14px; }
.model-card-top { width: 100%; display: flex; align-items: center; gap: 9px; }
.scene-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.scene-card { display: flex; flex-direction: column; overflow: hidden; }
.scene-card .cover { aspect-ratio: 1.9; }
.scene-body { padding: 12px; display: grid; gap: 4px; flex: 1; }
.scene-body h2 { font-size: 16px; line-height: 1.4; }
.scene-body p, .scene-body > span { font-size: 13px; color: var(--muted); }
.scene-body .scene-model { margin-top: 6px; color: var(--primary-dark); font-weight: 640; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 9px; }
.breadcrumbs a:hover { color: var(--primary); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(210px, 1fr); gap: 13px; }
.detail-aside { overflow: hidden; }
.detail-aside > div:not(.cover) { padding: 17px; }
.detail-aside .cover { aspect-ratio: 2; }
.detail-aside p { margin: 5px 0; color: var(--muted); }
.steps { display: grid; gap: 13px; margin: 12px 0; }
.steps > div { display: grid; grid-template-columns: minmax(65px, .3fr) minmax(0, 1fr); align-items: start; gap: 7px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.steps dt { font-weight: 650; }
.steps dd { margin: 0; color: #3c4259; overflow-wrap: anywhere; }
.inline-notice { background: #f4f1ff; padding: 8px; border-radius: 7px; color: #473597; }

.studio { display: grid; grid-template-columns: minmax(193px, 235px) minmax(0, 1fr); gap: 13px; margin-top: 12px; }
.studio-settings { padding: 15px; display: grid; align-content: start; gap: 13px; }
.studio-settings-fields { display: grid; gap: 13px; }
.studio-settings-toggle { display: none; }
.template { display: grid; gap: 4px; color: var(--muted); font-size: 13px; }
.template-link { color: var(--primary-dark); background: var(--selected); font-weight: 620; padding: 7px 8px; border-radius: 6px; }
.template-link:hover { background: #e6dfff; }
.form-settings > summary { color: #343850; font-size: 14px; font-weight: 650; }
.field-stack { display: grid; gap: 8px; margin-top: 8px; }
.studio-settings .muted { font-size: 13px; }
.studio-content { display: flex; flex-direction: column; overflow: hidden; min-height: 530px; }
.studio-result { min-width: 0; flex: 1; }
.studio-empty { min-height: 335px; display: grid; place-items: center; background: radial-gradient(ellipse at 55% 34%, #f0ebff, #fff 64%); }
.studio[data-type="text"] .studio-content { min-height: 0; }
.studio[data-type="text"] .studio-result { border-top: 1px solid var(--line); }
.studio[data-type="text"] .studio-empty { min-height: 0; }
.studio-empty-image {
  grid-template-columns: minmax(0, 224px) minmax(0, max-content);
  justify-content: center;
  justify-items: start;
  gap: clamp(12px, 4vw, 36px);
  padding: 22px;
}
.studio-empty-image > img { display: block; width: 100%; height: auto; border-radius: 12px; }
.image-example-copy { display: grid; justify-items: start; gap: 6px; }
.image-example-copy h2 { font-size: clamp(17px, 2.5vw, 24px); line-height: 1.25; }
.image-example-copy p { color: var(--muted); font-size: 13px; }
.image-example-copy .btn { margin-top: 4px; }
.studio-empty-software {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  background: radial-gradient(ellipse at 50% 44%, #fbf9ff 10%, #f0eaff 76%, #f8f5ff);
}
.studio-code-backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; user-select: none; }
.studio-code-card {
  position: absolute;
  width: min(29%, 250px);
  overflow: hidden;
  border: 1px solid #cbbbec;
  border-radius: 10px;
  background: #fbf9ff;
  box-shadow: 0 8px 24px #533da012;
  color: #7762a4;
  opacity: .48;
  font: 11px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.studio-code-card:first-child { inset: 23% auto auto 6%; mask-image: linear-gradient(90deg, #000 63%, transparent); }
.studio-code-card:last-child { inset: auto 6% 18% auto; mask-image: linear-gradient(270deg, #000 71%, transparent); }
.studio-code-tab { display: block; padding: 6px 12px; border-bottom: 1px solid #ded3f4; background: #efebfa; color: #604693; }
.studio-code-card pre { margin: 0; padding: 10px 12px 12px; font: inherit; }
.studio-code-card b { color: #6741bc; font-weight: 650; }
@container (max-width: 620px) {
  .studio-code-card { width: 190px; opacity: .35; }
  .studio-code-card:first-child { top: 8%; left: -84px; }
  .studio-code-card:last-child { right: -84px; bottom: 7%; }
}
.studio-empty-video { position: relative; isolation: isolate; overflow: hidden; justify-items: start; padding: 42px clamp(22px, 6vw, 82px); background: #11142f; }
.studio-motion { object-position: 72% 45%; }
.studio-empty-video::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0b102ce8, #0b102caa 35%, #0b102c14 72%); }
.studio-video-copy { color: #fff; max-width: 80%; }
.studio-video-copy h2 { font-size: clamp(24px, 3vw, 38px); line-height: 1.25; letter-spacing: -.04em; }
.studio-video-copy p { margin-top: 6px; color: #ecebff; font-size: 14px; }
.background-motion-toggle { position: absolute; bottom: 12px; padding: 5px 9px; border: 1px solid #ffffff65; border-radius: 7px; background: #11162ed9; color: #fff; font-size: 13px; }
.background-motion-toggle:hover { background: #27204e; }
.background-motion-toggle:focus-visible { outline: 2px solid #d8cdff; }
.studio-motion-toggle { left: 14px; }
.empty { display: grid; justify-items: center; align-content: center; gap: 6px; text-align: center; min-height: 172px; padding: 18px; }
.empty-icon { color: var(--primary); background: var(--selected); display: grid; place-items: center; font-size: 24px; border-radius: 10px; width: 42px; height: 42px; }
.empty h2 { font-size: 18px; }
.empty p { font-size: 14px; color: var(--muted); }
.empty .actions { justify-content: center; margin-top: 4px; }
.composer { border-top: 1px solid var(--line); padding: 13px 16px; display: grid; gap: 6px; background: #fcfcff; }
.studio[data-type="text"] .composer { border-top: 0; }
.composer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.composer-actions > button { margin-left: auto; }
.studio[data-type="image"] .composer-actions { align-items: flex-end; }
.image-settings { display: flex; flex-wrap: wrap; gap: 8px; }
.image-settings .field { min-width: 106px; }
.composer-note { color: var(--muted); font-size: 12px; }
.file-control { padding: 5px 8px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; position: relative; overflow: hidden; cursor: pointer; }
.file-control input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-control:focus-within { outline: 2px solid var(--primary); }
.file-name { overflow-wrap: anywhere; color: var(--muted); font-size: 13px; }
.result-bar { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.result-bar h2 { font-size: 19px; margin-top: 4px; }
.article-result { display: grid; gap: 8px; padding: 16px; color: #30384d; }
.article-result > h2 { color: var(--ink); font-size: 22px; line-height: 1.28; }
.article-result > h3 { color: var(--ink); font-size: 17px; }
.article-result > button { justify-self: start; }
.call-strip { display: flex; align-items: center; gap: 7px 12px; flex-wrap: wrap; padding: 10px 16px; color: var(--muted); border-block-start: 1px solid var(--line); font-size: 13px; }
.call-strip a { margin-inline-start: auto; }
.markdown-preview { margin: 0 16px 12px; }
.markdown-preview summary { font-size: 14px; color: var(--primary-dark); }
.markdown-preview pre { padding: 9px; background: var(--faint); border-radius: 7px; white-space: pre-wrap; overflow-wrap: anywhere; }
.visual-result { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(155px, .9fr); gap: 13px; padding: 14px 16px; align-items: start; }
.visual-result :is(.cover, video) { display: block; width: 100%; border-radius: 9px; }
.image-sample-output { display: block; width: 100%; max-width: 460px; height: auto; border-radius: 9px; }
.visual-result h2 { font-size: 17px; }
.visual-result p { margin: 3px 0 8px; color: var(--muted); font-size: 14px; }
.storyboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 0 16px 14px; }
.storyboard > div { display: grid; gap: 3px; padding: 7px; background: var(--faint); border-radius: 6px; }
.storyboard span { font-size: 12px; color: var(--muted); }
.storyboard strong { font-size: 14px; }
.software-output { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 9px; padding: 13px; }
.file-tree { display: grid; align-content: start; gap: 6px; border-radius: 8px; background: var(--faint); padding: 8px; font-size: 13px; }
.software-output iframe { width: 100%; min-height: 370px; border: 1px solid var(--line); border-radius: 8px; }
.compare-form { display: grid; gap: 9px; padding: 14px; }
.compare-form button { justify-self: start; }
.compare-form .field-row { align-items: stretch; }
.compare-form .field-row .field { flex: 1; }
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.compare-grid .prose-panel { padding: 0; }

.table-wrap { overflow: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 14px; }
thead { background: #f5f6fc; }
th, td { padding: 10px 12px; vertical-align: middle; border-bottom: 1px solid var(--line); }
th { color: #484f64; white-space: nowrap; font-weight: 650; }
td { font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfbff; }
td small { display: block; color: var(--muted); margin-top: 2px; font-size: 12px; }
.agent-steps { padding: 0; display: grid; gap: 7px; list-style: none; margin-top: 11px; }
.agent-steps li { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.agent-steps li > span:first-child { display: inline-grid; place-items: center; width: 23px; height: 23px; color: var(--primary-dark); background: var(--selected); border-radius: 5px; }
.agent-steps li > .badge { margin-left: auto; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.metric { padding: 14px; display: grid; gap: 3px; }
.metric p { color: var(--muted); font-size: 14px; }
.metric strong { font-size: clamp(23px, 2.7vw, 34px); font-variant-numeric: tabular-nums; line-height: 1.2; letter-spacing: -.045em; overflow-wrap: anywhere; }
.metric span { color: var(--muted); font-size: 12px; }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(245px, 1fr); gap: 11px; }
.chart-legend { display: flex; gap: 9px; margin: 7px 0; color: var(--muted); font-size: 12px; }
.chart-legend span::before { content: ""; display: inline-block; vertical-align: 0; width: 8px; height: 8px; margin-right: 4px; border-radius: 3px; background: #6756e1; }
.chart-legend span:nth-child(2)::before { background: #48b8b3; }
.trend-chart { min-height: 175px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; margin-top: 9px; text-align: center; }
.trend-chart > div { min-width: 0; }
.trend-chart span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.bar-pair { padding: 0 3px; height: 145px; display: flex; gap: 3px; align-items: end; justify-content: center; background: repeating-linear-gradient(to bottom, #e7eaf4 0 1px, transparent 1px 25%); border-bottom: 1px solid var(--line); }
.bar-pair i { width: min(19px, 42%); height: var(--height); border-radius: 4px 4px 0 0; background: #6756e1; }
.bar-pair i:nth-child(2) { background: #48b8b3; }
.ranks { display: grid; gap: 11px; margin-top: 12px; }
.ranks > div > div { display: flex; justify-content: space-between; gap: 6px; font-size: 14px; }
.ranks strong { text-align: right; font-size: 13px; color: var(--primary-dark); }
.rank-track { display: block; height: 6px; border-radius: 5px; margin-top: 4px; background: var(--selected); }
.rank-track i { height: 100%; width: var(--width); display: block; background: #6e5cea; border-radius: 5px; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(255px, .8fr); gap: 11px; align-items: start; }
.order-detail { padding: 13px; }
.order-detail dl { margin: 9px 0; }
.order-detail dl > div { display: flex; justify-content: space-between; align-items: flex-start; gap: 7px; border-bottom: 1px solid var(--line); padding: 6px 0; font-size: 13px; }
.order-detail dt { flex: 0 0 auto; color: var(--muted); }
.order-detail dd { margin: 0; font-weight: 640; text-align: right; overflow-wrap: anywhere; }
.dialog { width: min(calc(100% - 28px), 510px); padding: 17px; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.dialog::backdrop { background: #10152c77; }
.dialog > p { margin-bottom: 9px; }
.dialog-form { display: grid; gap: 9px; }
.dialog-form > button { justify-self: start; }
.toast { position: fixed; z-index: 10; right: 18px; bottom: 18px; padding: 9px 13px; color: #fff; background: #29234f; border-radius: 9px; box-shadow: var(--shadow); }

@media (max-width: 1180px) {
  .brand-tail { display: block; margin: 2px 0 0; }
  .mini-model { padding: 7px; }
  .mini-model small { display: none; }
  .scene-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 870px) {
  :root { --rail: 60px; }
  .topbar { padding: 0 15px; gap: 10px; }
  .topnav { gap: 15px; }
  .header-actions .header-cta { display: none; }
  .rail { padding-inline: 4px; }
  .home-heroes { grid-template-columns: minmax(0, 1.6fr) minmax(185px, 1fr); gap: 9px; }
  .hero, .hero-side { min-height: 307px; }
  .hero-side-body { padding: 14px; }
  .feature-grid, .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-layout { grid-template-columns: 1fr; }
  .order-detail { grid-row: 1; }
}
@media (max-width: 650px) {
  :root { --header: 92px; }
  .topbar { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 42px minmax(0, 1fr); height: var(--header); gap: 0; padding: 4px 11px 0; }
  .topnav { grid-row: 2; grid-column: 1 / -1; overflow: auto; gap: 13px; }
  .topnav a { line-height: 32px; }
  .header-actions { grid-row: 1; grid-column: 2; justify-content: flex-end; }
  .mobile-settings { display: inline; }
  .shell { display: block; }
  .rail { display: none; }
  .main { padding: 14px 11px 27px; }
  .home-heroes { grid-template-columns: minmax(0, 1fr); }
  .hero { --hero-image-position: 64% center; min-height: 305px; }
  .hero-side { min-height: 170px; }
  .hero-side > .cover { background-position: center 42%; }
  .detail-grid, .studio, .analytics-grid, .compare-grid { grid-template-columns: minmax(0, 1fr); }
  .scene-grid, .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio { gap: 8px; }
  .studio-settings { gap: 7px; padding: 10px; }
  .studio-settings h2 { display: none; }
  .studio-settings-toggle { display: flex; justify-content: space-between; align-items: center; gap: 5px; border: 0; background: transparent; text-align: left; width: 100%; padding: 4px; font-weight: 650; }
  .studio-settings-toggle strong { color: var(--primary-dark); font-size: 14px; }
  .studio-settings-toggle strong::after { content: ""; display: inline-block; vertical-align: 3px; width: 7px; height: 7px; margin-left: 8px; transform: rotate(45deg); border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; }
  .studio-settings-toggle[aria-expanded="true"] strong::after { transform: rotate(225deg); vertical-align: 0; }
  .studio-settings-toggle[aria-expanded="false"] + .studio-settings-fields { display: none; }
  .studio-content { min-height: 390px; }
  .studio-empty { min-height: 174px; }
  .studio-empty-image { padding: 14px; }
  .studio-empty-video { padding-bottom: 54px; }
  .visual-result { grid-template-columns: minmax(0, 1fr); }
  .filter-form .field { min-width: 104px; }
  .table-wrap table { min-width: max-content; }
  .table-wrap table td { max-width: 220px; }
  .software-output { grid-template-columns: minmax(0, 1fr); }
  .file-tree { display: flex; align-items: center; flex-wrap: wrap; }
}
@media (max-width: 340px) {
  .scene-grid, .model-grid { grid-template-columns: minmax(0, 1fr); }
  .mini-model { flex-direction: column; align-items: start; }
}
@media (pointer: coarse) {
  .btn, .pills a { min-height: 44px; }
  input:not([type="file"]), textarea, select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
