:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #eef3fb;
  --text: #16324f;
  --muted: #6c7f99;
  --line: #d9e3f2;
  --brand: #2d68ff;
  --brand-soft: #e8f0ff;
  --danger: #d64242;
  --ok: #1f8f5f;
  --shadow: 0 18px 40px rgba(30, 55, 90, 0.08);
  --radius: 20px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 45%, #eef3fa 100%);
  color: var(--text);
}
button, input, textarea, select {
  font: inherit;
}
.hidden { display: none !important; }

.page-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.brand-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-sub {
  font-size: 14px;
  color: var(--muted);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-pill, .version-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(45, 104, 255, 0.12);
  color: var(--muted);
  backdrop-filter: blur(10px);
}
.btn, .btn-primary, .btn-ghost, .btn-danger {
  border: none;
  border-radius: 14px;
  padding: 11px 16px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover, .btn-primary:hover, .btn-ghost:hover, .btn-danger:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #1f5cff 0%, #4c87ff 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(45, 104, 255, 0.24);
}
.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-danger {
  background: #fff1f1;
  color: var(--danger);
  border: 1px solid #f0c5c5;
}
.layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
}
.panel {
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(190, 206, 229, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.sidebar {
  padding: 18px;
  position: sticky;
  top: 18px;
  align-self: start;
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
}
.section-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.field label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
}
.field textarea {
  min-height: 96px;
  resize: vertical;
}
.quick-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mini-project-card {
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}
.mini-project-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.mini-project-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.compact-details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}
.compact-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
}
.compact-details summary::-webkit-details-marker {
  display: none;
}
.compact-details[open] summary {
  margin-bottom: 14px;
}
.project-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.project-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 6px;
}
.project-list-group {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.project-list-group + .project-list-group {
  margin-top: 10px;
}
.project-list-group-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: none;
  background: #f8fbff;
  cursor: pointer;
  color: var(--text);
}
.project-list-group-title {
  font-weight: 700;
}
.project-list-group-meta {
  font-size: 12px;
  color: var(--muted);
}
.project-list-group-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}
.project-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}
.project-item.active {
  border-color: rgba(45, 104, 255, 0.42);
  background: var(--brand-soft);
}
.project-item-title {
  font-weight: 700;
  margin-bottom: 6px;
}
.project-item-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.project-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.deliverable-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.deliverable-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.deliverable-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: #f4f7fb;
}
.deliverable-card-body {
  padding: 12px;
}
.deliverable-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.deliverable-card-title {
  font-weight: 700;
}
.deliverable-card-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.final-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(31, 143, 95, 0.12);
  color: var(--ok);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(45, 104, 255, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.workspace {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.workspace-head {
  padding: 20px 22px;
}
.workspace-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}
.workflow-step-panel {
  display: grid;
  gap: 18px;
}
.card {
  padding: 18px;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.card-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.6;
}
.kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.kv {
  background: var(--panel-soft);
  border-radius: 14px;
  padding: 12px 14px;
}
.kv .label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.kv .value {
  font-weight: 700;
  word-break: break-word;
}
.sync-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.sync-bar input {
  flex: 1;
  min-width: 220px;
}
.info-box {
  border-radius: 14px;
  background: #f7faff;
  border: 1px solid #d8e5fb;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.workflow-action-status {
  margin-top: 12px;
}
.workflow-action-status.pending {
  background: #f5f9ff;
  border-color: #cdddfc;
  color: #35598f;
}
.workflow-action-status.ok {
  background: #eefaf4;
  border-color: #cbead9;
  color: #1f8f5f;
}
.workflow-action-status.err {
  background: #fff3f3;
  border-color: #f3c8c8;
  color: #b54545;
}
.analysis-confirm-box {
  margin-top: 14px;
  border-radius: 16px;
  background: #fbfdff;
  border: 1px solid #d8e5fb;
  padding: 14px;
}
.analysis-confirm-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.analysis-confirm-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.analysis-confirm-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.analysis-structure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.analysis-edit-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.analysis-structure-item {
  border-radius: 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  padding: 12px 14px;
}
.analysis-structure-item .label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.analysis-structure-item .value {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
}
.workflow-nav {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.btn-primary:disabled,
.btn-ghost:disabled,
.btn-danger:disabled {
  cursor: not-allowed;
  transform: none;
  opacity: 0.62;
  box-shadow: none;
}
.asset-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.asset-section {
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: 14px;
}
.asset-section:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.asset-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.asset-section-count {
  font-size: 12px;
  color: var(--muted);
}
.asset-upload-grid {
  margin-bottom: 14px;
}
.asset-upload-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  min-height: 110px;
  border-radius: 16px;
  border: 1.5px dashed #c9d9f8;
  background: #f8fbff;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.asset-upload-slot:hover {
  border-color: #8eb2ff;
  background: #f2f7ff;
  transform: translateY(-1px);
}
.asset-upload-slot.dragover {
  border-color: #2d68ff;
  background: #eef4ff;
}
.asset-upload-slot.disabled {
  cursor: not-allowed;
  opacity: .6;
  transform: none;
}
.asset-upload-plus {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #2d68ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.asset-upload-tip {
  font-size: 12px;
  color: var(--muted);
}
.asset-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.asset-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #f0f4fa;
}
.asset-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.asset-name {
  font-weight: 700;
  font-size: 13px;
  word-break: break-all;
}
.asset-meta {
  color: var(--muted);
  font-size: 12px;
}
.asset-actions {
  display: flex;
  gap: 8px;
}
.asset-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 12px 4px;
}
.snapshot {
  white-space: pre-wrap;
  word-break: break-word;
  background: #0f1d33;
  color: #dbe7ff;
  border-radius: 16px;
  padding: 16px;
  font-size: 12px;
  line-height: 1.7;
  max-height: 420px;
  overflow: auto;
}
.outline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.outline-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}
.outline-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.outline-title {
  font-size: 15px;
  font-weight: 700;
}
.outline-meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
  line-height: 1.6;
}
.outline-summary {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 10px;
}
.outline-section-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.outline-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
}
.outline-actions {
  display: flex;
  gap: 8px;
}
.storyboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.storyboard-card {
  background: #fbfdff;
}
.outline-prompt-preview {
  border-radius: 12px;
  background: #f6f9ff;
  border: 1px solid #d8e5fb;
  padding: 12px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.blueprint-box-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.blueprint-box-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f9fbff;
  padding: 12px;
}
.blueprint-box-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.blueprint-box-list {
  display: grid;
  gap: 8px;
}
.blueprint-box-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(190, 206, 229, 0.8);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
}
.blueprint-box-copy {
  min-width: 0;
}
.blueprint-box-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.blueprint-box-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  word-break: break-word;
}
.blueprint-box-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.stepper-card {
  display: grid;
  gap: 14px;
}
.page-preview-card {
  display: grid;
  gap: 14px;
}
.page-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.page-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.page-preview-pane {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.page-preview-pane-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: #f8fbff;
}
.page-preview-media {
  min-height: 360px;
  max-height: 820px;
  overflow: auto;
  background: linear-gradient(180deg, #f7faff 0%, #eef3fb 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.page-preview-media img {
  display: block;
  width: 100%;
  height: auto;
  background: #edf2fb;
}
.page-preview-media .asset-empty {
  padding: 24px;
}
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
#referenceBlueprintEditor {
  min-height: 280px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}
.workflow-step {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.workflow-step:hover {
  transform: translateY(-1px);
}
.workflow-step.current {
  border-color: rgba(45, 104, 255, 0.42);
  background: var(--brand-soft);
  box-shadow: 0 12px 24px rgba(45, 104, 255, 0.12);
}
.workflow-step.done {
  border-color: rgba(31, 143, 95, 0.22);
  background: #f4fcf8;
}
.workflow-step.locked {
  opacity: 0.56;
  cursor: not-allowed;
}
.workflow-step-index {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  background: var(--panel-soft);
  color: var(--text);
}
.workflow-step.current .workflow-step-index {
  background: linear-gradient(135deg, #1f5cff 0%, #4c87ff 100%);
  color: #fff;
}
.workflow-step.done .workflow-step-index {
  background: var(--ok);
  color: #fff;
}
.workflow-step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.workflow-step-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.section-summary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.render-task-card {
  margin-top: 14px;
  border: 1px solid #d8e5fb;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
  padding: 14px;
  display: grid;
  gap: 12px;
}
.render-task-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.render-task-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.render-task-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.render-task-stage {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
}
.render-task-progress {
  height: 10px;
  border-radius: 999px;
  background: #dfe9fb;
  overflow: hidden;
}
.render-task-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2d68ff 0%, #76a0ff 100%);
  transition: width .2s ease;
}
.render-task-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.render-task-item-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.render-task-item {
  border: 1px solid rgba(190, 206, 229, 0.9);
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}
.render-task-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.render-task-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.render-task-item-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.render-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.render-status-pill.queued {
  background: #eef2f8;
  color: #66768f;
}
.render-status-pill.running {
  background: #edf4ff;
  color: #2d68ff;
}
.render-status-pill.success {
  background: #eefaf4;
  color: #1f8f5f;
}
.render-status-pill.failed {
  background: #fff1f1;
  color: #c14949;
}
.section-summary-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 8px;
}
.section-summary-item b {
  font-size: 14px;
}
.section-summary-item .meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.section-summary-item .meta b {
  font-size: 12px;
}
.section-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}
.section-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.dp-section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}
.dp-section-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.section-body {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
}
.section-preview {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #f5f8ff;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.section-brief {
  border-radius: 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.7;
  max-height: 220px;
  overflow: auto;
}
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.section-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.section-version-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.section-version-pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.section-version-pill.active {
  background: var(--brand-soft);
  border-color: rgba(45, 104, 255, 0.34);
}
.section-feedback-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.section-feedback-item {
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #dde7f7;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.mask-editor-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 22, 38, 0.42);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1100;
}
.mask-editor-card {
  width: min(1080px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(8, 20, 40, 0.24);
  padding: 18px;
  display: grid;
  gap: 14px;
}
.mask-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.mask-editor-status {
  border-radius: 14px;
  background: #f7faff;
  border: 1px solid #d8e5fb;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.mask-editor-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f1f5fd;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mask-editor-stage img {
  max-width: 100%;
  max-height: calc(100vh - 280px);
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.mask-editor-stage canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: crosshair;
}
.login-modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 24, 40, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.login-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(8, 18, 36, 0.2);
}
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: rgba(20, 36, 63, 0.94);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 14px 30px rgba(10, 20, 38, 0.22);
  z-index: 1200;
}
.toast.ok { background: rgba(31, 143, 95, 0.96); }
.toast.err { background: rgba(214, 66, 66, 0.96); }

@media (max-width: 1180px) {
  .layout,
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .workflow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analysis-confirm-head,
  .analysis-structure-grid,
  .analysis-edit-grid {
    grid-template-columns: 1fr;
  }
  .blueprint-box-group-head,
  .blueprint-box-item {
    display: grid;
  }
  .blueprint-box-actions {
    justify-content: flex-start;
  }
  .page-preview-head,
  .page-preview-grid {
    grid-template-columns: 1fr;
  }
  .page-preview-head {
    display: grid;
  }
  .analysis-confirm-head {
    display: grid;
  }
  .render-task-head,
  .render-task-item-head {
    display: grid;
  }
  .sidebar {
    position: static;
  }
  .section-body,
  .section-form-grid {
    grid-template-columns: 1fr;
  }
  .mask-editor-head {
    flex-direction: column;
  }
}
@media (max-width: 720px) {
  .workflow-steps {
    grid-template-columns: 1fr;
  }
}

/* Shared application shell refresh */
:root {
  --bg: #f3f5fa;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-soft: #f5f7fb;
  --text: #1b2330;
  --muted: #6c7687;
  --line: rgba(27, 35, 48, 0.08);
  --brand: #2357eb;
  --brand-soft: rgba(35, 87, 235, 0.08);
  --danger: #d64242;
  --ok: #1f8f5f;
  --shadow: 0 22px 48px rgba(38, 68, 127, 0.08);
  --radius: 28px;
}

body {
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 14% 0%, rgba(86, 132, 255, 0.12), rgba(86, 132, 255, 0) 22%),
    linear-gradient(180deg, #f8f9fc 0%, #f2f4fa 100%);
  color: var(--text);
}

.page-shell {
  max-width: 1560px;
  padding: 24px 24px 56px;
}

.page-shell.page-shell-wide {
  max-width: 1680px;
}

.topbar {
  padding: 24px 28px;
  margin-bottom: 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(27, 35, 48, 0.06);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.brand {
  gap: 8px;
}

.brand-title {
  font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #171d27;
}

.brand-sub {
  max-width: 820px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.auth-pill,
.version-pill {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 16px;
  border: 1px solid rgba(27, 35, 48, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: #4e596b;
  backdrop-filter: blur(10px);
}

.btn,
.btn-primary,
.btn-ghost,
.btn-danger {
  min-height: 44px;
  border-radius: 16px;
  padding: 10px 16px;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, #2357eb 0%, #4d7fff 100%);
  box-shadow: 0 14px 28px rgba(35, 87, 235, 0.2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(27, 35, 48, 0.08);
}

.btn-danger {
  background: rgba(255, 241, 241, 0.94);
  border: 1px solid rgba(214, 66, 66, 0.14);
}

.panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(27, 35, 48, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.section-title,
.card-title {
  font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #171d27;
}

.section-desc,
.card-sub {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7d8797;
}

.field input,
.field textarea,
.field select {
  border-radius: 16px;
  border: 1px solid rgba(27, 35, 48, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(35, 87, 235, 0.38);
  box-shadow: 0 0 0 4px rgba(35, 87, 235, 0.08);
}

.info-box,
.asset-empty,
.mini-project-card,
.compact-details,
.project-list-group,
.project-item,
.deliverable-card,
.render-task-card,
.workflow-step,
.page-preview-pane,
.page-preview-media,
.analysis-card,
.analysis-confirm-box,
.analysis-structure-box,
.analysis-edit-box,
.blueprint-box-item,
.mask-editor-status,
.mask-editor-stage {
  border-color: rgba(27, 35, 48, 0.06);
  background: rgba(255, 255, 255, 0.94);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 320px;
  gap: 20px;
  align-items: start;
  padding: 30px 32px;
  margin-bottom: 20px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 18%, rgba(86, 132, 255, 0.14), rgba(86, 132, 255, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 249, 253, 0.98));
  border: 1px solid rgba(27, 35, 48, 0.05);
  box-shadow: var(--shadow);
}

.hero-content {
  display: grid;
  gap: 14px;
}

.hero-kicker,
.page-section-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a93a1;
}

.hero-title {
  margin: 0;
  font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #171d27;
}

.hero-sub {
  margin: 0;
  max-width: 820px;
  font-size: 15px;
  line-height: 1.85;
  color: #657083;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(27, 35, 48, 0.06);
  color: #4d5768;
  font-size: 13px;
  font-weight: 700;
}

.hero-aside {
  display: grid;
  gap: 14px;
}

.hero-stat-card {
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(27, 35, 48, 0.05);
}

.hero-stat-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a93a1;
}

.hero-stat-value {
  display: block;
  margin-bottom: 6px;
  font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  font-size: 26px;
  line-height: 1.04;
  color: #171d27;
}

.hero-stat-text {
  font-size: 14px;
  line-height: 1.75;
  color: #657083;
}

.page-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.page-section-title {
  margin: 6px 0 8px;
  font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #171d27;
}

.page-section-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #657083;
}

.login-modal {
  background: rgba(14, 24, 40, 0.4);
  backdrop-filter: blur(10px);
}

.login-card {
  width: min(560px, 100%);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(10, 20, 38, 0.22);
}

.toast {
  right: 20px;
  bottom: 20px;
  border-radius: 16px;
  background: rgba(20, 36, 63, 0.92);
}

@media (max-width: 1180px) {
  .dashboard-hero {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 20px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 16px 14px 36px;
  }
  .topbar,
  .dashboard-hero,
  .panel,
  .login-card {
    border-radius: 24px;
  }
  .hero-title {
    font-size: 32px;
  }
}

/* Detail workflow page refresh */
.detail-dashboard-hero {
  grid-template-columns: minmax(0, 1.35fr) 360px;
  margin-bottom: 18px;
}

.detail-hero-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-hero-flow-card {
  min-height: 164px;
  padding: 20px 20px 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(27, 35, 48, 0.05);
}

.detail-hero-flow-kicker,
.detail-overview-label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8b94a4;
}

.detail-hero-flow-title {
  margin: 0 0 10px;
  font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  font-size: 27px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #171d27;
}

.detail-hero-flow-sub,
.detail-overview-meta {
  font-size: 14px;
  line-height: 1.75;
  color: #657083;
}

.detail-hero-aside {
  gap: 12px;
}

.detail-hero-stat {
  min-height: 144px;
}

.detail-page-head {
  margin-bottom: 18px;
}

.detail-status-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.detail-app-layout {
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.sidebar-stack {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
  align-self: start;
}

.sidebar-panel {
  padding: 22px;
}

.rail-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(86, 132, 255, 0.1), rgba(86, 132, 255, 0) 38%),
    rgba(255, 255, 255, 0.94);
}

.workflow-map-panel {
  overflow: hidden;
}

.rail-mini-steps {
  display: grid;
  gap: 10px;
}

.rail-mini-step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(27, 35, 48, 0.05);
}

.rail-mini-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 999px;
  background: rgba(35, 87, 235, 0.1);
  color: #2357eb;
  font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.rail-mini-step-title {
  font-size: 15px;
  font-weight: 700;
  color: #171d27;
}

.rail-mini-step-sub {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.7;
  color: #657083;
}

.workspace-main,
.workspace-detail {
  gap: 20px;
}

.workspace-head,
.workspace-detail > .panel.card,
.workspace-detail > .panel.card.stepper-card,
.workspace-detail > .panel.card.page-preview-card,
.workflow-step-panel > .panel.card {
  padding: 22px 24px;
}

.workspace-head {
  background:
    radial-gradient(circle at 92% 14%, rgba(86, 132, 255, 0.12), rgba(86, 132, 255, 0) 34%),
    rgba(255, 255, 255, 0.94);
}

.empty-stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.empty-stage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 16px;
  margin-top: 18px;
  align-items: start;
}

.empty-stage-main {
  display: grid;
  gap: 18px;
}

.empty-stage-card {
  min-height: 172px;
  padding: 18px 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(27, 35, 48, 0.05);
}

.empty-stage-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8b94a4;
}

.empty-stage-title {
  margin-bottom: 10px;
  font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #171d27;
}

.empty-stage-sub {
  font-size: 14px;
  line-height: 1.75;
  color: #657083;
}

.empty-stage-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.empty-stage-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(27, 35, 48, 0.06);
  font-size: 13px;
  font-weight: 700;
  color: #4d5768;
}

.empty-stage-aside {
  display: grid;
  gap: 14px;
}

.empty-stage-aside-card {
  padding: 18px 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(27, 35, 48, 0.05);
}

.empty-stage-aside-title {
  margin-bottom: 10px;
  font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  font-size: 24px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #171d27;
}

.empty-stage-aside-sub {
  font-size: 14px;
  line-height: 1.75;
  color: #657083;
}

.empty-stage-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.empty-stage-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(244, 247, 252, 0.98);
  box-shadow: inset 0 0 0 1px rgba(27, 35, 48, 0.06);
  font-size: 12px;
  font-weight: 700;
  color: #4d5768;
}

.project-detail-actions {
  justify-content: flex-end;
}

.kv-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kv {
  min-height: 94px;
  padding: 14px 16px;
  border-radius: 18px;
}

.detail-overview-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.detail-overview-card {
  padding: 22px 24px;
}

.detail-overview-value {
  margin-bottom: 8px;
  font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  font-size: 32px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #171d27;
}

.stepper-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(86, 132, 255, 0.08), rgba(86, 132, 255, 0) 34%),
    rgba(255, 255, 255, 0.94);
}

.detail-stage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.detail-stage-rail {
  display: grid;
  gap: 16px;
}

.detail-stage-card {
  padding: 20px 22px;
}

.detail-stage-label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8b94a4;
}

.detail-stage-value {
  margin-bottom: 8px;
  font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #171d27;
}

.detail-stage-meta {
  font-size: 14px;
  line-height: 1.72;
  color: #657083;
}

.detail-stage-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.detail-stage-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(244, 247, 252, 0.98);
  box-shadow: inset 0 0 0 1px rgba(27, 35, 48, 0.06);
  font-size: 12px;
  font-weight: 700;
  color: #4d5768;
}

.detail-stage-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.detail-stage-metric {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(244, 247, 252, 0.98);
  box-shadow: inset 0 0 0 1px rgba(27, 35, 48, 0.06);
  display: grid;
  gap: 6px;
}

.detail-stage-metric span {
  font-size: 12px;
  color: #7b8595;
}

.detail-stage-metric strong {
  font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #171d27;
}

.detail-stage-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.detail-stage-row {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(244, 247, 252, 0.98);
  box-shadow: inset 0 0 0 1px rgba(27, 35, 48, 0.06);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-stage-row.long {
  display: grid;
  justify-content: stretch;
}

.detail-stage-row span {
  font-size: 13px;
  color: #667184;
}

.detail-stage-row strong {
  font-size: 13px;
  font-weight: 700;
  color: #171d27;
  text-align: right;
}

.workflow-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.workflow-step {
  min-height: 158px;
  padding: 16px;
  border-radius: 22px;
}

.workflow-step-index {
  width: 36px;
  height: 36px;
}

.page-preview-card {
  gap: 16px;
}

.page-preview-grid {
  gap: 18px;
}

.page-preview-pane {
  border-radius: 22px;
}

.page-preview-pane-head {
  padding: 14px 16px;
}

.page-preview-media {
  min-height: 440px;
}

.workspace-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
}

.workflow-step-panel {
  gap: 20px;
}

.info-box {
  border-radius: 18px;
  padding: 14px 16px;
}

.mini-project-card {
  min-height: 150px;
}

.asset-grid {
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
}

.deliverable-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.section-summary-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 1360px) {
  .detail-dashboard-hero,
  .detail-app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-stack {
    position: static;
  }

  .detail-hero-flow,
  .detail-overview-band,
  .empty-stage-grid,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .empty-stage-layout,
  .detail-stage-layout {
    grid-template-columns: 1fr;
  }

  .detail-stage-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kv-grid,
  .workflow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .detail-status-pills {
    justify-content: flex-start;
  }

  .detail-hero-flow-card,
  .sidebar-panel,
  .workspace-head,
  .detail-overview-card,
  .workspace-detail > .panel.card,
  .workflow-step-panel > .panel.card,
  .detail-stage-card,
  .empty-stage-aside-card {
    padding: 20px;
  }

  .kv-grid,
  .page-preview-grid,
  .workflow-steps,
  .detail-stage-rail,
  .detail-stage-metrics {
    grid-template-columns: 1fr;
  }
}

/* 2026 editorial polish */
:root {
  --bg: #f2ede6;
  --panel: rgba(255, 249, 243, 0.94);
  --panel-soft: #f4ede4;
  --text: #1f1a16;
  --muted: #74685d;
  --line: rgba(93, 71, 51, 0.14);
  --brand: #245a52;
  --brand-soft: #e4eee8;
  --danger: #b54e45;
  --ok: #1f7a52;
  --shadow: 0 24px 54px rgba(84, 56, 32, 0.08);
  --radius: 28px;
}

body {
  background:
    radial-gradient(circle at 0% 0%, rgba(191, 137, 90, 0.18), rgba(191, 137, 90, 0) 30%),
    radial-gradient(circle at 100% 6%, rgba(36, 90, 82, 0.12), rgba(36, 90, 82, 0) 28%),
    linear-gradient(180deg, #f9f5ef 0%, #f2ede6 48%, #ece4da 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.4), transparent 26%, transparent 74%, rgba(255, 255, 255, 0.24));
  opacity: 0.8;
}

.page-shell {
  position: relative;
  z-index: 1;
}

.topbar {
  background: linear-gradient(135deg, rgba(255, 250, 246, 0.95), rgba(247, 241, 233, 0.9));
  border: 1px solid rgba(93, 71, 51, 0.1);
  box-shadow: 0 28px 60px rgba(86, 57, 30, 0.08);
}

.brand-title,
.section-title,
.card-title,
.page-section-title,
.hero-title,
.detail-overview-value,
.detail-stage-value,
.empty-stage-title,
.empty-stage-aside-title {
  letter-spacing: -0.05em;
}

.brand-sub,
.section-desc,
.card-sub,
.page-section-sub,
.hero-sub,
.hero-stat-text,
.detail-overview-meta,
.detail-stage-meta,
.rail-mini-step-sub,
.empty-stage-sub,
.empty-stage-aside-sub {
  color: #6f6256;
}

.auth-pill,
.version-pill,
.hero-tag,
.empty-stage-pill,
.detail-stage-pill,
.empty-stage-chip {
  background: rgba(255, 251, 247, 0.9);
  box-shadow: inset 0 0 0 1px rgba(93, 71, 51, 0.08);
  color: #5f5449;
}

.btn-primary {
  background: linear-gradient(135deg, #245a52 0%, #3d756d 100%);
  box-shadow: 0 16px 34px rgba(36, 90, 82, 0.22);
}

.btn-ghost {
  background: rgba(255, 250, 245, 0.92);
  border: 1px solid rgba(93, 71, 51, 0.1);
}

.btn-danger {
  background: rgba(255, 243, 241, 0.96);
  border: 1px solid rgba(181, 78, 69, 0.12);
  color: #b24e45;
}

.panel {
  background: linear-gradient(180deg, rgba(255, 250, 245, 0.96), rgba(250, 244, 236, 0.94));
  border: 1px solid rgba(93, 71, 51, 0.08);
}

.dashboard-hero {
  background:
    radial-gradient(circle at 96% 12%, rgba(191, 137, 90, 0.18), rgba(191, 137, 90, 0) 26%),
    radial-gradient(circle at 12% 0%, rgba(36, 90, 82, 0.12), rgba(36, 90, 82, 0) 34%),
    linear-gradient(180deg, rgba(255, 251, 247, 0.97), rgba(248, 242, 235, 0.95));
  border: 1px solid rgba(93, 71, 51, 0.08);
}

.hero-kicker,
.page-section-kicker,
.detail-overview-label,
.detail-stage-label,
.empty-stage-kicker,
.hero-stat-label {
  color: #8b7966;
}

.hero-title,
.brand-title,
.section-title,
.card-title,
.page-section-title,
.detail-overview-value,
.detail-stage-value,
.empty-stage-title,
.empty-stage-aside-title,
.rail-mini-step-title {
  color: #1f1a16;
}

.hero-stat-card,
.detail-hero-flow-card,
.empty-stage-card,
.empty-stage-aside-card,
.rail-card,
.detail-overview-card,
.detail-stage-card,
.workspace-head,
.stepper-card {
  background: linear-gradient(180deg, rgba(255, 251, 247, 0.94), rgba(247, 240, 232, 0.94));
  box-shadow: inset 0 0 0 1px rgba(93, 71, 51, 0.06);
}

.field input,
.field textarea,
.field select,
.compact-details,
.mini-project-card,
.project-list-group,
.project-item,
.kv,
.info-box,
.asset-card,
.outline-card,
.page-preview-pane,
.analysis-confirm-box,
.blueprint-box-group,
.blueprint-box-item,
.detail-stage-metric,
.detail-stage-row {
  background: rgba(255, 251, 247, 0.92);
  border-color: rgba(93, 71, 51, 0.1);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(36, 90, 82, 0.36);
  box-shadow: 0 0 0 4px rgba(36, 90, 82, 0.08);
}

.info-box {
  background: linear-gradient(180deg, rgba(234, 243, 238, 0.78), rgba(255, 251, 247, 0.92));
  color: #5f5449;
}

.preview-badge {
  background: rgba(36, 90, 82, 0.1);
  color: #245a52;
}

.final-badge {
  background: rgba(31, 122, 82, 0.12);
  color: #1f7a52;
}

.project-item.active,
.asset-upload-slot.dragover,
.choice-chip.is-active {
  border-color: rgba(36, 90, 82, 0.24);
  background: rgba(228, 238, 232, 0.9);
}

.asset-upload-slot,
.page-preview-pane-head,
.outline-chip,
.detail-stage-metric,
.detail-stage-row,
.rail-mini-step {
  box-shadow: inset 0 0 0 1px rgba(93, 71, 51, 0.06);
}

.workflow-step {
  border: 1px solid rgba(93, 71, 51, 0.08);
  background: linear-gradient(180deg, rgba(255, 251, 247, 0.92), rgba(246, 239, 231, 0.9));
}

.workflow-step.current {
  border-color: rgba(36, 90, 82, 0.22);
  background: linear-gradient(180deg, rgba(230, 239, 232, 0.86), rgba(255, 251, 247, 0.96));
  box-shadow: 0 20px 32px rgba(36, 90, 82, 0.08);
}

.workflow-step.done {
  border-color: rgba(31, 122, 82, 0.18);
  background: linear-gradient(180deg, rgba(234, 247, 239, 0.92), rgba(255, 251, 247, 0.92));
}

.workflow-step.current .workflow-step-index,
.workflow-step.done .workflow-step-index {
  background: linear-gradient(135deg, #245a52 0%, #3d756d 100%);
  color: #fff;
}

body.auth-connected .topbar {
  padding: 18px 22px;
}

body.detail-page-ready .detail-dashboard-hero {
  grid-template-columns: minmax(0, 1.2fr) 320px;
  padding: 22px 24px 24px;
  gap: 16px;
}

body.detail-page-ready .detail-hero-flow {
  display: none;
}

body.detail-page-ready .hero-content {
  gap: 10px;
}

body.detail-page-ready .hero-title {
  max-width: 780px;
  font-size: clamp(34px, 3.5vw, 56px);
}

body.detail-page-ready .hero-sub {
  max-width: 820px;
  font-size: 14px;
  line-height: 1.72;
}

body.detail-page-ready .detail-hero-aside {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.detail-page-ready .detail-hero-stat {
  min-height: auto;
  padding: 16px 18px;
}

body.detail-page-ready .detail-page-head {
  margin: 6px 0 14px;
}

body.detail-page-ready #workspaceDetail {
  display: flex;
  flex-direction: column;
}

body.detail-page-ready #workspaceDetail > .detail-stage-layout {
  order: 1;
}

body.detail-page-ready #workspaceDetail > .detail-overview-band {
  order: 2;
}

body.detail-page-ready .detail-overview-band {
  gap: 12px;
}

body.detail-page-ready .detail-overview-card {
  padding: 16px 18px;
}

body.detail-page-ready .detail-overview-value {
  font-size: 26px;
}

@media (max-width: 1360px) {
  body.detail-page-ready .detail-hero-aside {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  body.detail-page-ready .detail-dashboard-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  body.detail-page-ready .detail-hero-aside {
    grid-template-columns: 1fr;
  }

  body.detail-page-ready #workspaceDetail > .detail-overview-band,
  body.detail-page-ready #workspaceDetail > .detail-stage-layout {
    order: initial;
  }
}

/* 2026 SaaS workbench alignment */
body.detail-workbench-page,
body.batch-workbench-page {
  --wb-bg: #f5f7fb;
  --wb-surface: rgba(255, 255, 255, 0.84);
  --wb-surface-strong: rgba(255, 255, 255, 0.94);
  --wb-line: rgba(148, 163, 184, 0.2);
  --wb-line-strong: rgba(37, 99, 235, 0.18);
  --wb-text: #0f172a;
  --wb-muted: #475467;
  --wb-subtle: #667085;
  --wb-accent: #2563eb;
  --wb-accent-strong: #1d4ed8;
  --wb-accent-soft: rgba(37, 99, 235, 0.08);
  --wb-shadow: 0 24px 52px rgba(15, 23, 42, 0.07);
  font-family: "SF Pro Display", "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at 50% -12%, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0) 28%),
    linear-gradient(180deg, #f8fafc 0%, #f4f7fb 56%, #eef3f8 100%);
  color: var(--wb-text);
  position: relative;
}

body.detail-workbench-page::before,
body.batch-workbench-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.04) 32%, transparent 76%);
  opacity: 0.32;
  z-index: 0;
}

body.detail-workbench-page .page-shell,
body.batch-workbench-page .page-shell {
  position: relative;
  z-index: 1;
  max-width: 1520px;
  padding-top: 24px;
}

body.detail-workbench-page .topbar,
body.batch-workbench-page .topbar {
  padding: 18px 22px;
  margin-bottom: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--wb-line);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

body.detail-workbench-page .brand,
body.batch-workbench-page .brand {
  gap: 4px;
}

body.detail-workbench-page .brand-title,
body.batch-workbench-page .brand-title {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--wb-text);
}

body.detail-workbench-page .brand-sub,
body.batch-workbench-page .brand-sub {
  max-width: 520px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--wb-muted);
}

body.detail-workbench-page .topbar-actions,
body.batch-workbench-page .topbar-actions {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.detail-workbench-page .auth-pill,
body.detail-workbench-page .version-pill,
body.detail-workbench-page .hero-tag,
body.detail-workbench-page .empty-stage-pill,
body.detail-workbench-page .detail-stage-pill,
body.detail-workbench-page .empty-stage-chip,
body.batch-workbench-page .auth-pill,
body.batch-workbench-page .version-pill,
body.batch-workbench-page .hero-tag {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--wb-line);
  box-shadow: none;
  color: var(--wb-subtle);
}

body.detail-workbench-page .version-pill,
body.batch-workbench-page .version-pill {
  color: var(--wb-accent-strong);
  background: rgba(239, 246, 255, 0.96);
  border-color: var(--wb-line-strong);
}

body.detail-workbench-page .btn-primary,
body.batch-workbench-page .btn-primary {
  background: linear-gradient(135deg, var(--wb-accent) 0%, var(--wb-accent-strong) 100%);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.18);
}

body.detail-workbench-page .btn-ghost,
body.batch-workbench-page .btn-ghost {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--wb-line);
  color: var(--wb-text);
}

body.detail-workbench-page .btn-danger,
body.batch-workbench-page .btn-danger {
  background: rgba(254, 242, 242, 0.9);
  border-color: rgba(248, 113, 113, 0.18);
}

body.detail-workbench-page .panel,
body.batch-workbench-page .panel,
body.detail-workbench-page .dashboard-hero,
body.batch-workbench-page .dashboard-hero {
  background: var(--wb-surface);
  border: 1px solid var(--wb-line);
  box-shadow: var(--wb-shadow);
  backdrop-filter: blur(14px);
}

body.detail-workbench-page .dashboard-hero,
body.batch-workbench-page .dashboard-hero {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
}

body.detail-workbench-page .hero-kicker,
body.detail-workbench-page .page-section-kicker,
body.detail-workbench-page .detail-overview-label,
body.detail-workbench-page .detail-stage-label,
body.detail-workbench-page .empty-stage-kicker,
body.detail-workbench-page .hero-stat-label,
body.batch-workbench-page .hero-kicker,
body.batch-workbench-page .page-section-kicker,
body.batch-workbench-page .hero-stat-label {
  color: var(--wb-subtle);
  letter-spacing: 0.16em;
}

body.detail-workbench-page .hero-title,
body.detail-workbench-page .brand-title,
body.detail-workbench-page .section-title,
body.detail-workbench-page .card-title,
body.detail-workbench-page .page-section-title,
body.detail-workbench-page .detail-overview-value,
body.detail-workbench-page .detail-stage-value,
body.detail-workbench-page .empty-stage-title,
body.detail-workbench-page .empty-stage-aside-title,
body.detail-workbench-page .rail-mini-step-title,
body.batch-workbench-page .hero-title,
body.batch-workbench-page .brand-title,
body.batch-workbench-page .section-title,
body.batch-workbench-page .card-title,
body.batch-workbench-page .page-section-title,
body.batch-workbench-page .studio-rail-title,
body.batch-workbench-page .batch-job-title,
body.batch-workbench-page .batch-item-title {
  font-family: "SF Pro Display", "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--wb-text);
}

body.detail-workbench-page .brand-sub,
body.detail-workbench-page .section-desc,
body.detail-workbench-page .card-sub,
body.detail-workbench-page .page-section-sub,
body.detail-workbench-page .hero-sub,
body.detail-workbench-page .hero-stat-text,
body.detail-workbench-page .detail-overview-meta,
body.detail-workbench-page .detail-stage-meta,
body.detail-workbench-page .rail-mini-step-sub,
body.detail-workbench-page .empty-stage-sub,
body.detail-workbench-page .empty-stage-aside-sub,
body.batch-workbench-page .section-desc,
body.batch-workbench-page .page-section-sub,
body.batch-workbench-page .hero-sub,
body.batch-workbench-page .hero-stat-text,
body.batch-workbench-page .studio-rail-sub,
body.batch-workbench-page .batch-job-meta,
body.batch-workbench-page .batch-item-meta,
body.batch-workbench-page .upload-card-meta,
body.batch-workbench-page .upload-dropzone-note,
body.batch-workbench-page .mini-help,
body.batch-workbench-page .info-box {
  color: var(--wb-muted);
}

body.detail-workbench-page .hero-title,
body.batch-workbench-page .hero-title {
  line-height: 0.98;
  text-wrap: balance;
}

body.detail-workbench-page .hero-sub,
body.batch-workbench-page .hero-sub {
  font-size: 14px;
  line-height: 1.76;
  max-width: 760px;
}

body.detail-workbench-page .page-section-title,
body.batch-workbench-page .page-section-title {
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.04;
}

body.detail-workbench-page .page-section-sub,
body.batch-workbench-page .page-section-sub {
  font-size: 14px;
  line-height: 1.72;
}

body.detail-workbench-page .field input,
body.detail-workbench-page .field textarea,
body.detail-workbench-page .field select,
body.detail-workbench-page .compact-details,
body.detail-workbench-page .mini-project-card,
body.detail-workbench-page .project-list-group,
body.detail-workbench-page .project-item,
body.detail-workbench-page .kv,
body.detail-workbench-page .info-box,
body.detail-workbench-page .asset-card,
body.detail-workbench-page .outline-card,
body.detail-workbench-page .page-preview-pane,
body.detail-workbench-page .analysis-confirm-box,
body.detail-workbench-page .blueprint-box-group,
body.detail-workbench-page .blueprint-box-item,
body.detail-workbench-page .detail-stage-metric,
body.detail-workbench-page .detail-stage-row,
body.batch-workbench-page .field input,
body.batch-workbench-page .field textarea,
body.batch-workbench-page .field select,
body.batch-workbench-page .info-box,
body.batch-workbench-page .upload-card,
body.batch-workbench-page .batch-job-card,
body.batch-workbench-page .batch-item-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--wb-line);
}

body.detail-workbench-page .field input:focus,
body.detail-workbench-page .field textarea:focus,
body.detail-workbench-page .field select:focus,
body.batch-workbench-page .field input:focus,
body.batch-workbench-page .field textarea:focus,
body.batch-workbench-page .field select:focus {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

body.detail-workbench-page .login-card,
body.batch-workbench-page .login-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

body.detail-workbench-page .login-modal,
body.batch-workbench-page .login-modal {
  background: rgba(15, 23, 42, 0.42);
}

@media (max-width: 860px) {
  body.detail-workbench-page .topbar,
  body.batch-workbench-page .topbar,
  body.detail-workbench-page .dashboard-hero,
  body.batch-workbench-page .dashboard-hero,
  body.detail-workbench-page .panel,
  body.batch-workbench-page .panel,
  body.detail-workbench-page .login-card,
  body.batch-workbench-page .login-card {
    border-radius: 22px;
  }

  body.detail-workbench-page .page-shell,
  body.batch-workbench-page .page-shell {
    padding-left: 14px;
    padding-right: 14px;
  }
}

body.detail-workbench-page .detail-dashboard-hero {
  grid-template-columns: minmax(0, 1.28fr) 320px;
  gap: 16px;
  padding: 24px 24px 22px;
}

body.detail-workbench-page .hero-content {
  gap: 12px;
}

body.detail-workbench-page .hero-title {
  max-width: 880px;
  font-size: clamp(38px, 3.9vw, 58px);
}

body.detail-workbench-page .hero-tags {
  gap: 8px;
}

body.detail-workbench-page .detail-hero-flow {
  gap: 12px;
}

body.detail-workbench-page .detail-hero-flow-card,
body.detail-workbench-page .hero-stat-card,
body.detail-workbench-page .rail-card,
body.detail-workbench-page .workspace-head,
body.detail-workbench-page .detail-overview-card,
body.detail-workbench-page .empty-stage-card,
body.detail-workbench-page .empty-stage-aside-card,
body.detail-workbench-page .stepper-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

body.detail-workbench-page .detail-hero-flow-card {
  min-height: 0;
  padding: 18px;
  border-radius: 20px;
}

body.detail-workbench-page .detail-hero-flow-kicker,
body.detail-workbench-page .detail-overview-label {
  color: var(--wb-subtle);
}

body.detail-workbench-page .detail-hero-flow-title {
  font-size: 22px;
  line-height: 1.06;
}

body.detail-workbench-page .detail-hero-flow-sub,
body.detail-workbench-page .detail-overview-meta {
  font-size: 13.5px;
  line-height: 1.72;
}

body.detail-workbench-page .detail-hero-aside {
  gap: 10px;
}

body.detail-workbench-page .detail-hero-stat {
  min-height: 0;
  padding: 18px;
  border-radius: 20px;
}

body.detail-workbench-page .hero-stat-value {
  font-size: 24px;
}

body.detail-workbench-page .detail-page-head {
  margin: 4px 0 14px;
}

body.detail-workbench-page .detail-status-pills {
  gap: 8px;
}

body.detail-workbench-page .detail-app-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

body.detail-workbench-page .sidebar-stack {
  gap: 14px;
}

body.detail-workbench-page .sidebar-panel {
  padding: 20px;
}

body.detail-workbench-page .workflow-map-panel {
  background: rgba(255, 255, 255, 0.82);
}

body.detail-workbench-page .rail-mini-step {
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14);
}

body.detail-workbench-page .rail-mini-step-index {
  border-radius: 12px;
  min-height: 34px;
  background: rgba(239, 246, 255, 0.92);
  color: var(--wb-accent-strong);
}

body.detail-workbench-page .workspace-head {
  padding: 20px;
}

body.detail-workbench-page .empty-stage-layout {
  gap: 16px;
}

body.detail-workbench-page .empty-stage-card,
body.detail-workbench-page .empty-stage-aside-card {
  border-radius: 18px;
  padding: 18px;
}

body.detail-workbench-page .empty-stage-pill,
body.detail-workbench-page .empty-stage-chip {
  border-radius: 12px;
  min-height: 34px;
  color: var(--wb-subtle);
}

body.detail-workbench-page .detail-overview-band {
  gap: 12px;
}

body.detail-workbench-page .detail-overview-card {
  padding: 18px;
  border-radius: 20px;
}

body.detail-workbench-page .detail-overview-value {
  font-size: 24px;
}

body.detail-workbench-page .workflow-step {
  border-radius: 16px;
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.88);
}

body.detail-workbench-page .workflow-step.current {
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(239, 246, 255, 0.9);
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.08);
}

body.detail-workbench-page .workflow-step.done {
  background: rgba(236, 253, 245, 0.9);
  border-color: rgba(16, 185, 129, 0.16);
}

body.detail-workbench-page .workflow-step.current .workflow-step-index,
body.detail-workbench-page .workflow-step.done .workflow-step-index {
  background: linear-gradient(135deg, var(--wb-accent) 0%, var(--wb-accent-strong) 100%);
}

body.detail-workbench-page .info-box {
  background: rgba(239, 246, 255, 0.76);
  color: var(--wb-muted);
}

body.detail-page-ready.detail-workbench-page .detail-dashboard-hero {
  grid-template-columns: minmax(0, 1.22fr) 320px;
  padding: 20px 22px;
}

body.detail-page-ready.detail-workbench-page .hero-title {
  max-width: 760px;
  font-size: clamp(34px, 3.4vw, 52px);
}

body.detail-page-ready.detail-workbench-page .hero-sub {
  font-size: 14px;
}

body.detail-page-ready.detail-workbench-page .detail-hero-stat {
  padding: 16px;
}

@media (max-width: 1360px) {
  body.detail-workbench-page .detail-dashboard-hero,
  body.detail-page-ready.detail-workbench-page .detail-dashboard-hero {
    grid-template-columns: 1fr;
  }

  body.detail-workbench-page .detail-hero-aside,
  body.detail-page-ready.detail-workbench-page .detail-hero-aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.detail-workbench-page .detail-app-layout {
    grid-template-columns: 1fr;
  }

  body.detail-workbench-page .sidebar-stack {
    position: static;
  }

  body.detail-workbench-page .detail-hero-flow,
  body.detail-workbench-page .detail-hero-aside {
    grid-template-columns: 1fr;
  }
}

/* 2026-04 workflow mid-area polish */
body.detail-workbench-page .workflow-panel-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 42%),
    rgba(248, 250, 255, 0.92);
}

body.detail-workbench-page .workflow-panel-kicker,
body.detail-workbench-page .section-summary-kicker,
body.detail-workbench-page .asset-card-type {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wb-subtle);
}

body.detail-workbench-page .workflow-panel-title {
  margin-top: 6px;
  font-family: "SF Pro Display", "Avenir Next", "PingFang SC", sans-serif;
  font-size: 22px;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--wb-text);
}

body.detail-workbench-page .workflow-panel-copy {
  margin-top: 6px;
  max-width: 760px;
  font-size: 13px;
  line-height: 1.72;
  color: var(--wb-muted);
}

body.detail-workbench-page .workflow-panel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.detail-workbench-page .workflow-panel-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 12px;
  font-weight: 700;
  color: var(--wb-subtle);
}

body.detail-workbench-page .workflow-step-panel {
  display: grid;
  gap: 16px;
}

body.detail-workbench-page .section-summary-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
}

body.detail-workbench-page .section-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

body.detail-workbench-page .section-summary-head b {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--wb-text);
}

body.detail-workbench-page .section-summary-grid,
body.detail-workbench-page .asset-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.detail-workbench-page .section-summary-stat,
body.detail-workbench-page .asset-meta-row {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.92);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14);
}

body.detail-workbench-page .section-summary-stat span,
body.detail-workbench-page .asset-meta-row span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wb-subtle);
}

body.detail-workbench-page .section-summary-stat strong,
body.detail-workbench-page .asset-meta-row strong {
  font-size: 14px;
  line-height: 1.4;
  color: var(--wb-text);
}

body.detail-workbench-page .section-summary-item .meta {
  font-size: 13px;
  line-height: 1.68;
  color: var(--wb-muted);
}

body.detail-workbench-page .asset-card {
  overflow: hidden;
  border-radius: 18px;
}

body.detail-workbench-page .asset-card img {
  aspect-ratio: 1.06 / 1;
}

body.detail-workbench-page .asset-body {
  display: grid;
  gap: 10px;
}

body.detail-workbench-page .asset-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.detail-workbench-page .asset-card-type {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.92);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--wb-accent-strong);
}

body.detail-workbench-page .asset-name {
  font-size: 15px;
  line-height: 1.4;
  color: var(--wb-text);
}

body.detail-workbench-page .asset-actions .btn-danger {
  min-height: 36px;
}

@media (max-width: 980px) {
  body.detail-workbench-page .workflow-panel-intro {
    grid-template-columns: 1fr;
  }

  body.detail-workbench-page .section-summary-grid,
  body.detail-workbench-page .asset-meta-grid {
    grid-template-columns: 1fr;
  }
}

body.detail-workbench-page .deliverable-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

body.detail-workbench-page .deliverable-card {
  display: grid;
  border-radius: 18px;
  overflow: hidden;
}

body.detail-workbench-page .deliverable-preview {
  background: rgba(248, 250, 252, 0.96);
}

body.detail-workbench-page .deliverable-card img {
  aspect-ratio: 1 / 1.16;
}

body.detail-workbench-page .deliverable-card-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

body.detail-workbench-page .deliverable-card-kicker {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wb-subtle);
}

body.detail-workbench-page .deliverable-head {
  margin-bottom: 0;
}

body.detail-workbench-page .deliverable-card-title {
  font-size: 16px;
  line-height: 1.2;
  color: var(--wb-text);
}

body.detail-workbench-page .deliverable-card-meta {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.68;
  color: var(--wb-muted);
}

body.detail-workbench-page .deliverable-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.detail-workbench-page .deliverable-card-stat {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.92);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14);
}

body.detail-workbench-page .deliverable-card-stat span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wb-subtle);
}

body.detail-workbench-page .deliverable-card-stat strong {
  font-size: 14px;
  line-height: 1.5;
  color: var(--wb-text);
}

body.detail-workbench-page .deliverable-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.detail-workbench-page .section-card {
  padding: 18px;
}

body.detail-workbench-page .section-head-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

body.detail-workbench-page .section-head-model {
  font-size: 12px;
  line-height: 1.6;
  color: var(--wb-muted);
  text-align: right;
}

body.detail-workbench-page .section-body {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

body.detail-workbench-page .section-preview-column {
  display: grid;
  gap: 12px;
}

body.detail-workbench-page .section-preview {
  min-height: 320px;
}

body.detail-workbench-page .section-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.detail-workbench-page .section-review-column {
  display: grid;
  gap: 12px;
}

body.detail-workbench-page .section-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 12px;
}

body.detail-workbench-page .section-review-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.92);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14);
}

body.detail-workbench-page .section-review-kicker {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wb-subtle);
}

body.detail-workbench-page .section-review-kicker-feedback {
  margin-top: 4px;
}

body.detail-workbench-page .section-brief {
  max-height: none;
  min-height: 176px;
  margin: 0;
  background: rgba(255, 255, 255, 0.88);
}

body.detail-workbench-page .section-form-grid {
  grid-template-columns: 1fr;
  margin-top: 0;
}

body.detail-workbench-page .section-actions {
  margin-top: 0;
}

body.detail-workbench-page .section-feedback-list {
  margin-top: 0;
}

body.detail-workbench-page .section-feedback-empty,
body.detail-workbench-page .section-tail-note {
  font-size: 13px;
  line-height: 1.68;
  color: var(--wb-muted);
}

@media (max-width: 1100px) {
  body.detail-workbench-page .section-body,
  body.detail-workbench-page .section-review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  body.detail-workbench-page .deliverable-card-grid {
    grid-template-columns: 1fr;
  }

  body.detail-workbench-page .section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  body.detail-workbench-page .section-head-side {
    justify-items: start;
  }
}

/* 2026-04 console polish override */
:root {
  --shell-max: 1540px;
  --shell-border: rgba(72, 94, 132, 0.14);
  --shell-shadow: 0 24px 54px rgba(17, 35, 71, 0.12);
  --shell-shadow-soft: 0 18px 36px rgba(17, 35, 71, 0.08);
  --shell-display-font: "SF Pro Display", "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.detail-workbench-page,
body.project-workbench-page,
body.batch-workbench-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(83, 117, 230, 0.14), rgba(83, 117, 230, 0) 32%),
    radial-gradient(circle at 100% 18%, rgba(197, 147, 92, 0.12), rgba(197, 147, 92, 0) 28%),
    linear-gradient(180deg, #f7fafc 0%, #eef4fb 52%, #edf2f8 100%);
}

.page-shell.page-shell-wide {
  max-width: var(--shell-max);
  padding: 18px 24px 56px;
  display: grid;
  gap: 18px;
}

body.detail-workbench-page .topbar,
body.project-workbench-page .topbar,
body.batch-workbench-page .topbar {
  position: sticky;
  top: 16px;
  z-index: 30;
  margin-bottom: 0;
  padding: 16px 18px;
  border: 1px solid var(--shell-border);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 18px 40px rgba(19, 40, 78, 0.1);
}

body.detail-workbench-page .brand-title,
body.project-workbench-page .brand-title,
body.batch-workbench-page .brand-title {
  font-family: var(--shell-display-font);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

body.detail-workbench-page .brand-sub,
body.project-workbench-page .brand-sub,
body.batch-workbench-page .brand-sub {
  max-width: 620px;
  font-size: 12px;
  line-height: 1.6;
  color: #5f7391;
}

body.detail-workbench-page .topbar-actions,
body.project-workbench-page .topbar-actions,
body.batch-workbench-page .topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

body.detail-workbench-page .auth-pill,
body.detail-workbench-page .version-pill,
body.project-workbench-page .auth-pill,
body.project-workbench-page .version-pill,
body.batch-workbench-page .auth-pill,
body.batch-workbench-page .version-pill {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(72, 94, 132, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #51657f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

body.detail-workbench-page .version-pill,
body.project-workbench-page .version-pill,
body.batch-workbench-page .version-pill {
  color: #295de3;
  background: linear-gradient(180deg, rgba(237, 243, 255, 0.98), rgba(246, 249, 255, 0.96));
}

body.detail-workbench-page .btn-primary,
body.detail-workbench-page .btn-ghost,
body.detail-workbench-page .btn-danger,
body.project-workbench-page .btn-primary,
body.project-workbench-page .btn-ghost,
body.project-workbench-page .btn-danger,
body.batch-workbench-page .btn-primary,
body.batch-workbench-page .btn-ghost,
body.batch-workbench-page .btn-danger {
  min-height: 44px;
  border-radius: 16px;
  font-weight: 700;
}

body.detail-workbench-page .dashboard-hero,
body.project-workbench-page .dashboard-hero,
body.batch-workbench-page .dashboard-hero {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
  padding: 28px 30px 30px;
  border: 1px solid var(--shell-border);
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(86, 132, 255, 0.14), rgba(86, 132, 255, 0) 34%),
    radial-gradient(circle at 0% 100%, rgba(195, 145, 93, 0.12), rgba(195, 145, 93, 0) 26%),
    rgba(255, 255, 255, 0.92);
  box-shadow: var(--shell-shadow);
}

body.detail-workbench-page .hero-content,
body.project-workbench-page .hero-content,
body.batch-workbench-page .hero-content {
  display: grid;
  gap: 18px;
  align-content: start;
}

body.detail-workbench-page .hero-kicker,
body.project-workbench-page .hero-kicker,
body.batch-workbench-page .hero-kicker,
body.detail-workbench-page .page-section-kicker,
body.project-workbench-page .page-section-kicker,
body.batch-workbench-page .page-section-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #72819a;
}

body.detail-workbench-page .hero-title,
body.project-workbench-page .hero-title,
body.batch-workbench-page .hero-title {
  margin: 0;
  max-width: 11ch;
  font-family: var(--shell-display-font);
  font-size: clamp(40px, 4.5vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: #172238;
}

body.detail-workbench-page .hero-sub,
body.project-workbench-page .hero-sub,
body.batch-workbench-page .hero-sub {
  max-width: 68ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: #53677f;
}

body.detail-workbench-page .hero-tags,
body.project-workbench-page .hero-tags,
body.batch-workbench-page .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.detail-workbench-page .hero-tag,
body.project-workbench-page .hero-tag,
body.batch-workbench-page .hero-tag {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(72, 94, 132, 0.12);
  color: #445a76;
  font-size: 13px;
  font-weight: 700;
}

body.detail-workbench-page .detail-hero-flow,
body.project-workbench-page .project-hero-flow,
body.batch-workbench-page .studio-hero-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.detail-workbench-page .detail-hero-flow-card,
body.project-workbench-page .project-hero-flow-card,
body.batch-workbench-page .studio-hero-flow-card,
body.detail-workbench-page .hero-stat-card,
body.project-workbench-page .hero-stat-card,
body.batch-workbench-page .hero-stat-card,
body.detail-workbench-page .detail-overview-card,
body.project-workbench-page .project-overview-card,
body.batch-workbench-page .studio-overview-card,
body.detail-workbench-page .rail-card,
body.project-workbench-page .manager-panel,
body.batch-workbench-page .workspace > .panel.card {
  border: 1px solid var(--shell-border);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(86, 132, 255, 0.09), rgba(86, 132, 255, 0) 34%),
    rgba(255, 255, 255, 0.96);
  box-shadow: var(--shell-shadow-soft);
}

body.detail-workbench-page .detail-hero-flow-card,
body.project-workbench-page .project-hero-flow-card,
body.batch-workbench-page .studio-hero-flow-card {
  min-height: 164px;
  padding: 18px 18px 20px;
}

body.detail-workbench-page .hero-aside,
body.project-workbench-page .hero-aside,
body.batch-workbench-page .hero-aside {
  display: grid;
  gap: 12px;
  align-content: start;
}

body.detail-workbench-page .hero-stat-card,
body.project-workbench-page .hero-stat-card,
body.batch-workbench-page .hero-stat-card {
  min-height: 136px;
  padding: 18px 18px 20px;
}

body.detail-workbench-page .hero-stat-label,
body.project-workbench-page .hero-stat-label,
body.batch-workbench-page .hero-stat-label {
  font-size: 12px;
  font-weight: 700;
  color: #7a879a;
}

body.detail-workbench-page .hero-stat-value,
body.project-workbench-page .hero-stat-value,
body.batch-workbench-page .hero-stat-value {
  margin-top: 8px;
  font-family: var(--shell-display-font);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #18263d;
}

body.detail-workbench-page .hero-stat-text,
body.project-workbench-page .hero-stat-text,
body.batch-workbench-page .hero-stat-text {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.68;
  color: #5a6f87;
}

body.detail-workbench-page .hero-title {
  max-width: 9ch;
  font-size: clamp(36px, 4.2vw, 68px);
}

body.detail-workbench-page .page-section-head,
body.project-workbench-page .page-section-head,
body.batch-workbench-page .page-section-head {
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 0;
}

body.detail-workbench-page .page-section-title,
body.project-workbench-page .page-section-title,
body.batch-workbench-page .page-section-title {
  margin: 4px 0 0;
  font-family: var(--shell-display-font);
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #18263d;
}

body.detail-workbench-page .page-section-sub,
body.project-workbench-page .page-section-sub,
body.batch-workbench-page .page-section-sub {
  max-width: 72ch;
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.72;
  color: #5d728b;
}

body.detail-workbench-page .detail-status-pills,
body.project-workbench-page .project-status-pills,
body.batch-workbench-page .studio-status-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

body.detail-workbench-page .detail-overview-band,
body.project-workbench-page .project-overview-band,
body.batch-workbench-page .studio-overview-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.detail-workbench-page .detail-overview-card,
body.project-workbench-page .project-overview-card,
body.batch-workbench-page .studio-overview-card {
  padding: 18px 20px;
}

body.detail-workbench-page .detail-overview-value,
body.project-workbench-page .project-overview-value,
body.batch-workbench-page .studio-overview-value {
  margin: 8px 0 0;
  font-family: var(--shell-display-font);
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

body.detail-workbench-page .workflow-steps {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

body.detail-workbench-page .workflow-step {
  min-height: 132px;
  align-content: start;
  border-radius: 20px;
}

body.detail-workbench-page .workspace > .panel.card,
body.batch-workbench-page .workspace > .panel.card {
  padding: 20px;
  border-radius: 28px;
}

@media (max-width: 1360px) {
  body.detail-workbench-page .hero-aside,
  body.project-workbench-page .hero-aside,
  body.batch-workbench-page .hero-aside,
  body.detail-workbench-page .detail-hero-flow,
  body.project-workbench-page .project-hero-flow,
  body.batch-workbench-page .studio-hero-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  body.detail-workbench-page .dashboard-hero,
  body.project-workbench-page .dashboard-hero,
  body.batch-workbench-page .dashboard-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .page-shell.page-shell-wide {
    padding: 16px 16px 48px;
  }

  body.detail-workbench-page .topbar,
  body.project-workbench-page .topbar,
  body.batch-workbench-page .topbar {
    position: static;
    padding: 16px;
  }

  body.detail-workbench-page .topbar,
  body.project-workbench-page .topbar,
  body.batch-workbench-page .topbar,
  body.detail-workbench-page .page-section-head,
  body.project-workbench-page .page-section-head,
  body.batch-workbench-page .page-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  body.detail-workbench-page .topbar-actions,
  body.project-workbench-page .topbar-actions,
  body.batch-workbench-page .topbar-actions,
  body.detail-workbench-page .detail-status-pills,
  body.project-workbench-page .project-status-pills,
  body.batch-workbench-page .studio-status-pills {
    justify-content: flex-start;
  }

  body.detail-workbench-page .hero-aside,
  body.project-workbench-page .hero-aside,
  body.batch-workbench-page .hero-aside,
  body.detail-workbench-page .detail-hero-flow,
  body.project-workbench-page .project-hero-flow,
  body.batch-workbench-page .studio-hero-flow,
  body.detail-workbench-page .detail-overview-band,
  body.project-workbench-page .project-overview-band,
  body.batch-workbench-page .studio-overview-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.detail-workbench-page .dashboard-hero,
  body.project-workbench-page .dashboard-hero,
  body.batch-workbench-page .dashboard-hero {
    padding: 22px 20px 24px;
    border-radius: 28px;
  }

  body.detail-workbench-page .hero-title,
  body.project-workbench-page .hero-title,
  body.batch-workbench-page .hero-title {
    max-width: none;
    font-size: clamp(34px, 11vw, 54px);
  }

  body.detail-workbench-page .topbar-actions > *,
  body.project-workbench-page .topbar-actions > *,
  body.batch-workbench-page .topbar-actions > * {
    width: 100%;
  }

  body.detail-workbench-page .workflow-steps {
    grid-template-columns: 1fr;
  }
}

/* 2026-04 console shortcuts */
body.detail-workbench-page .console-shortcuts,
body.project-workbench-page .console-shortcuts,
body.batch-workbench-page .console-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0 20px;
}

body.detail-workbench-page .console-shortcut-btn,
body.project-workbench-page .console-shortcut-btn,
body.batch-workbench-page .console-shortcut-btn {
  min-height: 46px;
  padding: 0 16px;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 14px 26px rgba(17, 35, 71, 0.08),
    inset 0 0 0 1px rgba(72, 94, 132, 0.12);
  color: #19304d;
  font-size: 13px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

body.detail-workbench-page .console-shortcut-btn:hover,
body.project-workbench-page .console-shortcut-btn:hover,
body.batch-workbench-page .console-shortcut-btn:hover,
body.detail-workbench-page .console-shortcut-btn:focus-visible,
body.project-workbench-page .console-shortcut-btn:focus-visible,
body.batch-workbench-page .console-shortcut-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 20px 34px rgba(17, 35, 71, 0.12),
    inset 0 0 0 1px rgba(41, 93, 227, 0.18);
  color: #163793;
  outline: none;
}

body.detail-workbench-page .console-shortcut-hint,
body.project-workbench-page .console-shortcut-hint,
body.batch-workbench-page .console-shortcut-hint {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(244, 248, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(72, 94, 132, 0.1);
  color: #5b7087;
  font-size: 13px;
  line-height: 1.5;
}

body.detail-workbench-page .hero-stat-card[data-scroll-target],
body.detail-workbench-page .hero-stat-card[data-click-target],
body.project-workbench-page .hero-stat-card[data-scroll-target],
body.project-workbench-page .hero-stat-card[data-click-target],
body.batch-workbench-page .hero-stat-card[data-scroll-target],
body.batch-workbench-page .hero-stat-card[data-click-target] {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body.detail-workbench-page .hero-stat-card[data-scroll-target]:hover,
body.detail-workbench-page .hero-stat-card[data-click-target]:hover,
body.project-workbench-page .hero-stat-card[data-scroll-target]:hover,
body.project-workbench-page .hero-stat-card[data-click-target]:hover,
body.batch-workbench-page .hero-stat-card[data-scroll-target]:hover,
body.batch-workbench-page .hero-stat-card[data-click-target]:hover,
body.detail-workbench-page .hero-stat-card[data-scroll-target]:focus-visible,
body.detail-workbench-page .hero-stat-card[data-click-target]:focus-visible,
body.project-workbench-page .hero-stat-card[data-scroll-target]:focus-visible,
body.project-workbench-page .hero-stat-card[data-click-target]:focus-visible,
body.batch-workbench-page .hero-stat-card[data-scroll-target]:focus-visible,
body.batch-workbench-page .hero-stat-card[data-click-target]:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(41, 93, 227, 0.18);
  box-shadow: 0 26px 44px rgba(17, 35, 71, 0.14);
  outline: none;
}

body.detail-workbench-page .is-jump-highlight,
body.project-workbench-page .is-jump-highlight,
body.batch-workbench-page .is-jump-highlight {
  animation: console-jump-highlight 1s ease;
}

@keyframes console-jump-highlight {
  0% {
    box-shadow: 0 0 0 0 rgba(41, 93, 227, 0), 0 12px 28px rgba(17, 35, 71, 0.08);
  }
  35% {
    box-shadow: 0 0 0 6px rgba(41, 93, 227, 0.12), 0 24px 40px rgba(17, 35, 71, 0.14);
  }
  100% {
    box-shadow: 0 12px 28px rgba(17, 35, 71, 0.08);
  }
}

@media (max-width: 980px) {
  body.detail-workbench-page .console-shortcuts,
  body.project-workbench-page .console-shortcuts,
  body.batch-workbench-page .console-shortcuts {
    margin: 14px 0 18px;
  }

  body.detail-workbench-page .console-shortcut-hint,
  body.project-workbench-page .console-shortcut-hint,
  body.batch-workbench-page .console-shortcut-hint {
    width: 100%;
  }
}
