@charset "UTF-8";
:root {
  --bg: #f6f7f9;
  --paper: #fff;
  --ink: #252832;
  --muted: #8a8d9a;
  --line: #e9ebf0;
  --primary: #6a58d8;
  --primary-soft: #efecfb;
  --green: #358b72;
  --shadow: 0 12px 40px #2528320a;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.job-analysis-elapsed {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}
.job-time-note {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.job-end-time {
  display: block;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.7;
}
.job-end-time span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.job-end-time strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.analysis-table .job-timing-cell {
  min-width: 95px;
}
.analysis-table .row-actions {
  flex-wrap: wrap;
  gap: 8px 12px;
  max-width: 170px;
  min-width: 130px;
}
.runtime-list {
  max-height: clamp(140px, calc(90vh - 350px), 52vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafe;
  overscroll-behavior: contain;
}
.runtime-entry {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid #b6addd;
}
.runtime-entry:last-child {
  border-bottom: 0;
}
.runtime-entry.warning {
  border-left-color: #d7b267;
  background: #fffaf1;
}
.runtime-entry.error {
  border-left-color: #cf8190;
  background: #fff5f5;
}
.runtime-entry-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #93909f;
}
.runtime-entry-meta time {
  font-variant-numeric: tabular-nums;
}
.runtime-level {
  font-size: 9px;
  font-weight: 600;
  color: #8170bf;
  background: #f0edf9;
  border-radius: 4px;
  padding: 1px 5px;
}
.runtime-entry.error .runtime-level {
  color: #b65e70;
  background: #fbe7ec;
}
.runtime-entry.warning .runtime-level {
  color: #af8c46;
  background: #faf0da;
}
.runtime-entry p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.runtime-entry small {
  display: block;
  font-size: 10px;
  color: #a19bab;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.runtime-empty {
  padding: 25px;
  font-size: 12px;
}
.runtime-note {
  font-size: 10px;
}
#runtime-summary {
  gap: 12px;
  font-size: 11px;
}
.project-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 15px 0 18px;
}
.project-metrics small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.project-metrics strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-top: 3px;
}
.project-metrics em {
  font-size: 10px;
  font-style: normal;
  color: #b29b71;
  display: block;
}
.metric-wide {
  grid-column: 1/-1;
}
.metric-wide strong {
  display: inline-block;
  margin-right: 12px;
}
.metric-wide em {
  display: inline-block;
}
.project-card {
  min-height: 295px;
}
.new-project-card {
  min-height: 295px;
}
.summary-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px 20px;
  margin-bottom: 23px;
  font-size: 11px;
  color: var(--muted);
}
.summary-strip strong {
  color: var(--ink);
  font-weight: 500;
  margin-left: 6px;
}
.cost-stat {
  font-size: 21px !important;
  overflow-wrap: anywhere;
}
.stat-card small {
  font-size: 9px;
}
.cost-link {
  display: block;
  margin-top: 5px;
}
.cost-link .text-button {
  font-size: 10px;
}
.script-export-bar {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  background: #f0edf9;
  padding: 13px 17px;
  border: 1px solid #e5def5;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 11px;
}
.script-export-bar .checkbox-label {
  margin: 0;
}
.script-export-bar .text-button {
  margin-left: auto;
}
.row-check {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  box-shadow: none;
}
.danger-text {
  color: #b86572;
}
.billing-attempt {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.billing-attempt h3 {
  font-size: 13px;
  margin: 0;
}
.billing-attempt .muted {
  font-size: 11px;
}
.token-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #faf9fc;
  border-radius: 8px;
  padding: 15px;
  color: var(--muted);
  font-size: 11px;
  margin: 14px 0;
}
.token-grid strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
}
.upload-manager {
  position: fixed;
  z-index: 45;
  right: 26px;
  bottom: 20px;
  width: 420px;
  max-width: calc(100vw - 90px);
  border: 1px solid #e3deee;
  border-radius: 13px;
  background: white;
  box-shadow: 0 15px 60px #30263e24;
}
.upload-manager header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.upload-manager header strong {
  font-size: 13px;
}
.upload-manager header small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
#upload-entries {
  max-height: 48vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.upload-entry {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.upload-entry-title,
.upload-entry-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}
.upload-entry-title strong {
  max-width: 85%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.upload-entry-meta {
  color: var(--muted);
  font-size: 10px;
}
.upload-entry-meta span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-entry .progress-track {
  margin: 10px 0 7px;
  height: 4px;
}
.upload-entry-error {
  color: #b45c69;
  font-size: 10px;
  line-height: 1.7;
  margin: 7px 0;
  overflow-wrap: anywhere;
}
.upload-entry-actions {
  display: flex;
  gap: 14px;
  margin-top: 9px;
}
.upload-entry-actions .text-button {
  font-size: 10px;
}
.upload-manager footer {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
}
.upload-manager footer .text-button {
  font-size: 11px;
}
.upload-empty {
  padding: 25px;
  font-size: 12px;
}
.checkbox-label {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  font-weight: 400;
  margin: 18px 0;
}
.checkbox-label input {
  width: 15px;
  height: 15px;
  margin: 0;
  box-shadow: none;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.batch-selected {
  margin-top: 16px;
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 15px;
}
.batch-selected > strong {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.batch-selected > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  margin-top: 4px;
}
.batch-selected > div > span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.batch-selected small {
  font-size: 10px;
  color: var(--muted);
}
.batch-video-picker {
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  margin: 12px 0 20px;
}
.batch-video-picker .checkbox-label {
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.batch-video-picker small {
  margin-left: auto;
  white-space: nowrap;
  color: var(--muted);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--primary);
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b8a9fa;
  outline-offset: 3px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #e0e3eb;
  border-radius: 9px;
  background: white;
  padding: 11px 13px;
  color: var(--ink);
  outline: none;
  transition:
    border 0.15s,
    box-shadow 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #6a58d814;
}
input::placeholder,
textarea::placeholder {
  color: #b0b2bd;
}
textarea {
  resize: vertical;
  min-height: 130px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
label input,
label textarea,
label select {
  display: block;
  margin-top: 8px;
  font-weight: 400;
}
form > label {
  margin: 20px 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.03em;
}
h1 {
  font-size: 30px;
  line-height: 1.4;
  margin-bottom: 8px;
}
h2 {
  font-size: 23px;
  margin-bottom: 8px;
}
h3 {
  font-size: 16px;
  margin-bottom: 5px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  color: #9694ad;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.2px;
  margin-bottom: 11px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: #f5f4fa;
}
.button.primary {
  color: white;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 9px #6a58d81a;
}
.button.primary:hover {
  background: #5c4ac6;
}
.button.small {
  min-height: 33px;
  padding: 5px 12px;
  font-size: 12px;
}
.button.danger {
  color: #ba4e59;
}
.full {
  width: 100%;
  justify-content: space-between;
}
.text-button {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  padding: 7px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #8b8b9b;
}
.icon-button:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}
span[data-icon] {
  display: inline-flex;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1px;
}
.brand small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-top: 5px;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-size: 19px;
  font-weight: 500;
  box-shadow: 0 5px 12px #6656d91a;
}
.segmented {
  display: inline-flex;
  gap: 4px;
  background: #edeef3;
  border-radius: 9px;
  padding: 4px;
}
.segmented button {
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  padding: 6px 15px;
  font-size: 12px;
}
.segmented button.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 2px 5px #2020380a;
}
.form-error,
.error-banner {
  background: #fff1f0;
  color: #ab434c;
  border: 1px solid #f6d7da;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 12px;
}
.form-error {
  margin: 15px 0;
}
.error-banner {
  margin-bottom: 20px;
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.auth-story {
  padding: 45px 9%;
  background: #f0eef9;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.story-copy {
  margin: 70px 0 35px;
}
.story-copy .eyebrow {
  color: #9081ba;
}
.story-copy h1 {
  font-size: 43px;
  line-height: 1.5;
  letter-spacing: 1px;
  font-weight: 650;
}
.story-copy h1 span {
  color: var(--primary);
}
.story-copy p {
  color: #89859b;
  line-height: 2.1;
  font-size: 13px;
}
.story-film {
  max-width: 430px;
  border: 1px solid #fff;
  border-radius: 16px;
  padding: 18px;
  background: #ffffff8a;
  box-shadow: 0 18px 50px #51417f0a;
  transform: rotate(-2deg);
  margin: 0 8px 40px;
}
.film-top,
.film-caption {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #9791a6;
}
.live-dot {
  color: var(--green);
}
.live-dot:before {
  content: "";
  display: inline-block;
  background: #79ae94;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 6px;
}
.film-art {
  height: 150px;
  background: linear-gradient(145deg, #dfdaee, #eae9db);
  border-radius: 7px;
  margin: 14px 0;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.orbit {
  position: absolute;
  border: 1px solid #ffffffb0;
  border-radius: 50%;
  width: 250px;
  height: 110px;
  transform: rotate(-30deg);
}
.orbit-two {
  transform: rotate(30deg);
  width: 180px;
  height: 160px;
}
.film-play {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: #ffffff90;
  border: 1px solid white;
  border-radius: 50%;
  color: #7a6d9b;
  font-size: 13px;
  backdrop-filter: blur(10px);
}
.frame-corner {
  position: absolute;
  width: 17px;
  height: 17px;
  border-color: #ffffffbd;
  border-style: solid;
}
.corner-a {
  left: 15px;
  top: 15px;
  border-width: 1px 0 0 1px;
}
.corner-b {
  right: 15px;
  bottom: 15px;
  border-width: 0 1px 1px 0;
}
.film-timeline {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.film-timeline i {
  height: 20px;
  flex: 1;
  background: linear-gradient(125deg, #e3dcec, #cbd8d6);
  border-radius: 2px;
}
.film-timeline i:nth-child(3n) {
  background: linear-gradient(25deg, #dddbc9, #d5c9e2);
}
.auth-story footer {
  font-size: 10px;
  color: #a29bb0;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.auth-panel {
  display: grid;
  place-items: center;
  padding: 60px 30px;
}
.auth-box {
  width: 100%;
  max-width: 350px;
}
.auth-box h2 {
  font-size: 28px;
}
.auth-box > .muted {
  font-size: 13px;
}
.auth-tabs {
  width: 100%;
  margin: 23px 0 5px;
}
.auth-tabs button {
  flex: 1;
  padding: 9px;
}
.auth-box .primary {
  margin-top: 14px;
}
.auth-note {
  font-size: 11px;
  color: #a6a5b0;
  text-align: center;
  margin-top: 23px;
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 224px;
  flex-shrink: 0;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  background: white;
  border-right: 1px solid var(--line);
  padding: 30px 20px 0;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar .brand {
  margin: 0 9px 42px;
}
.sidebar-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: #a1a2ae;
  padding-left: 16px;
  margin-bottom: 13px;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  background: none;
  padding: 12px 15px;
  border-radius: 8px;
  color: #858794;
  font-size: 13px;
  text-align: left;
  margin-bottom: 6px;
}
.nav-item.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.nav-item:hover {
  color: var(--primary);
  background: #f7f5fc;
}
.nav-item svg {
  width: 17px;
  height: 17px;
}
.sidebar-tip {
  margin-top: 48px;
  border: 1px solid #ebe8f5;
  background: linear-gradient(135deg, #f7f5fc, #fdfcfe);
  border-radius: 11px;
  padding: 18px 15px;
}
.tip-mark {
  color: #9282d4;
  font-size: 24px;
  display: block;
  line-height: 1;
  margin-bottom: 12px;
}
.sidebar-tip strong {
  font-size: 12px;
  font-weight: 600;
}
.sidebar-tip p {
  color: #a4a0b3;
  font-size: 11px;
  line-height: 1.9;
  margin: 7px 0 15px;
}
.sidebar-tip .text-button {
  font-size: 11px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e9e4f7;
  color: #8070b6;
  font-size: 13px;
  flex-shrink: 0;
}
.user-card > span:nth-child(2) {
  overflow: hidden;
  flex: 1;
}
.user-card strong,
.user-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-card strong {
  font-size: 11px;
  font-weight: 600;
}
.user-card small {
  font-size: 9px;
  color: #aaa8b5;
}
.user-card .icon-button {
  width: 25px;
  padding: 3px;
}
.main-shell {
  margin-left: 224px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: #ffffff90;
}
.breadcrumbs {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: #a2a3b0;
}
.breadcrumbs strong {
  font-weight: 500;
  color: #636472;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.local-badge {
  font-size: 10px;
  color: #8f929e;
  display: flex;
  align-items: center;
  gap: 7px;
}
.local-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8eb19e;
}
main {
  padding: 37px 42px 45px;
  max-width: 1550px;
  width: 100%;
  margin: auto;
  flex: 1;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 29px;
}
.page-heading .muted {
  font-size: 12px;
  margin: 0;
}
.page-heading h1 {
  font-size: 27px;
  margin-bottom: 8px;
}
.page-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 8px;
}
.heading-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.main-footer {
  padding: 19px 42px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: #afb0bb;
  font-size: 9px;
  gap: 20px;
}
.project-context {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 11px;
}
.project-context label {
  font-size: 11px;
  color: #9899a4;
  white-space: nowrap;
}
.project-context select {
  width: 230px;
  padding: 6px 10px;
  font-size: 12px;
  border-color: var(--line);
}
.project-context .muted {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overview-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(110deg, #edebf8 0%, #f0eef8 55%, #f3f1f9);
  padding: 28px 30px;
  border-radius: 13px;
  margin-bottom: 28px;
  border: 1px solid #e9e5f6;
  position: relative;
  overflow: hidden;
}
.overview-banner h2 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 7px;
}
.overview-banner p {
  font-size: 12px;
  color: #928ca4;
  margin: 0;
}
.banner-art {
  display: flex;
  align-items: center;
  gap: 10px;
  transform: rotate(-9deg);
  padding-right: 15px;
}
.banner-art span {
  border-radius: 9px;
  border: 2px solid #fff9;
  background: #d9d3ed;
  width: 63px;
  height: 76px;
  display: grid;
  place-items: center;
  color: #a194c6;
  font-size: 20px;
  box-shadow: 0 6px 14px #7970990a;
}
.banner-art span:nth-child(2) {
  background: #d9e3df;
  margin-top: 16px;
  color: #94afa2;
}
.banner-art span:nth-child(3) {
  background: #e9dfcf;
  color: #b6a687;
}
.section-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 19px;
}
.section-toolbar h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.count {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  border-radius: 6px;
  background: #eae7f6;
  color: #9b8dbb;
  font-size: 10px;
  font-weight: 500;
  padding: 0 5px;
}
.search-field {
  max-width: 250px;
  padding: 8px 12px;
  font-size: 12px;
  background: white;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.project-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 21px;
  min-height: 205px;
  transition:
    box-shadow 0.2s,
    border 0.2s;
}
.project-card:hover {
  border-color: #d7d0ed;
  box-shadow: var(--shadow);
}
.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 21px;
}
.project-symbol {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #eeebfa;
  color: #9b8cc9;
}
.project-card:nth-child(3n + 2) .project-symbol {
  background: #eaf2ee;
  color: #8eafa0;
}
.project-card:nth-child(3n) .project-symbol {
  background: #f8efe4;
  color: #c4a57d;
}
.project-open {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  border: 0;
  padding: 0;
  background: none;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.project-open:hover {
  color: var(--primary);
}
.project-card p {
  color: #a0a0ac;
  font-size: 11px;
  margin: 7px 0 22px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.project-card-footer {
  border-top: 1px solid #f1f1f5;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #aaa8b6;
  gap: 10px;
}
.project-card-footer button {
  font-size: 10px;
}
.new-project-card {
  border: 1px dashed #d9d7e4;
  border-radius: 12px;
  background: #ffffff40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #a4a1b4;
  min-height: 205px;
  font-size: 12px;
}
.new-project-card .plus-circle {
  width: 32px;
  height: 32px;
  border: 1px solid #dfdce9;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 300;
  color: #b0a8c4;
}
.new-project-card:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f1eefb;
}
.empty-state {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  text-align: center;
  padding: 65px 20px;
}
.empty-state .empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  background: #f3f0fb;
  color: #b2a4d5;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}
.empty-state .empty-icon svg {
  width: 25px;
  height: 25px;
}
.empty-state h3 {
  font-size: 15px;
  font-weight: 600;
}
.empty-state p {
  font-size: 12px;
  color: #a09bab;
  margin: 9px 0 23px;
}
.empty-state .button {
  min-width: 130px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
}
.panel-header h3 {
  font-size: 14px;
  margin: 0;
}
.panel-body {
  padding: 24px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}
th {
  font-size: 10px;
  color: #9999a7;
  font-weight: 500;
  background: #fbfbfd;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 22px;
  border-bottom: 1px solid #f0f1f5;
  color: #737480;
}
tr:last-child td {
  border: 0;
}
.cell-title {
  color: #4a4b59;
  font-weight: 500;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cell-title small {
  display: block;
  color: #a8a8b5;
  font-size: 10px;
  font-weight: 400;
  margin-top: 4px;
}
.cell-with-icon {
  display: flex;
  align-items: center;
  gap: 11px;
}
.file-icon {
  background: #efedf9;
  color: #a397c2;
  border-radius: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 39px;
  flex-shrink: 0;
}
.file-icon svg {
  width: 17px;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 10px;
  background: #f0f0f4;
  color: #95949f;
}
.status:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.status.succeeded,
.status.ready {
  background: #eaf5ef;
  color: #61a083;
}
.status.running {
  background: #eeebfc;
  color: #8e7dcd;
}
.status.queued,
.status.pending {
  background: #fbf3e6;
  color: #c2a061;
}
.status.failed {
  background: #fceeee;
  color: #c78088;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.stat-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 11px;
  padding: 19px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-card .stat-label {
  font-size: 11px;
  color: #9997a7;
}
.stat-card strong {
  display: block;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.6;
}
.stat-card .stat-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f1eff9;
  color: #b4a8d0;
}
.stat-card:nth-child(2) .stat-icon {
  background: #f9f2e8;
  color: #ceb68f;
}
.stat-card:nth-child(3) .stat-icon {
  background: #ebf4ef;
  color: #9ab6a5;
}
.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 22px;
}
.dropzone {
  border: 1px dashed #d4cde8;
  border-radius: 12px;
  padding: 55px 25px;
  text-align: center;
  background: #fcfbfe;
  position: relative;
}
.dropzone.dragover {
  background: #eee9fb;
  border-color: var(--primary);
}
.upload-icon {
  margin: 0 auto 19px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: #eee9f9;
  color: #9b8bbe;
}
.upload-icon svg {
  width: 25px;
  height: 25px;
}
.dropzone strong {
  font-size: 14px;
  font-weight: 500;
  display: block;
}
.dropzone p {
  font-size: 11px;
  color: #a8a2b8;
  margin: 8px 0 20px;
}
.upload-notes h3 {
  font-size: 13px;
  margin-bottom: 17px;
}
.upload-notes p {
  font-size: 11px;
  color: #a09bac;
  line-height: 1.9;
  margin-bottom: 19px;
}
.upload-notes .number {
  font-size: 9px;
  background: #efebf8;
  color: #ac9dcb;
  border-radius: 4px;
  margin-right: 7px;
  padding: 2px 5px;
}
.chosen-file {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  padding: 17px;
  background: #f8f7fc;
  border: 1px solid #eeebf7;
  border-radius: 9px;
}
.chosen-file > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.chosen-file strong {
  font-size: 12px;
  display: block;
  overflow-wrap: anywhere;
}
.chosen-file small {
  font-size: 10px;
  color: #9b96a7;
}
.progress-track {
  height: 5px;
  background: #eeebf5;
  border-radius: 4px;
  margin: 15px 0 8px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.2s;
}
.upload-status {
  font-size: 11px;
  color: #92889f;
}
.upload-panel {
  margin-top: 20px;
}
.load-more {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}
.account-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}
.account-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 0 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 23px;
}
.account-profile .avatar {
  width: 55px;
  height: 55px;
  font-size: 23px;
  border-radius: 15px;
}
.account-profile p {
  font-size: 12px;
  color: #9d99ab;
  margin: 3px 0 0;
}
.detail-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 12px;
  color: #9c98a9;
  gap: 20px;
}
.detail-line strong {
  color: #5e5b6c;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.inline-note {
  font-size: 11px;
  color: #a8a2b6;
  margin: 15px 0 0;
}
.loading {
  padding: 70px;
  text-align: center;
  color: #aaa3b8;
  font-size: 12px;
}
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #e4dfef;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 10px;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
dialog {
  border: 1px solid #ece9f4;
  border-radius: 16px;
  padding: 0;
  width: 580px;
  max-width: calc(100vw - 34px);
  max-height: 90vh;
  box-shadow: 0 30px 100px #2820372b;
  background: white;
  color: var(--ink);
}
dialog::backdrop {
  background: #29263850;
  backdrop-filter: blur(3px);
}
dialog.wide {
  width: 850px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 27px;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  font-size: 18px;
  margin: 0;
}
.modal-body {
  padding: 6px 27px 26px;
}
.modal-footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 17px 27px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  margin: 20px 0;
}
.form-row label {
  min-width: 0;
}
.form-row input,
.form-row select {
  font-size: 12px;
}
.prompt-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 20px;
}
.prompt-presets button {
  border: 1px solid #e9e5f3;
  border-radius: 5px;
  padding: 5px 9px;
  background: #faf9fd;
  font-size: 10px;
  color: #a196b8;
}
.modal-note {
  padding: 11px 14px;
  border-radius: 8px;
  background: #f6f4fc;
  color: #a096b0;
  font-size: 11px;
}
.result-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  padding: 19px 0;
  font-size: 11px;
  color: #a09bad;
  align-items: center;
}
.result-box {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 13px/1.9 var(--font);
  background: #faf9fc;
  border: 1px solid #eeebf3;
  border-radius: 9px;
  padding: 20px;
  max-height: 48vh;
  overflow: auto;
  color: #5a546b;
  margin: 0;
}
.prompt-detail {
  margin-top: 19px;
  font-size: 11px;
  color: #9a91a8;
}
.prompt-detail pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.8 var(--font);
  color: #8e849d;
}
.preview-video {
  width: 100%;
  max-height: 65vh;
  border-radius: 8px;
  background: #17141e;
  margin-top: 20px;
}
.toasts {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 13px 20px;
  background: #383046;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 30px #30263e20;
  font-size: 12px;
  max-width: 420px;
  overflow-wrap: anywhere;
}
.toast.error {
  background: #a95463;
}
.filter-select {
  width: auto;
  min-width: 120px;
  font-size: 12px;
  padding: 8px 11px;
}
.toolbar-right {
  display: flex;
  gap: 10px;
  align-items: center;
}
.filename-note {
  white-space: normal;
  min-width: 140px;
}
.mobile-nav-label {
  display: none;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  main {
    padding-top: 48px;
  }
  .project-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .auth-story {
    padding-left: 15%;
    padding-right: 12%;
  }
}
@media (max-width: 1150px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sidebar {
    width: 200px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .main-shell {
    margin-left: 200px;
  }
  main {
    padding: 30px;
  }
  .topbar {
    padding: 0 30px;
  }
  .upload-layout {
    grid-template-columns: 1fr;
  }
  .upload-notes {
    display: none;
  }
  .account-layout {
    grid-template-columns: 1fr;
  }
  .story-copy h1 {
    font-size: 35px;
  }
  .auth-story footer span {
    display: none;
  }
}
@media (max-width: 760px) {
  .auth-screen {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-panel {
    min-height: 100vh;
    padding: 40px 25px;
  }
  .sidebar {
    width: 64px;
    padding: 23px 8px 0;
  }
  .sidebar .brand {
    margin: 0 4px 32px;
  }
  .sidebar .brand > span:nth-child(2),
  .sidebar-label,
  .sidebar-tip,
  .user-card > span:nth-child(2),
  .user-card .icon-button {
    display: none;
  }
  .brand-icon {
    width: 38px;
    height: 38px;
  }
  .nav-item {
    font-size: 0;
    justify-content: center;
    padding: 14px 0;
    gap: 0;
  }
  .nav-item svg {
    width: 20px;
    height: 20px;
  }
  .user-card {
    justify-content: center;
  }
  .main-shell {
    margin-left: 64px;
  }
  .topbar {
    height: 62px;
    padding: 0 21px;
  }
  .topbar-right {
    gap: 10px;
  }
  .local-badge {
    font-size: 9px;
  }
  .breadcrumbs {
    gap: 9px;
    font-size: 10px;
  }
  main {
    padding: 26px 20px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.1px;
  }
  .page-heading .muted {
    font-size: 11px;
  }
  .page-heading .button {
    font-size: 11px;
    min-height: 36px;
    padding: 7px 11px;
  }
  .overview-banner {
    padding: 22px;
  }
  .overview-banner h2 {
    font-size: 16px;
  }
  .banner-art {
    display: none;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    min-height: 190px;
  }
  .project-card-top {
    margin-bottom: 15px;
  }
  .new-project-card {
    min-height: 130px;
  }
  .main-footer {
    padding: 15px 20px;
  }
  .main-footer span:nth-child(2) {
    display: none;
  }
  .section-toolbar {
    flex-wrap: wrap;
  }
  .search-field {
    max-width: 180px;
    font-size: 11px;
  }
  .project-context {
    flex-wrap: wrap;
    padding: 13px;
  }
  .project-context .muted {
    display: none;
  }
  .project-context select {
    width: auto;
    flex: 1;
    min-width: 0;
  }
  .stats {
    gap: 8px;
  }
  .stat-card {
    padding: 14px 11px;
  }
  .stat-card .stat-icon {
    display: none;
  }
  .stat-card .stat-label {
    font-size: 9px;
  }
  .stat-card strong {
    font-size: 23px;
  }
  th,
  td {
    padding-left: 14px;
    padding-right: 14px;
  }
  .dropzone {
    padding: 35px 17px;
  }
  .modal-header {
    padding: 18px 20px;
  }
  .modal-body {
    padding: 4px 20px 20px;
  }
  .modal-footer {
    padding: 15px 20px;
  }
  .form-row {
    gap: 10px;
  }
  .toasts {
    right: 15px;
    left: 80px;
    bottom: 15px;
  }
  .cell-title {
    max-width: 170px;
  }
  .page-heading .heading-actions {
    gap: 4px;
  }
  .button span[data-icon] svg {
    width: 15px;
    height: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 760px) {
  .user-card {
    flex-direction: column;
    gap: 8px;
  }
  .sidebar .user-card .icon-button {
    display: inline-flex;
  }
  .toolbar-right {
    flex-wrap: wrap;
  }
}
