:root {
  --bg: #f6f7f4;
  --ink: #1f2520;
  --muted: #697169;
  --line: #d8ddd2;
  --panel: #ffffff;
  --accent: #147c72;
  --accent-dark: #0f5d55;
  --warn: #ad6b00;
  --red: #b54747;
  --blue: #285a8e;
  --shadow: 0 14px 34px rgba(31, 37, 32, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  border-color: var(--accent);
}

button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

button.primary:hover {
  background: var(--accent-dark);
}

button.ghost {
  background: transparent;
}

.app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.side {
  background: #202721;
  color: #edf2ec;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #f5c85b;
  color: #202721;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: #adb9ae;
  font-size: 13px;
  margin-top: 3px;
}

.steps {
  display: grid;
  gap: 8px;
}

.assistant-module-btn {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  text-align: left;
  border-color: #3d4a40;
  background: #2b342d;
  color: #edf2ec;
}

.assistant-module-btn:hover {
  background: #344037;
  border-color: #65a896;
}

.assistant-module-btn strong {
  font-size: 15px;
}

.step-btn {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #dce5dc;
  border-color: transparent;
}

.step-btn.active,
.step-btn:hover {
  background: #303a31;
  border-color: #455246;
}

.step-index {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #455246;
  font-size: 12px;
}

.side-status {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c8d4c8;
  font-size: 13px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.video-page {
  background: #080b0a;
  color: #eef4ef;
}

.video-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.video-side {
  background: #0d1110;
  border-right: 1px solid #24302b;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-link {
  color: #b9c8bc;
  text-decoration: none;
  border: 1px solid #2d3934;
  border-radius: 6px;
  padding: 10px 12px;
}

.video-history {
  display: grid;
  gap: 8px;
}

.video-history strong {
  color: #7de084;
  margin-bottom: 4px;
}

.video-history button {
  text-align: left;
  background: #151b19;
  color: #dce8df;
  border-color: #2d3934;
}

.video-workspace {
  padding: 22px 28px 32px;
  overflow: auto;
}

.video-hero,
.quick-composer,
.canvas-band,
.panel-block,
.task-output {
  border: 1px solid #24302b;
  background: #111614;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.video-hero {
  min-height: 150px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px;
}

.video-hero h1 {
  margin: 0;
  font-size: 34px;
  color: #b7ff28;
}

.video-hero p {
  max-width: 780px;
  color: #aab6ae;
}

.video-actions,
.composer-row,
.task-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-composer {
  margin-top: 18px;
  padding: 18px;
}

.composer-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.composer-tabs button {
  background: #1a211f;
  color: #c8d4cc;
  border-color: #2d3934;
}

.composer-tabs button.active {
  color: #b7ff28;
  border-color: #719b1b;
  background: #202b12;
}

.quick-composer textarea,
.quick-composer input,
.quick-composer select,
.panel-block textarea,
.panel-block input,
.panel-block select {
  background: #0d1110;
  color: #eef4ef;
  border-color: #34423c;
}

.quick-composer textarea {
  min-height: 118px;
}

.composer-row {
  margin-top: 12px;
}

.composer-row input {
  flex: 1 1 320px;
}

.canvas-band {
  margin-top: 18px;
  padding: 20px;
}

.canvas-board {
  position: relative;
  min-height: 310px;
  margin-top: 16px;
  border: 1px dashed #31423b;
  background-image: radial-gradient(#26342e 1px, transparent 1px);
  background-size: 18px 18px;
  overflow: auto;
  padding: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
}

.canvas-node {
  min-height: 118px;
  border: 1px solid #345246;
  background: #13211c;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.canvas-node span {
  color: #80d56b;
  font-size: 12px;
}

.canvas-node strong {
  font-size: 16px;
}

.canvas-node small {
  color: #aab6ae;
  line-height: 1.5;
}

.canvas-node.muted-node {
  opacity: 0.42;
}

.canvas-node.entry-node {
  border-color: #b7ff28;
  box-shadow: 0 0 0 1px rgba(183, 255, 40, 0.22);
}

.video-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.panel-block {
  padding: 18px;
}

.panel-block h2 {
  margin: 0 0 14px;
}

.panel-block label {
  color: #dce8df;
}

.panel-block label + label,
.panel-block label + textarea,
.panel-block label + input,
.panel-block label + select {
  margin-top: 10px;
}

.task-output {
  margin-top: 18px;
  padding: 20px;
}

.task-output a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #719b1b;
  border-radius: 6px;
  color: #b7ff28;
  text-decoration: none;
}

#taskPreview {
  min-height: 260px;
  max-height: 520px;
  overflow: auto;
  margin-top: 14px;
  background: #070a09;
  color: #cfe9d4;
  border: 1px solid #24302b;
}

.green {
  background: #35b779;
}

.workspace {
  padding: 20px 22px;
  overflow: auto;
  transition: padding 0.18s ease;
}

.topbar,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
}

.topbar p,
.section-head span {
  margin: 3px 0 0;
  color: var(--muted);
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.top-actions,
.action-row,
.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-field {
  min-width: 300px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.member-label-text {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.member-field input {
  width: 180px;
  height: 38px;
  margin: 0;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
  margin: 14px 0 18px;
  align-items: stretch;
}

.ai-guide {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  width: min(480px, calc(100vw - 300px));
  margin: 0;
  border: 1px solid #c8ddd8;
  border-width: 0 0 0 1px;
  border-radius: 0;
  background: rgba(248, 252, 250, 0.97);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 0.18s ease;
}

.ai-guide-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: start;
  gap: 12px;
}

.ai-guide h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.ai-guide-subtitle {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.ai-model-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #edf5f3;
  color: var(--accent-dark);
  font-size: 12px;
  white-space: nowrap;
}

.ai-model-status.live {
  background: #e6f7ef;
  color: #21704f;
}

.ai-model-status.error {
  background: #fff3e0;
  color: var(--warn);
}

.ai-model-status.local {
  background: #eef1ec;
  color: var(--muted);
}

.guide-messages {
  flex: 1;
  min-height: 300px;
  max-height: none;
  margin-top: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guide-input-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.guide-input-row textarea {
  min-height: 92px;
  font-size: 15px;
  line-height: 1.55;
}

.guide-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
}

.guide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.guide-chips button {
  min-height: 32px;
  font-size: 13px;
  background: #fff;
}

.assistant-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  font-weight: 500;
}

.assistant-toggle {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 45;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

body:not(.assistant-collapsed) .assistant-toggle {
  display: none;
}

body.assistant-collapsed .ai-guide {
  transform: translateX(calc(100% + 24px));
  pointer-events: none;
}

.summary-item {
  min-height: 66px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.summary-item span {
  color: var(--muted);
  font-size: 12px;
}

.summary-item strong {
  display: block;
  margin-top: 5px;
}

.panel {
  display: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.panel.active {
  display: block;
}

.beginner-note {
  margin-top: 16px;
  border: 1px solid #d9e5dc;
  border-radius: 8px;
  background: #fbfcf9;
  padding: 12px 14px;
  color: var(--muted);
  line-height: 1.6;
}

.beginner-note strong {
  color: var(--ink);
}

.beginner-note button {
  margin-left: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 14px 18px;
  margin-top: 16px;
}

.tool-panel,
.api-config,
.metric-input-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf9;
  padding: 14px;
  margin-top: 18px;
}

.tool-panel {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
}

.tool-panel h3 {
  margin: 0;
  font-size: 16px;
  line-height: 38px;
}

.tool-panel p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.tool-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-actions select {
  width: 180px;
  flex: 0 0 180px;
}

.collect-brief,
.collection-toolbar,
.collection-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf9;
}

.collect-brief {
  margin-top: 16px;
  padding: 12px 14px;
  color: var(--muted);
  line-height: 1.55;
}

.collect-brief strong {
  color: var(--ink);
}

.collection-toolbar {
  min-height: 58px;
  margin-top: 14px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.collection-toolbar span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.collection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.collection-output {
  margin-top: 14px;
}

.collection-card {
  padding: 14px;
}

.collection-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.collection-card pre,
.keyword-prompt-output pre {
  margin: 12px 0 0;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.collection-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.api-config {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
}

.api-config pre {
  grid-column: 1 / -1;
  margin-top: 0;
  max-height: 220px;
}

.section-head.compact {
  align-items: center;
}

.section-head.compact span {
  margin: 0;
  font-size: 12px;
}

.metric-input-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.metric-input-panel summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.metric-input-panel summary span {
  color: var(--muted);
  font-size: 12px;
}

label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.help-tip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 3px;
  border: 1px solid #b8c8bd;
  border-radius: 50%;
  color: var(--accent-dark);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
}

.help-tip::after {
  display: none;
}

.help-tip::before {
  display: none;
}

.help-tip:hover::after,
.help-tip:focus::after {
  display: none;
}

.help-tip:hover::before,
.help-tip:focus::before {
  display: none;
}

.global-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483000;
  display: none;
  max-width: min(720px, calc(100vw - 24px));
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid #2f3437;
  border-radius: 0;
  background: #ffffff;
  color: #3d4441;
  box-shadow: 0 8px 24px rgba(14, 33, 27, 0.12);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  pointer-events: none;
}

.global-tooltip.visible {
  display: block;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  color: #5f6864;
  background: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #737b74;
  font-size: 13px;
  font-weight: 400;
  opacity: 1;
}

select:invalid,
select option[disabled],
select option[value=""] {
  color: #737b74;
  font-size: 13px;
  font-weight: 400;
}

label > input,
label > select,
label > textarea,
label > .module-jump-actions,
label > .checks {
  margin-top: 6px;
}

input,
select {
  height: 38px;
}

textarea {
  min-height: 88px;
  padding: 9px 11px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 124, 114, 0.12);
}

.upload-box input {
  padding: 8px;
}

.upload-box span {
  min-height: 22px;
  color: var(--ink);
}

.hidden {
  display: none;
}

.action-row {
  margin: 14px 0;
}

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

.analysis-result {
  display: grid;
  gap: 14px;
}

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

.advanced-analysis {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.advanced-analysis summary {
  cursor: pointer;
  color: var(--muted);
}

.advanced-analysis .output-grid {
  margin-top: 12px;
}

.metric,
.listing-block,
.handoff-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.metric h3,
.listing-block h3,
.handoff-grid h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.metric p,
.listing-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  background: #edf5f3;
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  min-height: 42px;
  align-items: center;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.checks input {
  width: auto;
}

.module-jump-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.module-jump {
  min-height: 74px;
  text-align: left;
  display: grid;
  gap: 5px;
  align-content: center;
  border-color: var(--line);
  background: #fff;
}

.module-jump.active {
  border-color: var(--accent);
  background: #edf5f3;
}

.module-jump strong {
  color: var(--ink);
}

.module-jump span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.confirmation-card {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.confirmation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.confirmation-head h3 {
  margin: 0;
  font-size: 17px;
}

.confirmation-head span {
  color: var(--muted);
  font-size: 12px;
}

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

.confirm-field {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcf9;
}

.confirm-field span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.confirm-field strong {
  display: block;
  line-height: 1.45;
}

.confirm-field.full {
  grid-column: 1 / -1;
}

.json-details {
  margin-top: 12px;
}

.json-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}

.dialog-messages {
  min-height: 190px;
  max-height: 320px;
  overflow: auto;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.dialog-message {
  max-width: 92%;
  border-radius: 8px;
  padding: 14px 16px;
  line-height: 1.68;
  font-size: 15px;
}

.dialog-message.ai {
  justify-self: start;
  background: #edf5f3;
  color: #173d38;
}

.dialog-message.user {
  justify-self: end;
  background: #202721;
  color: #fff;
}

.dialog-message strong {
  display: block;
  font-size: 13px;
  opacity: 0.78;
}

.ai-message-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.copy-ai-message {
  min-height: 28px;
  padding: 0 10px;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.dialog-message.user .copy-ai-message {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.ai-message-body {
  line-height: 1.68;
  word-break: break-word;
}

.ai-guide .guide-messages {
  min-height: 300px;
  max-height: none;
}

.json-preview,
pre {
  margin: 16px 0 0;
  max-height: 360px;
  overflow: auto;
  background: #18201b;
  color: #e9f2ea;
  border-radius: 8px;
  padding: 14px;
  white-space: pre-wrap;
}

#listingOutput {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.image-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.image-preview {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: #f8faf7;
  overflow: hidden;
}

.image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.image-preview svg {
  width: 100%;
  height: 100%;
}

.image-body {
  padding: 11px;
}

.image-body strong {
  display: block;
  font-size: 13px;
}

.image-body span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.4;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  background: #fff6df;
  color: var(--warn);
  font-size: 12px;
  margin-top: 9px;
}

.handoff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 14px;
  margin-top: 16px;
}

#qaOutput {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.flow-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 24px rgba(31, 37, 32, 0.08);
}

.flow-actions span {
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.suggestion-popover {
  position: fixed;
  z-index: 50;
  min-width: 220px;
  max-width: min(520px, calc(100vw - 32px));
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 6px;
}

.suggestion-item {
  width: 100%;
  min-height: 36px;
  border: 0;
  background: transparent;
  text-align: left;
  display: block;
  padding: 8px 10px;
}

.suggestion-item:hover {
  background: #edf5f3;
}

.suggestion-item strong {
  display: block;
  font-size: 13px;
}

.suggestion-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #202721;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1240px) {
  .workspace,
  body.assistant-collapsed .workspace {
    padding: 24px;
  }

  .ai-guide {
    top: auto;
    right: 16px;
    bottom: 86px;
    left: 16px;
    width: auto;
    height: min(58vh, 520px);
    border: 1px solid #c8ddd8;
    border-radius: 8px;
  }

  body.assistant-collapsed .ai-guide {
    transform: translateY(calc(100% + 100px));
  }
}

@media (max-width: 1500px) and (min-width: 1241px) {
  .ai-guide {
    width: 420px;
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side {
    position: static;
  }

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

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

  .handoff-grid,
  .output-grid,
  .simple-result-grid,
  .metric-input-grid,
  #listingOutput {
    grid-template-columns: 1fr;
  }

  .tool-panel,
  .api-config,
  .collection-toolbar {
    grid-template-columns: 1fr;
  }

  .collection-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .workspace {
    padding: 18px;
  }

  .topbar,
  .section-head,
  .summary-strip {
    flex-direction: column;
  }

  .top-actions,
  .member-field {
    width: 100%;
  }

  .member-field {
    flex-wrap: wrap;
  }

  .member-field input {
    width: 100%;
  }

  .form-grid,
  .image-grid,
  .confirmation-grid,
  .collection-result-grid,
  .module-jump-actions {
    grid-template-columns: 1fr;
  }

  .guide-input-row,
  .ai-guide-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .ai-guide {
    right: 10px;
    bottom: 86px;
    left: 10px;
    height: min(58vh, 520px);
    padding: 14px;
  }

  .ai-guide .guide-messages {
    min-height: 160px;
  }

  .dialog-message {
    max-width: 100%;
  }

  .guide-actions {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }

  .flow-actions {
    grid-template-columns: 1fr;
  }
}

/* RunningHub-style quick creation shell for Chao Hai AI. */
.rh-page {
  margin: 0;
  min-height: 100vh;
  background: #020403;
  color: #e9eee9;
  overflow-x: hidden;
  overflow-y: auto;
}

.rh-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  background:
    radial-gradient(circle at 74% 17%, rgba(151, 255, 0, 0.12), transparent 15%),
    radial-gradient(circle at 59% 42%, rgba(151, 255, 0, 0.04), transparent 26%),
    #020403;
}

.rh-sidebar {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 8px;
  background: #080a0b;
  border-right: 1px solid #1b1f22;
}

.rh-shell.sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.rh-shell.sidebar-collapsed .rh-brand-lockup > div:not(.rh-logo),
.rh-shell.sidebar-collapsed .rh-nav-item:not(.active),
.rh-shell.sidebar-collapsed .rh-new-project,
.rh-shell.sidebar-collapsed .rh-search-box,
.rh-shell.sidebar-collapsed .rh-more-list,
.rh-shell.sidebar-collapsed .rh-watermark {
  opacity: 0;
  pointer-events: none;
}

.rh-sidebar-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  padding: 0 8px 14px;
  border-bottom: 1px solid #15191b;
}

.rh-brand-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rh-logo {
  width: 38px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #b7ff1a;
  color: #030504;
  font-size: 12px;
  font-weight: 900;
  flex: 0 0 auto;
}

.rh-sidebar-head strong {
  display: block;
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
}

.rh-sidebar-head .rh-brand-lockup span {
  display: block;
  margin-top: 2px;
  color: #76827b;
  font-size: 10px;
  line-height: 1.1;
}

.rh-collapse {
  min-height: 28px;
  padding: 0;
  color: #9ba5a0;
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.rh-collapse:hover,
.rh-collapse:focus-visible {
  color: #b7ff1a;
  background: rgba(183, 255, 26, 0.08);
}

.rh-nav {
  display: grid;
  gap: 10px;
}

.rh-nav-item,
.rh-new-project,
.rh-watermark,
.rh-more-list button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  color: #dce6df;
  background: transparent;
  border-color: transparent;
  text-align: left;
}

.rh-nav-item.active {
  color: #b7ff1a;
  background: #1b2507;
  border-color: #1b2507;
}

.rh-nav-item:hover,
.rh-new-project:hover,
.rh-watermark:hover,
.rh-more-list button:hover {
  color: #b7ff1a;
  border-color: rgba(183, 255, 26, 0.24);
  background: rgba(183, 255, 26, 0.06);
}

.rh-nav-item small {
  margin-left: auto;
  color: #748078;
}

.rh-new-project {
  color: #b7ff1a;
  border-color: #314605;
  background: transparent;
}

.rh-search-box {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #252a2d;
  border-radius: 6px;
  background: #151719;
  color: #747f78;
}

.rh-search-box input {
  height: 32px;
  margin: 0;
  color: #dce6df;
  background: transparent;
  border: 0;
  outline: 0;
}

.rh-more-list {
  display: grid;
  gap: 8px;
  padding: 0 6px;
}

.rh-more-list > span {
  color: #78837d;
  font-size: 12px;
}

.rh-more-list button {
  min-height: 54px;
  color: #9fb3ac;
  background: #0e1112;
  border-color: transparent;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rh-watermark {
  margin-top: auto;
  color: #dce6df;
}

.rh-main {
  position: relative;
  min-height: 100vh;
  overflow: visible;
  padding: 0 96px 56px;
}

.rh-topbar {
  height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #cbd6d0;
  font-size: 13px;
}

.rh-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rh-top-action,
.rh-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #cbd6d0;
  background: transparent;
  border: 0;
  font-size: 12px;
}

.rh-avatar {
  color: #c5f4ff;
  border: 1px solid #0aa7ce;
  background: #063746;
  font-size: 11px;
}

.rh-top-action:hover,
.rh-avatar:hover {
  color: #b7ff1a;
  background: rgba(183, 255, 26, 0.08);
}

.rh-hero {
  position: relative;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 18px;
}

.rh-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.rh-particles::before,
.rh-particles::after,
.rh-particles i {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a8ff00;
  box-shadow: 0 0 14px #a8ff00, 0 0 26px rgba(168, 255, 0, 0.7);
  opacity: 0.65;
}

.rh-particles::before {
  left: 22%;
  top: 30%;
}

.rh-particles::after {
  right: 22%;
  top: 12%;
}

.rh-particles i:nth-child(1) { left: 34%; top: 23%; }
.rh-particles i:nth-child(2) { left: 38%; top: 30%; }
.rh-particles i:nth-child(3) { left: 49%; top: 16%; }
.rh-particles i:nth-child(4) { left: 63%; top: 27%; }
.rh-particles i:nth-child(5) { left: 69%; top: 36%; }
.rh-particles i:nth-child(6) { left: 29%; top: 45%; }
.rh-particles i:nth-child(7) { left: 77%; top: 21%; }
.rh-particles i:nth-child(8) { left: 56%; top: 40%; }

.rh-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #b7ff1a;
  font-size: 40px;
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

.rh-hero p {
  position: relative;
  z-index: 1;
  margin: 12px 0 28px;
  color: #87908b;
  font-size: 14px;
}

.rh-composer {
  position: relative;
  z-index: 1;
  width: min(1010px, 100%);
  min-height: 186px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  border: 1px solid #202629;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(24, 26, 28, 0.94), rgba(12, 13, 15, 0.98));
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.45);
}

.rh-mode-rail {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 8px 6px;
  border-right: 1px solid #202629;
}

.rh-mode-rail button {
  min-height: 34px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 4px 0;
  color: #777f7a;
  background: transparent;
  border: 0;
  font-size: 12px;
}

.rh-mode-rail button span {
  font-size: 10px;
}

.rh-mode-rail button.active {
  color: #b7ff1a;
  background: #1d2609;
  border-radius: 5px;
}

.rh-composer-body {
  position: relative;
  min-height: 186px;
  padding: 22px 206px 46px 74px;
}

.rh-upload-card {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 54px;
  height: 68px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: #747d78;
  border: 1px solid #2f3538;
  border-radius: 4px;
  background: #1c2024;
  transform: rotate(-4deg);
  cursor: pointer;
  overflow: hidden;
}

.rh-upload-card small {
  color: #89948e;
  font-size: 9px;
  text-align: center;
  line-height: 1.1;
}

.rh-upload-card.dragging {
  border-color: #9fd000;
  box-shadow: 0 0 0 2px rgba(159, 208, 0, 0.2);
}

.rh-upload-card.has-preview {
  transform: rotate(0deg);
  border-color: #9fd000;
}

.rh-upload-card img,
.rh-upload-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rh-upload-file-name {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  z-index: 1;
  padding: 2px 3px;
  overflow: hidden;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 3px;
  font-size: 8px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rh-composer textarea {
  width: 100%;
  min-height: 98px;
  resize: none;
  padding: 0;
  color: #dce6df;
  background: transparent;
  border: 0;
  outline: 0;
  line-height: 1.6;
}

.rh-composer input {
  position: absolute;
  left: 332px;
  right: 166px;
  bottom: 12px;
  width: auto;
  max-width: none;
  box-sizing: border-box;
  height: 28px;
  margin: 0;
  padding: 0 8px;
  color: #cbd6d0;
  background: transparent;
  border: 0;
  outline: 0;
}

.rh-composer-controls {
  position: absolute;
  left: 14px;
  right: 18px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.rh-reference-stack {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 158px;
  padding: 8px 10px;
  color: #a9b1ad;
  background: rgba(12, 13, 15, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.rh-reference-stack > span {
  display: block;
  margin-bottom: 7px;
  color: #8d9691;
  font-size: 12px;
}

.rh-reference-item {
  width: 100%;
  min-height: 32px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  padding: 0;
  color: #dce6df;
  background: transparent;
  border: 0;
  text-align: left;
}

.rh-reference-item img,
.rh-reference-item i {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 3px;
  background: #20272a;
}

.rh-reference-item strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rh-composer-controls select {
  width: auto;
  height: 30px;
  min-width: 172px;
  max-width: 172px;
  margin: 0;
  padding: 0 8px;
  color: #dce6df;
  background: #3a3d40;
  border: 0;
  border-radius: 6px;
  pointer-events: auto;
}

.rh-composer-controls select:nth-child(2),
.rh-composer-controls select:nth-child(3) {
  display: none;
}

.rh-pref-wrap {
  position: relative;
  pointer-events: auto;
}

.rh-mention-btn {
  margin-left: auto;
  width: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #071006;
  background: #b7ff1a;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  pointer-events: auto;
}

.rh-run-price {
  min-width: 70px;
  height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b7ff1a;
  background: rgba(183, 255, 26, 0.08);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  pointer-events: none;
}

.rh-pref-btn {
  width: 68px;
  min-height: 30px;
  padding: 0 8px;
  color: #dce6df;
  background: #3a3d40;
  border: 0;
  border-radius: 6px;
  white-space: nowrap;
}

.rh-pref-btn.active {
  color: #b7ff1a;
  background: #30371c;
}

.rh-pref-panel {
  position: absolute;
  left: 0;
  bottom: 40px;
  z-index: 20;
  width: 356px;
  padding: 12px;
  border: 1px solid #3a4042;
  border-radius: 6px;
  background: #17191b;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.48);
}

.rh-pref-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.rh-pref-head strong {
  color: #eef4ef;
  font-size: 14px;
}

.rh-auto-toggle {
  min-height: 24px;
  padding: 0 30px 0 0;
  color: #dce6df;
  background: transparent;
  border: 0;
  position: relative;
}

.rh-auto-toggle::after {
  content: "";
  position: absolute;
  right: 0;
  top: 3px;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: #52585c;
}

.rh-auto-toggle::before {
  content: "";
  position: absolute;
  right: 14px;
  top: 5px;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #111517;
  transition: right 0.12s ease;
}

.rh-auto-toggle.active {
  color: #eef4ef;
}

.rh-auto-toggle.active::after {
  background: #b7ff1a;
}

.rh-auto-toggle.active::before {
  right: 2px;
}

.rh-pref-segment {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-bottom: 12px;
  border-radius: 5px;
  background: #111315;
  padding: 3px;
}

.rh-pref-segment button,
.rh-pref-grid button {
  min-height: 28px;
  padding: 0 8px;
  color: #7d8680;
  background: #202327;
  border: 1px solid #22272a;
  border-radius: 5px;
  font-size: 12px;
}

.rh-pref-segment button.active,
.rh-pref-grid button.active {
  color: #b7ff1a;
  border-color: #b7ff1a;
  background: #27300e;
}

.rh-pref-label {
  display: block;
  margin: 10px 0 6px;
  color: #8d9690;
  font-size: 12px;
}

.rh-pref-grid {
  display: grid;
  gap: 6px;
}

.ratio-grid {
  grid-template-columns: repeat(6, 1fr);
}

.resolution-grid {
  grid-template-columns: repeat(3, 42px);
}

.rh-pref-model {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: #8d9690;
  font-size: 12px;
}

.rh-pref-model select {
  display: block !important;
  width: 100%;
  max-width: none;
  height: 36px;
  color: #dce6df;
  background: #242628;
  border: 1px solid #2e3336;
  border-radius: 6px;
}

.rh-run-btn {
  width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #051005;
  background: #9fd000;
  pointer-events: auto;
}

.rh-template-section {
  max-width: 1640px;
  margin: 4px auto 0;
}

.rh-template-tabs {
  display: flex;
  gap: 26px;
  margin-bottom: 16px;
}

.rh-template-tabs button {
  min-height: 28px;
  padding: 0;
  color: #878f8a;
  background: transparent;
  border: 0;
  font-weight: 700;
}

.rh-template-tabs button.active {
  color: #b7ff1a;
}

.rh-card-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(160px, 1fr));
  gap: 8px;
}

.rh-library-count {
  grid-column: 1 / -1;
  color: #7e8984;
  font-size: 12px;
  line-height: 1.6;
  padding: 4px 2px 0;
}

.rh-template-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border-radius: 7px;
  background: #15191b;
  border: 1px solid #1c2225;
}

.rh-template-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.rh-template-card .rh-card-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 1;
  width: 24px;
  height: 16px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(0, 0, 0, 0.34);
  border-radius: 4px;
  padding: 0;
  font-size: 10px;
  line-height: 1;
}

.rh-template-card strong {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 56px;
  z-index: 1;
  color: #fff;
  min-height: 34px;
  display: flex;
  align-items: flex-end;
  font-size: 13px;
  line-height: 1.28;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.rh-create-same-btn {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 13px;
  z-index: 2;
  min-height: 34px;
  padding: 0 12px;
  color: #b7ff1a;
  background: rgba(10, 13, 12, 0.72);
  border: 1px solid #9fd000;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.rh-create-same-btn:hover {
  color: #061005;
  background: #b7ff1a;
}

.rh-template-card.video-filled-card {
  background: #0d1110;
}

.rh-template-card.video-filled-card::before {
  display: none;
}

.rh-template-card.video-filled-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0d1110;
}

.rh-template-card.image-filled-card {
  background: #f7f8f4;
}

.rh-template-card.image-filled-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  background: #fff;
}

.rh-template-card.video-filled-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.58));
  pointer-events: none;
}

.rh-template-card.missing-video {
  border-color: #704040;
}

.rh-template-card.missing-video video {
  display: none;
}

.rh-template-card.missing-video::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.62)),
    repeating-linear-gradient(135deg, #2b1717 0 12px, #1a1010 12px 24px);
}

.rh-player-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.rh-player-panel {
  width: min(980px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(183, 255, 26, 0.32);
  border-radius: 8px;
  background: #0b0f0e;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.rh-player-head,
.rh-player-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rh-player-head strong {
  color: #eef4ef;
  font-size: 15px;
  line-height: 1.4;
}

.rh-player-close {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(183, 255, 26, 0.35);
  border-radius: 50%;
  background: #151b19;
  color: #b7ff1a;
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
}

.assistant-close:hover,
.rh-player-close:hover {
  border-color: rgba(183, 255, 26, 0.72);
}

.rh-player-video {
  width: 100%;
  max-height: min(70vh, 720px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 6px;
  background: #000;
}

.rh-player-image {
  width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  border-radius: 6px;
  background: #f7f8f4;
}

.rh-player-meta {
  color: #9aa6a0;
  font-size: 12px;
}

.rh-empty-card {
  min-height: 140px;
  display: grid;
  place-items: center;
  color: #87908b;
  border: 1px dashed #31383a;
  border-radius: 7px;
  padding: 16px;
  text-align: center;
  line-height: 1.7;
}

.rh-empty-card span {
  color: #b7ff1a;
  font-size: 12px;
  word-break: break-all;
}

.card-person::before {
  background:
    radial-gradient(circle at 52% 24%, #f4d6c9 0 10%, transparent 11%),
    linear-gradient(135deg, #25463a 0 35%, #d5dfda 36% 58%, #776b61 59% 100%);
}

.card-shoe::before {
  background:
    radial-gradient(ellipse at 55% 45%, #0d4d95 0 16%, #e7eff7 17% 30%, transparent 31%),
    linear-gradient(135deg, #f2eef1, #d7dde8 45%, #184c82);
}

.card-serum::before {
  background:
    radial-gradient(ellipse at 50% 58%, #d89b27 0 9%, #f8e5ad 10% 15%, transparent 16%),
    radial-gradient(ellipse at 55% 48%, #ffffff 0 5%, transparent 6%),
    linear-gradient(145deg, #eee8d4, #c2d09d 58%, #efe2ca);
}

.card-water::before {
  background:
    radial-gradient(circle at 35% 20%, rgba(255,255,255,.9) 0 4%, transparent 5%),
    radial-gradient(circle at 70% 34%, rgba(255,255,255,.75) 0 6%, transparent 7%),
    radial-gradient(circle at 46% 52%, rgba(255,255,255,.6) 0 3%, transparent 4%),
    linear-gradient(135deg, #8fd4d2, #d5eadf 50%, #6ab6c0);
}

.card-face::before {
  background:
    radial-gradient(circle at 51% 32%, #f1c5aa 0 15%, transparent 16%),
    linear-gradient(145deg, #d2ba98, #eee5d8 50%, #6a4a3d);
}

.card-grad::before {
  background:
    radial-gradient(circle at 50% 37%, #f4c9b4 0 13%, transparent 14%),
    linear-gradient(135deg, #b95796, #e69bc7 48%, #23223d 49% 58%, #f2ca54 59% 100%);
}

.rh-hidden-workbench {
  display: none;
}

.rh-task-drawer {
  display: none;
  max-width: 980px;
  margin: 22px auto 0;
  padding: 14px;
  border: 1px solid #1f2628;
  border-radius: 8px;
  background: rgba(10, 12, 13, 0.92);
}

.rh-task-drawer > div {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.rh-task-drawer a {
  color: #b7ff1a;
  text-decoration: none;
}

.rh-task-drawer pre {
  max-height: 260px;
  overflow: auto;
  margin: 12px 0 0;
  background: #050706;
  color: #cfe9d4;
  border: 1px solid #1f2628;
}

@media (max-width: 1180px) {
  .rh-shell {
    grid-template-columns: 188px minmax(0, 1fr);
  }

  .rh-main {
    padding: 0 28px 42px;
  }

  .rh-card-row {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }
}

@media (max-width: 760px) {
  .rh-page {
    overflow: auto;
  }

  .rh-shell {
    grid-template-columns: 1fr;
  }

  .rh-sidebar {
    min-height: auto;
  }

  .rh-main {
    padding: 0 14px 28px;
  }

  .rh-hero h1 {
    font-size: 30px;
  }

  .rh-composer {
    grid-template-columns: 1fr;
  }

  .rh-mode-rail {
    grid-template-columns: repeat(4, 1fr);
    border-right: 0;
    border-bottom: 1px solid #202629;
  }

  .rh-card-row {
    grid-template-columns: 1fr;
  }
}
