/*
 * 前台文字清晰度层。
 * 只调整字号、字重和行高，不改变现有布局、尺寸与控件位置。
 */

body {
  font-size: 14px;
  font-weight: 500;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
textarea,
select {
  font-weight: 600;
}

/* 顶栏、账号与左侧导航 */
.announcement-bar,
.api-state,
.task-history-button,
.mode-button,
.reset-link,
.account-login-button,
.account-register-button,
.account-chip > a,
.account-copy strong {
  font-size: 12px;
  font-weight: 650;
}

.announcement-bar span,
.account-copy small,
.side-nav-item span,
.side-bottom small {
  font-size: 11px;
  font-weight: 550;
}

/* 任务组 */
.generation-session-sidebar-head span,
.generation-session-sidebar > p,
.generation-session-select small,
.generation-session-history > header small,
.generation-session-empty {
  font-size: 11px;
  font-weight: 550;
}

.new-generation-session,
.generation-session-select strong,
.generation-session-menu button,
.generation-back-bottom {
  font-size: 12px;
  font-weight: 650;
}

/* 生成输入区与模型菜单 */
.direct-upload-empty strong,
.direct-asset-drop-copy strong,
.direct-reference strong,
.direct-audio-reference strong {
  font-size: 12px;
  font-weight: 650;
}

.direct-upload-empty small,
.direct-asset-drop-copy small,
.direct-reference small,
.direct-audio-reference small,
.direct-count,
.direct-add-card small,
.direct-mention-summary span {
  font-size: 11px;
  font-weight: 550;
}

#directPrompt {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.85;
}

.creation-type-pill,
.tool-pill,
.tool-select,
.tool-select select,
.tool-select input,
.tool-select b,
.direct-audio,
.model-picker-trigger,
.model-picker-trigger b,
.image-spec-trigger,
.reference-trigger,
.prompt-expand-tool {
  font-size: 12px;
  font-weight: 650;
}

.creation-type-menu header,
.model-menu-title span,
.model-menu-title small,
.model-menu-group,
.image-spec-menu section > header,
.reference-menu header small,
.reference-empty {
  font-size: 11px;
  font-weight: 600;
}

.creation-type-menu button strong,
.model-menu-item strong,
.reference-option strong,
.reference-upload b {
  font-size: 12px;
  font-weight: 650;
}

.creation-type-menu button small,
.model-menu-item small,
.reference-option small,
.reference-upload small,
.image-dimensions span,
.image-dimensions > em {
  font-size: 11px;
  font-weight: 550;
}

/* 生成记录：提示词与参数是主要阅读内容 */
.generation-entry-prompt-title,
.task-job-prompt small,
.generation-session-history > header span {
  font-size: 11px;
  font-weight: 750;
}

.generation-entry-copy > p,
.generation-session-record .task-job-prompt p,
.task-job-prompt p {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
}

.generation-entry-prompt-head button,
.task-job-prompt-head button,
.generation-entry-copy > div,
.generation-entry-copy > div b,
.direct-submission-stage > p,
.direct-submission-stage > p small,
.direct-submission-card > footer > span,
.generation-entry-pending small,
.generation-entry-failed p,
.generation-record-card.failed .generation-entry-failed p {
  font-size: 11px;
  font-weight: 550;
}

.generation-session-entry > footer a,
.generation-session-entry > footer button,
.task-job-card > footer button,
.task-job-actions a,
.task-job-actions button {
  font-size: 12px;
  font-weight: 650;
}

/* 生成记录：把模型名和关键状态放进原本闲置的上半区 */
.generation-entry-copy > .generation-entry-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid #edf0f2;
  color: #69737d;
  font-size: 12px;
  line-height: 1.45;
}
.generation-entry-copy > .generation-entry-facts > b {
  flex: 1 0 100%;
  color: #26313b;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.generation-entry-copy > .generation-entry-facts > span + span::before,
.generation-entry-copy > .generation-entry-facts > time::before { margin-right: 10px; }
.generation-entry-copy > .generation-entry-facts > time { margin-left: 0; color: #7c858e; }

.concurrency-state {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #dfe2ee;
  border-radius: 10px;
  color: #737987;
  background: #fff;
  font-size: 11px;
  white-space: nowrap;
}
.concurrency-state strong { color: #4d46c9; font-size: 12px; font-variant-numeric: tabular-nums; }

.task-job-card time,
.task-job-card > header span,
.task-job-spec span,
.task-job-error,
.task-job-card > footer small {
  font-size: 11px;
  font-weight: 550;
}

/* 灵感、资产和任务记录 */
.feature-strip strong,
.inspiration-head button,
.inspiration-card strong,
.asset-upload-button,
.asset-library-policy,
.asset-filter-group button,
.asset-detail-toolbar button,
.asset-detail-footer button {
  font-size: 12px;
  font-weight: 650;
}

.feature-strip small,
.inspiration-head > span,
.inspiration-card span,
.inspiration-card small,
.asset-library-toolbar > span,
.asset-library-empty p,
.asset-detail-summary > span,
.asset-detail-summary p,
.asset-retention-card small,
.asset-retention-card p,
.asset-record-grid small,
.asset-prompt-panel h3,
.task-history-header > div > span,
.task-history-header p,
.task-history-summary small,
.task-history-empty p {
  font-size: 11px;
  font-weight: 550;
}

.asset-record-grid strong,
.asset-retention-card strong,
.asset-preview-audio strong {
  font-size: 12px;
  font-weight: 650;
}

.asset-prompt-panel p {
  font-size: 13px;
  font-weight: 500;
}

/* 画布 */
.workflow-library-panel header > div > span,
.workflow-card-preview span,
.workflow-card-meta,
.workflow-editor-toolbar > span,
.workflow-quick-node-menu > strong,
.workflow-node-head span,
.workflow-node-fields label,
.workflow-node-status,
.workflow-upload-drop small,
.workflow-zoom-controls span,
.workflow-asset-picker-card header small,
.workflow-asset-picker-grid span {
  font-size: 11px;
  font-weight: 550;
}

.workflow-template-row small,
.workflow-card-actions button,
.workflow-editor-toolbar > div button,
.workflow-node-menu span,
.workflow-quick-node-menu span,
.workflow-node-fields input,
.workflow-node-run,
.workflow-node-library,
.workflow-node-output,
.workflow-log-panel header strong,
.workflow-log-panel header button {
  font-size: 12px;
  font-weight: 600;
}

/* 爆款复刻、智能体与文字导演结果 */
.video-replica-skill-header p,
.video-replica-section-title small,
.video-replica-mode small,
.video-replica-upload-card small,
.video-replica-file-card small,
.video-replica-fields label > span,
.video-replica-submit-row small,
.video-replica-warning,
.video-replica-progress p,
.video-replica-history > header small,
.video-replica-history-item small,
.video-replica-history-item > span {
  font-size: 11px;
  font-weight: 550;
}

.video-replica-section-title strong,
.video-replica-mode strong,
.video-replica-upload-card strong,
.video-replica-file-card strong,
.video-replica-fields input,
.video-replica-fields textarea,
.video-replica-submit-row strong,
.video-replica-submit-row > button,
.video-replica-result-content nav button,
.video-replica-result-actions button,
.video-replica-history > header strong,
.video-replica-history-item strong {
  font-size: 12px;
  font-weight: 650;
}

.director-skill-result-content > pre {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
}

/* TikTok 选品 */
.tiktok-monitor-hero span,
.tiktok-run-panel header span,
.tiktok-modal header span,
.tiktok-discovery-head > div:first-child > span,
.tiktok-table-head,
.tiktok-object small,
.tiktok-metrics span,
.tiktok-record-actions button,
.tiktok-record-actions a,
.tiktok-run,
.tiktok-history-row span,
.tiktok-commerce-video-head,
.tiktok-commerce-video-row small,
.tiktok-commerce-video-row time,
.tiktok-commerce-video-row > a {
  font-size: 11px;
  font-weight: 550;
}

.tiktok-source-notice,
.tiktok-summary span,
.tiktok-summary small,
.tiktok-discovery-head p,
.tiktok-record-time,
.tiktok-modal label > span,
.tiktok-form-error,
.tiktok-history-row time,
.tiktok-commerce-video-modal > header p,
.tiktok-commerce-video-toolbar > span,
.tiktok-record-actions button,
.tiktok-record-actions a {
  font-size: 12px;
  font-weight: 550;
}

.tiktok-object strong,
.tiktok-commerce-video-row strong {
  font-size: 13px;
  font-weight: 650;
}

@media (max-width: 760px) {
  #directPrompt,
  .generation-entry-copy > p,
  .task-job-prompt p,
  .asset-prompt-panel p,
  .director-skill-result-content > pre {
    font-size: 13px;
  }
}
