.v3-floating-hud { display: flex; justify-content: center; align-items: center; margin-bottom: 8px; width: 100%; }
.v3-style-tabs { display: inline-flex; align-items: center; justify-content: center; gap: 3px; width: fit-content; margin: 0 auto; padding: 3px; background: #191d28; border: 1.2px solid var(--gold-primary); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85); box-sizing: border-box; }
.v3-footer-custom { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.06); width: 100%; box-sizing: border-box; }
.v3-group-custom { margin-top: auto !important; width: 100% !important; height: 34px !important; box-sizing: border-box !important; }
.v3-custom-strip { width: 100%; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px dashed rgba(212, 190, 136, 0.4); background: rgba(212, 190, 136, 0.04); color: var(--gold-primary); font-size: 13.5px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: all 0.18s ease; user-select: none !important; -webkit-user-select: none !important; -webkit-touch-callout: none !important; box-sizing: border-box; }
.v3-custom-strip:hover { border-color: var(--gold-primary); background: rgba(212, 190, 136, 0.1); color: #ffffff; box-shadow: 0 0 12px rgba(212, 190, 136, 0.2); }
.v3-custom-strip.on { border-style: solid; border-color: var(--gold-primary); background: rgba(212, 190, 136, 0.18); color: #ffffff; font-weight: 600; box-shadow: 0 0 14px rgba(212, 190, 136, 0.3); }
.custom-strip-mark { font-size: 13px; opacity: 0.9; }
.custom-strip-text { letter-spacing: 0.5px; }
#v3Thumb { position: fixed; z-index: 100000; border-radius: 12px; border: 1px solid rgba(212, 190, 136, 0.4); background: #191d28; box-shadow: 0 20px 54px #000e; overflow: hidden; pointer-events: none; -webkit-touch-callout: none !important; -webkit-user-select: none !important; user-select: none !important; }
#v3Thumb img { display: block; max-width: 480px; max-height: 480px; width: auto; height: auto; }
#v3Thumb .v3-tip-text { display: block; margin: 0; padding: 11px 14px; max-width: 420px; white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 12.5px; line-height: 1.6; color: #cfd6e0; text-align: left; }
.v3-group { display: flex; flex-direction: column; align-items: stretch; min-width: 0; box-sizing: border-box; }
.v3-group-cols { display: flex; gap: 4px; align-items: stretch; flex: 1 1 auto; box-sizing: border-box; margin-bottom: 12px !important; }
.v3-col { display: flex; flex-direction: column; gap: 5px; min-width: 104px; width: 100%; flex: 1 1 auto; box-sizing: border-box; }
.v3-col .v3-opt { width: 100%; box-sizing: border-box; }
.v3-opt.footer { margin-top: auto; }
.v3-col.scroll { max-height: 330px; overflow-y: auto; overscroll-behavior: contain; }
#globalMode.mode-on, #localMode.mode-on { border: 1px solid var(--gold-primary) !important; background: rgba(212, 190, 136, 0.12) !important; box-shadow: 0 0 10px rgba(212, 190, 136, 0.2) !important; color: #ffffff !important; font-weight: 600 !important; }
#globalMode.mode-on::after, #localMode.mode-on::after { color: var(--gold-primary) !important; }
#globalMode.mode-on:hover:not(:disabled), #localMode.mode-on:hover:not(:disabled) { border-color: var(--gold-primary) !important; }
.v3-divider { width: 1px; background: rgba(255, 255, 255, 0.06); margin: 0 4px; flex: 0 0 1px; }
.v3-opt { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: max-content; height: 34px; min-height: 34px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: #c7cad4; padding: 0 12px; font-size: 14px; font-weight: 500; text-align: center; white-space: nowrap; cursor: pointer; transition: all 0.15s ease; user-select: none !important; -webkit-user-select: none !important; -webkit-touch-callout: none !important; box-sizing: border-box; }
.v3-opt span { white-space: nowrap; }
.v3-opt em { font-style: normal; font-size: 11px; color: #6c7482; }
.v3-opt.has-hint { display: flex; flex-direction: column; justify-content: center; height: auto; min-height: 44px; padding: 6px 10px; }
.v3-opt.has-hint span { display: block; }
.v3-opt .v3-hint { display: block; margin-top: 2px; font-size: 11.5px; font-style: normal; color: #717684; white-space: normal; line-height: 1.35; text-align: center; }
.v3-opt.on .v3-hint { color: var(--gold-primary); opacity: 0.85; }
.v3-opt:disabled .v3-hint { color: #4e5563; }
html[data-theme="light"] .v3-opt .v3-hint { color: #6f6a5e; }
html[data-theme="light"] .v3-opt.on .v3-hint { color: #7c5e20; }
.v3-opt:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.v3-opt.on { background: rgba(212, 190, 136, 0.12); color: var(--gold-primary); border-color: rgba(212, 190, 136, 0.35); font-weight: 600; }
.v3-opt.on:hover:not(:disabled), .v3-opt.opt-custom.on:hover:not(:disabled) { background: rgba(212, 190, 136, 0.22) !important; color: var(--gold-primary) !important; border-color: var(--gold-primary) !important; box-shadow: 0 0 10px rgba(212, 190, 136, 0.25) !important; }
.v3-opt:disabled { color: #4e5563; background: rgba(255, 255, 255, 0.02); border-color: transparent; cursor: not-allowed; opacity: 0.5; }
.v3-opt.opt-custom { color: #c7cad4; font-weight: 400; }
.v3-opt.opt-custom:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.16); color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.v3-opt.opt-custom.on { background: rgba(212, 190, 136, 0.12); color: var(--gold-primary); border-color: rgba(212, 190, 136, 0.35); }
.v3-cell-btn.custom-active { color: var(--gold-primary) !important; font-weight: 500; border-color: rgba(212, 190, 136, 0.3); }
.instruction { grid-template-rows: 16px minmax(0, 1fr) !important; }
.instruction-head { height: 16px !important; }
.prompt-opt-group { height: 16px !important; }
.btn-prompt-tool,
.btn-prompt-opt {
  height: 16px !important;
  line-height: 16px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: var(--font-hint) !important; /* 17px */
  color: var(--quiet) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer !important;
}
.btn-prompt-tool:hover { color: #ffffff !important; }
.btn-prompt-opt:hover:not(:disabled) { color: var(--gold-primary) !important; }
.btn-prompt-opt.active, .btn-prompt-opt:not(:disabled):not(.disabled) { color: var(--gold-primary) !important; }
.btn-prompt-opt:disabled, .btn-prompt-opt.disabled { color: var(--disabled-ink, #4e5563) !important; cursor: not-allowed !important; }
.btn-prompt-tool *, .btn-prompt-opt * { pointer-events: none !important; }
.v3-cell-label, .mode .v3-cell-label, .field-title-text, .fig-legend, .prompt-opt-group, .make .pair label { transform: translateY(-2px); }
.make .pair select { transform: translateY(2px) !important; }
html[data-theme="light"] {
  --bg: #f8f7f4;
  --page: #f8f7f4;
  --bg-dark: #f8f7f4;
  --panel: #ffffff;
  --field: #f2efe8;
  --popup: #ffffff;
  --capsule-bg: #ffffff;
  --line: rgba(180, 140, 80, 0.32);
  --popup-border: rgba(180, 140, 80, 0.35);
  --border-fine: rgba(180, 140, 80, 0.22);
  --border-strong: rgba(180, 140, 80, 0.38);
  --ink: #111318;
  --muted: #3d434f;
  --quiet: #5a6070;
  --disabled-ink: #9da3af;
  --disabled-bg: #e6e3da;
  --accent: #8f6e2b;
  --accent-ink: #ffffff;
  --gold-primary: #8f6e2b;
  --accent-text: #7d5e1b;
  --gold-glow: rgba(143, 110, 43, 0.20);
  --hover: #ebe7de;
  --ambient-filter: brightness(1.02) saturate(.75) contrast(.95);
  --ambient-opacity: 0.08;
  --shadow-strong: 0 16px 38px rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] body { background: var(--page); color: var(--ink); }
html[data-theme="light"] .app { background: transparent; }
html[data-theme="light"] .frame { background: radial-gradient(circle at center, #ffffff 0%, #f4f1ea 100%); border: 1.5px solid rgba(180, 140, 80, 0.35); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04); }
html[data-theme="light"] .frame.has-bg::after, html[data-theme="light"] .compare-before.has-bg::after, html[data-theme="light"] .compare-before::after { background: rgba(248, 247, 244, 0.50); }
html[data-theme="light"] .film { background: #ffffff; color: var(--ink); border: 1px solid rgba(180, 140, 80, 0.32); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03); }
html[data-theme="light"] .instruction textarea { background: #f2efe8; color: #111318; border: 1px solid rgba(180, 140, 80, 0.32); }
html[data-theme="light"] .instruction textarea::placeholder { color: #6e7584; }
html[data-theme="light"] select, html[data-theme="light"] input, html[data-theme="light"] textarea { background: #f2efe8; color: #111318; border-color: rgba(180, 140, 80, 0.32); }
html[data-theme="light"] .v3-cell-btn { background: #f2efe8; color: #111318; border: 1px solid rgba(180, 140, 80, 0.32); }
html[data-theme="light"] .v3-cell-btn:hover:not(:disabled) { border-color: var(--gold-primary); }
html[data-theme="light"] .v3-opt { background: #f2efe8; color: #111318; border: 1px solid #e2ddd0; }
html[data-theme="light"] .v3-cell-btn.has-value:not(:disabled) { background: #f4f1ea; color: #111318; border: 1.5px solid var(--gold-primary); box-shadow: 0 1px 6px rgba(143, 110, 43, 0.16); font-weight: 600; }
html[data-theme="light"] .v3-cell-btn.has-value:not(:disabled)::after { color: var(--gold-primary); }
html[data-theme="light"] .dock select.selected-value:not(:disabled) { background: #f4f1ea; color: #111318; border-color: var(--gold-primary); }
html[data-theme="light"] .mode:has(input:checked) > button { background: #f4f1ea; color: #111318; border: 2px solid var(--gold-primary); box-shadow: 0 2px 8px rgba(143, 110, 43, 0.18); font-weight: 700; }
html[data-theme="light"] .mode:has(input:checked) > button::after { color: var(--gold-primary); }
html[data-theme="light"] .mode:not(:has(input:checked)) > button { background: #f4f1ea; color: var(--muted); border: 1px solid #ded9cb; }
html[data-theme="light"] #globalMode.mode-on, html[data-theme="light"] #localMode.mode-on { background: #f4f1ea !important; color: #111318 !important; border: 2px solid var(--gold-primary) !important; box-shadow: 0 2px 10px rgba(143, 110, 43, 0.22) !important; animation: none !important; font-weight: 700 !important; }
html[data-theme="light"] #globalMode.mode-on::after, html[data-theme="light"] #localMode.mode-on::after { color: var(--gold-primary) !important; }
html[data-theme="light"] .v3-cell-label, html[data-theme="light"] label, html[data-theme="light"] .fig-legend { color: #3d434f; font-weight: 500; }
html[data-theme="light"] .result-meta,
html[data-theme="light"] .source-meta,
html[data-theme="light"] #sourceMeta,
html[data-theme="light"] #resultMeta { color: #5a6070; font-weight: 450; }
html[data-theme="light"] .image-info-name { color: #23262e; font-weight: 450; }
html[data-theme="light"] .v3-col-title { color: #64748b; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
html[data-theme="light"] .v3-opt { background: #f8f6f0; border-color: #ded8cb; color: #475569; }
html[data-theme="light"] .v3-opt:hover:not(:disabled) { background: #ffffff; border-color: #9b7c38; color: #0f172a; }
html[data-theme="light"] .v3-opt.on { background: rgba(180, 140, 80, 0.12); color: #7c5e20; border-color: #9b7c38; font-weight: 600; }
html[data-theme="light"] .v3-opt.on:hover:not(:disabled) { background: rgba(180, 140, 80, 0.20) !important; color: #7c5e20 !important; border-color: #9b7c38 !important; box-shadow: 0 0 8px rgba(180, 140, 80, 0.25) !important; }
html[data-theme="light"] .v3-opt:disabled { background: #f1ede4; color: #9da3af; }
html[data-theme="light"] .v3-menu, html[data-theme="light"] .mode-menu { background: transparent; border: none; box-shadow: none; }
html[data-theme="light"] .v3-block { background: #ffffff !important; border: none !important; box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12); }
html[data-theme="light"] .v3-divider { background: rgba(0, 0, 0, 0.06); }
html[data-theme="light"] .v3-floating-hud .v3-style-tabs { background: rgba(255, 255, 255, 0.98); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 8px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08); }
html[data-theme="light"] .v3-footer-custom { border-top-color: rgba(0, 0, 0, 0.06); }
html[data-theme="light"] .v3-custom-strip { border-color: rgba(180, 140, 80, 0.4); background: rgba(180, 140, 80, 0.06); color: #7c5e20; }
html[data-theme="light"] .v3-custom-strip:hover { border-color: #9b7c38; background: rgba(180, 140, 80, 0.12); color: #0f172a; }
html[data-theme="light"] .v3-custom-strip.on { border-style: solid; border-color: #9b7c38; background: rgba(180, 140, 80, 0.18); color: #7c5e20; }
html[data-theme="light"] .v3-custom-strip.on:hover { border-color: #9b7c38 !important; background: rgba(180, 140, 80, 0.24) !important; color: #7c5e20 !important; box-shadow: 0 0 8px rgba(180, 140, 80, 0.25) !important; }
html[data-theme="light"] #v3Thumb { background: #ffffff; border: 1px solid #ded9cb; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14); }
html[data-theme="light"] #v3Thumb .v3-tip-text { color: #111318; font-weight: 450; }
html[data-theme="light"] #runBtn { color: #ffffff; }
html[data-theme="light"] .painter-card,
html[data-theme="light"] .ref-overlay-card { background: #ffffff; color: var(--ink); border-color: #ded8cb; box-shadow: var(--shadow-strong); }
html[data-theme="light"] .viewer,
html[data-theme="light"] .canvas-viewer { background: rgba(248, 247, 244, 0.96); }
html[data-theme="light"] .empty { background: rgba(248, 247, 244, 0.88); }
html[data-theme="light"] .empty strong { color: #334155; }
html[data-theme="light"] .generating { background: rgba(248, 247, 244, 0.86); }
html[data-theme="light"] .wait-pct-num { color: #181a20; text-shadow: none; }
html[data-theme="light"] .wait-state-title { color: #2c3038; text-shadow: none; }
html[data-theme="light"] .wait-sub { color: #8b6b29; text-shadow: none; }
html[data-theme="light"] .ref-preview-idx, html[data-theme="light"] .ref-close { background: #ffffff; color: var(--ink); border-color: #ded8cb; }
html[data-theme="light"] .paint-hover, html[data-theme="light"] .painter { background: rgba(255, 255, 255, 0.94); }
html[data-theme="light"] .status { background: #ffffff; color: var(--ink); border-color: #ded8cb; }
html[data-theme="light"] .choose { background: #ffffff; color: #1e293b; border: 1px solid rgba(0, 0, 0, 0.12); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
html[data-theme="light"] .choose:hover { background: #f8fafc; border-color: rgba(0, 0, 0, 0.2); color: #0f172a; }
html[data-theme="light"] .add-base { border-color: #dcd7cc; color: var(--muted); }
html[data-theme="light"] .add-base:hover { border-color: var(--gold-primary); color: #181a20; }
html[data-theme="light"] .shared-nav a { color: var(--muted); }
html[data-theme="light"] .shared-nav a:hover, html[data-theme="light"] .shared-nav a.active { color: var(--ink); }
.lower-films {
  display: flex !important;
}
.lower-films #baseFilm {
  flex: 1 1 auto !important;
  width: 100% !important;
}
.frame-top-tools { position: absolute; top: 12px; right: 12px; z-index: 15; display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.frame-tool-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(20, 24, 32, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--muted, #8c92a2);
  padding: 0;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.frame-tool-btn svg { width: 58%; height: 58%; display: block; pointer-events: none; }
.frame-tool-btn:hover { border-color: var(--gold-primary); color: var(--gold-primary); background: rgba(30, 36, 48, 0.95); transform: translateY(-1px); }
.frame-tool-btn.is-danger { color: var(--muted, #8c92a2); }
.frame-tool-btn.is-danger:hover { background: rgba(217, 64, 64, 0.85); border-color: #ff6b6b; color: #ffffff; }
.frame-tool-btn.is-accent {
  width: auto !important;
  height: 32px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  background: rgba(10, 12, 16, 0.94) !important;
  border: 1.5px solid var(--gold-primary) !important;
  color: var(--gold-primary) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6) !important;
}
.frame-tool-btn.is-accent:hover { background: #000000 !important; color: #ffffff !important; border-color: #ffffff !important; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8), 0 0 12px rgba(212, 190, 136, 0.35) !important; }
.frame-bottom-chips { position: absolute; bottom: 12px; right: 12px; z-index: 15; display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.frame-chip-capsule {
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(14, 18, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #f1f5f9 !important;
  font-size: 15px !important;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.frame-chip-capsule .chip-text { font-size: 15px !important; }
.frame-chip-capsule:hover { border-color: var(--gold-primary); background: rgba(24, 28, 38, 0.98); color: #ffffff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), 0 0 10px rgba(212, 190, 136, 0.2); }
.frame-chip-capsule .chip-dot { width: 6px; height: 6px; border-radius: 50%; background: #64748b; transition: all 0.2s ease; }
.frame-chip-capsule.is-active { border: none !important; color: #ffffff !important; background: rgba(24, 28, 38, 0.98) !important; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6) !important; }
.frame-chip-capsule.is-active .chip-dot { background: var(--gold-primary) !important; box-shadow: 0 0 6px var(--gold-primary) !important; }
html[data-theme="light"] .frame-tool-btn { background: rgba(255, 255, 255, 0.92); border-color: rgba(0, 0, 0, 0.14); color: #475569; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
html[data-theme="light"] .frame-tool-btn:hover { background: #ffffff; border-color: #9b7c38; color: #9b7c38; }
html[data-theme="light"] .frame-tool-btn.is-danger:hover { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); color: #dc2626; }
html[data-theme="light"] .frame-tool-btn.is-accent { background: #ffffff !important; border-color: #9b7c38 !important; color: #9b7c38 !important; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important; }
html[data-theme="light"] .frame-tool-btn.is-accent:hover { background: linear-gradient(135deg, #dfcb9a 0%, #c4aa6e 100%) !important; color: #08090c !important; }
html[data-theme="light"] .frame-chip-capsule { background: #ffffff !important; border: none !important; color: #0f172a !important; font-weight: 600 !important; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08) !important; }
html[data-theme="light"] .frame-chip-capsule .chip-dot { background: #94a3b8; }
html[data-theme="light"] .frame-chip-capsule:hover, html[data-theme="light"] .frame-chip-capsule.is-active { background: #ffffff !important; border: none !important; color: #0f172a !important; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16) !important; }
html[data-theme="light"] .frame-chip-capsule.is-active .chip-dot { background: var(--gold-primary, #d4be88) !important; box-shadow: 0 0 4px var(--gold-primary, #d4be88) !important; }
.frame-slot {
  position: relative !important;
}
.pane > .frame-slot {
  margin-top: 0 !important;
}
.frame-slot > .result-meta,
.frame-slot > .source-meta,
.frame-slot > .result-meta:has(.meta-extra:not([hidden])) {
  position: absolute !important;
  bottom: calc(100% + 8px) !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
  padding: 0 4px !important;
  height: auto !important;
  min-height: 24px !important;
  z-index: 10 !important;
  pointer-events: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: center !important;
  box-sizing: border-box !important;
}
.frame-slot > .source-meta .meta-copy,
.frame-slot > .result-meta .meta-copy {
  margin: 0 !important;
}
.frame-slot > .result-meta .meta-extra {
  margin-top: 2px !important;
  margin-bottom: 0 !important;
}
.lower-films,
.result-tools {
  margin-top: 8px !important;
}
.dock {
  position: absolute !important;
  left: 50% !important;
  bottom: 18px !important;
  transform: translateX(-50%) !important;
  width: min(1200px, calc(100vw - 48px)) !important;
  height: auto !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  z-index: 25 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.cockpit-outer-header { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; position: relative !important; min-height: 28px; padding: 0 4px; box-sizing: border-box; z-index: 5 !important; }
.cockpit-echo-status {
  font-size: 13px !important;
  color: #94a3b8 !important;
  letter-spacing: 0.5px;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 240px);
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: none !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-weight: 500;
}
html[data-theme="light"] .cockpit-echo-status { background: rgba(0, 0, 0, 0.04); border: none !important; color: #64748b !important; box-shadow: none !important; }
.cockpit-center-toast {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 28px;
  line-height: 28px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  background: rgba(14, 17, 24, 0.94);
  border: 1px solid rgba(212, 190, 136, 0.45);
  color: var(--gold-primary, #d4be88);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cockpit-center-toast.show { opacity: 1; }
html[data-theme="light"] .cockpit-center-toast { background: rgba(255, 255, 255, 0.96); border-color: rgba(180, 140, 80, 0.45); color: #8c6a28; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }
.cockpit-outer-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cockpit-outer-tools .cockpit-btn-preview,
.cockpit-outer-tools .cockpit-btn-opt,
.cockpit-outer-tools .undo-delete-capsule {
  position: static !important;
  left: auto !important;
  transform: none !important;
  bottom: auto !important;
  z-index: 1 !important;
  height: 28px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  user-select: none !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}
.cockpit-outer-tools .undo-delete-capsule { color: var(--gold-primary, #d4be88) !important; background: rgba(14, 16, 22, 0.9) !important; border: none !important; }
.cockpit-outer-tools .undo-delete-capsule:hover:not(:disabled) { background: rgba(212, 190, 136, 0.22) !important; color: #ffffff !important; box-shadow: 0 0 12px rgba(212, 190, 136, 0.35) !important; }
.cockpit-outer-tools .undo-delete-capsule:disabled { background: rgba(255, 255, 255, 0.04) !important; border: none !important; color: #64748b !important; cursor: not-allowed !important; opacity: 0.55 !important; box-shadow: none !important; }
.cockpit-outer-tools .undo-delete-capsule:disabled .undo-badge { background: rgba(255, 255, 255, 0.08) !important; color: #64748b !important; }
html[data-theme="light"] .cockpit-outer-tools .undo-delete-capsule { background: rgba(255, 255, 255, 0.94) !important; border: none !important; color: #8c6a28 !important; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important; }
html[data-theme="light"] .cockpit-outer-tools .undo-delete-capsule:disabled { background: #f1f3f7 !important; border: none !important; color: #94a3b8 !important; opacity: 0.7 !important; box-shadow: none !important; }
html[data-theme="light"] .cockpit-outer-tools .undo-delete-capsule:disabled .undo-badge { background: #e2e8f0 !important; color: #94a3b8 !important; }
.cockpit-outer-tools .cockpit-btn-preview { color: #c7cad4 !important; background: rgba(255, 255, 255, 0.06) !important; border: none !important; }
.cockpit-outer-tools .cockpit-btn-preview:hover { color: var(--gold-primary) !important; background: rgba(212, 190, 136, 0.14) !important; }
.cockpit-outer-tools .cockpit-btn-opt { color: #dfcb9a !important; background: rgba(212, 190, 136, 0.12) !important; border: none !important; }
.cockpit-outer-tools .cockpit-btn-opt:hover:not(:disabled) { background: rgba(212, 190, 136, 0.22) !important; color: #ffffff !important; }
.cockpit-outer-tools .cockpit-btn-opt:disabled { background: rgba(255, 255, 255, 0.04) !important; color: #64748b !important; cursor: not-allowed !important; opacity: 0.55 !important; border: none !important; }
html[data-theme="light"] .cockpit-outer-tools .cockpit-btn-preview { background: rgba(255, 255, 255, 0.94) !important; border-color: #ded8cb !important; color: #64748b !important; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important; }
html[data-theme="light"] .cockpit-outer-tools .cockpit-btn-preview:hover { border-color: #9b7c38 !important; color: #9b7c38 !important; }
html[data-theme="light"] .cockpit-outer-tools .cockpit-btn-opt { background: rgba(255, 255, 255, 0.96) !important; border-color: rgba(180, 140, 80, 0.4) !important; color: #8c6a28 !important; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important; }
html[data-theme="light"] .cockpit-outer-tools .cockpit-btn-opt:disabled { background: #f1f3f7 !important; border-color: #cbd5e1 !important; color: #94a3b8 !important; cursor: not-allowed !important; box-shadow: none !important; opacity: 0.7 !important; }
html[data-theme="light"] .cockpit-outer-tools .cockpit-btn-opt:not(:disabled) { background: linear-gradient(135deg, #dfcb9a 0%, #c4aa6e 100%) !important; color: #08090c !important; font-weight: 600 !important; box-shadow: 0 2px 8px rgba(180, 140, 80, 0.25) !important; border-color: #b88a44 !important; }
.jimeng-cockpit {
  width: 100%;
  min-height: 146px;
  background: rgba(18, 21, 28, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
  z-index: 30 !important;
}
.cockpit-input-area { position: relative; padding: 14px 20px 8px 20px; min-height: 96px; flex: 1 1 auto; box-sizing: border-box; display: flex; align-items: flex-start; gap: 14px; }
.cockpit-upload-group { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.cockpit-upload-tile {
  flex: 0 0 64px !important;
  width: 64px !important;
  height: 64px !important;
  border-radius: 8px !important;
  border: none !important;
  background: rgba(255, 255, 255, 0.06) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  user-select: none !important;
}
.cockpit-upload-tile .upload-tile-plus { font-size: 20px !important; line-height: 1 !important; color: #94a3b8 !important; transition: color 0.18s ease !important; }
.cockpit-upload-tile .upload-tile-text { font-size: 13px !important; line-height: 1 !important; color: #94a3b8 !important; letter-spacing: 0.5px !important; white-space: nowrap !important; transition: color 0.18s ease !important; }
.cockpit-upload-tile:hover { background: rgba(255, 255, 255, 0.1) !important; }
.cockpit-upload-tile:hover .upload-tile-plus, .cockpit-upload-tile:hover .upload-tile-text { color: var(--gold-primary) !important; }
.cockpit-upload-tile.is-active { background: rgba(212, 190, 136, 0.14) !important; border: 1px solid rgba(212, 190, 136, 0.45) !important; }
.cockpit-upload-tile.is-active .upload-tile-plus, .cockpit-upload-tile.is-active .upload-tile-text { color: var(--gold-primary) !important; font-weight: 600 !important; }
html[data-theme="light"] .cockpit-upload-tile { border: none !important; background: rgba(0, 0, 0, 0.04) !important; }
html[data-theme="light"] .cockpit-upload-tile .upload-tile-plus, html[data-theme="light"] .cockpit-upload-tile .upload-tile-text { color: #64748b !important; }
html[data-theme="light"] .cockpit-upload-tile:hover { background: rgba(0, 0, 0, 0.07) !important; }
html[data-theme="light"] .cockpit-upload-tile:hover .upload-tile-plus, html[data-theme="light"] .cockpit-upload-tile:hover .upload-tile-text { color: #9b7c38 !important; }
html[data-theme="light"] .cockpit-upload-tile.is-active { border: 1px solid rgba(180, 140, 80, 0.45) !important; background: rgba(180, 140, 80, 0.12) !important; }
html[data-theme="light"] .cockpit-upload-tile.is-active .upload-tile-plus, html[data-theme="light"] .cockpit-upload-tile.is-active .upload-tile-text { color: #7c5e20 !important; }
.cockpit-input-area textarea#extra,
.cockpit-input-area textarea#extra:focus,
.cockpit-input-area textarea#extra:active,
.cockpit-input-area textarea#extra.selected-value,
.jimeng-cockpit textarea#extra,
.jimeng-cockpit textarea#extra:focus,
.jimeng-cockpit textarea#extra:active,
.jimeng-cockpit textarea#extra.selected-value {
  flex: 1 1 auto;
  width: auto;
  height: 80px;
  min-height: 80px;
  max-height: 180px;
  resize: none;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #f3f4f8 !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  font-family: inherit;
  padding: 4px 70px 0 0 !important;
  box-sizing: border-box;
  letter-spacing: 0.5px;
}
.cockpit-input-area .cockpit-counter { position: absolute; right: 20px; bottom: 8px; font-size: 13px !important; color: #64748b; font-variant-numeric: tabular-nums; user-select: none; pointer-events: none; }
.cockpit-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 0 14px 10px 14px; border-top: none; box-sizing: border-box; gap: 12px; }
.cockpit-params-left { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.cockpit-pill-wrap {
  position: relative;
  min-width: 0;
}
.cockpit-pill {
  height: 32px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  white-space: nowrap;
}
.cockpit-segmented-dock {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  height: 34px !important;
  padding: 2px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-sizing: border-box !important;
}
.cockpit-segmented-dock .cockpit-pill-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}
.cockpit-segmented-dock #wrapPreciseModify::before { content: ""; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: rgba(255, 255, 255, 0.12); pointer-events: none; z-index: 2; }
.cockpit-segmented-dock .cockpit-pill {
  height: 28px !important;
  min-height: 28px !important;
  line-height: 28px !important;
  padding: 0 14px !important;
  border-radius: 6px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #cbd5e1 !important;
  font-size: 15px !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  user-select: none !important;
  white-space: nowrap !important;
}
.cockpit-segmented-dock .cockpit-pill:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
.cockpit-segmented-dock .cockpit-pill.is-active {
  background: rgba(212, 190, 136, 0.16) !important;
  color: var(--gold-primary) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.cockpit-segmented-dock .cockpit-pill.is-active:hover {
  background: rgba(212, 190, 136, 0.22) !important;
  color: var(--gold-primary) !important;
}
.cockpit-segmented-dock .cockpit-pill .cockpit-pill-arrow {
  font-size: 10px;
  color: var(--gold-primary);
  opacity: 0.85;
  margin-left: 1px;
}
#wrapModelSpec { flex: 0 0 auto; position: relative; z-index: 100; }
#wrapModelSpec .cockpit-sub-menu { left: 50% !important; right: auto !important; transform: translateX(-50%) !important; }
#wrapModelSpec .cockpit-pill {
  height: 34px !important;
  min-height: 34px !important;
  line-height: 32px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  white-space: nowrap;
}
#wrapModelSpec .cockpit-pill:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff;
}
#wrapModelSpec .cockpit-pill.is-active {
  background: rgba(212, 190, 136, 0.16) !important;
  border-color: rgba(212, 190, 136, 0.3) !important;
  color: var(--gold-primary) !important;
}
.cockpit-pill-text {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-align: left;
  font-size: 15px !important;
  font-weight: 550 !important;
}
.cockpit-action-right #runBtn #runCost { display: none !important; }
.cockpit-pill:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: transparent;
}
.cockpit-pill.is-active {
  background: rgba(212, 190, 136, 0.10);
  border-color: transparent !important;
  color: var(--gold-primary) !important;
  box-shadow: none !important;
}
.cockpit-pill.is-active:hover {
  background: rgba(212, 190, 136, 0.16) !important;
  border-color: transparent !important;
  color: var(--gold-primary) !important;
  box-shadow: none !important;
}
.cockpit-pill-arrow {
  font-size: 10px;
  color: var(--gold-primary);
  opacity: 0.8;
}
.cockpit-action-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.cockpit-action-right .undo-delete-capsule { position: static !important; left: auto !important; transform: none !important; bottom: auto !important; height: 30px !important; z-index: 1 !important; }
.cockpit-action-right #runBtn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #ecd9a8 0%, #d9c08a 45%, #c0a268 100%) !important;
  color: #14100a !important;
  border: none !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: inset 0 1px 0 rgba(255, 250, 235, 0.55), 0 3px 12px rgba(160, 128, 68, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none;
}
.cockpit-action-right #runBtn:hover:not(:disabled) { filter: brightness(1.12); transform: scale(1.06); box-shadow: inset 0 1px 0 rgba(255, 250, 235, 0.7), 0 6px 20px rgba(212, 190, 136, 0.5); }
.cockpit-action-right #runBtn:active:not(:disabled) { transform: scale(0.96); }
.cockpit-action-right #runBtn:disabled { opacity: 0.45 !important; cursor: not-allowed !important; box-shadow: none !important; transform: none !important; }
.cockpit-action-right #runBtn .run-btn-arrow { stroke: #14100a; transition: transform 0.2s ease; }
.cockpit-action-right #runBtn:hover:not(:disabled) .run-btn-arrow { transform: translateY(-1px); }
html[data-theme="light"] .cockpit-action-right #runBtn { background: linear-gradient(135deg, #b88d3c 0%, #997126 100%) !important; color: #ffffff !important; box-shadow: 0 2px 10px rgba(153, 113, 38, 0.3); }
html[data-theme="light"] .cockpit-action-right #runBtn .run-btn-arrow { stroke: #ffffff; }
.cockpit-action-right #runBtn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 250, 235, 0.65), 0 8px 22px rgba(160, 128, 68, 0.42); }
.cockpit-action-right #runBtn:disabled { filter: none; transform: none; opacity: 0.45; box-shadow: none; cursor: not-allowed; }
.cockpit-sub-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 300 !important;
  background: #191d28 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.95);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}
.cockpit-vertical-drawer {
  position: absolute !important;
  bottom: calc(100% + 8px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  padding: 4px !important;
  border-radius: 8px !important;
  background: #191d28 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-sizing: border-box !important;
  z-index: 100 !important;
}
.cockpit-drawer-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  height: 34px !important;
  padding: 0 6px !important;
  border-radius: 6px !important;
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  font-family: inherit !important;
  white-space: nowrap !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.cockpit-drawer-item.is-ready { background: rgba(255, 255, 255, 0.08) !important; color: #f1f5f9 !important; font-weight: 600 !important; }
.cockpit-drawer-item.is-ready:hover { background: rgba(255, 255, 255, 0.14) !important; color: #ffffff !important; }
.cockpit-drawer-item:hover:not(:disabled):not(.is-active):not(.is-ready) { background: rgba(255, 255, 255, 0.06) !important; color: #f1f5f9 !important; }
.cockpit-drawer-item.is-active { background: rgba(212, 190, 136, 0.14) !important; color: var(--gold-primary, #d4be88) !important; font-weight: 600 !important; }
.cockpit-drawer-item:disabled, .cockpit-drawer-item.locked { opacity: 0.28 !important; cursor: not-allowed !important; background: transparent !important; color: #64748b !important; }
html[data-theme="light"] .cockpit-sub-menu, html[data-theme="light"] .cockpit-vertical-drawer { background: #ffffff !important; border: none !important; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10) !important; }
html[data-theme="light"] .cockpit-drawer-item { color: #64748b !important; }
html[data-theme="light"] .cockpit-drawer-item.is-ready { background: #f1f3f7 !important; color: #0f172a !important; font-weight: 600 !important; }
html[data-theme="light"] .cockpit-drawer-item.is-ready:hover { background: #e2e8f0 !important; }
html[data-theme="light"] .cockpit-drawer-item:hover:not(:disabled):not(.is-active):not(.is-ready) { background: rgba(0, 0, 0, 0.04) !important; color: #0f172a !important; }
html[data-theme="light"] .cockpit-drawer-item.is-active { background: rgba(180, 140, 80, 0.1) !important; color: #9b7c38 !important; }
.cockpit-horizontal-tabs {
  min-width: auto !important;
  width: max-content !important;
  max-width: calc(100vw - 32px) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 4px 6px !important;
  height: 50px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: #191d28 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95) !important;
  box-sizing: border-box !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.cockpit-sub-menu[hidden], .cockpit-horizontal-tabs[hidden] { display: none !important; }
.cockpit-tab-item {
  flex: 0 0 auto;
  height: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 6px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #8c92a4;
  font-size: 13px !important;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
}
.cockpit-tab-item + .cockpit-tab-item {
  position: relative;
}
.cockpit-tab-item + .cockpit-tab-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.cockpit-tab-item:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff;
}
.cockpit-tab-item.is-active {
  background: rgba(212, 190, 136, 0.16) !important;
  color: var(--gold-primary);
}
.cockpit-tab-item.is-active:hover {
  background: rgba(212, 190, 136, 0.22) !important;
  color: var(--gold-primary) !important;
}
.cockpit-tab-item strong {
  font-weight: 500;
  color: var(--gold-primary);
  font-size: 14px;
  margin: 0 2px;
}
.cockpit-tab-item i {
  font-style: normal;
  font-size: 11px;
  color: var(--gold-primary);
  opacity: 0.8;
  margin-left: 2px;
}
.cockpit-spec-popup { width: 372px !important; min-width: 372px !important; max-width: 372px !important; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; }
.spec-popup-row { display: flex; flex-direction: column; gap: 6px; }
.spec-popup-row + .spec-popup-row { position: relative; border-top: 1px solid rgba(212, 190, 136, 0.12); padding-top: 10px; }
html[data-theme="light"] .spec-popup-row + .spec-popup-row { border-top-color: rgba(0, 0, 0, 0.06); }
.spec-row-title { font-size: 13px !important; color: var(--gold-primary); font-weight: 600; letter-spacing: 0.5px; }
html[data-theme="light"] .spec-row-title { color: #8c6a28; }
.spec-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.spec-model-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.4;
  color: #38bdf8;
  background: transparent;
  border: none;
  padding: 2px 0 4px;
  margin: 0;
  box-sizing: border-box;
  width: 100%;
}
.spec-model-guide .guide-col { text-align: center; font-weight: 500; letter-spacing: 0.3px; white-space: nowrap; }
html[data-theme="light"] .spec-model-guide { color: #0284c7; background: transparent; border: none; }
.spec-chip {
  height: 32px;
  min-width: 44px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c7cad4;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: all 0.15s ease;
}
.spec-chip.is-active {
  background: rgba(212, 190, 136, 0.16);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  font-weight: 600;
}
.spec-chip.is-active:hover {
  background: rgba(212, 190, 136, 0.26) !important;
  border-color: var(--gold-primary) !important;
  color: var(--gold-primary) !important;
  box-shadow: 0 0 10px rgba(212, 190, 136, 0.25) !important;
}
.spec-chip:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.spec-model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spec-model-grid .spec-chip {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}
.spec-chip-follow {
  width: 100% !important;
  flex: 0 0 100% !important;
  justify-content: center;
  box-sizing: border-box;
  font-weight: 500;
  letter-spacing: 0.5px;
  background: rgba(212, 190, 136, 0.08) !important;
  border: 1px solid rgba(212, 190, 136, 0.32) !important;
  color: var(--gold-primary) !important;
  margin-bottom: 2px;
}
.cockpit-spec-popup .spec-popup-row:nth-child(2) .spec-chips-list {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 6px !important;
}
.cockpit-spec-popup .spec-popup-row:nth-child(2) .spec-chips-list .spec-chip-follow {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}
.v3-style-layout { display: flex !important; flex-direction: row !important; align-items: stretch !important; gap: 14px !important; }
.v3-style-rail { display: flex !important; flex-direction: column !important; gap: 8px !important; width: 52px !important; flex: 0 0 52px !important; align-items: stretch !important; justify-content: stretch !important; box-sizing: border-box !important; border-right: 1px solid rgba(255, 255, 255, 0.08) !important; padding-right: 12px !important; }
.v3-style-rail-btn {
  flex: 1 1 0 !important;
  min-height: 120px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 0 !important;
  border-radius: 8px !important;
  border: 1px solid rgba(212, 190, 136, 0.22) !important;
  background: rgba(212, 190, 136, 0.05) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}
.v3-style-rail-btn span { writing-mode: vertical-rl !important; text-orientation: upright !important; letter-spacing: 6px !important; font-size: 15px !important; font-weight: 600 !important; color: #bba26e !important; user-select: none !important; line-height: 1 !important; }
.v3-style-rail-btn:hover:not(.is-active) { background: rgba(212, 190, 136, 0.12) !important; border-color: rgba(212, 190, 136, 0.45) !important; }
.v3-style-rail-btn:hover:not(.is-active) span { color: var(--gold-primary, #d4be88) !important; }
.v3-style-rail-btn.is-active { background: var(--gold-primary, #d4be88) !important; border-color: var(--gold-primary, #d4be88) !important; box-shadow: 0 4px 18px rgba(212, 190, 136, 0.35) !important; }
.v3-style-rail-btn.is-active span { color: #12151c !important; font-weight: 700 !important; }
html[data-theme="light"] .v3-style-rail { border-right-color: rgba(0, 0, 0, 0.08) !important; }
html[data-theme="light"] .v3-style-rail-btn { background: #f8f9fa !important; border: 1px solid rgba(0, 0, 0, 0.08) !important; box-shadow: none !important; }
html[data-theme="light"] .v3-style-rail-btn span { color: #64748b !important; font-weight: 500 !important; }
html[data-theme="light"] .v3-style-rail-btn:hover:not(.is-active) { background: #ffffff !important; border-color: rgba(180, 140, 80, 0.45) !important; }
html[data-theme="light"] .v3-style-rail-btn:hover:not(.is-active) span { color: #78591b !important; }
html[data-theme="light"] .v3-style-rail-btn.is-active { background: linear-gradient(135deg, #fbf7ee 0%, #f4ebd7 100%) !important; border: 1px solid rgba(180, 140, 80, 0.55) !important; box-shadow: 0 2px 10px rgba(180, 140, 80, 0.18) !important; }
html[data-theme="light"] .v3-style-rail-btn.is-active span { color: #78591b !important; font-weight: 700 !important; }
.v3-style-content { display: flex !important; flex-direction: column !important; flex: 1 1 auto !important; min-width: 0 !important; }
.cockpit-spec-popup .spec-popup-row:nth-child(2) .spec-chips-list .spec-chip {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}
.spec-chip-follow:hover:not(.is-active) {
  background: rgba(212, 190, 136, 0.16) !important;
  border-color: var(--gold-primary) !important;
  color: #ffffff !important;
}
.spec-chip-follow.is-active {
  background: rgba(212, 190, 136, 0.24) !important;
  border-color: var(--gold-primary) !important;
  color: var(--gold-primary) !important;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(212, 190, 136, 0.25) !important;
}
html[data-theme="light"] .spec-chip-follow {
  background: rgba(180, 140, 80, 0.08) !important;
  border-color: rgba(180, 140, 80, 0.35) !important;
  color: #7c5e20 !important;
}
html[data-theme="light"] .spec-chip-follow:hover:not(.is-active) {
  background: rgba(180, 140, 80, 0.16) !important;
  border-color: #9b7c38 !important;
  color: #0f172a !important;
}
html[data-theme="light"] .spec-chip-follow.is-active {
  background: rgba(180, 140, 80, 0.24) !important;
  border-color: #9b7c38 !important;
  color: #7c5e20 !important;
}
.spec-chip.is-unsupported {
  opacity: 0.38;
  background: rgba(255, 255, 255, 0.02) !important;
  color: #555b6a !important;
  border: 1px dashed rgba(255, 255, 255, 0.14) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}
html[data-theme="light"] .spec-chip.is-unsupported {
  background: rgba(0, 0, 0, 0.02) !important;
  color: #94a3b8 !important;
  border: 1px dashed rgba(0, 0, 0, 0.15) !important;
}
html[data-theme="light"] .jimeng-cockpit { background: rgba(255, 255, 255, 0.98); border-color: rgba(0, 0, 0, 0.08); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08); }
html[data-theme="light"] .cockpit-input-area textarea#extra { color: #0f172a !important; }
html[data-theme="light"] .cockpit-toolbar { border-top-color: transparent; }
html[data-theme="light"] .cockpit-segmented-dock { background: #ffffff !important; border-color: rgba(0, 0, 0, 0.08) !important; }
html[data-theme="light"] .cockpit-segmented-dock #wrapPreciseModify::before { background: rgba(0, 0, 0, 0.08); }
html[data-theme="light"] .cockpit-segmented-dock .cockpit-pill {
  color: #475569 !important;
}
html[data-theme="light"] .cockpit-segmented-dock .cockpit-pill:hover:not(.is-active) {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .cockpit-segmented-dock .cockpit-pill.is-active {
  background: rgba(180, 140, 80, 0.12) !important;
  color: #9b7c38 !important;
}
html[data-theme="light"] #wrapModelSpec .cockpit-pill {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #475569 !important;
}
html[data-theme="light"] #wrapModelSpec .cockpit-pill:hover:not(.is-active) {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .cockpit-pill {
  background: transparent;
  border-color: transparent;
  color: #64748b;
}
html[data-theme="light"] .cockpit-pill:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #0f172a;
  border-color: transparent;
}
html[data-theme="light"] .cockpit-pill.is-active {
  background: rgba(180, 140, 80, 0.08);
  border-color: transparent !important;
  color: #9b7c38 !important;
  box-shadow: none !important;
}
html[data-theme="light"] .cockpit-sub-menu { background: #ffffff; border-color: rgba(180, 140, 80, 0.4); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15); }
html[data-theme="light"] .cockpit-horizontal-tabs { background: rgba(255, 255, 255, 0.98) !important; border-color: rgba(180, 140, 80, 0.4) !important; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important; }
html[data-theme="light"] .cockpit-tab-item {
  background: transparent !important;
  border: none !important;
  color: #64748b;
}
html[data-theme="light"] .cockpit-tab-item + .cockpit-tab-item::before {
  background: rgba(0, 0, 0, 0.1);
}
html[data-theme="light"] .cockpit-tab-item:hover:not(.is-active) {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #0f172a;
}
html[data-theme="light"] .cockpit-tab-item.is-active {
  background: rgba(180, 140, 80, 0.12) !important;
  color: #7c5e20;
}
html[data-theme="light"] .cockpit-tab-item.is-active:hover {
  background: rgba(180, 140, 80, 0.20) !important;
  color: #7c5e20 !important;
}
html[data-theme="light"] .spec-chip {
  background: #f8f6f0;
  border-color: #ded8cb;
  color: #475569;
}
html[data-theme="light"] .spec-chip.is-active {
  background: rgba(180, 140, 80, 0.14);
  border-color: #9b7c38;
  color: #7c5e20;
  font-weight: 600;
}
html[data-theme="light"] .spec-chip.is-active:hover {
  background: rgba(180, 140, 80, 0.22) !important;
  border-color: #9b7c38 !important;
  color: #7c5e20 !important;
  box-shadow: 0 0 8px rgba(180, 140, 80, 0.25) !important;
}
html[data-theme="light"] .spec-chip:hover:not(.is-active) {
  background: #ffffff;
  border-color: #9b7c38;
  color: #0f172a;
}
html.page-fluid, html.page-fluid body { width: 100% !important; height: 100% !important; min-height: 100dvh !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; background: var(--bg-dark, #07080b) !important; touch-action: manipulation !important; }
html.page-fluid button, html.page-fluid a, html.page-fluid input, html.page-fluid textarea, html.page-fluid .frame, html.page-fluid .rail-item, html.page-fluid .workbench-hud-plaque { touch-action: manipulation !important; }
html.page-fluid .app {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  touch-action: manipulation !important;
}
html.page-fluid .shared-header { position: relative !important; top: auto !important; left: auto !important; right: auto !important; flex: 0 0 auto !important; height: var(--fluid-header-h, 93px) !important; padding: 0 calc(var(--fluid-header-h, 93px) * 0.6022) 0 calc(var(--fluid-header-h, 93px) * 0.172) !important; box-sizing: border-box !important; border-bottom: 1px solid rgba(212, 190, 136, 0.16) !important; }
html.page-fluid .shared-header .shared-brand { gap: calc(var(--fluid-header-h, 93px) * 0.1505) !important; align-items: center !important; }
html.page-fluid .shared-header .shared-brand-copy { display: flex !important; flex-direction: column !important; justify-content: center !important; gap: 7px !important; }
html.page-fluid .shared-header .shared-crest { width: clamp(38px, calc(var(--fluid-header-h, 93px) * 0.5484), 51px) !important; height: clamp(38px, calc(var(--fluid-header-h, 93px) * 0.5484), 51px) !important; flex: 0 0 clamp(38px, calc(var(--fluid-header-h, 93px) * 0.5484), 51px) !important; flex-basis: clamp(38px, calc(var(--fluid-header-h, 93px) * 0.5484), 51px) !important; align-self: center !important; }
html.page-fluid .shared-header .shared-brand-title { font-size: clamp(21px, calc(var(--fluid-header-h, 93px) * 0.3108), 29px) !important; letter-spacing: 0.176em !important; font-weight: 300 !important; color: #ffffff !important; text-transform: uppercase !important; line-height: 1 !important; }
html.page-fluid .shared-header .shared-brand-subtitle { font-size: clamp(13px, calc(var(--fluid-header-h, 93px) * 0.1645), 15.3px) !important; letter-spacing: 0.167em !important; font-weight: 400 !important; color: var(--gold-primary, #d4be88) !important; opacity: 0.92 !important; text-transform: uppercase !important; line-height: 1 !important; }
html.page-fluid[data-theme="light"] .shared-header .shared-brand-title { color: #0f172a !important; }
html.page-fluid[data-theme="light"] .shared-header .shared-brand-subtitle { color: #9b7c38 !important; }
html[data-theme="light"] .shared-brand-title { color: #0f172a !important; }
html[data-theme="light"] .shared-brand-subtitle { color: #9b7c38 !important; }
html.page-fluid .shared-header-right { gap: calc(var(--fluid-header-h, 93px) * 0.2581) !important; }
html.page-fluid .shared-nav { gap: calc(var(--fluid-header-h, 93px) * 0.3871) !important; }
html.page-fluid .shared-nav a { font-size: calc(var(--fluid-header-h, 93px) * 0.2258) !important; letter-spacing: 0.095em !important; }
html.page-fluid .viewer-frame {
  width: min(90vw, calc(100dvw - 64px)) !important;
  height: min(84vh, calc(100dvh - 64px)) !important;
}
html.page-fluid .workspace {
  position: relative !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  width: 100% !important;
  max-width: 100vw !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
html.page-fluid .workspace > #currentProjectBadge.workbench-hud-plaque { position: absolute !important; top: 12px !important; left: calc(var(--fluid-header-h, 93px) * 0.172) !important; transform: none !important; z-index: 40 !important; }
html.page-fluid .compare {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: clamp(16px, 2.5vw, 36px) !important;
  padding-top: 40px !important;
  padding-bottom: 8px !important;
  padding-left: clamp(16px, 2.5vw, 40px) !important;
  padding-right: clamp(16px, 2.5vw, 40px) !important;
  align-items: center !important;
}
html.page-fluid .pane { position: relative !important; min-width: 0 !important; min-height: 0 !important; height: 100% !important; display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important; gap: 0 !important; box-sizing: border-box !important; }
html.page-fluid .frame-slot {
  flex: 0 0 auto !important;
  width: min(100%, calc((100vh - var(--fluid-header-h, 93px) - 340px) * 16 / 9)) !important;
  height: auto !important;
  container-type: normal !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  position: relative !important;
  box-sizing: border-box !important;
}
html.page-fluid .frame-slot > .result-meta,
html.page-fluid .frame-slot > .source-meta,
html.page-fluid .frame-slot > .result-meta:has(.meta-extra:not([hidden])) {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  margin: 0 auto 6px auto !important;
  padding: 0 !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 24px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  box-sizing: border-box !important;
}
html.page-fluid .result-meta .meta-extra {
  position: absolute !important;
  bottom: 100% !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  font-size: 15px !important;
  line-height: 22px !important;
  color: #8c92a4 !important;
  letter-spacing: 0.5px !important;
  margin: 0 0 2px 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: color 0.15s ease, opacity 0.15s ease;
}
html.page-fluid .result-meta .meta-extra:hover {
  color: var(--gold-primary, #d4be88) !important;
  opacity: 1 !important;
}
html.page-fluid .frame { width: 100% !important; aspect-ratio: 16 / 9 !important; height: auto !important; max-width: 100% !important; box-sizing: border-box !important; position: relative !important; border-radius: 14px !important; flex: 0 0 auto !important; }
html.page-fluid .lower-films,
html.page-fluid .result-tools {
  flex: 0 0 auto !important;
  height: 84px !important;
  min-height: 84px !important;
  max-height: 84px !important;
  width: min(100%, calc((100vh - var(--fluid-header-h, 93px) - 340px) * 16 / 9)) !important;
  margin: 6px auto 0 auto !important;
  box-sizing: border-box !important;
  display: block !important;
}
html.page-fluid #baseFilm,
html.page-fluid #resultFilm,
html.page-fluid .result-tools .film,
html.page-fluid .lower-films .film {
  height: 84px !important;
  min-height: 84px !important;
  max-height: 84px !important;
  width: 100% !important;
  padding: 4px 0 0 0 !important;
  box-sizing: border-box !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
}
html.page-fluid .workbench-frame-divider { width: min(100%, calc((100vh - var(--fluid-header-h, 93px) - 340px) * 16 / 9)) !important; height: 1px !important; margin: 0 auto !important; background: rgba(212, 190, 136, 0.16) !important; box-shadow: 0 0 6px rgba(212, 190, 136, 0.08) !important; flex: 0 0 1px !important; }
html[data-theme="light"].page-fluid .workbench-frame-divider { background: rgba(180, 140, 80, 0.25) !important; box-shadow: none !important; }
html.page-fluid .rail {
  height: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(212, 190, 136, 0.25) transparent !important;
}
html.page-fluid .rail::-webkit-scrollbar { height: 4px !important; }
html.page-fluid .rail::-webkit-scrollbar-track { background: transparent !important; }
html.page-fluid .rail::-webkit-scrollbar-thumb { background: rgba(212, 190, 136, 0.3) !important; border-radius: 99px !important; }
html.page-fluid .rail-item {
  flex: 0 0 80px !important;
  width: 80px !important;
  height: 80px !important;
  min-width: 80px !important;
  min-height: 80px !important;
  max-width: 80px !important;
  max-height: 80px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(18, 22, 30, 0.95) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45) !important;
}
html[data-theme="light"].page-fluid .rail-item { background: #ffffff !important; border-color: rgba(180, 140, 80, 0.35) !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important; }
html.page-fluid .dock {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 auto 12px auto !important;
  align-self: center !important;
  flex: 0 0 auto !important;
  width: min(1200px, calc(100% - 48px)) !important;
  max-width: calc(100% - 48px) !important;
  box-sizing: border-box !important;
  z-index: 25 !important;
  touch-action: manipulation !important;
}
html.page-fluid .v3-menu { max-height: calc(100vh - 140px) !important; }
html[data-theme="light"].page-fluid, html[data-theme="light"].page-fluid body, html[data-theme="light"].page-fluid .app { background: #ffffff !important; }
html[data-theme="light"].page-fluid .shared-header { background: #ffffff !important; border-bottom-color: rgba(180, 140, 80, 0.25) !important; }
html.page-fluid .stage-paper {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
html.page-fluid .projects-container {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 18px 24px 40px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
}
.canvas-ref-picker { position: fixed; inset: 0; z-index: 10002; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.canvas-ref-picker[hidden] { display: none !important; }
.canvas-ref-picker-card { width: min(880px, 100%); max-height: min(82vh, 740px); display: flex; flex-direction: column; border-radius: 16px; border: 1px solid rgba(212, 190, 136, 0.4); background: #0e1016; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85); overflow: hidden; }
.canvas-ref-picker-head { padding: 18px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.canvas-ref-picker-title { font-size: 18px; font-weight: 600; color: #ffffff; }
.canvas-ref-picker-sub { margin-top: 4px; font-size: 13px; color: #8b91a0; }
.canvas-ref-picker-close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #d8cdba; font-size: 16px; cursor: pointer; transition: all 0.15s ease; }
.canvas-ref-picker-close:hover { background: rgba(255, 255, 255, 0.16); color: #ffffff; }
.canvas-ref-picker-upload {
  flex: none;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 190, 136, 0.5);
  background: rgba(212, 190, 136, 0.12);
  color: var(--gold-primary, #d4be88);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.canvas-ref-picker-upload:hover { background: rgba(212, 190, 136, 0.25); border-color: rgba(212, 190, 136, 0.85); color: #ffffff; }
.canvas-ref-picker-grid { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 16px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-items: start; gap: 12px; }
.canvas-ref-group-title { grid-column: 1 / -1; padding: 6px 2px 0; font-size: 13px; font-weight: 600; color: var(--gold-primary, #d4be88); letter-spacing: 0.04em; display: flex; align-items: center; justify-content: space-between; }
.canvas-ref-group-title:first-child { padding-top: 0; }
.canvas-ref-tile { position: relative; height: 108px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; padding: 0; overflow: hidden; background: #0b0d12; cursor: pointer; transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.canvas-ref-tile:hover { transform: translateY(-2px); border-color: rgba(212, 190, 136, 0.6); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); }
.canvas-ref-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0b0d12; display: block; }
.canvas-ref-tile.is-selected { border-color: #22c55e; box-shadow: inset 0 0 0 2px #22c55e; }
.canvas-ref-tile.is-disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.canvas-ref-tile-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.5);
  opacity: 0;
  transition: opacity 0.12s ease;
}
.canvas-ref-tile.is-selected .canvas-ref-tile-check { opacity: 1; }
.canvas-ref-tile-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 8px 6px;
  font-size: 12px;
  color: #ffffff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.canvas-ref-picker-empty { grid-column: 1 / -1; padding: 36px 12px; text-align: center; color: #8b91a0; font-size: 14px; }
.canvas-ref-picker-foot { padding: 14px 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.canvas-ref-picker-count { margin-right: auto; font-size: 13px; color: #8b91a0; }
.canvas-ref-picker-foot button { height: 38px; padding: 0 16px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.14); background: transparent; color: #d1d5e0; font-size: 14px; cursor: pointer; transition: all 0.15s ease; }
.canvas-ref-picker-foot button:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.canvas-ref-picker-foot .canvas-ref-picker-clear { border-color: rgba(239, 68, 68, 0.4); color: #f87171; }
.canvas-ref-picker-foot .canvas-ref-picker-clear:hover { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.8); color: #ffffff; }
.canvas-ref-picker-foot .canvas-ref-picker-ok { background: linear-gradient(135deg, #ecd9a8 0%, #c0a268 100%); border: none; color: #14100a; font-weight: 600; box-shadow: 0 4px 14px rgba(192, 162, 104, 0.35); }
.canvas-ref-picker-foot .canvas-ref-picker-ok:hover { filter: brightness(1.1); color: #000000; }
html[data-theme="light"] .canvas-ref-picker-card { background: #ffffff; border-color: rgba(180, 140, 80, 0.4); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2); }
html[data-theme="light"] .canvas-ref-picker-title { color: #181a20; }
html[data-theme="light"] .canvas-ref-picker-sub, html[data-theme="light"] .canvas-ref-picker-count, html[data-theme="light"] .canvas-ref-picker-empty { color: #6b7280; }
html[data-theme="light"] .canvas-ref-picker-head, html[data-theme="light"] .canvas-ref-picker-foot { border-color: rgba(0, 0, 0, 0.08); }
html[data-theme="light"] .canvas-ref-picker-close { background: rgba(0, 0, 0, 0.06); color: #535965; }
html[data-theme="light"] .canvas-ref-picker-upload { border-color: rgba(180, 140, 80, 0.5); background: rgba(180, 140, 80, 0.1); color: #7c5e20; }
html[data-theme="light"] .canvas-ref-picker-upload:hover { background: rgba(180, 140, 80, 0.2); color: #5c4314; }
html[data-theme="light"] .canvas-ref-picker-foot button { border-color: rgba(0, 0, 0, 0.14); color: #535965; }
html[data-theme="light"] .canvas-ref-picker-foot .canvas-ref-picker-clear { border-color: rgba(239, 68, 68, 0.4); color: #dc2626; }
html[data-theme="light"] .canvas-ref-picker-foot .canvas-ref-picker-clear:hover { background: rgba(239, 68, 68, 0.1); }
html[data-theme="light"] .canvas-ref-picker-foot .canvas-ref-picker-ok { background: linear-gradient(135deg, #b88d3c 0%, #997126 100%); color: #ffffff; }
@media (max-height: 860px) and (min-width: 900px) {
html.page-fluid { --fluid-header-h: 54px !important; }
html.page-fluid .shared-header { height: 54px !important; }
html.page-fluid .shared-header .shared-crest { width: 36px !important; height: 36px !important; flex-basis: 36px !important; }
html.page-fluid .shared-header .shared-brand-title { font-size: 20px !important; }
html.page-fluid .shared-header .shared-brand-subtitle { font-size: 11px !important; }
html.page-fluid .shared-nav a { font-size: 13.5px !important; }
html.page-fluid .compare { padding-top: 18px !important; padding-bottom: 4px !important; gap: 16px !important; }
html.page-fluid .frame-slot {
    width: min(100%, calc((100vh - 54px - 230px) * 16 / 9)) !important;
  }
html.page-fluid .frame-slot > .result-meta,
  html.page-fluid .frame-slot > .source-meta {
    font-size: 12px !important;
    margin-bottom: 4px !important;
  }
html.page-fluid .frame-chip-capsule { height: 26px !important; font-size: 13px !important; padding: 0 9px !important; }
html.page-fluid .lower-films,
  html.page-fluid .result-tools {
    height: 64px !important;
    min-height: 64px !important;
    margin-top: 6px !important;
  }
html.page-fluid #baseFilm,
  html.page-fluid #resultFilm,
  html.page-fluid .result-tools .film,
  html.page-fluid .lower-films .film {
    height: 64px !important;
    min-height: 64px !important;
  }
html.page-fluid .rail-item { flex: 0 0 56px !important; width: 56px !important; height: 56px !important; min-width: 56px !important; min-height: 56px !important; max-width: 56px !important; max-height: 56px !important; border-radius: 6px !important; }
html.page-fluid .rail-item .cap { font-size: 10px !important; padding: 8px 3px 2px !important; }
html.page-fluid .rail-item .del { width: 18px !important; height: 18px !important; font-size: 10px !important; }
html.page-fluid .dock { margin: 0 auto 6px auto !important; width: min(1080px, calc(100% - 32px)) !important; max-width: calc(100% - 32px) !important; }
html.page-fluid .cockpit-outer-header { min-height: 22px !important; margin-bottom: 2px !important; }
html.page-fluid .cockpit-echo-status { font-size: 11.5px !important; padding: 2px 8px !important; }
html.page-fluid .btn-prompt-opt, html.page-fluid .cockpit-btn-preview, html.page-fluid .undo-delete-capsule { height: 24px !important; font-size: 11.5px !important; padding: 0 8px !important; }
html.page-fluid .jimeng-cockpit { min-height: 98px !important; border-radius: 14px !important; }
html.page-fluid .cockpit-input-area { padding: 8px 14px 4px 14px !important; min-height: 58px !important; gap: 10px !important; }
html.page-fluid .cockpit-upload-tile { flex: 0 0 46px !important; width: 46px !important; height: 46px !important; min-width: 46px !important; border-radius: 6px !important; }
html.page-fluid .cockpit-upload-tile .upload-tile-plus { font-size: 15px !important; margin-bottom: 0 !important; }
html.page-fluid .cockpit-upload-tile .upload-tile-text { font-size: 10.5px !important; }
html.page-fluid .cockpit-input-area textarea#extra { font-size: 13px !important; line-height: 1.45 !important; padding: 2px 0 0 0 !important; }
html.page-fluid .cockpit-counter { font-size: 11px !important; right: 14px !important; bottom: 6px !important; }
html.page-fluid .cockpit-toolbar { padding: 4px 14px 6px 14px !important; min-height: 32px !important; }
html.page-fluid .cockpit-segmented-dock { height: 28px !important; }
html.page-fluid .cockpit-pill {
    height: 26px !important;
    min-height: 26px !important;
    font-size: 12px !important;
    padding: 0 10px !important;
  }
html.page-fluid #runBtn { width: 28px !important; height: 28px !important; min-width: 28px !important; }
}
