.home-workflow-selector.home-quick-composer {
  width: min(1120px, calc(100% - 40px));
  margin: -34px auto 18px;
  padding: 18px;
  display: block;
  min-height: 0;
  height: auto;
}
.home-workflow-selector.home-quick-composer::before { display: none; }

.commercial-page {
  --commercial-accent: var(--accent);
  --commercial-ink: var(--ink);
  background: transparent;
  color: var(--ink);
}
.commercial-page .commercial-page-header h1 { color: var(--ink); }
.commercial-page .commercial-page-header p:last-child { color: var(--muted); }
.commercial-page .commercial-composer {
  position: relative;
  overflow: visible;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(4,20,19,.9);
  box-shadow: var(--shadow);
}
.commercial-page .commercial-type-switch { background: rgba(255,255,255,.04); }
.commercial-page .commercial-type-switch button { color: var(--muted); }
.commercial-page .commercial-type-switch button.active { color: #00130f; background: var(--accent); box-shadow: none; }
.commercial-page .commercial-project-select,
.commercial-page .commercial-parameters label { color: var(--muted); }
.commercial-page .commercial-project-select select,
.commercial-page .commercial-parameters select {
  border-color: var(--line);
  color: var(--body-ink);
  background: rgba(255,255,255,.035);
}
.commercial-page #commercial-script {
  min-height: 260px;
  padding: 20px 64px 54px 20px;
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(0,10,10,.72);
}
.commercial-page #commercial-script:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(80,224,176,.09); }
.commercial-page .commercial-tool-button { border-color: var(--line); color: var(--body-ink); background: rgba(255,255,255,.035); }
.commercial-page #commercial-asset-limit,
.commercial-page .commercial-submit-row p { color: var(--muted); }
.commercial-page .commercial-resolution { color: var(--muted); background: rgba(255,255,255,.05); }
@media (max-width: 760px) {
  .home-workflow-selector.home-quick-composer { width: calc(100% - 20px); margin-top: -18px; }
}

/* Commercial composer follows the homepage Aurora input specification. */
.commercial-page {
  --commercial-accent: #55e7ba;
  padding-inline: 0;
  padding-top: 0;
}

.commercial-page .commercial-layout {
  display: grid;
  grid-template-rows: auto auto;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  gap: 20px;
}

.commercial-page .commercial-page-header {
  min-height: 96px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(85, 231, 186, 0.1);
}

.commercial-page .commercial-page-header h1 {
  margin: 5px 0 6px;
  font-size: clamp(32px, 3vw, 40px);
  letter-spacing: -0.04em;
}

.commercial-page .commercial-page-header .ghost-button {
  min-height: 42px;
  padding: 0 17px;
  border-color: rgba(85, 231, 186, 0.24);
  border-radius: 999px;
  color: var(--body-ink);
  background: rgba(85, 231, 186, 0.045);
}

.commercial-page .commercial-composer {
  border-color: rgba(80, 224, 176, 0.19);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 6%, rgba(51, 199, 193, 0.11), transparent 28%),
    linear-gradient(145deg, rgba(5, 33, 29, 0.76), rgba(0, 13, 14, 0.9));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 20px 52px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.commercial-page .commercial-composer {
  position: relative;
  z-index: 2;
  padding: 0;
  overflow: visible;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.commercial-page .commercial-composer:has(.select-panel.open) {
  z-index: 40;
}

.commercial-page .commercial-composer:focus-within {
  border-color: rgba(85, 231, 186, 0.34);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 22px 58px rgba(0, 0, 0, 0.18), 0 0 0 3px rgba(85, 231, 186, 0.035);
}

.commercial-page .commercial-project-row {
  min-height: 60px;
  margin: 0;
  padding: 8px 20px;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid rgba(85, 231, 186, 0.1);
}

.commercial-page .commercial-type-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 4px;
  min-height: 48px;
  padding: 4px;
  border: 1px solid rgba(85, 231, 186, 0.17);
  border-radius: 999px;
  background: rgba(0, 20, 18, 0.66);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 10px 30px rgba(0, 0, 0, 0.12);
}

.commercial-page .commercial-type-switch button {
  min-width: 112px;
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: rgba(211, 239, 232, 0.76);
  background: transparent;
  box-shadow: none;
  transition: color 180ms ease, background 240ms ease, box-shadow 240ms ease, transform 120ms ease;
}

.commercial-page .commercial-type-switch button:hover:not(.active) {
  color: #ecfff9;
  background: rgba(85, 231, 186, 0.07);
}

.commercial-page .commercial-type-switch button.active {
  border: 1px solid rgba(145, 255, 224, 0.46);
  color: #041b16;
  background: linear-gradient(135deg, rgba(104, 237, 194, 0.96), rgba(66, 203, 211, 0.9));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.28), 0 5px 16px rgba(54, 211, 194, 0.16);
  font-weight: 800;
}

.commercial-page .commercial-type-switch button:active { transform: scale(0.97); }

.commercial-page .commercial-type-switch button:focus-visible {
  outline: 2px solid var(--commercial-accent);
  outline-offset: 3px;
}

.commercial-page .commercial-project-select {
  min-width: 240px;
  gap: 7px;
  color: #83aaa4;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.commercial-page .commercial-project-select select,
.commercial-page .commercial-parameters select {
  height: 44px;
  border-color: rgba(85, 231, 186, 0.16);
  border-radius: 12px;
  color: var(--body-ink);
  background: rgba(0, 16, 15, 0.56);
}

.commercial-page .select-panel-title {
  min-height: 44px;
  border-color: rgba(85, 231, 186, 0.16);
  border-radius: 12px;
  color: var(--body-ink);
  background: rgba(0, 16, 15, 0.56);
}

.commercial-page .select-panel-options {
  border-color: rgba(85, 231, 186, 0.18);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(6, 32, 29, 0.98), rgba(1, 17, 17, 0.98));
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.commercial-page .select-panel-search {
  border-color: rgba(85, 231, 186, 0.14);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
}

.commercial-page .select-panel-option:hover { background: rgba(85, 231, 186, 0.08); }
.commercial-page .select-panel-option.selected { color: var(--ink); background: rgba(85, 231, 186, 0.13); }

.commercial-page .commercial-asset-strip { margin: 0; padding: 0 20px; }

.commercial-page .commercial-asset-strip:not(:empty) {
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(85, 231, 186, 0.08);
  background: rgba(0, 15, 14, 0.18);
}

.commercial-page .commercial-asset-chip {
  border-color: rgba(85, 231, 186, 0.18);
  color: var(--body-ink);
  background: rgba(85, 231, 186, 0.055);
}

.commercial-page .commercial-script-shell {
  position: relative;
  height: clamp(260px, 28vh, 340px);
  min-height: 260px;
  background: rgba(0, 12, 11, 0.18);
}

.commercial-page #commercial-script {
  display: block;
  height: 100%;
  min-height: 260px;
  padding: 20px 20px 44px 112px;
  border: 0;
  border-radius: 0;
  color: #eafff9;
  background: transparent;
  font-size: 15px;
  line-height: 1.75;
  resize: vertical;
  transition: background 180ms ease;
}

.commercial-page .commercial-reference-upload-stack {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 74px;
  min-width: 74px;
  min-height: 72px;
  padding: 0;
  transform: none;
}

.commercial-page .commercial-reference-upload-stack .reference-upload-button {
  position: static;
  width: 58px;
  height: 72px;
  min-width: 58px;
  flex: 0 0 58px;
  flex-direction: column;
  gap: 5px;
  border-color: rgba(139, 242, 208, 0.14);
  border-radius: var(--radius-xs);
  color: #88d9c3;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(2, 18, 17, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.commercial-page .commercial-reference-upload-stack .reference-upload-button small { font-size: 9px; }

.commercial-page .commercial-reference-upload-stack .reference-upload-button:hover {
  border-color: rgba(85, 231, 186, 0.44);
  color: #effff9;
  background: rgba(85, 231, 186, 0.09);
}

.commercial-page .commercial-reference-upload-stack .reference-upload-button:focus-visible {
  outline: 2px solid var(--commercial-accent);
  outline-offset: 3px;
}

.commercial-page .commercial-upload-hint {
  width: 74px;
  margin-top: 5px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 9px;
  line-height: 1.35;
}

.commercial-page #commercial-script::placeholder { color: rgba(214, 239, 236, 0.46); }
.commercial-page #commercial-script:focus { border: 0; outline: 0; background: rgba(85, 231, 186, 0.018); box-shadow: none; }

.commercial-page .commercial-script-count {
  position: absolute;
  right: 20px;
  bottom: 10px;
  z-index: 3;
  margin: 0;
  color: #83aaa4;
  font-size: 11px;
  line-height: 1;
  pointer-events: none;
}

.commercial-page .commercial-script-count[data-type="error"] {
  color: #ff8d8d;
  font-weight: 750;
}

.commercial-page .commercial-asset-summary {
  margin: 0 20px 8px;
  color: #9ad8c4;
  font-size: 11px;
  line-height: 1.45;
}

.commercial-page .commercial-preflight {
  display: flex;
  flex-wrap: wrap;
  min-height: 34px;
  gap: 6px 16px;
  margin: 0;
  padding: 9px 20px;
  border-top: 1px solid rgba(85, 231, 186, 0.08);
  border-bottom: 1px solid rgba(85, 231, 186, 0.08);
  color: #8fb2ad;
  background: rgba(0, 15, 14, 0.14);
  font-size: 10px;
  line-height: 1.4;
}

.commercial-page .commercial-preflight[hidden] { display: none; }
.commercial-page .commercial-preflight span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.commercial-page .commercial-preflight i { font-style: normal; font-weight: 800; }
.commercial-page .commercial-preflight .is-ok i { color: #58d9ad; }
.commercial-page .commercial-preflight .is-error { color: #ff9a9a; }
.commercial-page .commercial-preflight .is-error i { color: #ff7777; }

.commercial-page .commercial-script-actions {
  display: flex;
  min-width: 0;
  margin-left: auto;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
}

.commercial-page .commercial-script-actions .commercial-project-select {
  width: 210px;
  min-width: 210px;
  gap: 4px;
}

.commercial-page .commercial-script-actions .commercial-project-select > span {
  line-height: 1;
}

.commercial-page .commercial-optimize-icon {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 3;
  display: inline-flex;
  width: auto;
  min-width: 118px;
  height: 44px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  color: #8ff8d6;
  background: linear-gradient(145deg, rgba(55, 211, 170, 0.12), rgba(22, 123, 111, 0.12));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.commercial-page .commercial-optimize-icon::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  transform: translateX(-115%);
  background: linear-gradient(100deg, transparent 22%, rgba(212, 255, 244, 0.18) 48%, transparent 74%);
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease;
}

.commercial-page .commercial-optimize-icon:hover:not(:disabled) {
  color: #effff9;
  background: linear-gradient(145deg, rgba(47, 220, 168, 0.22), rgba(25, 155, 140, 0.2));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 0 22px rgba(55, 224, 174, 0.14), 0 10px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.commercial-page .commercial-optimize-icon:hover:not(:disabled)::before { opacity: 1; transform: translateX(115%); }
.commercial-page .commercial-optimize-icon:active:not(:disabled) { transform: scale(0.98); }
.commercial-page .commercial-optimize-icon:focus-visible { outline: 2px solid var(--commercial-accent); outline-offset: 3px; }
.commercial-page .commercial-optimize-icon:disabled { cursor: wait; opacity: 0.82; }

.commercial-page .commercial-optimize-icon svg {
  position: relative;
  z-index: 1;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.commercial-page .commercial-optimize-icon .commercial-wand { stroke-width: 2; }

.commercial-page .commercial-optimize-icon .button-label {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.02em;
}

.commercial-page .commercial-optimize-icon.is-busy svg { animation: commercial-wand-pulse 900ms ease-in-out infinite alternate; }

@keyframes commercial-wand-pulse {
  from { filter: drop-shadow(0 0 0 rgba(85, 231, 186, 0)); transform: rotate(-5deg) scale(0.96); }
  to { filter: drop-shadow(0 0 6px rgba(85, 231, 186, 0.72)); transform: rotate(7deg) scale(1.05); }
}

.commercial-page .commercial-optimize-history {
  position: absolute;
  right: 20px;
  bottom: 12px;
  z-index: 12;
  width: min(390px, calc(100% - 40px));
  overflow: hidden;
  border: 1px solid rgba(85, 231, 186, 0.24);
  border-radius: 16px;
  color: var(--body-ink);
  background: rgba(3, 23, 21, 0.98);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.46), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.commercial-page .commercial-optimize-history[hidden] { display: none; }

.commercial-page .commercial-optimize-history > header {
  min-height: 50px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(85, 231, 186, 0.1);
}

.commercial-page .commercial-optimize-history > header strong {
  color: #dffaf2;
  font-size: 13px;
}

.commercial-page .commercial-optimize-history > header button {
  padding: 5px 0;
  border: 0;
  color: #7fa7a0;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.commercial-page .commercial-optimize-history > header button:hover { color: #a9f3dc; }

.commercial-page .commercial-optimize-version-list {
  max-height: 238px;
  padding: 8px;
  overflow-y: auto;
}

.commercial-page .commercial-optimize-version {
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #b8d1cc;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.commercial-page .commercial-optimize-version:hover { background: rgba(85, 231, 186, 0.055); }

.commercial-page .commercial-optimize-version.is-active {
  border-color: rgba(85, 231, 186, 0.22);
  background: rgba(85, 231, 186, 0.085);
}

.commercial-page .commercial-optimize-version > i {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(144, 205, 190, 0.48);
  border-radius: 50%;
  color: #8ff8d6;
  font-size: 11px;
  font-style: normal;
}

.commercial-page .commercial-optimize-version.is-active > i { border-color: #63e9bf; }

.commercial-page .commercial-optimize-version > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.commercial-page .commercial-optimize-version strong {
  color: #e8fff8;
  font-size: 13px;
  font-weight: 720;
}

.commercial-page .commercial-optimize-version small {
  overflow: hidden;
  color: #75968f;
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commercial-page .commercial-optimize-add {
  width: calc(100% - 16px);
  min-height: 43px;
  margin: 0 8px 8px;
  border: 1px solid rgba(85, 231, 186, 0.14);
  border-radius: 11px;
  color: #8fe4cb;
  background: rgba(85, 231, 186, 0.035);
  text-align: left;
  cursor: pointer;
}

.commercial-page .commercial-optimize-add:hover {
  border-color: rgba(85, 231, 186, 0.38);
  background: rgba(85, 231, 186, 0.085);
}

.commercial-page .commercial-parameters {
  position: relative;
  z-index: 3;
  gap: 12px;
  padding: 12px 20px;
  overflow: visible;
  border-bottom: 1px solid rgba(85, 231, 186, 0.1);
  background: rgba(0, 15, 14, 0.2);
}

.commercial-page .commercial-parameters .select-panel.open {
  z-index: 120;
}

.commercial-page .commercial-parameters .select-panel-options {
  z-index: 121;
}

.commercial-page .commercial-parameters label {
  gap: 7px;
  color: #83aaa4;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.commercial-page .commercial-submit-row {
  min-height: 66px;
  padding: 8px 20px;
  justify-content: flex-end;
  background: linear-gradient(90deg, rgba(80, 224, 176, 0.025), transparent 58%);
}

.commercial-page .commercial-submit-row p { color: #9bc1ba; }

.commercial-page .commercial-generate-button {
  min-width: 132px;
  height: 50px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid rgba(80, 224, 176, 0.55);
  border-radius: 999px;
  color: #041b16;
  background: linear-gradient(145deg, #4ce1ba, #19a9d0);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.26), 0 8px 24px rgba(54, 211, 194, 0.17);
  font-weight: 800;
}

.commercial-page .commercial-generate-button:hover:not(:disabled) { box-shadow: 0 0 26px rgba(55, 224, 174, 0.18), 0 10px 28px rgba(0, 0, 0, 0.2); transform: translateY(-1px); }
.commercial-page .commercial-composer > .feedback:not(:empty) { margin: 0; padding: 0 20px 16px; }

.commercial-popover {
  width: min(360px, calc(100vw - 24px));
  max-height: 400px;
  padding: 14px;
  border-color: rgba(85, 231, 186, 0.22);
  border-radius: 16px;
  color: var(--ink);
  background: linear-gradient(160deg, rgba(6, 32, 29, 0.98), rgba(1, 17, 17, 0.98));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 22px 60px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(20px);
}

.commercial-popover.is-mention-suggest { width: min(420px, calc(100vw - 24px)); }
.commercial-popover-head { padding: 0 2px 10px; color: #dffff6; }
.commercial-popover-head strong { font-size: 13px; }
.commercial-popover-head button { color: #83aaa4; }

.commercial-asset-search { display: block; }

.commercial-asset-search input {
  width: 100%;
  min-height: 40px;
  padding: 0 13px 0 36px;
  border: 1px solid rgba(85, 231, 186, 0.14);
  border-radius: 11px;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2383aaa4' stroke-width='1.8'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E") 12px 50% no-repeat;
}

.commercial-asset-search input:focus { border-color: rgba(85, 231, 186, 0.48); box-shadow: 0 0 0 3px rgba(85, 231, 186, 0.07); }

.commercial-create-asset {
  margin: 10px 0;
  border-color: rgba(85, 231, 186, 0.22);
  color: #8ff8d6;
  background: rgba(85, 231, 186, 0.055);
}

.commercial-asset-section { gap: 5px; }
.commercial-asset-section > span { padding: 3px 5px; color: #729c95; font-size: 10px; font-weight: 750; letter-spacing: 0.06em; }

.commercial-asset-section button {
  min-height: 42px;
  border: 1px solid transparent;
  color: var(--body-ink);
  background: rgba(255, 255, 255, 0.025);
}

.commercial-asset-section button:hover { border-color: rgba(85, 231, 186, 0.16); background: rgba(85, 231, 186, 0.08); }
.commercial-asset-section i { min-width: 34px; color: #72e7c2; }
.commercial-asset-section b { flex: 1; color: var(--body-ink); font-weight: 650; }
.commercial-asset-section button > span { color: #6edbb9; font-size: 10px; white-space: nowrap; }
.commercial-popover .empty-state { padding: 20px 8px; color: #719993; }

.commercial-agent-dialog,
.commercial-project-dialog {
  border: 1px solid rgba(85, 231, 186, 0.22);
  border-radius: 22px;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0, rgba(51, 199, 193, 0.11), transparent 30%),
    linear-gradient(150deg, rgba(5, 31, 28, 0.98), rgba(0, 14, 14, 0.99));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 28px 80px rgba(0, 0, 0, 0.48);
}

.commercial-agent-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(760px, calc(100dvh - 48px));
  padding: 0;
  overflow: hidden;
}

.commercial-agent-dialog [hidden] {
  display: none !important;
}

.commercial-agent-dialog .commercial-popover-head {
  position: relative;
  z-index: 2;
  align-items: flex-start;
  padding: 22px 22px 16px;
  border-bottom: 1px solid rgba(85, 231, 186, 0.14);
  background:
    radial-gradient(circle at 90% 0, rgba(51, 199, 193, 0.13), transparent 34%),
    linear-gradient(150deg, rgba(5, 31, 28, 0.98), rgba(0, 14, 14, 0.99));
}

.commercial-agent-dialog .commercial-popover-head h3 {
  margin: 6px 0 0;
  font-size: 20px;
  line-height: 1.2;
}

.commercial-agent-dialog .commercial-popover-head #commercial-agent-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: rgba(214, 239, 236, 0.72);
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.commercial-agent-dialog .commercial-popover-head #commercial-agent-close:hover {
  border-color: rgba(85, 231, 186, 0.24);
  color: #eafff9;
  background: rgba(85, 231, 186, 0.08);
}

.commercial-agent-dialog .confirm-title,
.commercial-project-dialog .confirm-title { color: var(--ink); }

.commercial-agent-list,
#commercial-agent-form {
  min-height: 0;
  margin: 0;
  padding: 18px 22px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.commercial-agent-list {
  align-content: start;
}

.commercial-agent-list article {
  min-height: 70px;
  padding: 13px 12px;
  border-color: rgba(85, 231, 186, 0.14);
  border-radius: 12px;
  color: var(--body-ink);
  background: rgba(255, 255, 255, 0.025);
}

.commercial-agent-list article > div {
  min-width: 0;
}

.commercial-agent-list article strong {
  display: block;
  overflow: hidden;
  color: #eafff9;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commercial-agent-list article:hover { border-color: rgba(85, 231, 186, 0.28); background: rgba(85, 231, 186, 0.045); }
.commercial-agent-list span { color: #789f99; }
.commercial-agent-list .ghost-button {
  flex: 0 0 auto;
  min-width: 56px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
}

#commercial-agent-form {
  gap: 14px;
  padding-bottom: 0;
}

.commercial-agent-dialog input,
.commercial-agent-dialog textarea,
.commercial-agent-dialog select {
  border-color: rgba(85, 231, 186, 0.16);
  border-radius: 12px;
  color: #eafff9;
  background: rgba(0, 15, 14, 0.58);
}

.commercial-agent-dialog input::placeholder,
.commercial-agent-dialog textarea::placeholder { color: rgba(214, 239, 236, 0.38); }

.commercial-agent-dialog input:focus,
.commercial-agent-dialog textarea:focus,
.commercial-agent-dialog select:focus {
  border-color: rgba(85, 231, 186, 0.52);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(85, 231, 186, 0.07);
}

.commercial-agent-dialog #commercial-agent-prompt {
  min-height: clamp(220px, 30vh, 320px);
  max-height: 42vh;
  line-height: 1.7;
}
.commercial-agent-dialog #commercial-agent-form label:not(.commercial-agent-enabled) { color: #83aaa4; }

.commercial-agent-dialog .commercial-agent-enabled {
  justify-content: flex-start;
  color: var(--body-ink);
}

.commercial-agent-dialog .commercial-agent-enabled input { width: 18px; height: 18px; accent-color: var(--commercial-accent); }
.commercial-agent-dialog .confirm-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 0 -22px;
  padding: 16px 22px 22px;
  border-top: 1px solid rgba(85, 231, 186, 0.12);
  background: linear-gradient(180deg, rgba(0, 14, 14, 0.86), rgba(0, 14, 14, 0.99));
}
.commercial-agent-dialog .confirm-actions .primary-button { border-radius: 999px; background: linear-gradient(135deg, #68edc2, #42cbd3); }
.commercial-agent-dialog .confirm-actions .ghost-button { border-radius: 999px; border-color: rgba(85, 231, 186, 0.22); background: rgba(85, 231, 186, 0.045); }
.commercial-agent-dialog #commercial-agent-add {
  justify-self: end;
  margin: 0 22px 22px;
}

@media (max-width: 760px) {
  .commercial-page .commercial-page-header,
  .commercial-page .commercial-project-row,
  .commercial-page .commercial-submit-row { align-items: stretch; flex-direction: column; }
  .commercial-page .commercial-script-shell,
  .commercial-page #commercial-script { height: 180px; min-height: 180px; }
  .commercial-page #commercial-script { padding: 20px 14px 20px 104px; }
  .commercial-page .commercial-reference-upload-stack { left: 14px; }
  .commercial-page .commercial-script-actions { width: 100%; margin-left: 0; justify-content: flex-end; gap: 7px; }
  .commercial-page .commercial-script-actions .commercial-project-select { width: min(210px, 58vw); min-width: 0; flex: 1 1 auto; }
  .commercial-page .commercial-optimize-history { right: 14px; bottom: 70px; width: calc(100% - 28px); }
  .commercial-page .commercial-parameters label { flex: 1 1 42%; min-width: 120px; }
  .commercial-page .commercial-generate-button { width: 100%; }
}

/* Free creation composer: keep status, controls and the editable area in normal flow. */
.commercial-page .commercial-script-shell {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  grid-template-rows: auto;
  column-gap: 16px;
  min-height: 300px;
  height: auto;
  padding: 20px;
}

.commercial-page .commercial-reference-upload-stack {
  position: static;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.commercial-page #commercial-script {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-height: clamp(260px, 28vh, 340px);
  height: clamp(260px, 28vh, 340px);
  padding: 20px 20px 48px;
}

.commercial-page .commercial-script-count {
  position: static;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  margin: 0 20px 12px;
  max-width: calc(100% - 40px);
  line-height: 1.35;
  text-align: right;
}

.commercial-page .commercial-preflight {
  align-items: flex-start;
}

.commercial-page .commercial-preflight span {
  min-width: 0;
  white-space: normal;
}

.commercial-page .commercial-parameters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  align-items: end;
}

.commercial-page .commercial-parameters label,
.commercial-page .commercial-parameters .select-panel,
.commercial-page .commercial-parameters select {
  min-width: 0;
  width: 100%;
}

.commercial-page .commercial-script-actions {
  width: 100%;
  margin-left: 0;
  align-self: end;
  justify-content: stretch;
}

.commercial-page .commercial-optimize-icon {
  width: 100%;
}

@media (max-width: 760px) {
  .commercial-page .commercial-script-shell {
    grid-template-columns: 74px minmax(0, 1fr);
    column-gap: 12px;
    min-height: 244px;
    padding: 14px;
  }

  .commercial-page #commercial-script {
    min-height: 220px;
    height: 220px;
    padding: 14px 14px 44px;
  }

  .commercial-page .commercial-script-count {
    margin: 0 14px 10px;
  }

  .commercial-page .commercial-parameters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Assets and works libraries share one page-level UI specification. */
.unified-assets-page,
.unified-works-page {
  --library-surface: rgba(3, 18, 17, 0.72);
  --library-surface-strong: rgba(4, 24, 22, 0.9);
  --library-border: rgba(112, 230, 197, 0.14);
  --library-border-hover: rgba(112, 230, 197, 0.34);
  --library-radius: 18px;
  width: 100%;
  height: calc(100dvh - (var(--page-y) * 2));
  min-height: 0;
  padding: 18px 0 32px;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 2%, rgba(25, 172, 132, 0.12), transparent 26%),
    radial-gradient(circle at 8% 32%, rgba(18, 118, 100, 0.07), transparent 28%);
}

.unified-page-header {
  min-height: 82px;
  margin: 0 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--library-border);
}

.unified-page-header .panel-kicker {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.unified-page-header h1 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: clamp(30px, 2.6vw, 38px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.unified-page-header p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.unified-page-header .ghost-button {
  min-width: 82px;
  min-height: 42px;
  padding: 0 17px;
  border-color: var(--library-border-hover);
  border-radius: 12px;
  color: var(--body-ink);
  background: rgba(80, 224, 176, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.unified-page-header .ghost-button::before {
  margin-right: 7px;
  content: "\21BB";
  color: var(--accent);
  font-size: 15px;
}

.unified-page-header .ghost-button:hover {
  border-color: rgba(80, 224, 176, 0.58);
  background: rgba(80, 224, 176, 0.09);
  transform: translateY(-1px);
}

.unified-primary-tabs,
.unified-category-tabs {
  gap: 8px;
}

.unified-category-tabs button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.unified-category-tabs button:hover {
  border-color: var(--library-border-hover);
  color: var(--ink);
  background: rgba(80, 224, 176, 0.07);
}

.unified-category-tabs button.active {
  border-color: rgba(97, 235, 190, 0.9);
  color: #001611;
  background: linear-gradient(135deg, #63e8bb, #4edcae);
  box-shadow: 0 8px 22px rgba(58, 213, 164, 0.14);
}

.unified-primary-tabs button:focus-visible,
.unified-category-tabs button:focus-visible,
.unified-page-header .ghost-button:focus-visible,
.unified-video-asset-switch button:focus-visible,
.unified-work-cover:focus-visible,
.unified-work-actions :is(button, a):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.unified-asset-toolbar input,
.unified-works-toolbar input {
  min-height: 44px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--library-border);
  border-radius: 12px;
  color: var(--ink);
  background-color: rgba(255, 255, 255, 0.028);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238bbab2' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E");
  background-position: 15px 50%;
  background-repeat: no-repeat;
  outline: 0;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.unified-asset-toolbar input::placeholder,
.unified-works-toolbar input::placeholder {
  color: #6f9993;
}

.unified-asset-toolbar input:focus,
.unified-works-toolbar input:focus {
  border-color: rgba(80, 224, 176, 0.68);
  background-color: rgba(80, 224, 176, 0.045);
  box-shadow: 0 0 0 3px rgba(80, 224, 176, 0.08);
}

.unified-asset-summary,
.unified-work-summary {
  color: #91bbb5;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.unified-asset-card,
.unified-work-card {
  position: relative;
  border-color: var(--library-border);
  border-radius: var(--library-radius);
  background: linear-gradient(155deg, rgba(7, 28, 26, 0.94), rgba(2, 15, 15, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 12px 32px rgba(0, 0, 0, 0.12);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.unified-asset-card:hover,
.unified-work-card:hover {
  border-color: var(--library-border-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 18px 38px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.unified-work-card.is-selected {
  border-color: rgba(80, 224, 176, 0.72);
  box-shadow: inset 0 0 0 1px rgba(80, 224, 176, 0.38), 0 18px 38px rgba(0, 0, 0, 0.24);
}

/* Works library */
.unified-works-page .unified-works-toolbar {
  margin: 0;
  padding: 17px 18px;
  border: 1px solid var(--library-border);
  border-bottom: 0;
  border-radius: var(--library-radius) var(--library-radius) 0 0;
  background: var(--library-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.unified-works-page .unified-works-toolbar input {
  width: min(390px, 38vw);
  flex: 0 1 390px;
}

.unified-works-page .unified-work-summary {
  min-height: 39px;
  margin: 0;
  padding: 8px 19px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-right: 1px solid var(--library-border);
  border-left: 1px solid var(--library-border);
  background: var(--library-surface);
}

.unified-work-batch-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.unified-work-batch-actions button {
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid rgba(80, 224, 176, 0.18);
  border-radius: 8px;
  color: #92e8cd;
  background: rgba(80, 224, 176, 0.07);
  cursor: pointer;
}

.unified-work-batch-actions button:hover:not(:disabled) {
  border-color: rgba(80, 224, 176, 0.42);
  color: var(--ink);
  background: rgba(80, 224, 176, 0.13);
}

.unified-work-batch-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.unified-work-batch-actions button.danger {
  border-color: rgba(255, 128, 128, 0.28);
  color: #ffaaa3;
  background: rgba(255, 98, 98, 0.08);
}

.unified-works-page .unified-work-grid {
  min-height: 420px;
  padding: 20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  align-content: start;
  border: 1px solid var(--library-border);
  border-top-color: rgba(112, 230, 197, 0.09);
  border-radius: 0 0 var(--library-radius) var(--library-radius);
  background: rgba(0, 10, 10, 0.38);
}

.unified-works-page .unified-empty,
.unified-assets-page .unified-empty {
  width: 100%;
  min-height: 240px;
  margin: 0;
  padding: 54px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  border: 1px dashed rgba(112, 230, 197, 0.14);
  border-radius: 14px;
  color: #91bbb5;
  background: radial-gradient(circle at 50% 42%, rgba(80, 224, 176, 0.055), transparent 28%);
  line-height: 1.6;
}

.unified-works-page .unified-empty::before,
.unified-assets-page .unified-empty::before {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(80, 224, 176, 0.22);
  border-radius: 15px;
  content: "";
  background:
    linear-gradient(135deg, rgba(80, 224, 176, 0.1), rgba(48, 192, 192, 0.035)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%2350e0b0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='14' rx='3'/%3E%3Cpath d='m10 9 5 3-5 3Z'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 0 24px rgba(80, 224, 176, 0.07);
}

.unified-assets-page .unified-empty::before {
  background:
    linear-gradient(135deg, rgba(80, 224, 176, 0.1), rgba(48, 192, 192, 0.035)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%2350e0b0' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6.5' height='6.5' rx='1.4'/%3E%3Crect x='13.5' y='4' width='6.5' height='6.5' rx='1.4'/%3E%3Crect x='4' y='13.5' width='6.5' height='6.5' rx='1.4'/%3E%3Crect x='13.5' y='13.5' width='6.5' height='6.5' rx='1.4'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.unified-work-cover {
  height: 188px;
  overflow: hidden;
}

.unified-work-select {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  display: none;
  place-items: center;
  border: 1px solid rgba(80, 224, 176, 0.34);
  border-radius: 999px;
  background: rgba(0, 16, 15, 0.74);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.unified-work-card.is-selectable .unified-work-select {
  display: grid;
}

.unified-work-select span {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(164, 242, 219, 0.72);
  border-radius: 999px;
}

.unified-work-card.is-selected .unified-work-select {
  background: rgba(80, 224, 176, 0.92);
}

.unified-work-card.is-selected .unified-work-select span {
  border-color: rgba(0, 24, 20, 0.6);
  background: #05251f;
}

.unified-work-cover::after {
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  content: "";
  pointer-events: none;
  background: linear-gradient(transparent, rgba(0, 8, 8, 0.58));
}

.unified-work-cover video {
  transition: transform 240ms ease, opacity 180ms ease;
}

.unified-work-card:hover .unified-work-cover video {
  opacity: 0.92;
  transform: scale(1.025);
}

.unified-work-cover span {
  z-index: 1;
  width: 46px;
  height: 46px;
  padding-left: 2px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(80, 224, 176, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
}

.unified-work-body {
  padding: 16px;
}

.unified-work-body h3 {
  margin: 12px 0 7px;
  color: var(--ink);
  font-size: 16px;
}

.unified-work-body p {
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(112, 230, 197, 0.09);
  line-height: 1.5;
}

.unified-work-badges b,
.unified-work-badges i {
  border: 1px solid rgba(80, 224, 176, 0.14);
  border-radius: 999px;
  background: rgba(80, 224, 176, 0.07);
}

.unified-work-actions {
  align-items: center;
  gap: 14px;
}

.unified-work-actions button,
.unified-work-actions a {
  color: #77dcbc;
  transition: color 150ms ease;
}

.unified-work-actions button:hover,
.unified-work-actions a:hover {
  color: var(--ink);
}

@media (max-width: 1180px) {
  .unified-works-page .unified-works-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .unified-works-page .unified-works-toolbar input {
    width: 100%;
    flex-basis: 44px;
  }
}

@media (max-width: 760px) {
  .unified-assets-page,
  .unified-works-page {
    height: auto;
    min-height: calc(100dvh - (var(--page-y) * 2));
    padding: 18px 0 30px;
  }

  .unified-page-header {
    min-height: 0;
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .unified-page-header .ghost-button {
    align-self: flex-start;
  }

  .unified-works-page .unified-works-toolbar {
    padding: 14px;
  }

  .unified-category-tabs {
    flex-wrap: nowrap;
    padding-bottom: 3px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .unified-category-tabs::-webkit-scrollbar {
    display: none;
  }

  .unified-category-tabs button {
    flex: 0 0 auto;
  }

  .unified-works-page .unified-work-grid {
    min-height: 360px;
    padding: 14px;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .unified-assets-page *,
  .unified-works-page * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Commercial inspiration carousel — shares the homepage hero's visual proportion. */
.commercial-page .commercial-inspiration-banner {
  --commercial-banner-fade: 900ms;
  position: relative;
  height: clamp(280px, 18vw, 320px);
  min-height: clamp(280px, 18vw, 320px);
  margin-top: calc(-1 * var(--page-y));
  margin-right: calc(-1 * var(--page-x));
  margin-left: calc(-1 * var(--page-x));
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 62% 122% at 23% 46%, rgba(0, 104, 82, 0.1), rgba(0, 67, 55, 0.035) 48%, transparent 80%),
    radial-gradient(ellipse 52% 116% at 82% 46%, rgba(0, 94, 78, 0.075), rgba(0, 51, 46, 0.025) 50%, transparent 82%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 76%, rgba(0, 0, 0, 0.82) 87%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 76%, rgba(0, 0, 0, 0.82) 87%, transparent 100%);
}

.commercial-page .commercial-inspiration-banner::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 14, 13, 0.44) 0%, rgba(0, 14, 13, 0.3) 31%, rgba(0, 14, 13, 0.1) 54%, transparent 76%),
    radial-gradient(ellipse 48% 80% at 24% 46%, rgba(80, 224, 176, 0.055), transparent 76%);
}

.commercial-page .commercial-inspiration-banner::after {
  position: absolute;
  inset: auto -3% 0;
  z-index: 4;
  height: 56%;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 13, 13, 0.12) 48%, rgba(0, 13, 13, 0.4) 100%);
}

.commercial-page .commercial-inspiration-grid {
  position: absolute;
  inset: -42% -8% -62% 36%;
  z-index: 1;
  opacity: 0.2;
  transform: perspective(640px) rotateX(65deg);
  transform-origin: center bottom;
  background-image:
    linear-gradient(rgba(80, 224, 176, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 224, 176, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 18%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 18%, transparent 72%);
}

.commercial-page .commercial-page-header.commercial-inspiration-copy {
  position: relative;
  z-index: 8;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: min(56%, 760px);
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 62px 56px 24px calc(56px + var(--page-x));
  border: 0;
}

.commercial-page .commercial-page-header.commercial-inspiration-copy .panel-kicker {
  margin: 0 0 10px;
  color: #55e7ba;
  font-family: "SFMono-Regular", "Segoe UI Mono", "Consolas", monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-shadow: 0 0 18px rgba(80, 224, 176, 0.48);
}

.commercial-page .commercial-page-header.commercial-inspiration-copy h1 {
  display: flex;
  flex-direction: column;
  width: max-content;
  max-width: 100%;
  margin: 0;
  color: #f4fbff;
  font-size: clamp(34px, 2.7vw, 48px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-shadow: 0 5px 26px rgba(0, 0, 0, 0.46);
}

.commercial-page .commercial-page-header.commercial-inspiration-copy h1 strong {
  margin-top: 5px;
  color: transparent;
  font-size: 0.73em;
  font-weight: inherit;
  line-height: 1.22;
  background: linear-gradient(90deg, #fff 0%, #b9f7e2 44%, #55e7ba 100%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 13px rgba(92, 228, 255, 0.18));
}

.commercial-page .commercial-page-header.commercial-inspiration-copy #commercial-banner-description {
  max-width: 590px;
  margin: 13px 0 0;
  color: rgba(202, 225, 222, 0.7);
  font-size: 12px;
  letter-spacing: 0.035em;
}

.commercial-inspiration-tools {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.commercial-page .commercial-agent-manage {
  position: static;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border-color: rgba(85, 231, 186, 0.22);
  border-radius: 999px;
  color: #dffff6;
  background: rgba(1, 17, 17, 0.68);
  backdrop-filter: blur(14px);
}

.commercial-page .commercial-agent-manage:focus-visible {
  outline: 2px solid #78efff;
  outline-offset: 2px;
}

.commercial-inspiration-stage,
.commercial-inspiration-panel {
  position: absolute;
  inset: 0;
}

.commercial-inspiration-panel {
  z-index: 2;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(16px, 0, 0) scale(0.99);
  transition: opacity var(--commercial-banner-fade) ease, transform var(--commercial-banner-fade) cubic-bezier(0.22, 1, 0.36, 1);
}

.commercial-inspiration-panel.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.commercial-inspiration-panel img {
  position: absolute;
  top: 50%;
  right: -1%;
  width: min(76%, 1180px);
  height: 148%;
  object-fit: contain;
  object-position: right center;
  transform: translateY(-50%);
  filter: saturate(1.08) contrast(1.06) brightness(1.02) drop-shadow(0 16px 22px rgba(0, 0, 0, 0.24));
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 76% 100% at 76% 48%, #000 0%, #000 56%, rgba(0, 0, 0, 0.82) 70%, rgba(0, 0, 0, 0.3) 86%, transparent 100%);
  mask-image: radial-gradient(ellipse 76% 100% at 76% 48%, #000 0%, #000 56%, rgba(0, 0, 0, 0.82) 70%, rgba(0, 0, 0, 0.3) 86%, transparent 100%);
  pointer-events: none;
  user-select: none;
}

.commercial-inspiration-panel[data-commercial-banner-panel="sources"] img {
  width: min(79%, 1260px);
  height: 154%;
}

@media (max-width: 760px) {
  .commercial-page .commercial-inspiration-banner {
    height: 300px;
    min-height: 300px;
  }

  .commercial-page .commercial-page-header.commercial-inspiration-copy {
    align-items: flex-start;
    width: 100%;
    padding: 26px 18px 0 calc(18px + var(--page-x));
  }

  .commercial-page .commercial-page-header.commercial-inspiration-copy h1 {
    font-size: clamp(25px, 7.2vw, 32px);
  }

  .commercial-page .commercial-page-header.commercial-inspiration-copy #commercial-banner-description {
    max-width: calc(100% - 84px);
    font-size: 11px;
  }

  .commercial-inspiration-stage {
    inset: 96px -18px 0;
  }

  .commercial-inspiration-panel img,
  .commercial-inspiration-panel[data-commercial-banner-panel="sources"] img {
    top: 64%;
    right: -38%;
    width: 138%;
    height: 112%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .commercial-inspiration-panel { transition: none; }
}
