:root {
  --ui-font-sans: "Inter", "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --ui-type-display-tracking: -.035em;
  --ui-type-heading-tracking: -.022em;
  --ui-type-body-leading: 1.65;
}

html,
body,
button,
input,
select,
textarea { font-family: var(--ui-font-sans); }

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

button,
.btn,
a[class*="btn"],
[class*="-button"] {
  font-weight: 650;
  letter-spacing: .005em;
}

input,
select,
textarea {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .006em;
}

#view h1,
#stage-view h1 {
  text-wrap: balance;
  font-weight: 800;
  letter-spacing: var(--ui-type-display-tracking);
  line-height: 1.1;
}

#view h2,
#stage-view h2,
#view h3,
#stage-view h3 {
  text-wrap: balance;
  font-weight: 740;
  letter-spacing: var(--ui-type-heading-tracking);
  line-height: 1.24;
}

#view p,
#stage-view p,
#view li,
#stage-view li {
  text-wrap: pretty;
  line-height: var(--ui-type-body-leading);
}

.home-workspace .home-header h1,
.wk-page-head h1 {
  font-size: clamp(32px, 3vw, 42px);
  color: #171a20;
}

.home-workspace .home-header p,
.wk-page-head p {
  max-width: 720px;
  color: #596273;
  font-size: 15px;
  line-height: 1.65;
}

.home-workspace .home-section-heading h2,
.home-workspace .home-continue-card h2,
.wk-section-title h3 {
  color: #181b22;
  font-weight: 760;
  letter-spacing: -.024em;
}

.home-workspace strong,
.wk-page strong,
.permission-denied h2 {
  color: #1a1d23;
}

.home-workspace small,
.wk-page small,
.home-workspace .home-section-heading p,
.wk-page .muted {
  color: #687284;
  line-height: 1.55;
}

.home-section-label,
.wk-eyebrow,
.panel-kicker,
.eyebrow,
.product-eyebrow {
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .14em;
  line-height: 1.35;
}

.nav a span,
.account-entry-copy strong,
.account-popover-identity strong {
  font-weight: 650;
  letter-spacing: .006em;
}

.product-home h1,
.product-home h2 {
  text-wrap: balance;
}

.product-home p,
.product-home li,
.product-home small {
  text-wrap: pretty;
}

/* Creator V2: preserve dense production layout while making hierarchy unmistakable. */
.v2-shell {
  --creator-text-strong: #f2f4f8;
  --creator-text-body: #c1c8d3;
  --creator-text-soft: #939dad;
}

.stage-tab span {
  color: var(--creator-text-strong);
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -.012em;
  line-height: 1.25;
}

.stage-tab small {
  color: var(--creator-text-soft);
  font-size: 12px;
  font-weight: 520;
  letter-spacing: .012em;
  line-height: 1.45;
}

.asset-analysis-copy strong {
  position: relative;
  display: block;
  padding-left: 15px;
  color: var(--creator-text-strong);
  font-size: clamp(20px, 1.75vw, 24px);
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: 1.25;
  text-wrap: balance;
}

.asset-analysis-copy strong::before {
  content: '';
  position: absolute;
  top: .18em;
  bottom: .18em;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f2d779, #bc8f2b);
  box-shadow: 0 0 18px rgba(221, 183, 77, .22);
}

.asset-analysis-copy small {
  display: block;
  max-width: 780px;
  color: var(--creator-text-body);
  font-size: 13px;
  font-weight: 520;
  line-height: 1.62;
  opacity: 1;
  text-wrap: pretty;
}

.entity-type-tab strong,
.panel-head h3,
.detail-drawer h2,
.storyboard-episode-workspace-head h2,
.timeline-title b {
  color: var(--creator-text-strong);
  font-weight: 740;
  letter-spacing: -.018em;
}

.entity-type-tab strong { font-size: 17px; }

.entity-type-tab small,
.panel-head small,
.detail-drawer small,
.storyboard-episode-workspace-head p,
.timeline-help,
.wire-note {
  color: var(--creator-text-soft);
  font-weight: 500;
  line-height: 1.58;
  opacity: 1;
}

.entity-card footer span,
.asset-reference-panel small,
.shot-card p,
.prompt-card p {
  color: var(--creator-text-body);
  line-height: 1.62;
}

.v2-shell label,
.detail-drawer label,
.modal-layer label {
  font-weight: 620;
  letter-spacing: .008em;
}

.v2-shell .btn,
.detail-drawer .btn,
.modal-layer .btn {
  font-weight: 680;
}

@media (max-width: 760px) {
  .home-workspace .home-header h1,
  .wk-page-head h1 { font-size: 30px; }
  .asset-analysis-copy strong { font-size: 20px; }
}
