:root {
  --bg: #030307;
  --surface: #0b0a12;
  --surface-2: #12111a;
  --surface-3: #1b1723;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f1ff;
  --muted: #a5a0b7;
  --faint: #6f6a7f;
  --pink: #f827b7;
  --violet: #9d20ff;
  --cyan: #60d7df;
  --green: #78ddb8;
  --amber: #f7c85d;
  --danger: #ff5d78;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: radial-gradient(circle at 58% 8%, rgba(248, 39, 183, 0.15), transparent 28%), var(--bg);
  color: var(--text);
}

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

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: clamp(252px, 19.5vw, 314px) minmax(0, 1fr);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 34%);
}

.app-shell.has-drawer { grid-template-columns: clamp(252px, 19.5vw, 314px) minmax(0, 1fr) minmax(0, 440px); }
.app-shell.sidebar-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
.app-shell.sidebar-collapsed.has-drawer { grid-template-columns: 76px minmax(0, 1fr) minmax(0, 440px); }
.app-shell.sidebar-collapsed .nav-item b,
.app-shell.sidebar-collapsed .upgrade-card strong,
.app-shell.sidebar-collapsed .brand-mark strong { display: none; }
.app-shell.sidebar-collapsed .sidebar { padding: 18px 12px; }
.app-shell.sidebar-collapsed .brand-row { justify-content: center; }
.app-shell.sidebar-collapsed .brand-mark { justify-content: center; width: 100%; }
.app-shell.sidebar-collapsed .icon-button { display: none; }
.app-shell.sidebar-collapsed .upgrade-card { grid-template-columns: 1fr; justify-items: center; padding: 0; }
.app-shell.sidebar-collapsed .nav-item { grid-template-columns: 1fr; justify-items: center; padding: 0; }
.app-shell.sidebar-collapsed .nav-implementation-status { display: none; }
.app-shell.sidebar-collapsed .nav-group p { display: none; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden auto;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: rgba(9, 8, 16, 0.88);
  backdrop-filter: blur(22px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.28) transparent;
}

.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 26px; }
.brand-mark { display: flex; align-items: center; gap: 9px; color: var(--text); background: transparent; border: 0; padding: 0; font-size: 32px; font-weight: 800; }
.brand-mark i { width: 27px; height: 27px; border-radius: 50%; background: radial-gradient(circle at 20% 20%, var(--pink) 0 18%, transparent 20%), radial-gradient(circle at 70% 72%, var(--cyan) 0 24%, transparent 26%); }
.icon-button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: rgba(255,255,255,0.06); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.icon-button:hover { transform: translateY(-1px); border-color: rgba(248,39,183,0.45); background: rgba(248,39,183,0.12); }

.upgrade-card {
  width: 100%;
  min-height: 42px;
  border: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 11px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  text-align: left;
  transition: transform .16s ease, color .16s ease, background .16s ease;
}

.upgrade-card:hover { transform: translateX(2px); color: var(--text); background: rgba(255,255,255,0.07); }
.upgrade-card:focus-visible { outline: 2px solid rgba(248,39,183,0.6); outline-offset: 2px; }
.upgrade-card strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav { margin-top: 26px; }
.nav-group { margin: 0 0 24px; }
.nav-group p { margin: 0 0 8px 8px; color: var(--faint); font-weight: 800; font-size: 13px; }
.nav-item { position: relative; width: 100%; min-height: 42px; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; padding: 0 10px; overflow: hidden; text-align: left; transition: transform .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease; }
.nav-item::before { content: ""; position: absolute; left: 6px; top: 50%; width: 3px; height: 24px; border-radius: 999px; opacity: 0; background: #ff38b8; box-shadow: 0 0 14px rgba(248,39,183,.46); transform: translateY(-50%) scaleY(.35); transform-origin: center; }
.nav-item b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-implementation-status { display: inline-flex; align-items: center; min-height: 18px; border: 1px solid rgba(255,255,255,0.1); border-radius: 5px; padding: 1px 5px; color: #90939d; background: rgba(255,255,255,0.035); font-size: 9px; font-weight: 750; line-height: 1; white-space: nowrap; }
.nav-implementation-status.missing { color: #aa8d96; border-color: rgba(248,91,127,0.14); background: rgba(248,91,127,0.045); }
.nav-implementation-status.partial { color: #a4a08f; border-color: rgba(224,190,92,0.14); background: rgba(224,190,92,0.045); }
.nav-item.active { color: var(--text); background: rgba(255,255,255,.085); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.nav-item.active::before { opacity: 1; transform: translateY(-50%) scaleY(1); animation: nav-indicator-enter .36s cubic-bezier(.22,1,.36,1) both; }
.nav-item:hover { transform: translateX(2px); background: rgba(255,255,255,0.07); color: var(--text); }
.nav-item.active:hover { transform: none; background: rgba(255,255,255,.1); }
.nav-item:focus-visible { outline: 2px solid rgba(248,39,183,0.6); outline-offset: 2px; }
@keyframes nav-indicator-enter {
  from { opacity: 0; transform: translateY(-50%) scaleY(.35); }
  to { opacity: 1; transform: translateY(-50%) scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-item { transition: none; }
  .nav-item.active::before { animation: none; }
}
.upgrade-card { margin-top: 0; }
.upgrade-card i { width: 24px; display: grid; place-items: center; color: var(--pink); font-size: 16px; font-style: normal; font-weight: 900; }

.workspace { min-width: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.topbar { min-height: 72px; display: flex; align-items: flex-start; justify-content: center; gap: 18px; padding: 0 34px; position: relative; }
.top-actions { position: absolute; top: 22px; right: 32px; display: flex; gap: 10px; }
.workspace-body { flex: 1 1 auto; min-height: 0; padding: 20px 56px 64px; overflow: auto; }
.workspace-body.dashboard-workspace { display: grid; place-items: center; padding: 32px; }
.dashboard-compose { width: min(920px, 100%); display: grid; gap: 28px; }
.dashboard-compose h1 { margin: 0; color: var(--text); text-align: center; font-size: 32px; line-height: 1.2; letter-spacing: 0; }
.dashboard-composer { min-height: 250px; display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(18,17,26,0.9); box-shadow: 0 22px 70px rgba(0,0,0,0.32), 0 0 54px rgba(248,39,183,0.07); overflow: hidden; }
.dashboard-composer > textarea { flex: 1 1 auto; min-height: 158px; resize: none; border: 0; border-radius: 0; background: transparent; padding: 24px 26px 18px; font-size: 17px; line-height: 1.6; box-shadow: none; }
.dashboard-composer > textarea::placeholder { color: var(--faint); }
.dashboard-composer > textarea:focus { border: 0; box-shadow: none; }
.dashboard-compose-error { margin: -6px 26px 12px; color: var(--danger); font-size: 13px; }
.dashboard-composer-footer { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-top: 1px solid var(--line); background: rgba(255,255,255,0.018); }
.dashboard-composer-tools { min-width: 0; display: flex; align-items: center; gap: 10px; }
.dashboard-upload { position: relative; min-height: 42px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(255,255,255,0.035); padding: 0 12px; cursor: pointer; white-space: nowrap; }
.dashboard-upload:hover { color: var(--text); background: rgba(255,255,255,0.065); }
.dashboard-upload.disabled { opacity: 0.45; cursor: not-allowed; }
.dashboard-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dashboard-upload span { color: var(--pink); font-size: 20px; line-height: 1; }
.dashboard-upload b { font-size: 13px; }
.dashboard-mode-switch { min-height: 42px; display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.025); padding: 3px; }
.dashboard-mode-switch button { min-height: 34px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; padding: 0 12px; font-size: 13px; font-weight: 750; }
.dashboard-mode-switch button.active { color: var(--text); background: #292b32; box-shadow: none; }
.dashboard-reference { min-width: 0; max-width: 240px; min-height: 42px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(96,215,223,0.18); border-radius: 10px; color: var(--cyan); background: rgba(96,215,223,0.055); padding: 0 8px 0 11px; }
.dashboard-reference span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.dashboard-reference button { width: 26px; height: 26px; flex: 0 0 auto; border: 0; border-radius: 50%; color: var(--muted); background: rgba(255,255,255,0.06); }
.dashboard-send { width: 46px; height: 46px; flex: 0 0 auto; border: 0; border-radius: 50%; color: white; background: linear-gradient(135deg, var(--violet), var(--pink)); font-size: 23px; font-weight: 800; box-shadow: 0 10px 28px rgba(248,39,183,0.22); }
.dashboard-send:disabled { color: var(--faint); background: rgba(255,255,255,0.07); box-shadow: none; cursor: not-allowed; }
.hero-section { text-align: center; padding: 18px 0 64px; }
.hero-section h1, .page-head h1 { margin: 0; font-size: 48px; line-height: 1; color: var(--pink); }
.hero-section p, .page-head p { margin: 16px 0 0; color: var(--muted); font-size: 18px; }

.ghost-button, .plain-button, .primary-button, .card-actions button, .row-actions button, .asset-footer button, .model-card button, .queue-actions button {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.05);
  padding: 0 14px;
}
.primary-button { border: 0; min-height: 58px; padding: 0 28px; font-weight: 900; background: linear-gradient(135deg, var(--violet), #c728ff 42%, #ed477b); box-shadow: 0 16px 50px rgba(248,39,183,0.22); }
.plain-button { border: 0; background: transparent; color: var(--muted); }
.ghost-button b { margin-left: 6px; color: var(--pink); }

.prompt-card { max-width: 1312px; margin: 0 auto 48px; border: 1px solid var(--line-strong); border-radius: 28px; background: rgba(15, 14, 22, 0.92); box-shadow: var(--shadow), 0 0 80px rgba(248, 39, 183, 0.1); overflow: hidden; }
.prompt-main { position: relative; min-height: 212px; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 24px; padding: 28px; }
.reference-tile { width: 78px; height: 92px; border-radius: 12px; border: 1px dashed var(--line-strong); color: var(--muted); background: rgba(255,255,255,0.04); display: grid; place-items: center; align-content: center; }
.reference-tile strong { font-size: 30px; line-height: 1; }
.reference-tile span { font-size: 12px; }
textarea, input, select { width: 100%; color: var(--text); background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 12px; outline: none; }
select { color-scheme: dark; }
select option, select optgroup { color: #f8f5ff; background: #17151f; }
select option:checked { color: #fff; background: #2a2032; }
textarea:focus, input:focus, select:focus { border-color: rgba(248,39,183,0.58); box-shadow: 0 0 0 3px rgba(248,39,183,0.12); }
.prompt-main textarea { height: 154px; min-height: 154px; resize: none; overflow: hidden; border: 0; background: transparent; font-size: 20px; line-height: 1.55; }
.prompt-optimize { align-self: start; border: 1px solid rgba(248,39,183,0.24); color: var(--pink); background: rgba(248,39,183,0.08); border-radius: 14px; padding: 12px 18px; }
.prompt-toolbar { min-height: 98px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 20px; border-top: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.select-group { display: flex; align-items: center; flex-wrap: nowrap; gap: 12px; }
.select-group select { width: auto; height: 50px; padding: 0 14px; }
.model-select { min-width: 300px; }
.reference-select { min-width: 180px; }
.meta-pill { height: 50px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.05); overflow: hidden; }
.meta-pill select { min-width: 86px; border: 0; border-radius: 0; background: transparent; }
.meta-pill select + select { border-left: 1px solid var(--line); }
.generate-button { min-width: 236px; }

.section-block { max-width: 1312px; margin: 0 auto 42px; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.section-heading.wide { justify-content: space-between; }
.section-heading span { width: 10px; height: 34px; border-radius: 999px; background: linear-gradient(180deg, var(--violet), var(--pink)); }
.section-heading h2 { margin: 0; font-size: 26px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 28px; }
.tool-card { position: relative; min-height: 240px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); padding: 56px 28px 26px; overflow: hidden; }
.tool-card h3 { margin: 0 0 12px; font-size: 28px; }
.tool-card p { margin: 0; width: 50%; color: #b7c1d5; line-height: 1.6; }
.tool-card img { position: absolute; right: 24px; bottom: 24px; width: 34%; height: 150px; object-fit: cover; border-radius: 16px; box-shadow: 0 22px 40px rgba(0,0,0,0.34); }
.tool-tag { position: absolute; left: 24px; top: -1px; background: linear-gradient(135deg, #ab39ff, var(--pink)); color: white; border-radius: 0 0 16px 16px; padding: 10px 18px; font-weight: 900; }
.round-action { position: absolute; right: 18px; bottom: 18px; width: 42px; height: 42px; border: 0; border-radius: 50%; color: white; background: linear-gradient(135deg, var(--violet), var(--pink)); font-size: 24px; }

.category-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 16px; }
.chip { flex: 0 0 auto; min-height: 38px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,0.04); padding: 0 16px; }
.chip.active { color: white; border-color: rgba(248,39,183,0.45); background: rgba(248,39,183,0.15); }
.template-grid { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 18px; }
.template-card { position: relative; height: 310px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.template-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.04); }
.template-overlay { position: absolute; inset: auto 0 0; padding: 18px; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.86)); }
.template-overlay small, .template-overlay p { color: var(--muted); }
.template-overlay h3 { margin: 8px 0 12px; font-size: 22px; }
.metric-row, .card-actions, .asset-footer, .queue-actions, .form-actions { display: flex; align-items: center; gap: 10px; }
.metric-row { justify-content: space-between; color: white; font-weight: 800; }
.card-actions { margin-top: 12px; }
.card-actions button { min-height: 34px; }
.center-actions { display: flex; justify-content: center; margin-top: 22px; }

.page-head { max-width: 1320px; margin: 0 auto 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-head h1 { color: var(--text); font-size: 38px; }
.panel { max-width: 1320px; margin: 0 auto; border: 1px solid var(--line); border-radius: 22px; background: rgba(18,17,26,0.92); box-shadow: var(--shadow); padding: 24px; }
.stat-grid { max-width: 1320px; margin: 0 auto 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,0.04); padding: 18px; }
.stat-card span { color: var(--muted); }
.stat-card strong { display: block; margin-top: 12px; font-size: 30px; }
.table-header { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.table-header input { max-width: 280px; height: 42px; padding: 0 14px; }
.data-table { display: grid; gap: 10px; }
.table-row { display: grid; grid-template-columns: minmax(220px, 1.5fr) 110px 90px 110px 90px auto; align-items: center; gap: 14px; min-height: 72px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: rgba(255,255,255,0.035); }
.table-row small, .asset-card small, .queue-card small { display: block; color: var(--muted); margin-top: 6px; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; border-radius: 999px; padding: 0 10px; color: var(--green); background: rgba(120,221,184,0.12); border: 1px solid rgba(120,221,184,0.24); font-size: 12px; font-weight: 800; }
.row-actions { display: flex; gap: 8px; }

.asset-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 18px; }
.asset-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,0.04); }
.asset-card img { width: 100%; height: 170px; object-fit: cover; }
.asset-card > div { padding: 16px; }
.asset-card h3 { margin: 8px 0; }
.asset-card p { color: var(--muted); }
.asset-footer { justify-content: space-between; flex-wrap: wrap; }

.project-manager-page, .asset-library-page { max-width: 1532px; margin: 0 auto; }
.project-title-row, .asset-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin: 34px 0 30px; }
.project-title-row h1, .asset-title-row h1 { margin: 0; color: var(--text); font-size: 40px; line-height: 1; }
.project-title-row p, .asset-title-row p { margin: 12px 0 0; color: var(--faint); font-size: 16px; }
.user-select-pill { min-width: 260px; min-height: 58px; border: 1px solid var(--line); border-radius: 18px; color: var(--text); background: rgba(255,255,255,0.035); font-weight: 800; }
.project-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 38px; }
.project-stats article { min-height: 122px; border: 1px solid rgba(248,39,183,0.2); border-radius: 18px; padding: 26px 24px; background: rgba(13, 10, 18, 0.72); }
.project-stats article:nth-child(2) { border-color: rgba(96,215,223,0.18); }
.project-stats article:nth-child(3) { border-color: rgba(255,93,120,0.2); }
.project-stats article:nth-child(4) { border-color: rgba(247,200,93,0.2); }
.project-stats span { color: var(--text); font-weight: 800; }
.project-stats strong { display: block; margin-top: 8px; font-size: 48px; line-height: 1; }
.project-filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 22px; min-height: 108px; border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; background: rgba(255,255,255,0.025); margin-bottom: 28px; }
.project-filter { min-height: 48px; border: 0; border-radius: 13px; color: var(--faint); background: transparent; padding: 0 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.project-filter.active { color: var(--text); background: rgba(255,255,255,0.1); box-shadow: none; }
.filter-icon { width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: currentColor; }
.filter-icon svg { width: 100%; height: 100%; display: block; }
.project-results-panel { min-height: 506px; border: 1px solid var(--line); border-radius: 30px; background: rgba(8,7,12,0.68); display: grid; place-items: center; padding: 28px; }
.project-task-grid { width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 18px; align-self: start; }
.project-task-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,0.04); padding: 18px; display: grid; gap: 13px; }
.project-task-card > * { min-width: 0; max-width: 100%; }
.project-task-head, .project-task-foot { display: flex; align-items: center; gap: 10px; }
.project-task-head small { min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.project-task-card h3 { margin: 0; }
.project-task-card p { min-height: 48px; margin: 0; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; word-break: break-word; }
.project-task-foot strong { margin-right: auto; }
.project-task-foot button { min-height: 34px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: rgba(255,255,255,0.05); padding: 0 12px; }
.baijichuan-empty { text-align: center; color: var(--muted); }
.empty-icon { width: 78px; height: 78px; margin: 0 auto 26px; border: 1px solid var(--line); border-radius: 20px; display: grid; place-items: center; color: var(--muted); background: rgba(255,255,255,0.05); font-size: 34px; }
.empty-icon .filter-icon { width: 38px; height: 38px; }
.baijichuan-empty h3 { margin: 0 0 14px; color: var(--text); font-size: 28px; }
.baijichuan-empty p { margin: 0; color: var(--faint); }

.asset-library-page { min-height: calc(100vh - 160px); }
.asset-title-row { display: block; margin-top: 76px; }
.asset-title-row h1 { font-size: 42px; }
.asset-library-layout { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 36px; margin-top: 42px; }
.asset-tabs { display: grid; align-content: start; gap: 12px; }
.asset-tab { width: 136px; min-height: 82px; border: 0; border-radius: 10px; color: var(--faint); background: transparent; display: grid; place-items: center; gap: 6px; padding: 10px; font-weight: 800; }
.asset-tab span { font-size: 26px; }
.asset-tab.active { color: var(--text); background: rgba(255,255,255,0.09); }
.asset-content { min-height: 720px; position: relative; }
.asset-content-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; min-height: 96px; }
.asset-content-head h2 { margin: 0 0 10px; font-size: 28px; }
.asset-content-head p { margin: 0; color: var(--faint); }
.primary-button.compact { min-height: 56px; min-width: 136px; border-radius: 16px; }
.asset-content-body { min-height: 560px; display: grid; place-items: center; }
.asset-library-grid { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 18px; align-self: start; }
.asset-library-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,0.04); }
.asset-library-card img { width: 100%; height: 170px; object-fit: cover; }
.asset-library-placeholder { width: 100%; height: 170px; padding: 0 !important; display: grid; place-items: center; color: var(--faint); background: rgba(255,255,255,0.035); font-size: 28px; }
.asset-library-card div { padding: 14px; }
.asset-library-card small, .asset-library-card p { color: var(--muted); }
.asset-library-card h3 { margin: 8px 0; }
.asset-library-card button { min-height: 34px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: rgba(255,255,255,0.05); padding: 0 12px; }


.tool-page { max-width: 1320px; margin: 0 auto; }
.tool-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: center; min-height: 250px; border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(248,39,183,0.12), rgba(96,215,223,0.06)); padding: 28px; margin-bottom: 24px; overflow: hidden; }
.tool-hero h1 { margin: 8px 0 12px; font-size: 44px; }
.tool-hero p { color: var(--muted); font-size: 18px; line-height: 1.6; }
.tool-hero img { width: 100%; height: 210px; object-fit: cover; border-radius: 18px; }
.tool-kicker { color: var(--cyan); font-weight: 900; }
.tool-form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; color: var(--muted); font-weight: 700; }
input, select { height: 46px; padding: 0 14px; }
textarea { padding: 14px; line-height: 1.55; }
.form-grid.two { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 16px; }
.form-actions { justify-content: flex-end; }
.checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.checkbox-grid label { min-height: 44px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: rgba(255,255,255,0.04); }
.checkbox-grid input { width: auto; height: auto; }
.score-preview { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.score-preview div { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: rgba(255,255,255,0.04); }
.score-preview span { display: block; color: var(--muted); }
.score-preview strong { display: block; margin-top: 8px; font-size: 28px; color: var(--green); }

.digital-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.avatar-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.avatar-card { position: relative; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,0.04); }
.avatar-card input { position: absolute; inset: 12px auto auto 12px; width: auto; height: auto; }
.avatar-card img { width: 100%; height: 260px; object-fit: cover; }
.avatar-card span { padding: 12px; color: var(--text); }
.form-stack, .publish-form { display: grid; gap: 16px; }
.publish-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.publish-checks span { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--muted); background: rgba(255,255,255,0.04); }
.publish-checks i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 18px rgba(120,221,184,0.7); }

.model-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(210px, 1fr)); gap: 18px; }
.model-card { position: relative; min-height: 170px; border: 1px solid var(--line); border-radius: 20px; padding: 20px; background: rgba(255,255,255,0.04); }
.model-card.active { border-color: rgba(248,39,183,0.52); box-shadow: 0 0 0 3px rgba(248,39,183,0.09); }
.model-card span { color: var(--cyan); text-transform: uppercase; font-size: 12px; font-weight: 900; }
.model-card h3 { margin: 12px 0 8px; }
.model-card p { color: var(--muted); }
.model-card em { position: absolute; right: 18px; top: 18px; color: var(--pink); font-style: normal; font-weight: 900; }
.model-card button { position: absolute; left: 20px; bottom: 18px; }

.queue-list { max-width: 1320px; margin: 0 auto; display: grid; gap: 14px; }
.queue-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,0.04); padding: 18px; display: grid; gap: 14px; }
.queue-card > *, .queue-main > div { min-width: 0; max-width: 100%; }
.queue-main { min-width: 0; display: flex; gap: 14px; }
.queue-main h3 { margin: 6px 0; }
.queue-main p { margin: 0; color: var(--muted); overflow-wrap: anywhere; word-break: break-word; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 8px; background: var(--amber); box-shadow: 0 0 16px rgba(247,200,93,0.6); }
.status-dot.done { background: var(--green); box-shadow: 0 0 16px rgba(120,221,184,0.6); }
.status-dot.fail { background: var(--danger); box-shadow: 0 0 16px rgba(255,93,120,0.6); }
.progress-wrap { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.progress-wrap span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--pink), var(--cyan)); }
.queue-actions { justify-content: flex-end; }
.queue-actions strong { margin-right: auto; }

.drawer { min-width: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; border-left: 1px solid var(--line); background: rgba(13,12,20,0.98); padding: 24px; box-shadow: -20px 0 80px rgba(0,0,0,0.38); }
.drawer-head { position: sticky; z-index: 2; top: -24px; min-width: 0; display: flex; justify-content: space-between; align-items: center; margin: -24px 0 20px; padding: 24px 0 16px; background: rgba(13,12,20,0.98); }
.drawer-head strong { font-size: 20px; }
.drawer-form, .drawer-preview { display: grid; gap: 16px; }
.drawer-form, .drawer-preview, .drawer-preview > *, .task-detail-drawer, .task-detail-drawer > * { min-width: 0; }
.drawer-preview img { width: 100%; height: 220px; object-fit: cover; border-radius: 18px; }
.drawer-preview h3 { margin: 0; font-size: 24px; }
.drawer-preview p { color: var(--muted); line-height: 1.7; }
.drawer-preview a.primary-button { display: inline-flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; }
.task-detail-drawer { min-width: 0; display: grid; align-content: start; gap: 16px; }
.task-detail-meta { min-width: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.task-detail-meta span, .task-detail-meta code { min-width: 0; min-height: 26px; border: 1px solid var(--line); border-radius: 7px; padding: 4px 8px; display: inline-flex; align-items: center; color: #aaa5b4; background: rgba(255,255,255,.035); font-size: 11px; line-height: 1.35; }
.task-detail-meta code { max-width: 100%; color: #8fdfe5; font-family: inherit; overflow-wrap: anywhere; word-break: break-word; }
.task-detail-drawer h3 { margin: 0; color: #f8f7fb; font-size: 22px; line-height: 1.4; overflow-wrap: anywhere; word-break: break-word; }
.task-detail-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #9d98a8; font-size: 13px; }
.task-detail-status strong { color: #d8d4df; }
.task-detail-result { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: rgba(255,255,255,.035); }
.task-detail-result > strong { color: #f0edf4; font-size: 14px; }
.task-detail-result p { min-width: 0; margin: 8px 0 0; color: #aaa5b4; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; word-break: break-word; }
.drawer-blueprint { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: rgba(255,255,255,0.035); }
.drawer-blueprint header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-blueprint header strong { color: var(--text); font-size: 15px; }
.drawer-blueprint header small { color: #7f7a89; font-size: 11px; }
.task-detail-beats { min-width: 0; margin: 12px 0 0; padding: 0; list-style: none; }
.task-detail-beats li { min-width: 0; border-top: 1px solid rgba(255,255,255,.07); padding: 12px 0; display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 10px; }
.task-detail-beats li > b { color: #7bdde3; font-size: 12px; line-height: 1.45; }
.task-detail-beats li div { min-width: 0; }
.task-detail-beats li strong { display: block; color: #e8e5ec; font-size: 13px; line-height: 1.4; }
.task-detail-beats li p { min-width: 0; margin: 4px 0 0; color: #9691a0; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; word-break: break-word; }
.task-detail-actions { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.task-detail-actions > * { width: 100%; min-width: 0; min-height: 48px; }
.task-detail-actions a.primary-button { display: inline-flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; }
.reference-list { display: grid; gap: 12px; }
.reference-list button { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: rgba(255,255,255,0.04); color: var(--text); }
.reference-list img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.reference-list small { display: block; margin-top: 5px; color: var(--muted); }
.toast { position: fixed; right: 28px; bottom: 28px; z-index: 20; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(18,17,26,0.96); box-shadow: var(--shadow); color: var(--text); }

@media (max-width: 1180px) {
  .app-shell, .app-shell.has-drawer { grid-template-columns: 244px minmax(0, 1fr); }
  .sidebar { padding: 22px 16px; }
  .brand-mark { font-size: 28px; }
  .upgrade-card { padding: 0 10px; }
  .nav-item { min-height: 40px; }
  .drawer { position: fixed; right: 0; top: 0; width: min(440px, 94vw); z-index: 20; }
  .tool-grid, .template-grid, .asset-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .project-title-row { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 0; }
  .project-title-row h1 { white-space: nowrap; }
  .project-title-row p { white-space: nowrap; }
  .project-title-row .user-select-pill { min-width: 220px; min-height: 42px; padding: 0 18px; }
  .project-stats { grid-template-columns: repeat(2, 1fr); }
  .project-stats article { min-height: 104px; padding: 20px 22px; }
  .project-filter-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; min-height: 0; padding: 12px; }
  .project-filter { width: 100%; min-height: 40px; justify-content: flex-start; padding: 0 10px; font-size: 14px; white-space: nowrap; }
  .project-task-grid, .asset-library-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .asset-library-layout { grid-template-columns: 112px minmax(0, 1fr); gap: 22px; }
  .asset-tab { width: 112px; }
  .top-actions { right: 18px; }
  .prompt-main { min-height: 176px; padding: 22px; }
  .prompt-main textarea { height: 116px; min-height: 116px; font-size: 18px; }
  .prompt-toolbar { align-items: stretch; flex-direction: column; }
  .select-group { flex-wrap: wrap; gap: 10px; }
  .model-select { min-width: 240px; }
  .reference-select { min-width: 150px; }
  .meta-pill select { min-width: 72px; }
  .generate-button { align-self: flex-end; min-height: 52px; }
}

@media (max-width: 760px) {
  .app-shell, .app-shell.sidebar-collapsed, .app-shell.has-drawer { display: block; }
  .task-detail-actions { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 12; height: auto; max-height: none; padding: 10px 12px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow: hidden; }
  .brand-row { margin-bottom: 10px; justify-content: space-between; }
  .brand-mark { width: auto; font-size: 28px; }
  .brand-mark strong { display: inline; }
  .icon-button { display: grid; place-items: center; }
  .app-shell.sidebar-collapsed .sidebar { padding: 10px 12px 12px; }
  .app-shell.sidebar-collapsed .brand-row { justify-content: space-between; }
  .app-shell.sidebar-collapsed .brand-mark { width: auto; justify-content: flex-start; }
  .app-shell.sidebar-collapsed .brand-mark strong,
  .app-shell.sidebar-collapsed .nav-item b { display: inline; }
  .app-shell.sidebar-collapsed .nav-implementation-status { display: inline-flex; }
  .app-shell.sidebar-collapsed .icon-button { display: grid; }
  .app-shell.sidebar-collapsed .nav-item { display: inline-flex; padding: 0 12px; }
  .upgrade-card { display: none; }
  .side-nav { margin-top: 0; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .nav-group { display: flex; gap: 8px; margin: 0; flex: 0 0 auto; }
  .nav-group p { display: none; }
  .nav-item { width: auto; min-width: max-content; min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line); scroll-snap-align: start; }
  .nav-item b { display: inline; font-size: 13px; }
  .nav-implementation-status { min-height: 16px; padding: 1px 4px; font-size: 8px; }
  .nav-item.active { box-shadow: 0 0 0 1px rgba(248,39,183,0.36), 0 8px 22px rgba(0,0,0,0.22); }
  .workspace { height: auto; }
  .topbar { min-height: 66px; padding: 0 16px; }
  .top-actions { top: 16px; right: 16px; }
  .top-actions .ghost-button { min-height: 36px; padding: 0 10px; }
  .workspace-body { padding: 16px; }
  .workspace-body.dashboard-workspace { min-height: calc(100vh - 66px); padding: 24px 16px; }
  .dashboard-compose { gap: 20px; }
  .dashboard-compose h1 { font-size: 27px; }
  .dashboard-composer { min-height: 230px; }
  .dashboard-composer > textarea { min-height: 138px; padding: 20px; font-size: 16px; }
  .dashboard-composer-footer { align-items: flex-end; flex-wrap: wrap; gap: 10px; }
  .dashboard-composer-tools { flex: 1 1 calc(100% - 58px); flex-wrap: wrap; }
  .dashboard-reference { order: 3; max-width: 100%; flex: 1 1 100%; }
  .dashboard-upload b { display: none; }
  .hero-section { padding: 4px 0 22px; }
  .hero-section h1, .page-head h1 { font-size: 34px; }
  .prompt-card { border-radius: 22px; margin-bottom: 28px; }
  .prompt-main { grid-template-columns: 1fr; gap: 16px; min-height: 0; padding: 20px; }
  .prompt-main textarea { height: 170px; min-height: 170px; font-size: 16px; line-height: 1.46; }
  .prompt-optimize { width: 100%; min-height: 48px; }
  .reference-tile { width: 118px; height: 96px; }
  .prompt-toolbar { min-height: 0; padding: 16px; gap: 12px; }
  .prompt-toolbar, .page-head, .table-header { align-items: stretch; flex-direction: column; }
  .select-group, .select-group select, .model-select, .reference-select, .meta-pill { width: 100%; min-width: 0; }
  .meta-pill select { min-width: 0; flex: 1; }
  .generate-button { width: 100%; }
  .tool-grid, .template-grid, .asset-grid, .model-grid, .stat-grid, .digital-layout, .tool-hero, .form-grid.two, .score-preview, .publish-checks { grid-template-columns: 1fr; }
  .project-title-row, .asset-content-head { flex-direction: column; align-items: stretch; }
  .project-title-row, .asset-title-row { margin-top: 28px; }
  .project-title-row h1, .asset-title-row h1 { font-size: 34px; }
  .user-select-pill { min-width: 0; width: 100%; }
  .project-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .project-stats article { min-height: 94px; padding: 18px; }
  .project-stats strong { font-size: 36px; }
  .project-filter-bar { gap: 8px; min-height: 0; padding: 10px; overflow-x: auto; flex-wrap: nowrap; }
  .project-filter { flex: 0 0 auto; min-height: 40px; }
  .project-results-panel { min-height: 360px; border-radius: 22px; }
  .project-task-grid, .asset-library-grid { grid-template-columns: 1fr; }
  .asset-library-layout { grid-template-columns: 1fr; gap: 18px; margin-top: 26px; }
  .asset-tabs { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  .asset-tab { flex: 0 0 auto; width: 96px; min-height: 70px; }
  .asset-content { min-height: 520px; }
  .asset-content-body { min-height: 420px; }
  .primary-button.compact { width: 100%; }
  .tool-card p { width: 100%; }
  .tool-card img { position: static; width: 100%; margin-top: 18px; }
  .table-row { grid-template-columns: 1fr; }
  .avatar-choice { grid-template-columns: 1fr; }
}

/* Hot clone workflow */
.hot-clone-workspace { padding: 0; overflow: auto; background: #07080d; }
.hot-clone-page { --clone-accent: #55d9e2; --clone-panel: #111219; --clone-card: #0c0e14; --clone-line: rgba(196,202,218,.16); width: 100%; min-height: 100%; padding: 50px clamp(24px, 2.5vw, 40px) 64px clamp(32px, 3.5vw, 56px); }
.hot-clone-hero { width: min(1180px, 100%); margin: 0 auto; padding: 0 32px; text-align: left; }
.hot-clone-hero h1 { margin: 0; color: #f8f8fa; font-size: 40px; line-height: 1.08; font-weight: 850; letter-spacing: 0; }
.hot-clone-hero > p { margin: 14px 0 0; color: #9494a1; font-size: 15px; line-height: 1.5; }

.clone-workflow { width: min(1180px, 100%); margin: 54px auto 0; }
.clone-flow-shell { display: grid; grid-template-columns: 1fr; gap: 38px; }
.clone-flow-track { position: relative; min-height: 104px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; padding: 0; }
.clone-flow-track::before,
.clone-flow-track::after { content: ""; position: absolute; z-index: 0; left: 12.5%; right: 12.5%; top: 25px; height: 3px; border-radius: 999px; }
.clone-flow-track::before { background: #30313a; }
.clone-flow-track::after { background: var(--clone-accent); transform: scaleX(var(--flow-progress)); transform-origin: left center; transition: transform .24s ease; }
.clone-flow-step { position: relative; z-index: 1; min-width: 0; min-height: 96px; border: 0; padding: 0; display: grid; grid-template-rows: 52px auto; justify-items: center; align-content: start; gap: 12px; color: #9696a3; background: transparent; text-align: center; }
.clone-flow-step > span { position: relative; width: 52px; height: 52px; border: 1px solid #555762; border-radius: 50%; display: grid; place-items: center; color: #999aa7; background: #25262f; box-shadow: inset 0 0 0 3px rgba(255,255,255,.025); font-size: 16px; font-weight: 850; }
.clone-flow-step strong { color: #9696a3; font-size: 17px; line-height: 1.25; font-weight: 750; letter-spacing: 0; white-space: nowrap; }
.clone-flow-step small { display: none; }
.clone-flow-step:hover:not(:disabled) strong { color: #e7e7ec; }
.clone-flow-step.active > span { border-color: transparent; color: #071619; background: var(--clone-accent); box-shadow: 0 8px 24px rgba(85,217,226,.16); }
.clone-flow-step.active strong { color: #f7f7f9; }
.clone-flow-step.complete > span { border-color: rgba(85,217,226,.46); color: var(--clone-accent); background: #102023; }
.clone-flow-step.complete strong { color: #c9c9d0; }
.clone-flow-step:disabled { cursor: not-allowed; opacity: 1; }
.clone-flow-step:focus-visible { outline: 2px solid rgba(85,217,226,.66); outline-offset: 4px; border-radius: 8px; }

.clone-flow-detail { min-height: 0; border: 1px solid var(--clone-line); border-radius: 10px; padding: 0; background: var(--clone-panel); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 56px rgba(0,0,0,.22); }
.clone-flow-detail-generate { width: 100%; height: auto; }
.clone-param-head { min-height: 122px; margin: 0 32px; border-bottom: 1px solid rgba(255,255,255,.09); padding: 30px 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex: 0 0 auto; }
.clone-param-head small { display: none; }
.clone-param-head h2 { margin: 0; color: #f7f7f9; font-size: 28px; line-height: 1.2; letter-spacing: 0; }
.clone-param-head p { margin: 8px 0 0; color: #92929e; font-size: 15px; line-height: 1.4; }
.clone-reset-button { width: 40px; height: 40px; border: 1px solid var(--clone-line); border-radius: 8px; color: #a5a5b1; background: rgba(255,255,255,.035); font-size: 18px; flex: 0 0 auto; }
.clone-reset-button:hover { color: #fff; border-color: rgba(85,217,226,.42); background: rgba(85,217,226,.07); }
.clone-reset-button:focus-visible { outline: 2px solid rgba(85,217,226,.66); outline-offset: 2px; }
.clone-param-stack { flex: 1 1 auto; min-height: 0; padding: 28px 32px; display: flex; flex-direction: column; gap: 12px; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }

.clone-mode-row { display: flex; align-items: center; justify-content: flex-end; gap: 20px; flex: 0 0 auto; }
.clone-mode-row > span { color: #a6a6b1; font-size: 14px; font-weight: 700; white-space: nowrap; }
.clone-mode-row > div, .clone-segmented { min-width: 0; border: 1px solid var(--clone-line); border-radius: 8px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; background: rgba(255,255,255,.025); overflow: hidden; }
.clone-mode-row button, .clone-segmented button { min-height: 48px; border: 0; border-radius: 0; padding: 0 42px; color: #92929f; background: transparent; font-size: 14px; font-weight: 750; }
.clone-mode-row button + button, .clone-segmented button + button { border-left: 1px solid var(--clone-line); }
.clone-mode-row button.active, .clone-segmented button.active { color: #f4f5f7; background: #292b32; box-shadow: none; }
.clone-mode-row button:focus-visible, .clone-segmented button:focus-visible { outline: 2px solid rgba(85,217,226,.68); outline-offset: -3px; }
.clone-mode-row > div { padding: 4px; gap: 4px; border-color: rgba(255,255,255,.1); background: #121319; }
.clone-mode-row button { min-height: 40px; border-radius: 6px; padding: 0 24px; transition: color .16s ease, background .16s ease, box-shadow .16s ease; }
.clone-mode-row button + button { border-left: 0; }
.clone-mode-row button:hover:not(.active) { color: #c5c6cd; background: rgba(255,255,255,.045); }
.clone-mode-row button.active { color: #f4f5f7; background: #292b32; box-shadow: none; }
.clone-segmented { padding: 4px; gap: 4px; }
.clone-segmented button { min-height: 40px; border-radius: 6px; padding: 0 20px; transition: color .16s ease, background .16s ease; }
.clone-segmented button + button { border-left: 0; }
.clone-segmented button.active { color: #f4f5f7; background: #292b32; box-shadow: none; }
.clone-ingest-layout { min-height: 408px; padding: 34px 32px 38px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 34px; }
.clone-video-upload { position: relative; min-width: 0; min-height: 408px; border: 1px dashed #5a5c67; border-radius: 10px; padding: 28px; display: grid; place-items: center; align-content: center; gap: 18px; color: #f7f4fb; background: #12141b; cursor: pointer; overflow: hidden; }
.clone-video-upload:hover { border-color: rgba(85,217,226,.62); background: #141820; }
.clone-video-upload.ready { border-style: solid; border-color: rgba(120,221,184,.34); background: #0f1718; }
.clone-video-upload input { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.clone-upload-illustration { position: relative; width: 92px; height: 104px; margin-bottom: 18px; border: 3px solid #8e909a; border-radius: 7px; display: grid; place-items: center; color: #9698a2; }
.clone-upload-illustration::after { content: ""; position: absolute; right: -3px; top: -3px; width: 25px; height: 25px; border-left: 3px solid #8e909a; border-bottom: 3px solid #8e909a; background: #12141b; }
.clone-upload-illustration i { font-size: 38px; line-height: 1; font-style: normal; transform: translateY(5px); }
.clone-upload-illustration b { position: absolute; right: -17px; bottom: -15px; width: 46px; height: 46px; border: 3px solid #8e909a; border-radius: 50%; display: grid; place-items: center; color: #9b9da6; background: #12141b; font-size: 24px; line-height: 1; }
.clone-video-upload > strong { min-width: 174px; min-height: 54px; max-width: 82%; border-radius: 8px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; color: #071619; background: #59dce5; box-shadow: 0 10px 24px rgba(85,217,226,.1); font-size: 16px; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clone-video-upload > span:not(.clone-upload-illustration) { max-width: 92%; color: #90909d; font-size: 14px; font-weight: 650; text-align: center; }
.clone-video-upload video { position: relative; z-index: 4; width: min(100%, 520px); max-height: 270px; border-radius: 8px; object-fit: contain; background: #050507; }

.clone-analysis-info { min-width: 0; border-left: 1px solid rgba(255,255,255,.13); padding: 24px 0 0 34px; display: flex; flex-direction: column; }
.clone-analysis-info header h3 { margin: 0; color: #f1f1f4; font-size: 24px; line-height: 1.2; }
.clone-analysis-info header p { margin: 10px 0 0; color: #868692; font-size: 14px; line-height: 1.4; }
.clone-analysis-items { margin-top: 34px; display: grid; gap: 28px; }
.clone-analysis-items > div { min-width: 0; display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 18px; }
.clone-analysis-icon { width: 54px; height: 54px; border: 1px solid #4c4e59; border-radius: 9px; display: grid; place-items: center; color: #d8d8df; background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 3px rgba(255,255,255,.018); font-size: 25px; font-weight: 650; }
.clone-analysis-icon-text { font-size: 15px; font-weight: 850; }
.clone-analysis-items p { min-width: 0; margin: 0; }
.clone-analysis-items strong, .clone-analysis-items small { display: block; }
.clone-analysis-items strong { color: #dedee4; font-size: 16px; line-height: 1.25; }
.clone-analysis-items small { margin-top: 6px; color: #8d8d99; font-size: 14px; line-height: 1.4; }
.clone-analysis-estimate { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0 2px; display: flex; align-items: center; gap: 16px; }
.clone-analysis-estimate > span { color: #9b9ca6; font-size: 34px; line-height: 1; }
.clone-analysis-estimate p { margin: 0; color: #8e8e9a; font-size: 13px; line-height: 1.4; }
.clone-analysis-estimate strong { display: block; margin-top: 3px; color: #9d9daa; font-size: 17px; font-weight: 650; }

.clone-blueprint-preview { min-height: 0; display: grid; gap: 10px; }
.clone-blueprint-preview.blueprint-empty { flex: 1 1 auto; min-height: 180px; place-content: center; text-align: center; }
.clone-blueprint-preview.blueprint-empty > div { display: grid; gap: 5px; }
.clone-blueprint-preview.blueprint-empty strong { color: #f6f3f9; font-size: 16px; }
.clone-blueprint-preview.blueprint-empty { border: 1px solid var(--clone-line); border-radius: 10px; padding: 12px; background: var(--clone-card); }
.clone-blueprint-preview.blueprint-empty span, .clone-blueprint-preview.blueprint-empty p { color: #9993a2; font-size: 12px; }
.clone-blueprint-preview.error { border-color: rgba(255,93,120,.28); background: rgba(255,93,120,.035); }
.clone-progress { width: min(320px, 80%); height: 3px; margin: 10px auto 0; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.clone-progress span { width: 38%; height: 100%; display: block; border-radius: inherit; background: #6ed6dc; animation: clone-progress 1.2s ease-in-out infinite alternate; }
@keyframes clone-progress { to { transform: translateX(160%); } }
.analysis-ready { flex: 1 1 auto; height: auto; max-height: none; overflow: auto; grid-template-rows: minmax(0, 1fr) auto; scrollbar-width: thin; scrollbar-color: rgba(110,214,220,.24) transparent; }
.blueprint-main-card { min-height: 0; border: 1px solid var(--clone-line); border-radius: 10px; padding: 12px; background: var(--clone-card); display: grid; align-content: start; gap: 10px; }
.blueprint-summary { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.blueprint-summary > div:first-child { min-width: 0; }
.blueprint-tags { display: flex; align-items: center; gap: 5px; }
.blueprint-tags small { min-height: 20px; border: 1px solid rgba(110,214,220,.2); border-radius: 999px; padding: 2px 8px; color: #9ce9ed; background: rgba(110,214,220,.05); font-size: 11px; font-weight: 850; }
.blueprint-summary strong { display: block; max-width: 100%; margin-top: 7px; color: #fff; font-size: 16px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blueprint-summary p { margin: 4px 0 0; color: #aaa4b3; font-size: 12px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blueprint-count { width: 58px; height: 50px; border: 1px solid rgba(110,214,220,.18); border-radius: 8px; display: grid; place-items: center; align-content: center; color: #c9fbfd; background: rgba(110,214,220,.07); flex: 0 0 auto; }
.blueprint-count b { font-size: 19px; line-height: 1; }
.blueprint-count span { margin-top: 3px; color: #8ddce1; font-size: 11px; font-weight: 800; }
.blueprint-facts { margin: 0; border-top: 1px solid rgba(255,255,255,.075); border-bottom: 1px solid rgba(255,255,255,.075); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blueprint-facts > div { min-width: 0; padding: 8px 10px; }
.blueprint-facts > div + div { border-left: 1px solid rgba(255,255,255,.075); }
.blueprint-facts dt { color: #8ddce1; font-size: 11px; font-weight: 850; }
.blueprint-facts dd { margin: 4px 0 0; color: #d5d0db; font-size: 12px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blueprint-timeline { min-height: 88px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.blueprint-timeline article { min-height: 84px; border-left: 2px solid rgba(110,214,220,.35); border-radius: 0 8px 8px 0; padding: 8px 10px; background: rgba(255,255,255,.025); overflow: hidden; }
.blueprint-timeline b { color: #8ddce1; font-size: 11px; }
.blueprint-timeline strong { display: block; margin-top: 5px; color: #f4f1f7; font-size: 12px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blueprint-timeline p { margin: 4px 0 0; color: #aaa4b3; font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blueprint-guidance-card { border: 1px solid var(--clone-line); border-radius: 10px; padding: 10px 12px; background: #14151b; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr); gap: 14px; align-items: end; }
.blueprint-guidance-copy { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.blueprint-guidance-copy b, .blueprint-notes > span { display: block; color: #8ddce1; font-size: 11px; font-weight: 850; }
.blueprint-guidance-copy p { margin: 4px 0 0; color: #c8c2ce; font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blueprint-notes { min-width: 0; display: grid; gap: 5px; }
.blueprint-notes textarea { width: 100%; height: 52px; min-height: 52px; max-height: 84px; border: 1px solid var(--clone-line); border-radius: 8px; padding: 8px 10px; color: #f7f4fa; background: #191a21; font-size: 12px; line-height: 1.4; resize: vertical; }
.blueprint-notes textarea:focus { border-color: rgba(110,214,220,.52); box-shadow: 0 0 0 3px rgba(110,214,220,.08); outline: 0; }

.clone-field { min-width: 0; display: grid; gap: 5px; color: #aaa4b3; font-weight: 800; }
.clone-field.wide { grid-column: 1 / -1; }
.clone-field > span { color: #c8c2ce; font-size: 12px; font-weight: 800; }
.clone-field input, .clone-field textarea { width: 100%; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: #f7f4fa; background: #191821; box-shadow: none; }
.clone-field input { height: 38px; padding: 0 11px; }
.clone-field textarea { height: 58px; min-height: 58px; max-height: 88px; padding: 9px 11px; resize: vertical; line-height: 1.35; }
.clone-field input:focus, .clone-field textarea:focus { border-color: rgba(96,215,223,.52); box-shadow: 0 0 0 3px rgba(96,215,223,.08); }
.clone-product-editor { border: 1px solid var(--clone-line); border-radius: 10px; padding: 12px; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; background: var(--clone-card); }
.clone-product-fields { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.clone-product-fields .wide { grid-column: 1 / -1; }
.clone-image-field { grid-template-rows: auto 1fr; }
.clone-image-drop { position: relative; height: auto; min-height: 150px; border: 1px dashed rgba(110,214,220,.36); border-radius: 8px; display: grid; place-items: center; align-content: center; gap: 5px; color: #f7f3ff; background: #12161a; overflow: hidden; cursor: pointer; }
.clone-image-drop input { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.clone-image-drop strong { font-size: 24px; line-height: 1; }
.clone-image-drop em { color: #c3bdc9; font-size: 12px; font-style: normal; font-weight: 800; }
.clone-image-drop img { width: 100%; height: 100%; object-fit: contain; background: #09090d; }
.clone-image-drop.has-image em { position: absolute; z-index: 3; left: 8px; right: 8px; bottom: 8px; min-height: 25px; border-radius: 6px; display: grid; place-items: center; color: #fff; background: rgba(5,4,9,.78); }
.product-analysis-card { min-height: 58px; border: 1px solid var(--clone-line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 10px; background: #14151b; }
.product-analysis-card.empty { align-content: center; }
.product-analysis-card:not(.ready) { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.product-analysis-card.error { border-color: rgba(255,93,120,.26); background: rgba(255,93,120,.035); }
.product-analysis-card strong { display: block; color: #f6f3f8; font-size: 12px; }
.product-analysis-card span { display: block; margin-top: 3px; color: #9f99a7; font-size: 12px; font-weight: 700; }
.product-analysis-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-analysis-head small { display: inline-flex; min-height: 20px; border-radius: 999px; padding: 2px 8px; color: #9ce9ed; background: rgba(110,214,220,.06); font-size: 11px; font-weight: 850; }
.product-analysis-head .icon-button { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; }
.product-analysis-list { border-top: 1px solid rgba(255,255,255,.075); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-analysis-list section { min-width: 0; padding: 8px 10px 2px; overflow: hidden; }
.product-analysis-list section + section { border-left: 1px solid rgba(255,255,255,.075); }
.product-analysis-list b { display: block; margin-bottom: 4px; color: #8ddce1; font-size: 11px; }
.product-analysis-list p { margin: 0; color: #d3ced9; font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clone-spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.12); border-top-color: #6ed6dc; border-radius: 50%; animation: clone-spin .8s linear infinite; }
@keyframes clone-spin { to { transform: rotate(360deg); } }

.clone-generation { flex: 1 1 auto; min-height: 0; padding: 28px 32px; display: grid; grid-template-rows: auto auto; align-content: start; gap: 10px; }
.clone-review { min-height: 104px; border: 1px solid var(--clone-line); border-radius: 10px; padding: 10px; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 12px; background: var(--clone-card); }
.clone-review img { width: 84px; height: 84px; border-radius: 8px; object-fit: contain; background: #07070a; }
.clone-review-copy { min-width: 0; }
.clone-review small { display: block; color: #8ddce1; font-size: 11px; font-weight: 850; }
.clone-review strong { display: block; margin-top: 4px; color: #fff; font-size: 15px; }
.clone-review p { margin: 4px 0 0; color: #9f99a7; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clone-output-meta { color: #c7c1cd; font-size: 12px; font-weight: 800; }
.clone-readiness-list { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.clone-readiness-list span { color: #8f8997; font-size: 12px; font-weight: 750; }
.clone-readiness-list i { margin-right: 5px; color: #77717f; font-style: normal; }
.clone-readiness-list .ready { color: #c5f4e2; }
.clone-readiness-list .ready i { color: #78ddb8; }
.clone-output-panel { border: 1px solid var(--clone-line); border-radius: 10px; padding: 12px; background: #14151b; display: grid; gap: 10px; }
.clone-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.clone-option-grid fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.clone-option-grid legend { margin-bottom: 6px; color: #b5afbb; font-size: 12px; font-weight: 800; }
.clone-segmented { width: 100%; }
.clone-service-status { min-height: 32px; border-top: 1px solid rgba(255,255,255,.075); padding: 9px 2px 0; display: flex; align-items: center; gap: 8px; color: #aaa4b3; font-size: 12px; font-weight: 800; }
.clone-service-status i { width: 7px; height: 7px; border-radius: 50%; background: #777180; }
.clone-service-status.ready i { background: #78ddb8; box-shadow: 0 0 0 3px rgba(120,221,184,.08); }
.clone-service-status.error { color: #ff889e; }
.clone-service-status.error i { background: #ff5d78; }
.clone-submit-error, .clone-missing { margin: 0; border-radius: 8px; padding: 8px 10px; color: #ff9aad; background: rgba(255,93,120,.07); font-size: 12px; line-height: 1.4; }

.clone-actions { min-height: 82px; margin: 0; border-top: 1px solid rgba(255,255,255,.1); padding: 15px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: 0 0 auto; background: #101118; }
.clone-actions > div { display: flex; align-items: center; gap: 8px; }
.clone-actions .plain-button, .clone-actions .primary-button { min-height: 50px; border-radius: 8px; padding: 0 22px; white-space: nowrap; }
.clone-actions .primary-button { min-width: 162px; border: 0; color: #061719; background: var(--clone-accent); box-shadow: none; }
.clone-actions .primary-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.clone-actions .clone-final-button { color: #fff; background: linear-gradient(100deg, #c316f1, #ed2f9c); box-shadow: 0 10px 24px rgba(232,38,163,.16); }
.clone-retry-button { width: 40px; height: 40px; border: 1px solid var(--clone-line); border-radius: 8px; color: #a9a3b0; background: rgba(255,255,255,.035); font-size: 18px; }
.clone-retry-button:hover { color: #dffcff; border-color: rgba(110,214,220,.38); background: rgba(110,214,220,.07); }
.clone-retry-button:focus-visible { outline: 2px solid rgba(110,214,220,.6); outline-offset: 2px; }
.clone-actions button:disabled { cursor: not-allowed; opacity: .42; filter: grayscale(.3); box-shadow: none; }
.clone-ingest-actions .primary-button:disabled { color: #8e8f99; background: #34353e; opacity: 1; filter: none; }
.clone-privacy-note { color: #84858f; font-size: 14px; font-weight: 650; }
.clone-privacy-note > span { width: 28px; height: 28px; border: 1px solid #777985; border-radius: 8px; display: grid; place-items: center; color: #afb0b8; font-size: 16px; }

@media (min-width: 1181px) and (min-height: 1200px) {
  .hot-clone-page { padding-top: 66px; }
  .clone-workflow { margin-top: 69px; }
  .clone-flow-shell { gap: 46px; }
  .clone-param-head { min-height: 130px; padding-top: 32px; padding-bottom: 30px; }
  .clone-ingest-layout { min-height: 850px; padding-top: 46px; padding-bottom: 84px; }
  .clone-video-upload { min-height: 720px; }
  .clone-upload-illustration { margin-bottom: 24px; }
  .clone-analysis-items { margin-top: 64px; gap: 53px; }
  .clone-analysis-items > div { grid-template-columns: 58px minmax(0, 1fr); gap: 20px; }
  .clone-analysis-icon { width: 58px; height: 58px; }
  .clone-actions { min-height: 106px; }
  .clone-ingest-actions .primary-button { min-width: 216px; min-height: 64px; font-size: 18px; }
}

@media (max-width: 1180px) {
  .hot-clone-page { padding: 42px 28px 54px; }
  .clone-workflow { margin-top: 46px; }
  .clone-ingest-layout { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 26px; }
  .clone-analysis-info { padding-left: 26px; }
  .clone-analysis-items { gap: 22px; }
}

@media (max-width: 1020px) and (min-width: 761px) {
  .hot-clone-page { padding: 38px 24px 50px; }
  .hot-clone-hero h1 { font-size: 36px; }
  .clone-workflow { margin-top: 42px; }
  .clone-flow-shell { gap: 30px; }
  .clone-flow-track { min-height: 90px; }
  .clone-flow-track::before, .clone-flow-track::after { top: 22px; }
  .clone-flow-step { min-height: 84px; grid-template-rows: 46px auto; gap: 10px; }
  .clone-flow-step > span { width: 46px; height: 46px; font-size: 14px; }
  .clone-flow-step strong { font-size: 14px; }
  .clone-param-head { min-height: 100px; margin: 0 26px; }
  .clone-mode-row button, .clone-segmented button { min-height: 44px; padding: 0 20px; }
  .clone-ingest-layout { min-height: 360px; padding: 28px 26px 32px; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .9fr); gap: 22px; }
  .clone-video-upload { min-height: 360px; }
  .clone-analysis-info { padding: 18px 0 0 22px; }
  .clone-analysis-info header h3 { font-size: 20px; }
  .clone-analysis-items { margin-top: 24px; gap: 18px; }
  .clone-analysis-items > div { grid-template-columns: 46px minmax(0, 1fr); gap: 13px; }
  .clone-analysis-icon { width: 46px; height: 46px; font-size: 21px; }
  .clone-analysis-icon-text { font-size: 13px; }
  .clone-analysis-items strong { font-size: 14px; }
  .clone-analysis-items small { font-size: 12px; }
  .clone-param-stack, .clone-generation { padding-left: 26px; padding-right: 26px; }
  .clone-actions { padding-left: 26px; padding-right: 26px; }
}

@media (max-width: 760px) {
  .hot-clone-page { padding: 24px 12px 96px; }
  .hot-clone-hero { padding: 0 2px; }
  .hot-clone-hero h1 { font-size: 28px; }
  .hot-clone-hero > p { margin-top: 8px; font-size: 13px; }
  .clone-workflow { margin-top: 30px; }
  .clone-flow-shell { gap: 22px; }
  .clone-flow-track { min-height: 72px; }
  .clone-flow-track::before, .clone-flow-track::after { top: 17px; height: 2px; }
  .clone-flow-step { min-height: 68px; grid-template-rows: 36px auto; gap: 8px; }
  .clone-flow-step > span { width: 36px; height: 36px; font-size: 11px; }
  .clone-flow-step strong { font-size: 11px; white-space: nowrap; }
  .clone-flow-detail { overflow: visible; }
  .clone-param-head { min-height: 0; margin: 0 14px; padding: 18px 0; align-items: stretch; flex-direction: column; gap: 16px; }
  .clone-param-head h2 { font-size: 20px; }
  .clone-param-head p { margin-top: 5px; font-size: 12px; }
  .clone-mode-row { justify-content: space-between; gap: 10px; }
  .clone-mode-row > div { flex: 1 1 auto; }
  .clone-mode-row button, .clone-segmented button { min-height: 42px; padding: 0 16px; font-size: 12px; }
  .clone-ingest-layout { min-height: 0; padding: 18px 14px 22px; grid-template-columns: 1fr; gap: 24px; }
  .clone-video-upload { min-height: 270px; padding: 22px 14px; }
  .clone-upload-illustration { width: 68px; height: 78px; margin-bottom: 8px; }
  .clone-upload-illustration i { font-size: 30px; }
  .clone-upload-illustration b { width: 38px; height: 38px; right: -14px; bottom: -12px; font-size: 20px; }
  .clone-video-upload > strong { min-height: 46px; min-width: 142px; font-size: 14px; }
  .clone-video-upload > span:not(.clone-upload-illustration) { font-size: 12px; }
  .clone-analysis-info { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0 0; }
  .clone-analysis-info header h3 { font-size: 20px; }
  .clone-analysis-items { margin-top: 24px; gap: 18px; }
  .clone-analysis-items > div { grid-template-columns: 46px minmax(0, 1fr); gap: 14px; }
  .clone-analysis-icon { width: 46px; height: 46px; font-size: 21px; }
  .clone-analysis-icon-text { font-size: 13px; }
  .clone-analysis-items strong { font-size: 14px; }
  .clone-analysis-items small { font-size: 12px; }
  .clone-analysis-estimate { margin-top: 24px; }
  .clone-param-stack, .clone-generation { padding: 18px 14px; overflow: visible; }
  .analysis-ready { overflow: visible; }
  .blueprint-summary { align-items: flex-start; }
  .blueprint-summary strong, .blueprint-summary p { white-space: normal; }
  .blueprint-facts { grid-template-columns: 1fr; }
  .blueprint-facts > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.075); }
  .blueprint-timeline { grid-auto-flow: column; grid-auto-columns: minmax(190px, 82%); grid-template-columns: none; overflow-x: auto; }
  .blueprint-guidance-card, .blueprint-guidance-copy { grid-template-columns: 1fr; }
  .clone-product-editor { grid-template-columns: 1fr; }
  .clone-image-drop { min-height: 170px; }
  .clone-product-fields, .product-analysis-list, .clone-option-grid { grid-template-columns: 1fr; }
  .product-analysis-list section + section { border-left: 0; border-top: 1px solid rgba(255,255,255,.075); }
  .product-analysis-head { align-items: flex-start; }
  .clone-review { grid-template-columns: 68px minmax(0, 1fr); }
  .clone-review img { width: 68px; height: 68px; }
  .clone-output-meta { grid-column: 2; }
  .clone-actions { position: sticky; z-index: 8; bottom: 0; min-height: 70px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); align-items: center; flex-direction: row; background: rgba(16,17,24,.95); box-shadow: 0 -14px 32px rgba(0,0,0,.32); backdrop-filter: blur(16px); }
  .clone-actions > div { min-width: 0; flex: 1 1 auto; justify-content: flex-end; }
  .clone-actions .plain-button { min-height: 48px; padding: 0 10px; flex: 0 0 auto; }
  .clone-actions .primary-button { min-height: 48px; min-width: 0; flex: 1 1 auto; }
  .clone-actions > .primary-button { max-width: 230px; }
  .clone-ingest-actions .clone-privacy-note { justify-content: flex-start; font-size: 12px; }
  .clone-ingest-actions .primary-button { max-width: 164px; }
  .clone-retry-button { width: 48px; height: 48px; flex: 0 0 auto; }
}

/* AI image workspace */
.ai-image-page { --image-accent: #63dce3; width: min(1420px, 100%); min-height: calc(100vh - 112px); margin: 0 auto; padding: 4px 0 34px; }
.ai-image-head { min-height: 104px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 4px 2px 22px; }
.ai-image-head > div:first-child { min-width: 0; }
.ai-image-head > div:first-child > span { color: #64dce3; font-size: 11px; font-weight: 850; }
.ai-image-head h1 { margin: 8px 0 0; color: #f7f7fa; font-size: 38px; line-height: 1.08; letter-spacing: 0; }
.ai-image-head p { margin: 9px 0 0; color: #878894; font-size: 14px; }
.ai-image-model { min-width: 196px; min-height: 54px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 8px 12px; display: grid; grid-template-columns: 9px minmax(0, 1fr); align-items: center; column-gap: 9px; color: #8e909a; background: #101117; }
.ai-image-model i { grid-row: 1 / 3; width: 9px; height: 9px; border-radius: 50%; background: #72ddb8; box-shadow: 0 0 0 4px rgba(114,221,184,.07); }
.ai-image-model span { font-size: 10px; }
.ai-image-model strong { color: #e5e6ea; font-size: 13px; }

.ai-image-layout { min-width: 0; min-height: calc(100vh - 224px); display: grid; grid-template-columns: minmax(330px, 400px) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.ai-image-controls, .ai-image-output { min-width: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: #0e0f15; }
.ai-image-controls { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.ai-image-control-head, .ai-image-output > header { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ai-image-control-head > div, .ai-image-output > header > div { min-width: 0; }
.ai-image-control-head strong, .ai-image-output > header strong { display: block; color: #f2f2f5; font-size: 16px; }
.ai-image-control-head small, .ai-image-output > header small { display: block; margin-top: 4px; color: #777985; font-size: 11px; }
.ai-image-service { min-height: 28px; border: 1px solid rgba(255,255,255,.08); border-radius: 7px; padding: 0 9px; display: inline-flex; align-items: center; gap: 7px; color: #848690; background: rgba(255,255,255,.025); font-size: 11px; white-space: nowrap; }
.ai-image-service i { width: 7px; height: 7px; border-radius: 50%; background: #777985; }
.ai-image-service.ready { color: #9fdcc6; }
.ai-image-service.ready i { background: #72ddb8; }
.ai-image-service.error { color: #ff8da2; }
.ai-image-service.error i { background: #ff5d78; }

.ai-image-prompt { min-width: 0; gap: 9px; }
.ai-image-prompt > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #c7c8ce; font-size: 13px; }
.ai-image-prompt > span small { color: #71737d; font-size: 10px; font-weight: 650; }
.ai-image-prompt textarea { min-height: 166px; max-height: 260px; border-color: rgba(255,255,255,.1); border-radius: 8px; padding: 13px 14px; color: #f4f4f7; background: #15161d; font-size: 14px; line-height: 1.6; resize: vertical; }
.ai-image-prompt textarea::placeholder { color: #666873; }
.ai-image-prompt textarea:focus { border-color: rgba(99,220,227,.55); box-shadow: 0 0 0 3px rgba(99,220,227,.07); }
.ai-image-options { min-width: 0; margin: 0; border: 0; border-top: 1px solid rgba(255,255,255,.075); padding: 15px 0 0; }
.ai-image-options legend { padding: 0 8px 0 0; color: #9b9da7; font-size: 12px; font-weight: 750; }
.ai-image-segments { min-width: 0; min-height: 42px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 4px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; overflow: hidden; background: #14151b; }
.ai-image-segments button { min-width: 0; border: 0; border-radius: 6px; color: #888a94; background: transparent; font-size: 12px; font-weight: 750; transition: color .16s ease, background .16s ease; }
.ai-image-segments button + button { border-left: 0; }
.ai-image-segments button.active { color: #f4f5f7; background: #292b32; box-shadow: none; }
.ai-image-segments button:focus-visible { outline: 2px solid rgba(99,220,227,.62); outline-offset: -2px; }

.ai-image-toggle { position: relative; min-width: 0; min-height: 54px; border-top: 1px solid rgba(255,255,255,.075); padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.ai-image-toggle > span { min-width: 0; }
.ai-image-toggle strong, .ai-image-toggle small { display: block; }
.ai-image-toggle strong { color: #d7d8dd; font-size: 13px; }
.ai-image-toggle small { margin-top: 4px; color: #747681; font-size: 10px; line-height: 1.35; }
.ai-image-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ai-image-toggle > i { position: relative; width: 42px; height: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: #24252d; flex: 0 0 auto; transition: background .18s ease, border-color .18s ease; }
.ai-image-toggle > i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #91939c; transition: transform .18s ease, background .18s ease; }
.ai-image-toggle input:checked + i { border-color: rgba(99,220,227,.5); background: rgba(99,220,227,.13); }
.ai-image-toggle input:checked + i::after { background: #63dce3; transform: translateX(18px); }
.ai-image-toggle input:focus-visible + i { outline: 2px solid rgba(99,220,227,.62); outline-offset: 3px; }

.ai-image-submit { width: 100%; min-height: 52px; margin-top: auto; border: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: #071619; background: linear-gradient(100deg, #63dce3, #ec43a3); box-shadow: 0 14px 34px rgba(51,177,185,.12); font-size: 14px; font-weight: 850; }
.ai-image-submit:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.ai-image-submit:disabled { cursor: not-allowed; color: #777985; background: #292a32; box-shadow: none; }

.ai-image-output { min-height: 620px; padding: 0; display: grid; grid-template-rows: 68px minmax(0, 1fr); overflow: hidden; border-color: rgba(255,255,255,.085); background: #0b0c11; }
.ai-image-output > header { min-height: 68px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.075); background: #101116; }
.ai-image-output > header > div:first-child { display: grid; grid-template-columns: auto auto; align-items: center; justify-content: start; column-gap: 10px; }
.ai-image-output > header strong { font-size: 14px; }
.ai-image-output-kicker { min-height: 22px; border: 1px solid rgba(236,67,163,.24); border-radius: 5px; padding: 0 7px; display: inline-flex; align-items: center; color: #f278bd; background: rgba(236,67,163,.06); font-size: 9px; font-weight: 850; }
.ai-image-output-tools { display: flex; align-items: center; gap: 9px; }
.ai-image-output-status { min-height: 28px; border: 1px solid rgba(255,255,255,.075); border-radius: 6px; padding: 0 9px; display: inline-flex; align-items: center; gap: 7px; color: #7f818c; background: rgba(255,255,255,.025); font-size: 10px; font-weight: 700; }
.ai-image-output-status i { width: 6px; height: 6px; border-radius: 50%; background: #5f616b; }
.ai-image-output-status.loading { color: #e3be76; }
.ai-image-output-status.loading i { background: #e3be76; box-shadow: 0 0 0 4px rgba(227,190,118,.08); }
.ai-image-output-status.ready { color: #91d8bd; }
.ai-image-output-status.ready i { background: #72ddb8; box-shadow: 0 0 0 4px rgba(114,221,184,.08); }
.ai-image-output > header button { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.09); border-radius: 6px; color: #8b8d97; background: #18191f; font-size: 17px; }
.ai-image-output > header button:hover { color: #fff; border-color: rgba(255,255,255,.18); background: #202127; }
.ai-image-stage { position: relative; min-width: 0; min-height: 0; padding: 30px; display: grid; place-items: center; overflow: auto; background-color: #090a0e; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 28px 28px; }
.ai-image-stage::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.035); border-radius: 5px; pointer-events: none; }
.ai-image-empty, .ai-image-loading, .ai-image-error { position: relative; z-index: 1; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; }
.ai-image-empty { width: min(52%, 500px); max-height: calc(100% - 26px); aspect-ratio: 1; border: 1px dashed rgba(255,255,255,.15); border-radius: 6px; background: rgba(17,18,24,.92); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.ai-image-empty[data-aspect="4:5"] { width: min(44%, 420px); aspect-ratio: 4 / 5; }
.ai-image-empty[data-aspect="16:9"] { width: min(72%, 700px); aspect-ratio: 16 / 9; }
.ai-image-empty[data-aspect="9:16"] { width: auto; height: min(82%, 520px); aspect-ratio: 9 / 16; }
.ai-image-empty::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.045); border-radius: 3px; }
.ai-image-empty-corners::before, .ai-image-empty-corners::after { content: ""; position: absolute; width: 28px; height: 28px; border-color: rgba(236,67,163,.52); pointer-events: none; }
.ai-image-empty-corners::before { left: -1px; top: -1px; border-left: 2px solid rgba(236,67,163,.52); border-top: 2px solid rgba(236,67,163,.52); border-radius: 6px 0 0; }
.ai-image-empty-corners::after { right: -1px; bottom: -1px; border-right: 2px solid rgba(96,215,223,.5); border-bottom: 2px solid rgba(96,215,223,.5); border-radius: 0 0 6px; }
.ai-image-empty-content { position: relative; z-index: 1; display: grid; place-items: center; gap: 9px; }
.ai-image-empty-content > span { width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; display: grid; place-items: center; color: #b7b8c0; background: #15161c; }
.ai-image-empty-content svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ai-image-empty strong, .ai-image-loading strong, .ai-image-error strong { color: #dedfe4; font-size: 14px; }
.ai-image-empty small, .ai-image-loading small { color: #70727d; font-size: 10px; }
.ai-image-loading { width: min(52%, 500px); min-height: 300px; border: 1px solid rgba(255,255,255,.08); border-radius: 6px; background: rgba(17,18,24,.92); }
.ai-image-spinner { width: 46px; height: 46px; border: 3px solid rgba(255,255,255,.09); border-top-color: #63dce3; border-radius: 50%; animation: image-spin .8s linear infinite; }
@keyframes image-spin { to { transform: rotate(360deg); } }
.ai-image-error { min-height: 220px; }
.ai-image-error > span { width: 44px; height: 44px; border: 1px solid rgba(255,93,120,.28); border-radius: 50%; display: grid; place-items: center; color: #ff8da2; background: rgba(255,93,120,.06); font-weight: 850; }
.ai-image-error p { max-width: 100%; margin: 0; color: #a68e96; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }

.ai-image-result-grid { position: relative; z-index: 1; width: 100%; min-width: 0; min-height: 100%; display: grid; grid-template-columns: 1fr; place-items: center; gap: 18px; }
.ai-image-result { width: min(660px, 100%); min-width: 0; margin: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; overflow: hidden; background: #101116; box-shadow: 0 24px 70px rgba(0,0,0,.32); }
.ai-image-result[data-aspect="4:5"] { width: min(520px, 100%); }
.ai-image-result[data-aspect="9:16"] { width: min(400px, 100%); }
.ai-image-frame { width: 100%; max-height: 680px; display: grid; place-items: center; background: #08090d; overflow: hidden; }
.ai-image-frame[data-aspect="1:1"] { aspect-ratio: 1; }
.ai-image-frame[data-aspect="4:5"] { aspect-ratio: 4 / 5; }
.ai-image-frame[data-aspect="16:9"] { aspect-ratio: 16 / 9; }
.ai-image-frame[data-aspect="9:16"] { aspect-ratio: 9 / 16; }
.ai-image-frame img { width: 100%; height: 100%; object-fit: contain; }
.ai-image-result figcaption { min-width: 0; min-height: 58px; border-top: 1px solid rgba(255,255,255,.075); padding: 9px 11px 9px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ai-image-result figcaption > div { min-width: 0; }
.ai-image-result figcaption strong, .ai-image-result figcaption small { display: block; }
.ai-image-result figcaption strong { color: #e8e8ec; font-size: 12px; }
.ai-image-result figcaption small { margin-top: 4px; color: #747680; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-image-result figcaption a { min-height: 36px; border: 1px solid rgba(99,220,227,.22); border-radius: 7px; padding: 0 11px; display: inline-flex; align-items: center; color: #9cebf0; background: rgba(99,220,227,.055); text-decoration: none; font-size: 11px; font-weight: 750; white-space: nowrap; }

@media (min-width: 1021px) {
  .ai-image-page { height: 100%; min-height: 0; padding-bottom: 0; display: flex; flex-direction: column; }
  .ai-image-head { flex: 0 0 auto; }
  .ai-image-layout { flex: 1 1 auto; min-height: 0; }
  .ai-image-controls { min-height: 0; overflow: hidden auto; }
  .ai-image-output { min-height: 0; }
}

@media (max-width: 1180px) {
  .ai-image-layout { grid-template-columns: minmax(300px, 340px) minmax(0, 1fr); }
  .ai-image-controls { padding: 16px; }
}

@media (max-width: 1020px) {
  .ai-image-layout { grid-template-columns: 1fr; }
  .ai-image-output { min-height: 560px; }
}

@media (max-width: 760px) {
  .ai-image-page { min-height: 0; padding-bottom: 20px; }
  .ai-image-head { min-height: 0; padding: 2px 0 18px; align-items: stretch; flex-direction: column; gap: 16px; }
  .ai-image-head h1 { font-size: 30px; }
  .ai-image-model { width: 100%; }
  .ai-image-layout { grid-template-columns: 1fr; gap: 14px; }
  .ai-image-controls { padding: 14px; gap: 16px; }
  .ai-image-control-head { align-items: flex-start; }
  .ai-image-prompt textarea { min-height: 150px; }
  .ai-image-output { min-height: 460px; padding: 0; grid-template-rows: 60px minmax(0, 1fr); }
  .ai-image-output > header { min-height: 60px; padding: 0 14px; }
  .ai-image-stage { padding: 22px; }
  .ai-image-stage::after { inset: 10px; }
  .ai-image-empty { width: min(72%, 360px); }
  .ai-image-empty[data-aspect="4:5"] { width: min(62%, 320px); }
  .ai-image-empty[data-aspect="16:9"] { width: min(88%, 430px); }
  .ai-image-empty[data-aspect="9:16"] { width: auto; height: min(76%, 390px); }
  .ai-image-result-grid { grid-template-columns: 1fr; }
  .ai-image-result figcaption { align-items: stretch; flex-direction: column; }
  .ai-image-result figcaption a { width: 100%; justify-content: center; }
  .video-generator-page .video-generator-head { min-height: 0; align-items: stretch; flex-direction: column; }
  .video-generator-page .video-generator-head h1 { font-size: 30px; }
  .video-generator-page .video-generator-service { width: 100%; justify-content: center; }
  .video-generator-page .video-generator-layout { grid-template-columns: 1fr; min-height: 0; }
  .video-generator-page .video-generator-controls { padding: 14px; }
  .video-generator-page .video-generator-reference { padding: 12px; }
  .video-generator-page .video-reference-drop, .video-generator-page .video-reference-preview { min-height: 300px; }
  .video-generator-page .video-option-segments.duration { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* AI video workspace */
.video-generator-page { width: min(1420px, 100%); min-height: calc(100vh - 112px); margin: 0 auto; padding: 4px 0 34px; }
.video-generator-head { min-height: 104px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 4px 2px 22px; }
.video-generator-head > div { min-width: 0; }
.video-generator-head > div > span { color: var(--cyan); font-size: 11px; font-weight: 850; }
.video-generator-head h1 { margin: 8px 0 0; color: #f7f7fa; font-size: 38px; line-height: 1.08; letter-spacing: 0; }
.video-generator-head p { margin: 9px 0 0; color: #878894; font-size: 14px; line-height: 1.55; }
.video-generator-service { min-height: 34px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; padding: 0 11px; display: inline-flex; align-items: center; gap: 8px; color: #858792; background: #101117; font-size: 11px; white-space: nowrap; }
.video-generator-service i { width: 7px; height: 7px; border-radius: 50%; background: #777985; }
.video-generator-service.ready { color: #9fdcc6; }
.video-generator-service.ready i { background: var(--green); }
.video-generator-service.error { color: #ff8da2; }
.video-generator-service.error i { background: var(--danger); }
.video-generator-layout { min-width: 0; min-height: 620px; display: grid; grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); gap: 20px; }
.video-generator-controls, .video-generator-reference { min-width: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: #0e0f15; }
.video-generator-controls { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.video-generator-controls fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.video-generator-controls legend { margin-bottom: 9px; color: #9b9da7; font-size: 12px; font-weight: 750; }
.video-mode-segments, .video-option-segments { min-height: 42px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; overflow: hidden; }
.video-mode-segments { padding: 4px; gap: 4px; }
.video-option-segments { padding: 4px; gap: 4px; }
.video-option-segments.duration { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.video-mode-segments button, .video-option-segments button { min-width: 0; border: 0; border-radius: 6px; color: #898b95; background: transparent; font-size: 12px; font-weight: 750; transition: color .16s ease, background .16s ease; }
.video-mode-segments button + button, .video-option-segments button + button { border-left: 0; }
.video-mode-segments button.active, .video-option-segments button.active { color: #f4f5f7; background: #292b32; box-shadow: none; }
.video-generator-prompt { min-width: 0; gap: 9px; }
.video-generator-prompt > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #c7c8ce; font-size: 13px; }
.video-generator-prompt small { color: #71737d; font-size: 10px; }
.video-generator-prompt textarea { min-height: 180px; max-height: 320px; border-color: rgba(255,255,255,.1); border-radius: 8px; padding: 13px 14px; color: #f4f4f7; background: #15161d; font-size: 14px; line-height: 1.6; resize: vertical; }
.video-generator-prompt textarea:focus { border-color: rgba(96,215,223,.55); box-shadow: 0 0 0 3px rgba(96,215,223,.07); }
.video-generator-error { border: 1px solid rgba(255,93,120,.24); border-radius: 7px; padding: 11px 12px; color: #ff9caf; background: rgba(255,93,120,.055); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.video-generator-missing { margin: -4px 0 0; color: #7e808b; font-size: 11px; }
.video-generator-reference { padding: 18px; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 14px; }
.video-generator-reference > header { min-height: 48px; border-bottom: 1px solid rgba(255,255,255,.075); padding: 0 2px 14px; }
.video-generator-reference > header strong, .video-generator-reference > header small { display: block; }
.video-generator-reference > header strong { color: #f2f2f5; font-size: 16px; }
.video-generator-reference > header small { margin-top: 4px; color: #777985; font-size: 11px; }
.video-reference-shell { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.video-reference-drop { position: relative; min-height: 420px; border: 1px dashed rgba(255,255,255,.18); border-radius: 8px; display: grid; place-items: center; align-content: center; color: #858792; background: #090a0f; cursor: pointer; overflow: hidden; }
.video-reference-drop:hover { border-color: rgba(96,215,223,.46); background: #0b0d12; }
.video-reference-drop.ready { border-style: solid; }
.video-reference-drop input { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.video-reference-drop > span { width: 68px; height: 68px; border: 1px solid rgba(96,215,223,.2); border-radius: 8px; display: grid; place-items: center; color: var(--cyan); background: rgba(96,215,223,.04); font-size: 26px; }
.video-reference-drop > strong { margin-top: 14px; color: #e2e3e7; font-size: 15px; }
.video-reference-drop > small { margin-top: 7px; color: #737580; font-size: 11px; }
.video-reference-preview { width: 100%; height: 100%; min-height: 420px; object-fit: contain; background: #08090d; }
.video-reference-shell footer { min-width: 0; min-height: 54px; border-top: 1px solid rgba(255,255,255,.075); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.video-reference-shell footer span { min-width: 0; color: #a7a9b2; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-reference-shell footer button { min-height: 34px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; padding: 0 10px; color: #c4c5cb; background: #17181f; font-size: 11px; white-space: nowrap; }
.video-text-mode-empty { min-height: 420px; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; }
.video-text-mode-empty span { width: 72px; height: 72px; border: 1px solid rgba(96,215,223,.18); border-radius: 8px; display: grid; place-items: center; color: var(--cyan); background: rgba(96,215,223,.035); font-size: 28px; }
.video-text-mode-empty strong { color: #dedfe4; font-size: 16px; }
.video-text-mode-empty small { max-width: 280px; color: #737580; font-size: 12px; line-height: 1.55; }
.video-generator-submit { width: 100%; min-height: 52px; margin-top: auto; border: 0; border-radius: 8px; color: #071619; background: var(--cyan); font-size: 14px; font-weight: 850; }
.video-generator-submit:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.video-generator-submit:disabled { cursor: not-allowed; color: #777985; background: #292a32; }
