/** 参考 mockup · 三栏首页布局覆盖 */

.workbench__shell--view-a {
  align-items: stretch;
  padding: clamp(10px, 1.6vh, 16px) clamp(12px, 2vw, 24px);
  gap: 10px;
}

.workbench__title-screen,
.workbench__corner-nav {
  display: none;
}

/* ─── 顶栏 · 三列网格 ─── */
.workbench__topbar {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(214, 176, 106, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(10, 14, 20, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.workbench__topbar-brand {
  min-width: 0;
  justify-self: start;
}

/* Navbar brand lockup → css/brand-lockup.css */

.workbench__topbar .workbench__brand-orn {
  display: none;
}

.workbench__epigraph {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  max-width: 300px;
}

.workbench__epigraph-line {
  margin: 0;
  font-family: var(--font-display-en);
  font-size: clamp(11px, 1.35vh, 13px);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.45;
}

.workbench__epigraph-line--luminous {
  color: var(--sky);
  text-shadow: 0 0 18px var(--sky-soft), 0 0 6px rgba(143, 164, 200, 0.2);
}

.workbench__epigraph-line--zest {
  color: var(--sakura);
  text-shadow: 0 0 16px var(--sakura-soft);
}

.workbench__epigraph-cap {
  display: inline-block;
  font-size: 1.14em;
  font-weight: 500;
  font-style: normal;
  font-variant: small-caps;
  letter-spacing: 0.03em;
  position: relative;
}

.workbench__epigraph-line--luminous .workbench__epigraph-cap {
  color: color-mix(in srgb, var(--sakura) 82%, white 18%);
  text-shadow: 0 0 14px var(--sakura-soft);
}

.workbench__epigraph-line--zest .workbench__epigraph-cap {
  color: color-mix(in srgb, var(--sky) 78%, #dce4f0 22%);
  text-shadow: 0 0 16px var(--sky-soft), 0 0 6px rgba(143, 164, 200, 0.2);
}

.workbench__epigraph-cap::after {
  content: "";
  position: absolute;
  left: 0.08em;
  right: 0.08em;
  bottom: 0.04em;
  height: 1px;
  background: currentColor;
  opacity: 0.22;
  pointer-events: none;
}

.workbench__epigraph-sep {
  display: block;
  width: min(120px, 42vw);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--vn-border-gold) 18%,
    var(--vn-gold) 50%,
    var(--vn-border-gold) 82%,
    transparent
  );
  opacity: 0.55;
}

.workbench__epigraph-sep::before {
  content: "·";
  display: block;
  margin: -7px auto 0;
  width: 14px;
  font-size: 10px;
  line-height: 1;
  color: var(--vn-gold);
  background: rgba(10, 14, 20, 0.55);
}

.workbench__topbar-end {
  justify-self: end;
  display: flex;
  align-items: center;
  min-width: 32px;
}

.workbench__theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition:
    color var(--transition-base),
    border-color var(--transition-base),
    background var(--transition-base),
    box-shadow var(--transition-base);
}

.workbench__theme-toggle:hover,
.workbench__theme-toggle:focus-visible {
  color: var(--vn-ivory);
  border-color: rgba(214, 176, 106, 0.38);
  background: rgba(214, 176, 106, 0.08);
}

.workbench__theme-toggle.is-active {
  color: var(--vn-gold);
  border-color: var(--vn-border-gold);
  box-shadow: 0 0 14px var(--vn-glow-gold);
}

.workbench__theme-toggle-icon {
  display: block;
}

.workbench__theme-toggle-icon[hidden] {
  display: none;
}

/* ─── 氛围光效 · 明亮 / 柔和 ─── */
.workbench--luminous .workbench__atmosphere-img {
  filter: saturate(1.04) contrast(1.05) brightness(1.08);
  transition: filter 0.45s var(--ease-out);
}

.workbench--luminous .workbench__atmosphere::after {
  background:
    linear-gradient(180deg, rgba(155, 122, 212, 0.06) 0%, transparent 32%),
    linear-gradient(180deg, transparent 76%, rgba(10, 14, 20, 0.08) 100%);
  transition: background 0.45s var(--ease-out);
}

.workbench--luminous .workbench__particles {
  opacity: 1;
  transition: opacity 0.45s var(--ease-out);
}

.workbench--dim .workbench__atmosphere-img {
  filter: saturate(0.76) contrast(1.02) brightness(0.78);
  transition: filter 0.45s var(--ease-out);
}

.workbench--dim .workbench__atmosphere::after {
  background:
    linear-gradient(180deg, rgba(10, 14, 20, 0.22) 0%, transparent 38%),
    linear-gradient(180deg, transparent 68%, rgba(10, 14, 20, 0.28) 100%);
  transition: background 0.45s var(--ease-out);
}

.workbench--dim .workbench__particles {
  opacity: 0.35;
  transition: opacity 0.45s var(--ease-out);
}

/* ─── 三栏工作区 ─── */
.workbench__workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(240px, 26%) minmax(0, 1.48fr) minmax(220px, 24%);
  gap: clamp(10px, 1.4vw, 14px);
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

/* 中栏 · 风格选择为视觉焦点 */
.workbench__center-hub {
  position: relative;
  z-index: 1;
  border-color: rgba(214, 176, 106, 0.32);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.38),
    0 0 32px rgba(214, 176, 106, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.workbench__panel {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(214, 176, 106, 0.2);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(214, 176, 106, 0.06), transparent 70%),
    linear-gradient(168deg, rgba(18, 24, 32, 0.52) 0%, rgba(10, 14, 20, 0.48) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(214, 176, 106, 0.06);
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

/* 暗色面板 · 四角金线括号 + 纸纹 */
.workbench__panel:not(.workbench__input-panel--parchment):not(.workbench__load-rail--parchment) {
  --ornate-corner: 16px;
  --ornate-gap: 7px;
  --ornate-stroke: rgba(214, 176, 106, 0.44);
}

.workbench__panel:not(.workbench__input-panel--parchment):not(.workbench__load-rail--parchment)::before {
  content: "";
  position: absolute;
  inset: var(--ornate-gap);
  pointer-events: none;
  z-index: 3;
  background:
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) left top / var(--ornate-corner) 1px no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) left top / 1px var(--ornate-corner) no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) right top / var(--ornate-corner) 1px no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) right top / 1px var(--ornate-corner) no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) left bottom / var(--ornate-corner) 1px no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) left bottom / 1px var(--ornate-corner) no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) right bottom / var(--ornate-corner) 1px no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) right bottom / 1px var(--ornate-corner) no-repeat;
}

.workbench__panel:not(.workbench__input-panel--parchment):not(.workbench__load-rail--parchment)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.workbench__center-hub:hover {
  border-color: rgba(214, 176, 106, 0.38);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(214, 176, 106, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(214, 176, 106, 0.1);
}

.workbench__panel-head {
  position: relative;
  flex-shrink: 0;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.workbench__panel-head::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(214, 176, 106, 0.38) 18%,
    rgba(214, 176, 106, 0.55) 50%,
    rgba(214, 176, 106, 0.38) 82%,
    transparent
  );
  pointer-events: none;
}

.workbench__panel-head--center {
  text-align: center;
}

.workbench__panel-head--style {
  padding-bottom: 8px;
}

.workbench__panel-title--decorated {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.workbench__title-diamond {
  font-size: 8px;
  color: var(--vn-gold);
  opacity: 0.75;
  transform: scale(0.85);
}

.workbench__panel-title {
  margin: 0;
  font-family: var(--font-display-cn);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--vn-gold);
}

.workbench__panel-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

/* 左栏 · 手稿 · 羊皮纸风（mockup） */
.workbench__input-panel--parchment {
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

.workbench__input-panel--parchment .workbench__panel-body {
  position: relative;
  padding: 0;
  overflow: visible;
  background: transparent;
  color: #3d3028;
}

.workbench__input-panel .workbench__panel-body.workbench__manuscript-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.workbench__manuscript-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: clamp(16px, 2.4vh, 22px) clamp(14px, 2vw, 18px) clamp(14px, 2vh, 18px);
  border: 2px solid rgba(120, 90, 58, 0.55);
  outline: 1px solid rgba(120, 90, 58, 0.32);
  outline-offset: 3px;
  border-radius: 2px;
  background:
    radial-gradient(ellipse 120px 80px at 92% 88%, rgba(180, 150, 110, 0.12), transparent 70%),
    radial-gradient(circle 3px at 78% 72%, rgba(214, 176, 106, 0.35), transparent 100%),
    radial-gradient(circle 2px at 85% 65%, rgba(214, 176, 106, 0.25), transparent 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(180, 150, 110, 0.06) 27px,
      rgba(180, 150, 110, 0.06) 28px
    ),
    linear-gradient(168deg, #f8f4ec 0%, #efe8dc 48%, #ebe3d4 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.65),
    inset 0 2px 24px rgba(120, 90, 58, 0.04),
    0 10px 40px rgba(0, 0, 0, 0.16);
  font-family: "Noto Serif SC", var(--font-display-cn), serif;
}

.workbench__manuscript-frame > * {
  position: relative;
  z-index: 1;
}

/* 羊皮纸纸纹 overlay */
.workbench__manuscript-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.35;
  background:
    radial-gradient(circle at 20% 30%, rgba(180, 150, 110, 0.08), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(120, 90, 58, 0.06), transparent 40%);
}

.workbench__manuscript-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 四角装饰括号 */
.workbench__manuscript-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  border-color: rgba(120, 90, 58, 0.52);
  border-style: solid;
}

.workbench__manuscript-corner--tl {
  top: 8px;
  left: 8px;
  border-width: 2px 0 0 2px;
}

.workbench__manuscript-corner--tr {
  top: 8px;
  right: 8px;
  border-width: 2px 2px 0 0;
}

.workbench__manuscript-corner--bl {
  bottom: 8px;
  left: 8px;
  border-width: 0 0 2px 2px;
}

.workbench__manuscript-corner--br {
  bottom: 8px;
  right: 8px;
  border-width: 0 2px 2px 0;
}

/* 上传区 */
.workbench__input-panel .workbench__dropzone {
  flex-shrink: 0;
  margin: 0 4px;
  padding: clamp(10px, 1.8vh, 16px) 12px clamp(8px, 1.4vh, 12px);
  border: 1px solid rgba(214, 176, 106, 0.38);
  border-radius: var(--radius-xs);
  background: rgba(255, 252, 246, 0.35);
  text-align: center;
  transition:
    opacity var(--transition-base),
    border-color var(--transition-base),
    background var(--transition-base),
    box-shadow var(--transition-base);
}

.workbench__input-panel .workbench__dropzone:hover,
.workbench__input-panel .workbench__dropzone:focus-within {
  border-color: rgba(214, 176, 106, 0.55);
  background: rgba(255, 252, 246, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(214, 176, 106, 0.12),
    0 0 16px rgba(214, 176, 106, 0.08);
}

.workbench__input-panel .workbench__dropzone.is-dragover {
  opacity: 1;
  border-color: rgba(184, 149, 90, 0.55);
  border-style: solid;
  background: rgba(214, 176, 106, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(214, 176, 106, 0.18),
    0 0 20px rgba(214, 176, 106, 0.08);
}

.workbench__input-panel .workbench__dropzone.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

.workbench__dropzone-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.workbench__dropzone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(90, 68, 42, 0.78);
}

.workbench__dropzone-main {
  font-family: "Noto Serif SC", var(--font-display-cn), serif;
  font-size: clamp(15px, 2vh, 18px);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #3d3028;
}

.workbench__dropzone-or {
  font-family: "Noto Serif SC", var(--font-display-cn), serif;
  font-size: clamp(12px, 1.6vh, 14px);
  font-weight: 500;
  color: rgba(90, 68, 42, 0.72);
  letter-spacing: 0.04em;
}

/* 文件格式图标行 */
.workbench__file-types {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(4px, 1.2vw, 10px);
  margin: clamp(4px, 0.8vh, 8px) 0 0;
  padding: 0;
  list-style: none;
}

.workbench__file-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 0;
  max-width: 52px;
}

.workbench__file-type-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.workbench__file-type-icon svg {
  width: clamp(22px, 2.6vw, 28px);
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(61, 48, 40, 0.12));
}

.workbench__file-type-label {
  font-family: "Noto Serif SC", var(--font-display-cn), serif;
  font-size: clamp(9px, 1.1vw, 11px);
  font-weight: 600;
  color: rgba(61, 48, 40, 0.82);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* 支持说明 */
.workbench__format-support {
  flex-shrink: 0;
  margin: clamp(8px, 1.2vh, 12px) 0 clamp(10px, 1.4vh, 14px);
  text-align: center;
}

.workbench__input-panel .workbench__formats {
  margin: 0;
  font-family: "Noto Serif SC", var(--font-display-cn), serif;
  font-size: clamp(10px, 1.3vw, 12px);
  font-weight: 500;
  line-height: 1.55;
  color: rgba(61, 48, 40, 0.78);
  letter-spacing: 0.02em;
}

.workbench__formats-limits {
  margin: 4px 0 0;
  font-family: "Noto Serif SC", var(--font-display-cn), serif;
  font-size: clamp(9px, 1.2vw, 11px);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(90, 68, 42, 0.62);
  letter-spacing: 0.02em;
}

/* 文本输入区 */
.workbench__textarea-wrap {
  position: relative;
  flex: 1;
  min-height: clamp(100px, 18vh, 160px);
  display: flex;
  flex-direction: column;
}

.workbench__textarea-wrap--filigree {
  padding: 8px;
  border: 1px solid rgba(120, 90, 58, 0.2);
  border-radius: 12px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(120, 90, 58, 0.05) 27px,
      rgba(120, 90, 58, 0.05) 28px
    ),
    rgba(248, 244, 236, 0.35);
  box-shadow:
    inset 0 0 0 1px rgba(255, 252, 246, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.35);
}

.workbench__textarea-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.72;
  background-repeat: no-repeat;
  background-size: contain;
}

.workbench__textarea-corner--tl {
  top: 2px;
  left: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M1 1h8M1 1v8' stroke='%23785a3a' stroke-width='1.2'/%3E%3Cpath d='M1 1c3 1 5 3 6 6' stroke='%23a88458' stroke-width='0.75' opacity='0.7'/%3E%3C/svg%3E");
}

.workbench__textarea-corner--tr {
  top: 2px;
  right: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M17 1H9M17 1v8' stroke='%23785a3a' stroke-width='1.2'/%3E%3Cpath d='M17 1c-3 1-5 3-6 6' stroke='%23a88458' stroke-width='0.75' opacity='0.7'/%3E%3C/svg%3E");
}

.workbench__textarea-corner--bl {
  bottom: 2px;
  left: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M1 17h8M1 17V9' stroke='%23785a3a' stroke-width='1.2'/%3E%3Cpath d='M1 17c3-1 5-3 6-6' stroke='%23a88458' stroke-width='0.75' opacity='0.7'/%3E%3C/svg%3E");
}

.workbench__textarea-corner--br {
  bottom: 2px;
  right: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M17 17H9M17 17V9' stroke='%23785a3a' stroke-width='1.2'/%3E%3Cpath d='M17 17c-3-1-5-3-6-6' stroke='%23a88458' stroke-width='0.75' opacity='0.7'/%3E%3C/svg%3E");
}

.workbench__input-panel .workbench__textarea {
  flex: 1;
  min-height: clamp(100px, 18vh, 160px);
  width: 100%;
  padding: clamp(12px, 1.6vh, 16px) clamp(14px, 1.8vw, 18px);
  border: 1px solid rgba(120, 90, 58, 0.24);
  border-radius: 10px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(120, 90, 58, 0.05) 27px,
      rgba(120, 90, 58, 0.05) 28px
    ),
    rgba(180, 165, 145, 0.22);
  box-shadow:
    inset 0 1px 6px rgba(90, 68, 42, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  color: #3d3028;
  font-family: "Noto Serif SC", var(--font-display-cn), serif;
  font-size: clamp(12px, 1.5vh, 14px);
  line-height: 1.7;
  resize: vertical;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.workbench__input-panel .workbench__textarea::placeholder {
  color: rgba(90, 68, 42, 0.4);
  font-weight: 400;
}

.workbench__input-panel .workbench__textarea:focus-visible {
  outline: none;
  border-color: rgba(120, 90, 58, 0.42);
  box-shadow:
    inset 0 2px 10px rgba(90, 68, 42, 0.08),
    0 0 0 2px rgba(120, 90, 58, 0.14);
}

/* 底部 meta 行 */
.workbench__input-panel .workbench__manuscript-meta {
  flex-shrink: 0;
  margin-top: clamp(8px, 1.2vh, 10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.workbench__input-panel .workbench__hint {
  margin: 0;
  font-family: "Noto Serif SC", var(--font-display-cn), serif;
  font-size: clamp(11px, 1.4vh, 13px);
  font-weight: 500;
  color: rgba(61, 48, 40, 0.82);
  letter-spacing: 0.02em;
}

.workbench__input-panel .workbench__hint.is-warn {
  color: #8a6a2a;
}

.workbench__input-panel .workbench__hint.is-over {
  color: #a83232;
}

.workbench__clear-btn {
  flex-shrink: 0;
  min-height: 32px;
  padding: 5px 16px;
  border: 1px solid rgba(120, 90, 58, 0.38);
  border-radius: 999px;
  background: rgba(248, 244, 236, 0.85);
  color: rgba(61, 48, 40, 0.88);
  font-family: "Noto Serif SC", var(--font-display-cn), serif;
  font-size: clamp(11px, 1.4vh, 13px);
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    border-color var(--transition-base),
    background var(--transition-base),
    box-shadow var(--transition-base);
}

.workbench__clear-btn:hover,
.workbench__clear-btn:focus-visible {
  border-color: rgba(120, 90, 58, 0.55);
  background: rgba(255, 252, 246, 0.95);
  box-shadow: 0 2px 8px rgba(90, 68, 42, 0.1);
}

.workbench__paste-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.2vw, 14px);
  margin: 10px 0 8px;
  padding: 0;
  text-align: center;
  font-family: "Noto Serif SC", var(--font-display-cn), serif;
  font-size: clamp(12px, 1.55vh, 14px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(90, 68, 42, 0.62);
  background: none;
  border: none;
  box-shadow: none;
}

.workbench__paste-label::before,
.workbench__paste-label::after {
  content: "";
  flex: 1;
  max-width: 56px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(120, 90, 58, 0.28) 18%,
    rgba(168, 132, 88, 0.42) 50%,
    rgba(120, 90, 58, 0.28) 82%,
    transparent
  );
}

.workbench__paste-label::before {
  margin-right: 2px;
}

.workbench__paste-label::after {
  margin-left: 2px;
}

/* 六种格式 · 卷轴图标 · 各用独立色 */
.workbench__file-type-icon--txt svg .scroll-body {
  fill: #7a8490;
}

.workbench__file-type-icon--md svg .scroll-body {
  fill: #5a9878;
}

.workbench__file-type-icon--word svg .scroll-body {
  fill: #2b579a;
}

.workbench__file-type-icon--pdf svg .scroll-body {
  fill: #d94a4a;
}

.workbench__file-type-icon--rtf svg .scroll-body {
  fill: #9b7ad4;
}

.workbench__file-type-icon--epub svg .scroll-body {
  fill: #c9a054;
}

.workbench__input-panel .workshop__upload-status {
  flex-shrink: 0;
  margin-top: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(120, 90, 58, 0.28);
  background: rgba(255, 252, 246, 0.92);
  color: rgba(42, 34, 24, 0.88);
}

.workbench__input-panel .workshop__upload-status.is-ok {
  border-color: rgba(90, 130, 80, 0.45);
  background: rgba(235, 248, 232, 0.95);
  color: #2d4a28;
}

.workbench__input-panel .workshop__upload-status.is-error {
  border-color: rgba(180, 70, 70, 0.4);
  background: rgba(255, 242, 242, 0.96);
  color: #8b3030;
}

.workbench__input-panel .workshop__upload-status.is-loading {
  border-color: rgba(120, 90, 58, 0.4);
  background: rgba(255, 248, 235, 0.96);
  color: #5a4428;
}

.workbench__input-panel .upload-progress {
  flex-shrink: 0;
  margin-top: 6px;
}

.workbench__scene-stage {
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.scene-stage__frame {
  height: 100%;
  min-height: clamp(180px, 32vh, 360px);
}

.style-hub {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 14px 14px;
  gap: 10px;
}

.style-hub__stage-row {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(132px, 3fr);
  gap: 12px;
  align-items: stretch;
}

.scene-stage__frame--filigree {
  border: 1px solid rgba(214, 176, 106, 0.55);
  box-shadow:
    0 0 24px rgba(214, 176, 106, 0.15),
    0 12px 48px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(214, 176, 106, 0.12);
  animation: scene-frame-glow 4.5s ease-in-out infinite;
}

@keyframes scene-frame-glow {
  0%, 100% {
    box-shadow:
      0 0 22px rgba(214, 176, 106, 0.14),
      0 12px 48px rgba(0, 0, 0, 0.4),
      inset 0 0 0 1px rgba(214, 176, 106, 0.12);
  }
  50% {
    box-shadow:
      0 0 34px rgba(214, 176, 106, 0.24),
      0 12px 48px rgba(0, 0, 0, 0.4),
      inset 0 0 0 1px rgba(214, 176, 106, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-stage__frame--filigree,
  .class-rpg.preset-btn--active {
    animation: none;
  }
}

.workbench__shell[data-style="xianxia"] .scene-stage__frame--filigree {
  border-color: rgba(155, 122, 212, 0.52);
  box-shadow:
    0 0 28px rgba(155, 122, 212, 0.18),
    0 0 12px rgba(214, 176, 106, 0.1),
    0 12px 48px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(155, 122, 212, 0.14);
}

.workbench__shell[data-style="urban_romance"] .scene-stage__frame--filigree {
  border-color: rgba(216, 154, 165, 0.52);
  box-shadow:
    0 0 28px rgba(216, 154, 165, 0.16),
    0 0 12px rgba(214, 176, 106, 0.1),
    0 12px 48px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(216, 154, 165, 0.14);
}

.workbench__shell[data-style="mystery"] .scene-stage__frame--filigree {
  border-color: rgba(143, 164, 200, 0.58);
  box-shadow:
    0 0 30px rgba(143, 164, 200, 0.22),
    0 0 12px rgba(214, 176, 106, 0.08),
    0 12px 48px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(143, 164, 200, 0.16);
}

.workbench__shell[data-style="campus"] .scene-stage__frame--filigree {
  border-color: rgba(155, 196, 157, 0.52);
  box-shadow:
    0 0 28px rgba(155, 196, 157, 0.16),
    0 0 12px rgba(214, 176, 106, 0.1),
    0 12px 48px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(155, 196, 157, 0.14);
}

.scene-stage__frame--filigree::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 3;
  pointer-events: none;
  --ornate-corner: 20px;
  --ornate-stroke: rgba(214, 176, 106, 0.58);
  background:
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) left top / var(--ornate-corner) 1px no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) left top / 1px var(--ornate-corner) no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) right top / var(--ornate-corner) 1px no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) right top / 1px var(--ornate-corner) no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) left bottom / var(--ornate-corner) 1px no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) left bottom / 1px var(--ornate-corner) no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) right bottom / var(--ornate-corner) 1px no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) right bottom / 1px var(--ornate-corner) no-repeat;
}

.scene-stage__frame--filigree::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.scene-stage__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(26, 21, 16, 0.88);
  background: rgba(214, 176, 106, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.scene-stage__badge-check {
  font-size: 9px;
  font-weight: 700;
  opacity: 0.85;
}

.scene-stage__meta {
  bottom: 28px;
}

.scene-stage__meta .scene-stage__style {
  font-family: var(--font-display-cn);
  font-size: clamp(15px, 2vh, 18px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--vn-ivory);
}

.scene-stage__meta .scene-stage__tagline {
  font-size: clamp(11px, 1.4vh, 13px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
}

.scene-stage__dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.scene-stage__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background var(--transition-base), transform var(--transition-base);
}

.scene-stage__dot.is-active {
  background: var(--vn-gold);
  box-shadow: 0 0 8px var(--vn-glow-gold);
  transform: scale(1.2);
}

.workbench__shell[data-style="xianxia"] .scene-stage__dot.is-active {
  background: var(--world-fantasy);
  box-shadow: 0 0 8px var(--world-fantasy-soft);
}

.workbench__shell[data-style="urban_romance"] .scene-stage__dot.is-active {
  background: var(--world-urban);
  box-shadow: 0 0 8px var(--world-urban-soft);
}

.workbench__shell[data-style="mystery"] .scene-stage__dot.is-active {
  background: var(--world-mystery);
  box-shadow: 0 0 8px var(--world-mystery-soft);
}

.workbench__shell[data-style="campus"] .scene-stage__dot.is-active {
  background: var(--world-campus);
  box-shadow: 0 0 8px var(--world-campus-soft);
}

.scene-stage__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(10, 14, 20, 0.58);
  color: var(--vn-ivory);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}

.scene-stage__nav:hover,
.scene-stage__nav:focus-visible {
  border-color: var(--vn-border-gold);
  background: rgba(214, 176, 106, 0.22);
  box-shadow: 0 0 16px var(--vn-glow-gold);
}

.scene-stage__nav--prev {
  left: 10px;
}

.scene-stage__nav--next {
  right: 10px;
}

.class-rpg-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  gap: 8px;
  overflow: hidden;
  padding-right: 2px;
}

.class-rpg {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex: 1 1 0;
  min-height: 52px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xs);
  opacity: 0.92;
  transition:
    opacity var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.class-rpg::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 2;
  pointer-events: none;
  border-radius: calc(var(--radius-xs) - 3px);
  --tile-ornate: rgba(214, 176, 106, 0.42);
  background:
    linear-gradient(var(--tile-ornate), var(--tile-ornate)) left top / 12px 1px no-repeat,
    linear-gradient(var(--tile-ornate), var(--tile-ornate)) left top / 1px 12px no-repeat,
    linear-gradient(var(--tile-ornate), var(--tile-ornate)) right top / 12px 1px no-repeat,
    linear-gradient(var(--tile-ornate), var(--tile-ornate)) right top / 1px 12px no-repeat,
    linear-gradient(var(--tile-ornate), var(--tile-ornate)) left bottom / 12px 1px no-repeat,
    linear-gradient(var(--tile-ornate), var(--tile-ornate)) left bottom / 1px 12px no-repeat,
    linear-gradient(var(--tile-ornate), var(--tile-ornate)) right bottom / 12px 1px no-repeat,
    linear-gradient(var(--tile-ornate), var(--tile-ornate)) right bottom / 1px 12px no-repeat;
  opacity: 0.55;
}

.class-rpg:hover:not(.preset-btn--active) {
  border-color: rgba(214, 176, 106, 0.32);
  box-shadow: 0 0 16px rgba(214, 176, 106, 0.08);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .class-rpg:hover:not(.preset-btn--active) {
    transform: none;
  }
}

.class-rpg__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.class-rpg__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.class-rpg__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 20, 0.08) 0%,
    rgba(10, 14, 20, 0.35) 55%,
    rgba(10, 14, 20, 0.72) 100%
  );
}

.class-rpg__icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: "Cormorant Garamond", "Noto Serif SC", var(--font-display-cn), serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--vn-ivory);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.class-rpg__icon--xianxia { background: linear-gradient(135deg, var(--world-fantasy), #7a6b9e); }
.class-rpg__icon--urban { background: linear-gradient(135deg, var(--world-urban), #b87080); }
.class-rpg__icon--mystery { background: linear-gradient(135deg, var(--world-mystery), var(--sky-deep)); }
.class-rpg__icon--campus { background: linear-gradient(135deg, var(--world-campus), #5a9870); }

.class-rpg__body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.class-rpg.preset-btn--active {
  opacity: 1;
  border-color: var(--vn-border-gold);
  box-shadow: 0 0 20px var(--vn-glow-gold), inset 0 0 16px rgba(214, 176, 106, 0.08);
  animation: class-rpg-glow 3.5s ease-in-out infinite;
}

@keyframes class-rpg-glow {
  0%, 100% { box-shadow: 0 0 18px var(--vn-glow-gold), inset 0 0 14px rgba(214, 176, 106, 0.06); }
  50% { box-shadow: 0 0 28px rgba(214, 176, 106, 0.28), inset 0 0 18px rgba(214, 176, 106, 0.1); }
}

.class-rpg.preset-btn--active[data-style="xianxia"] {
  border-color: rgba(155, 122, 212, 0.62);
  box-shadow: 0 0 22px var(--world-fantasy-soft), inset 0 0 14px rgba(155, 122, 212, 0.1);
}

.class-rpg.preset-btn--active[data-style="urban_romance"] {
  border-color: rgba(216, 154, 165, 0.62);
  box-shadow: 0 0 22px var(--world-urban-soft), inset 0 0 14px rgba(216, 154, 165, 0.1);
}

.class-rpg.preset-btn--active[data-style="mystery"] {
  border-color: rgba(143, 164, 200, 0.68);
  box-shadow: 0 0 24px var(--world-mystery-soft), inset 0 0 14px rgba(143, 164, 200, 0.12);
}

.class-rpg.preset-btn--active[data-style="campus"] {
  border-color: rgba(155, 196, 157, 0.62);
  box-shadow: 0 0 22px var(--world-campus-soft), inset 0 0 14px rgba(155, 196, 157, 0.1);
}

.class-rpg.preset-btn--active::before {
  opacity: 0.85;
}

.class-rpg.preset-btn--active .class-rpg__bg::after {
  background: linear-gradient(
    180deg,
    rgba(214, 176, 106, 0.12) 0%,
    rgba(10, 14, 20, 0.28) 50%,
    rgba(10, 14, 20, 0.65) 100%
  );
}

.class-rpg__name {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  font-size: 13px;
  font-weight: 600;
}

.class-rpg__thumb {
  display: none;
}

.scene-stage__hint {
  text-align: center;
  padding: 0 8px;
}

.workbench__music {
  flex-shrink: 0;
  width: 100%;
}

.music-panel {
  position: relative;
  padding: 10px 14px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(120, 90, 58, 0.32);
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(214, 176, 106, 0.08) 0%, transparent 28%),
    linear-gradient(
      180deg,
      rgba(255, 252, 246, 0.94) 0%,
      rgba(248, 242, 230, 0.9) 100%
    );
  background-blend-mode: overlay, normal, normal;
  box-shadow:
    0 2px 12px rgba(60, 45, 28, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    inset 0 1px 0 rgba(214, 176, 106, 0.12);
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.music-panel > * {
  position: relative;
  z-index: 2;
}

.music-panel::before {
  content: "";
  position: absolute;
  inset: 5px;
  pointer-events: none;
  z-index: 1;
  --ornate-corner: 12px;
  --ornate-stroke: rgba(120, 90, 58, 0.4);
  background:
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) left top / var(--ornate-corner) 1px no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) left top / 1px var(--ornate-corner) no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) right top / var(--ornate-corner) 1px no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) right top / 1px var(--ornate-corner) no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) left bottom / var(--ornate-corner) 1px no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) left bottom / 1px var(--ornate-corner) no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) right bottom / var(--ornate-corner) 1px no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) right bottom / 1px var(--ornate-corner) no-repeat;
}

.music-panel::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(214, 176, 106, 0.35) 20%,
    rgba(214, 176, 106, 0.5) 50%,
    rgba(214, 176, 106, 0.35) 80%,
    transparent
  );
}

.music-panel:focus-within {
  border-color: rgba(120, 90, 58, 0.48);
  box-shadow:
    0 4px 16px rgba(60, 45, 28, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 0 0 2px rgba(214, 176, 106, 0.14);
}

.music-panel__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.music-panel__icon {
  font-size: 14px;
  line-height: 1;
  color: rgba(120, 90, 58, 0.72);
}

.music-panel__title {
  margin: 0;
  flex: 1;
  font-family: "Noto Serif SC", var(--font-display-cn), serif;
  font-size: clamp(13px, 1.6vh, 15px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(42, 34, 24, 0.92);
}

.music-panel__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.music-panel__toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.music-panel__toggle-track {
  position: relative;
  flex-shrink: 0;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(120, 90, 58, 0.35);
  background: rgba(180, 165, 145, 0.35);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.music-panel__toggle-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.95);
  box-shadow: 0 1px 3px rgba(60, 45, 28, 0.18);
  transition: transform var(--transition-base), background var(--transition-base);
}

.music-panel__toggle-input:checked + .music-panel__toggle-track {
  background: rgba(214, 176, 106, 0.55);
  border-color: rgba(184, 149, 90, 0.55);
}

.music-panel__toggle-input:checked + .music-panel__toggle-track::after {
  transform: translateX(16px);
  background: #fff;
}

.music-panel__toggle-input:focus-visible + .music-panel__toggle-track {
  box-shadow: 0 0 0 2px rgba(214, 176, 106, 0.28);
}

.music-panel__toggle-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(90, 68, 42, 0.72);
}

.music-panel__toggle.is-disabled,
.music-panel__toggle:has(.music-panel__toggle-input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}

.music-panel__rule {
  margin: 8px 0;
  border: none;
  border-top: 1px solid rgba(120, 90, 58, 0.18);
}

.music-panel__track-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.music-panel__track-emoji {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
}

.music-panel__track-name {
  flex: 0 1 auto;
  min-width: 0;
  font-family: "Noto Serif SC", var(--font-display-cn), serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(42, 34, 24, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-panel__waveform {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: repeat(33, minmax(0, 1fr));
  column-gap: 2px;
  align-items: center;
  min-width: 40px;
  height: 18px;
  padding: 0 2px;
  margin: 0 2px;
  pointer-events: none;
  overflow: visible;
}

.music-panel__waveform-bar {
  justify-self: center;
  width: 100%;
  max-width: 3px;
  border-radius: 1px;
  background: linear-gradient(
    180deg,
    var(--gold-soft) 0%,
    var(--vn-gold) 38%,
    rgba(184, 149, 90, 0.92) 68%,
    rgba(184, 149, 90, 0.45) 100%
  );
  opacity: 0.82;
  transform-origin: center bottom;
  animation: music-panel-waveform-pulse 1.6s ease-in-out infinite;
}

/* 33 bars · 3 symmetric diamond clusters (11 bars each) */
.music-panel__waveform-bar:nth-child(1) { height: 4px; animation-delay: 0s; }
.music-panel__waveform-bar:nth-child(2) { height: 5px; animation-delay: 0.05s; }
.music-panel__waveform-bar:nth-child(3) { height: 7px; animation-delay: 0.1s; }
.music-panel__waveform-bar:nth-child(4) { height: 10px; animation-delay: 0.15s; }
.music-panel__waveform-bar:nth-child(5) { height: 13px; animation-delay: 0.2s; }
.music-panel__waveform-bar:nth-child(6) { height: 16px; animation-delay: 0.25s; }
.music-panel__waveform-bar:nth-child(7) { height: 16px; animation-delay: 0.3s; }
.music-panel__waveform-bar:nth-child(8) { height: 13px; animation-delay: 0.35s; }
.music-panel__waveform-bar:nth-child(9) { height: 10px; animation-delay: 0.4s; }
.music-panel__waveform-bar:nth-child(10) { height: 7px; animation-delay: 0.45s; }
.music-panel__waveform-bar:nth-child(11) { height: 5px; animation-delay: 0.5s; }
.music-panel__waveform-bar:nth-child(12) { height: 4px; animation-delay: 0.55s; }
.music-panel__waveform-bar:nth-child(13) { height: 5px; animation-delay: 0.6s; }
.music-panel__waveform-bar:nth-child(14) { height: 7px; animation-delay: 0.65s; }
.music-panel__waveform-bar:nth-child(15) { height: 10px; animation-delay: 0.7s; }
.music-panel__waveform-bar:nth-child(16) { height: 13px; animation-delay: 0.75s; }
.music-panel__waveform-bar:nth-child(17) { height: 16px; animation-delay: 0.8s; }
.music-panel__waveform-bar:nth-child(18) { height: 16px; animation-delay: 0.85s; }
.music-panel__waveform-bar:nth-child(19) { height: 13px; animation-delay: 0.9s; }
.music-panel__waveform-bar:nth-child(20) { height: 10px; animation-delay: 0.95s; }
.music-panel__waveform-bar:nth-child(21) { height: 7px; animation-delay: 1s; }
.music-panel__waveform-bar:nth-child(22) { height: 5px; animation-delay: 1.05s; }
.music-panel__waveform-bar:nth-child(23) { height: 4px; animation-delay: 1.1s; }
.music-panel__waveform-bar:nth-child(24) { height: 5px; animation-delay: 1.15s; }
.music-panel__waveform-bar:nth-child(25) { height: 7px; animation-delay: 1.2s; }
.music-panel__waveform-bar:nth-child(26) { height: 10px; animation-delay: 1.25s; }
.music-panel__waveform-bar:nth-child(27) { height: 13px; animation-delay: 1.3s; }
.music-panel__waveform-bar:nth-child(28) { height: 16px; animation-delay: 1.35s; }
.music-panel__waveform-bar:nth-child(29) { height: 16px; animation-delay: 1.4s; }
.music-panel__waveform-bar:nth-child(30) { height: 13px; animation-delay: 1.45s; }
.music-panel__waveform-bar:nth-child(31) { height: 10px; animation-delay: 1.5s; }
.music-panel__waveform-bar:nth-child(32) { height: 7px; animation-delay: 1.55s; }
.music-panel__waveform-bar:nth-child(33) { height: 5px; animation-delay: 1.6s; }

.music-panel__waveform.is-muted .music-panel__waveform-bar {
  animation: none;
  transform: none;
  height: 3px !important;
  opacity: 0.28;
  background: rgba(184, 149, 90, 0.35);
}

@keyframes music-panel-waveform-pulse {
  0%,
  100% {
    transform: scaleY(0.68);
    opacity: 0.55;
  }

  50% {
    transform: scaleY(1);
    opacity: 0.92;
  }
}

.music-panel__preview {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  margin-left: 2px;
  border: 1px solid var(--vn-border-gold);
  border-radius: 50%;
  background: transparent;
  color: var(--gold-deep);
  cursor: pointer;
  transition:
    border-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.music-panel__preview-icon {
  display: block;
}

.music-panel__preview-icon--play {
  margin-left: 1px;
}

.music-panel__preview-icon--pause {
  display: none;
}

.music-panel__preview.is-playing .music-panel__preview-icon--play {
  display: none;
}

.music-panel__preview.is-playing .music-panel__preview-icon--pause {
  display: block;
}

.music-panel__preview:hover:not(:disabled),
.music-panel__preview:focus-visible:not(:disabled) {
  border-color: var(--vn-gold);
  color: var(--vn-gold);
  box-shadow: 0 0 8px var(--vn-glow-gold);
  transform: scale(1.06);
}

.music-panel__preview:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.music-panel__desc {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(61, 48, 40, 0.58);
}

.music-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.music-panel__btn {
  padding: 5px 12px;
  border: 1px solid rgba(120, 90, 58, 0.38);
  border-radius: 999px;
  background: rgba(248, 244, 236, 0.85);
  color: rgba(61, 48, 40, 0.88);
  font-family: "Noto Serif SC", var(--font-display-cn), serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    border-color var(--transition-base),
    background var(--transition-base),
    box-shadow var(--transition-base);
}

.music-panel__btn:hover,
.music-panel__btn:focus-visible {
  border-color: rgba(120, 90, 58, 0.55);
  background: rgba(255, 252, 246, 0.95);
  box-shadow: 0 2px 8px rgba(90, 68, 42, 0.1);
}

.music-panel__btn--ghost {
  background: transparent;
  color: rgba(90, 68, 42, 0.72);
}

.music-panel__btn--mute {
  margin-left: auto;
  padding: 4px 8px;
  border: none;
  background: transparent;
  color: rgba(90, 68, 42, 0.45);
  font-size: 10px;
  font-weight: 500;
}

.music-panel__btn--mute:hover,
.music-panel__btn--mute:focus-visible {
  color: rgba(90, 68, 42, 0.72);
  background: transparent;
  box-shadow: none;
}

.music-panel__btn.is-active {
  border-color: rgba(140, 100, 90, 0.55);
  background: rgba(248, 238, 232, 0.95);
  color: rgba(90, 58, 48, 0.88);
}

.music-panel__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.workbench__cta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  width: 100%;
}

.workbench__cta-note {
  margin: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.48);
  max-width: min(100%, 360px);
}

.workbench__new-game {
  width: min(100%, 320px);
  min-height: auto;
  padding: 10px 28px 9px;
  border-radius: 999px;
  border: 1px solid rgba(214, 176, 106, 0.65);
  box-shadow:
    0 0 20px rgba(214, 176, 106, 0.28),
    0 4px 16px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.new-game__row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.new-game__decor {
  font-size: 10px;
  color: rgba(26, 21, 16, 0.45);
  line-height: 1;
}

.new-game__zh {
  font-size: clamp(15px, 2vh, 17px);
  order: unset;
}

.new-game__en {
  order: unset;
  margin-top: 3px;
  font-size: 9px;
}

.pipeline--overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  margin: 0;
  padding: 0;
  border-radius: inherit;
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: blur(10px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pipeline--overlay[hidden] {
  display: none !important;
}

/* display:flex above overrides native [hidden]; keep overlay off until JS shows it */
.pipeline--overlay[hidden] {
  display: none !important;
}

.pipeline__immersive {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pipeline__ornate-box {
  position: relative;
  width: min(100%, 380px);
  padding: 28px 24px 22px;
  text-align: center;
  border: 1px solid rgba(214, 176, 106, 0.45);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(214, 176, 106, 0.06), transparent 65%),
    linear-gradient(165deg, rgba(18, 22, 32, 0.95) 0%, rgba(10, 14, 20, 0.92) 100%);
  box-shadow:
    0 0 40px var(--vn-glow-gold),
    0 20px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(214, 176, 106, 0.08);
}

.pipeline__ornate-box::before,
.pipeline__ornate-box::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  border: 1px solid rgba(214, 176, 106, 0.55);
}

.pipeline__ornate-box::before {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}

.pipeline__ornate-box::after {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}

.pipeline__title {
  margin: 0 0 18px;
  font-family: var(--font-display-cn);
  font-size: clamp(16px, 2.2vh, 20px);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--vn-gold);
}

.pipeline__steps--vertical {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.pipeline__steps--vertical .pipeline__step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.pipeline__steps--vertical .pipeline__step::before {
  content: none;
}

.pipeline__step-mark {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  position: relative;
}

.pipeline__step.is-done {
  color: rgba(155, 196, 157, 0.92);
}

.pipeline__step.is-done .pipeline__step-mark {
  border-color: rgba(155, 196, 157, 0.85);
  background: rgba(155, 196, 157, 0.15);
}

.pipeline__step.is-done .pipeline__step-mark::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: rgba(155, 196, 157, 0.95);
}

.pipeline__step.is-active {
  color: var(--vn-gold);
}

.pipeline__step.is-active .pipeline__step-mark {
  border-color: var(--vn-gold);
  border-top-color: transparent;
  animation: pipeline-spin 0.9s linear infinite;
}

@keyframes pipeline-spin {
  to { transform: rotate(360deg); }
}

.pipeline__pct--hero {
  margin: 0 0 12px;
  font-family: var(--font-display-en);
  font-size: clamp(2.4rem, 8vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--vn-ivory);
  line-height: 1;
}

.pipeline__bar--blue {
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(214, 176, 106, 0.12);
  overflow: hidden;
  box-shadow: 0 0 16px var(--vn-glow-gold);
}

.pipeline__bar--blue .pipeline__fill {
  background: linear-gradient(90deg, #b8955a, var(--vn-gold), #e8d4b0);
  box-shadow: 0 0 12px rgba(214, 176, 106, 0.45);
}

.pipeline--overlay .pipeline__sub {
  margin: 14px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.48);
  letter-spacing: 0.06em;
}

.pipeline--overlay .pipeline__msg,
.pipeline--overlay .pipeline__elapsed {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
}

.pipeline--overlay .pipeline__achievement {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
}

/* 右栏 · LOAD GAME · 次级侧栏 */
.workbench__load-rail {
  opacity: 0.94;
}

.workbench__load-rail .workbench__drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.workbench__load-rail--parchment {
  border-color: rgba(120, 90, 58, 0.28);
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(214, 176, 106, 0.06), transparent 65%),
    linear-gradient(168deg, #f8f4ec 0%, #f0ebe2 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 1px 0 rgba(214, 176, 106, 0.1),
    0 10px 40px rgba(0, 0, 0, 0.18);
}

.workbench__load-rail--parchment::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  z-index: 2;
  --ornate-corner: 14px;
  --ornate-stroke: rgba(120, 90, 58, 0.32);
  background:
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) left top / var(--ornate-corner) 1px no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) left top / 1px var(--ornate-corner) no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) right bottom / var(--ornate-corner) 1px no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) right bottom / 1px var(--ornate-corner) no-repeat;
}

.workbench__load-rail--parchment .workbench__panel-eyebrow,
.workbench__load-rail--parchment .workbench__panel-title--load {
  margin: 0;
  font-family: var(--font-display-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(58, 72, 88, 0.62);
}

.workbench__load-rail--parchment .workbench__panel-title--history {
  margin: 4px 0 0;
  font-family: "Noto Serif SC", var(--font-display-cn), serif;
  font-size: clamp(18px, 2.4vh, 22px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(31, 24, 16, 0.92);
  line-height: 1.2;
}

.workbench__load-rail--parchment .workbench__drawer-close {
  color: var(--ink);
  border-color: rgba(120, 90, 58, 0.25);
}

.workbench__load-body {
  padding: 8px 10px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 149, 90, 0.45) rgba(248, 244, 236, 0.5);
}

.workbench__load-rail .workbench__load-body::-webkit-scrollbar,
.workbench__load-rail .history-list::-webkit-scrollbar {
  width: 8px;
}

.workbench__load-rail .workbench__load-body::-webkit-scrollbar-track,
.workbench__load-rail .history-list::-webkit-scrollbar-track {
  background: rgba(248, 244, 236, 0.55);
  border-radius: 4px;
}

.workbench__load-rail .workbench__load-body::-webkit-scrollbar-thumb,
.workbench__load-rail .history-list::-webkit-scrollbar-thumb {
  background: rgba(184, 149, 90, 0.42);
  border: 1px solid rgba(214, 176, 106, 0.22);
  border-radius: 4px;
}

.workbench__load-rail .workbench__load-body::-webkit-scrollbar-thumb:hover,
.workbench__load-rail .history-list::-webkit-scrollbar-thumb:hover {
  background: rgba(184, 149, 90, 0.58);
}

.workbench__load-rail .history-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 149, 90, 0.45) rgba(248, 244, 236, 0.5);
}

.workbench__load-rail .history-item {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border: 1px solid rgba(120, 90, 58, 0.28);
  border-radius: var(--radius-xs);
  background:
    linear-gradient(168deg, rgba(255, 255, 255, 0.78) 0%, rgba(248, 242, 230, 0.62) 100%);
  overflow: hidden;
  box-shadow:
    0 3px 14px rgba(60, 45, 28, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.workbench__load-rail .history-item + .history-item {
  margin-top: 2px;
}

.workbench__load-rail .history-item + .history-item::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 12%;
  right: 12%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(214, 176, 106, 0.35) 20%,
    rgba(214, 176, 106, 0.5) 50%,
    rgba(214, 176, 106, 0.35) 80%,
    transparent
  );
}

.workbench__load-rail .history-item::before {
  content: "";
  position: absolute;
  inset: 5px;
  pointer-events: none;
  z-index: 1;
  --ornate-corner: 10px;
  --ornate-stroke: rgba(120, 90, 58, 0.28);
  background:
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) left top / var(--ornate-corner) 1px no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) left top / 1px var(--ornate-corner) no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) right bottom / var(--ornate-corner) 1px no-repeat,
    linear-gradient(var(--ornate-stroke), var(--ornate-stroke)) right bottom / 1px var(--ornate-corner) no-repeat;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.workbench__load-rail .history-item:hover,
.workbench__load-rail .history-item:focus-within {
  border-color: rgba(184, 149, 90, 0.48);
  box-shadow:
    0 6px 20px rgba(60, 45, 28, 0.1),
    0 0 16px rgba(214, 176, 106, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
}

.workbench__load-rail .history-item:hover::before,
.workbench__load-rail .history-item:focus-within::before {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .workbench__load-rail .history-item:hover,
  .workbench__load-rail .history-item:focus-within {
    transform: none;
  }
}

.load-game-card__inner {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px;
}

.load-game-card__media,
.load-game-card__thumb-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 5px;
  min-width: 0;
}

.load-game-card__thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(120, 90, 58, 0.22);
}

.load-game-card__copy {
  min-width: 0;
  padding-right: 28px;
}

.load-game-card__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.load-game-card__title {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display-cn);
  font-size: 14px;
  font-weight: 700;
  color: #2a2218;
  line-height: 1.35;
}

.workbench__load-rail--parchment .load-game-card__title {
  color: #1f1810;
  text-shadow: none;
}

.workbench__load-rail--parchment .load-game-card__date,
.workbench__load-rail--parchment .load-game-card__stats {
  color: rgba(42, 34, 24, 0.72);
}

.load-game-card__pill {
  display: inline-block;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid transparent;
}

.load-game-card__pill--xianxia {
  color: #5a4a78;
  background: var(--world-fantasy-soft);
  border-color: rgba(155, 122, 212, 0.55);
}

.load-game-card__pill--urban {
  color: #8a5060;
  background: var(--world-urban-soft);
  border-color: rgba(216, 154, 165, 0.55);
}

.load-game-card__pill--mystery {
  color: #3a5070;
  background: var(--world-mystery-soft);
  border-color: rgba(143, 164, 200, 0.55);
}

.load-game-card__pill--campus {
  color: #3a6848;
  background: var(--world-campus-soft);
  border-color: rgba(155, 196, 157, 0.55);
}

.load-game-card__date {
  margin: 4px 0 0;
  font-size: 10px;
  color: rgba(58, 72, 88, 0.55);
}

.load-game-card__stats {
  margin: 2px 0 0;
  font-size: 10px;
  color: rgba(58, 72, 88, 0.65);
}

.load-game-card__actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.load-game-card__btn {
  flex: 1 1 calc(50% - 3px);
  min-width: 72px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color var(--transition-base), background var(--transition-base), opacity var(--transition-base);
}

.load-game-card__btn--secondary {
  border: 1px solid rgba(90, 70, 45, 0.58);
  background: rgba(255, 255, 255, 0.88);
  color: #2a2218;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.load-game-card__btn--secondary:hover:not(:disabled) {
  border-color: rgba(90, 70, 45, 0.72);
  background: #fff;
}

.load-game-card__btn--primary {
  border: none;
  background: linear-gradient(135deg, #e8c878 0%, #d6b06a 48%, #c9a055 100%);
  color: #1a150f;
  box-shadow: 0 2px 8px rgba(214, 176, 106, 0.35);
}

.load-game-card__btn--primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

.load-game-card__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 16px;
  text-align: center;
}

.history-empty[hidden] {
  display: none;
}

.history-empty__icon {
  font-size: 28px;
  opacity: 0.55;
}

.history-empty__title {
  margin: 0;
  font-family: var(--font-display-cn);
  font-size: 13px;
  font-weight: 600;
  color: rgba(58, 72, 88, 0.75);
}

.history-empty__hint {
  margin: 0;
  font-size: 11px;
  color: rgba(58, 72, 88, 0.5);
  line-height: 1.5;
}

.workbench__load-rail .history-item__actions {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
}

.workbench__load-rail .history-btn--danger {
  width: 22px;
  height: 22px;
  font-size: 14px;
  line-height: 1;
  color: rgba(58, 72, 88, 0.55);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(120, 90, 58, 0.28);
}

/* 桌面：LOAD GAME 为栅格第三栏，不依赖 JS class */
@media (min-width: 1024px) {
  .workbench__load-rail {
    min-width: 0;
  }

  .workbench__load-rail .load-game-card__btn {
    font-size: 11px;
  }

  .workbench__load-rail.workbench__drawer {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    height: auto;
    min-height: 0;
    transform: none !important;
    visibility: visible;
    pointer-events: auto;
    border-left: none;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 0;
    z-index: 0;
  }

  .workbench__load-rail .workbench__drawer-close {
    display: none;
  }
}

.workbench__shell.has-load-rail .workbench__load-rail.workbench__drawer {
  position: relative;
  top: auto;
  right: auto;
  width: auto;
  height: auto;
  min-height: 0;
  transform: none !important;
  visibility: visible;
  pointer-events: auto;
  border-left: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 0;
}

.workbench__shell.has-load-rail .workbench__drawer-close {
  display: none;
}

/* 生成中隐藏主操作区 */
.workbench__shell.is-generating .style-hub,
.workbench__shell.is-generating .workbench__input-panel,
.workbench__shell.is-generating .workbench__load-rail {
  opacity: 0.35;
  pointer-events: none;
}

.workbench__shell.is-generating .pipeline--overlay {
  opacity: 1;
  pointer-events: auto;
}

/* 移动端：右栏变抽屉 */
@media (prefers-reduced-motion: reduce) {
  .pipeline__step.is-active .pipeline__step-mark {
    animation: none;
    border-top-color: var(--vn-gold);
  }

  .music-panel__toggle-track,
  .music-panel__toggle-track::after {
    transition: none;
  }

  .workbench--dim .workbench__atmosphere-img,
  .workbench--luminous .workbench__atmosphere-img,
  .workbench--dim .workbench__atmosphere::after,
  .workbench--luminous .workbench__atmosphere::after,
  .workbench--dim .workbench__particles,
  .workbench--luminous .workbench__particles {
    transition: none;
  }

  .music-panel__preview:hover:not(:disabled),
  .music-panel__preview:focus-visible:not(:disabled) {
    transform: none;
  }

  .music-panel__waveform-bar {
    animation: none;
    transform: none;
  }
}

@media (max-width: 1023.98px) {
  html {
    overflow-x: hidden;
  }

  body.workbench-body {
    height: auto;
    min-height: 100dvh;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .workbench {
    height: auto;
    min-height: 100dvh;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .workbench__shell--view-a {
    min-height: 100dvh;
    max-width: 100%;
    padding: clamp(8px, 2vw, 12px) clamp(8px, 3vw, 14px);
  }

  .workbench__workspace {
    display: flex;
    flex-direction: column;
    overflow-y: visible;
    overflow-x: hidden;
    max-width: 100%;
  }

  .style-hub__stage-row {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 42vw) auto;
    gap: 10px;
  }

  .workbench__center-hub {
    order: 1;
    flex: 1 1 auto;
    min-height: min(62vh, 520px);
  }

  .workbench__input-panel {
    order: 2;
    flex: 0 0 auto;
    max-height: none;
    min-height: min(42vh, 360px);
  }

  .workbench__file-types {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .workbench__load-rail.workbench__drawer {
    position: relative;
    order: 3;
    top: auto;
    right: auto;
    bottom: auto;
    width: auto;
    height: auto;
    min-height: min(240px, 32vh);
    z-index: 0;
    transform: none !important;
    transition: none;
    border-left: none;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .workbench__load-rail .workbench__drawer-close {
    display: none;
  }

  .style-hub__stage-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .class-rpg-list {
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
    overflow: visible;
  }

  .class-rpg {
    flex: 1 1 calc(50% - 4px);
    min-height: 52px;
  }

  .scene-stage__nav {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 640px) {
  .workbench__topbar {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px;
    text-align: center;
    padding: 8px 10px;
  }

  .workbench__topbar-brand,
  .workbench__topbar-end {
    justify-self: center;
  }

  .workbench__epigraph {
    max-width: min(100%, 320px);
    padding-inline: 4px;
  }

  .workbench__epigraph-line {
    font-size: clamp(10px, 2.9vw, 12px);
    letter-spacing: 0.04em;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .class-rpg {
    width: 100%;
  }

  .music-panel__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .music-panel__btn--mute {
    margin-left: 0;
    align-self: center;
  }

  .workbench__input-panel .workbench__textarea {
    font-size: 16px;
    line-height: 1.65;
  }

  .workbench__panel-head,
  .workbench__panel-title {
    overflow-wrap: anywhere;
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .workbench__topbar {
    gap: 10px;
    padding: 8px 12px;
  }

  .workbench__epigraph {
    max-width: min(280px, 36vw);
  }

  .style-hub__stage-row {
    grid-template-columns: minmax(0, 1fr) minmax(108px, 28%);
  }
}
