﻿/* Final interaction polish: unclipped prompt controls, borderless previews, glass nav. */
.hot-prompt-row {
  align-items: center;
  gap: 8px;
  padding: 2px 2px 3px;
}

.hot-prompt-wrap {
  align-items: center;
}

.hot-prompt-wrap .hot-prompt {
  padding-right: 25px;
}

.hot-prompt-close {
  top: 50%;
  right: 4px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%) scale(0.86);
  box-shadow: 0 6px 14px rgba(244, 63, 94, 0.22);
}

.hot-prompt-close .icon {
  width: 9px;
  height: 9px;
}

.hot-prompt-wrap:hover .hot-prompt-close,
.hot-prompt-wrap:focus-within .hot-prompt-close {
  transform: translateY(-50%) scale(1);
}

.inspiration-grid .example-card,
.inspiration-grid .example-card:hover,
.inspiration-grid .example-card:focus-within {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.inspiration-grid .cover,
.inspiration-grid .cover.tall,
.inspiration-grid .inspiration-cover,
.inspiration-grid .same-style-cover,
.inspiration-grid .same-style-cover:hover,
.inspiration-grid .same-style-cover:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.inspiration-grid .same-style-cover img {
  display: block;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.inspiration-grid .same-style-cover:hover img,
.inspiration-grid .same-style-cover:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.05) contrast(1.02);
}

.nav-list {
  isolation: isolate;
  overflow: visible;
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

:root[data-theme="light"] .nav-list {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.nav-item {
  isolation: isolate;
  overflow: hidden;
  gap: 3px;
  padding: 0 12px;
  transform: translateY(0) scale(1);
  border: 1px solid transparent;
  background: transparent;
  will-change: transform;
  transition:
    transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.nav-item > * {
  position: relative;
  z-index: 2;
}

.nav-item .icon {
  width: 16px;
  height: 16px;
}

.nav-item::before {
  inset: 0;
  background:
    radial-gradient(
      circle at 24% 0%,
      rgba(255, 255, 255, 0.32),
      transparent 40%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.03));
  opacity: 0;
}

.nav-item::after {
  left: -42%;
  top: -70%;
  width: 34%;
  height: 240%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.58),
    transparent
  );
  filter: blur(7px);
  opacity: 0;
  transform: translateX(-140%) rotate(20deg);
  transition:
    transform 0.62s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.2s ease;
}

.nav-item:hover {
  transform: translateY(0) scale(1);
  color: var(--ink);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.24),
      rgba(255, 255, 255, 0.055) 44%,
      rgba(125, 211, 252, 0.14)
    ),
    color-mix(in srgb, var(--panel-strong) 28%, transparent);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 26px rgba(2, 4, 12, 0.16),
    0 0 20px rgba(125, 211, 252, 0.08);
}

.nav-item:hover::before,
.nav-item.active::before {
  opacity: 1;
}

.nav-item:hover::after,
.nav-item:focus-visible::after {
  opacity: 1;
  transform: translateX(520%) rotate(20deg);
}

.nav-item:active {
  transform: translateY(0) scale(0.98);
}

.nav-item:active::after {
  animation: none;
}

.nav-item.active {
  color: #fff;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.3),
      rgba(255, 255, 255, 0.08) 42%,
      rgba(125, 211, 252, 0.2)
    ),
    linear-gradient(135deg, rgba(99, 91, 255, 0.72), rgba(56, 189, 248, 0.34));
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    0 12px 28px rgba(99, 91, 255, 0.26);
}

@media (hover: none) {
  .hot-prompt-close {
    transform: translateY(-50%) scale(1);
  }

  .nav-item:hover {
    transform: none;
  }
}

.toast.busy {
  bottom: 112px;
  max-width: min(620px, calc(100vw - 28px));
  padding: 15px 20px;
  border: 1px solid rgba(125, 211, 252, 0.38);
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.96), rgba(14, 165, 233, 0.9)),
    rgba(15, 23, 42, 0.92);
  box-shadow:
    0 20px 52px rgba(14, 165, 233, 0.28),
    0 0 0 6px rgba(56, 189, 248, 0.1);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
}

.toast.busy::before {
  content: "";
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 9px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.72);
  animation: busyToastPulse 0.9s ease-in-out infinite alternate;
}

.toast.toast-create-dock,
.toast.toast-create-mobile {
  z-index: 20060;
  max-width: min(420px, calc(100vw - 28px));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 46px rgba(2, 4, 12, 0.28);
}

@keyframes busyToastPulse {
  from {
    opacity: 0.45;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .nav-list {
    gap: 10px;
  }

  .nav-item {
    gap: 2px;
    padding: 0 9px;
  }

  .toast.busy {
    bottom: 128px;
    border-radius: 24px;
    font-size: 14px;
  }
}

/* Final top chrome cleanup and nav water animation. */
.topbar {
  width: min(1360px, calc(100% - 48px));
  min-height: 56px;
  margin: 12px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.searchbox input {
  height: 40px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
}

.topbar-actions {
  gap: 12px;
}

.sidebar .nav-list {
  position: relative;
  justify-self: center;
  justify-content: flex-start;
  gap: var(--nav-gap);
  min-width: 0;
  width: calc(var(--nav-item-w) * 3 + var(--nav-gap) * 2);
  isolation: isolate;
  --nav-item-w: 84px;
  --nav-gap: 28px;
}

.sidebar .nav-item {
  width: var(--nav-item-w);
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
}

.sidebar .nav-item:hover {
  background: transparent;
  border-color: transparent;
}

.sidebar .nav-item.active {
  color: #fff;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.sidebar .nav-drop {
  position: absolute;
  left: var(--nav-left, 0px);
  top: 50%;
  width: var(--nav-item-w);
  height: 36px;
  border-radius: 999px;
  transform: translateY(-50%);
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(255, 255, 255, 0.72),
      transparent 22%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.34),
      rgba(255, 255, 255, 0.1) 42%,
      rgba(125, 211, 252, 0.18)
    ),
    linear-gradient(135deg, rgba(99, 91, 255, 0.92), rgba(56, 189, 248, 0.64));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 12px 24px rgba(56, 189, 248, 0.18);
  pointer-events: none;
  z-index: 0;
}

.sidebar .nav-drop::before,
.sidebar .nav-drop::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
}

.sidebar .nav-drop::before {
  left: 10px;
  top: 5px;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.4);
  filter: blur(6px);
  opacity: 0.72;
}

.sidebar .nav-drop::after {
  right: -6px;
  top: 7px;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.32);
  filter: blur(8px);
  opacity: 0.68;
}

.sidebar .nav-list.nav-water-right .nav-drop {
  animation: navWaterRight 0.52s cubic-bezier(0.2, 0.85, 0.2, 1);
}

.sidebar .nav-list.nav-water-left .nav-drop {
  animation: navWaterLeft 0.52s cubic-bezier(0.2, 0.85, 0.2, 1);
}

@keyframes navWaterRight {
  0% {
    transform: translateX(var(--nav-shift, 0px)) translateY(-50%) scaleX(0.72);
    filter: blur(0);
    opacity: 0.92;
  }
  45% {
    transform: translateX(0) translateY(-50%) scaleX(1.18);
    opacity: 1;
  }
  100% {
    transform: translateX(0) translateY(-50%) scaleX(1);
    opacity: 1;
  }
}

@keyframes navWaterLeft {
  0% {
    transform: translateX(var(--nav-shift, 0px)) translateY(-50%) scaleX(0.72);
    filter: blur(0);
    opacity: 0.92;
  }
  45% {
    transform: translateX(0) translateY(-50%) scaleX(1.18);
    opacity: 1;
  }
  100% {
    transform: translateX(0) translateY(-50%) scaleX(1);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .topbar {
    width: calc(100% - 24px);
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    justify-content: space-between;
  }

  .searchbox input {
    height: 38px;
  }

  .sidebar .nav-list {
    --nav-gap: 18px;
    --nav-item-w: 72px;
  }

  .sidebar .nav-drop {
    height: 32px;
  }

  .sidebar .nav-item {
    width: var(--nav-item-w);
    min-height: 32px;
  }
}

/* Emergency positioning fix: keep the ratio panel centered on the prompt box. */
.create-prompt-dock .ratio-picker-panel.floating {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  width: min(282px, calc(100vw - 28px));
}

@media (max-width: 640px) {
  .create-prompt-dock .ratio-picker-panel.floating {
    left: 50%;
    bottom: calc(100% + 10px);
  }
}

/* Ratio picker lives inside the prompt box, never outside its border. */
.prompt-input-box.ratio-open {
  min-height: 314px;
}

.prompt-input-box.ratio-open .prompt-input-floating {
  min-height: 66px;
  max-height: 96px;
}

.prompt-input-box .ratio-picker-panel.floating,
.create-prompt-dock .prompt-input-box .ratio-picker-panel.floating {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 20;
  width: 100%;
  max-width: 360px;
  margin: -2px auto 0;
  padding: 10px;
  transform: none;
}

.prompt-input-box .ratio-picker-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.prompt-input-box .ratio-option {
  min-height: 38px;
  gap: 2px;
  padding: 4px 3px;
  font-size: 11px;
}

.prompt-input-box .ratio-icon {
  display: inline-grid;
  width: 14px;
  height: 14px;
  place-items: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  border: 1.6px solid currentColor;
  border-radius: 4px;
  color: currentColor;
  background: color-mix(in srgb, currentColor 12%, transparent);
}

.prompt-input-box .ratio-icon-auto .icon {
  width: 9px;
  height: 9px;
}

.prompt-input-box .ratio-picker-title {
  margin-bottom: 6px;
}

@media (max-width: 640px) {
  .prompt-input-box.ratio-open {
    min-height: 300px;
  }

  .prompt-input-box .ratio-picker-panel.floating,
  .create-prompt-dock .prompt-input-box .ratio-picker-panel.floating {
    max-width: none;
    width: 100%;
    padding: 9px;
  }

  .prompt-input-box .ratio-option {
    min-height: 36px;
    font-size: 10px;
  }
}

/* Final fixes: compact static nav, non-layout ratio popover inside prompt box. */
.sidebar .nav-list {
  gap: 34px;
  width: auto;
  --nav-gap: 34px;
}

.sidebar .nav-drop {
  display: none;
}

.sidebar .nav-item {
  position: relative;
  transform: none;
  transition:
    color 0.08s ease,
    background 0.08s ease,
    box-shadow 0.08s ease,
    border-color 0.08s ease;
}

.sidebar .nav-item::before,
.sidebar .nav-item::after {
  display: none;
}

.sidebar .nav-item:hover {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.035)
    ),
    color-mix(in srgb, var(--panel-strong) 24%, transparent);
}

.sidebar .nav-item.active {
  transform: translateX(2px);
  color: #fff;
  background:
    radial-gradient(
      circle at 22% 18%,
      rgba(255, 255, 255, 0.62),
      transparent 22%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.28),
      rgba(255, 255, 255, 0.08) 42%,
      rgba(125, 211, 252, 0.18)
    ),
    linear-gradient(135deg, rgba(99, 91, 255, 0.86), rgba(56, 189, 248, 0.54));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 10px 22px rgba(56, 189, 248, 0.16);
}

.prompt-input-box.ratio-open {
  min-height: 104px;
}

.prompt-input-box.ratio-open .prompt-input-floating {
  min-height: 44px;
  max-height: 184px;
}

.prompt-input-box .ratio-picker-panel.floating,
.create-prompt-dock .prompt-input-box .ratio-picker-panel.floating {
  position: absolute;
  left: 50%;
  right: auto;
  top: 12px;
  bottom: auto;
  z-index: 30;
  width: min(420px, calc(100% - 24px));
  max-width: 420px;
  margin: 0;
  padding: 8px;
  transform: translate(-50%, -20px);
}

.prompt-input-box .ratio-picker-title {
  margin: 0 0 5px 2px;
  font-size: 11px;
}

.prompt-input-box .ratio-picker-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}

.prompt-input-box .ratio-option {
  min-height: 30px;
  gap: 1px;
  padding: 3px 2px;
  font-size: 10px;
}

.prompt-input-box .ratio-icon {
  display: inline-grid;
  width: 12px;
  height: 12px;
  place-items: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  color: currentColor;
  background: color-mix(in srgb, currentColor 12%, transparent);
}

.prompt-input-box .ratio-icon-auto .icon {
  width: 8px;
  height: 8px;
}

@media (max-width: 640px) {
  .sidebar .nav-list {
    gap: 20px;
    --nav-gap: 20px;
  }

  .sidebar .nav-item {
    transform: none;
  }

  .sidebar .nav-item.active {
    transform: translateX(2px);
  }

  .prompt-input-box.ratio-open {
    min-height: 88px;
  }

  .prompt-input-box.ratio-open .prompt-input-floating {
    min-height: 36px;
    max-height: 112px;
  }

  .prompt-input-box .ratio-picker-panel.floating,
  .create-prompt-dock .prompt-input-box .ratio-picker-panel.floating {
    top: 10px;
    width: calc(100% - 20px);
    padding: 8px;
  }

  .prompt-input-box .ratio-picker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .prompt-input-box .ratio-option {
    min-height: 28px;
    font-size: 10px;
  }
}

/* Final brand lockup: logo on the left, three-line copy on the right. */
.sidebar .brand {
  min-width: 238px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}

.sidebar .brand-mark {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sidebar .brand-mark img,
.sidebar .brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: scale(1.14);
  transform-origin: center;
  filter: drop-shadow(0 10px 18px rgba(56, 189, 248, 0.16));
}

.sidebar .brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  line-height: 1;
}

.sidebar .brand-title {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: 0;
  white-space: nowrap;
}

.sidebar .brand-ai {
  color: transparent;
  background: linear-gradient(
    128deg,
    #ff8a1f 6%,
    #f250a8 38%,
    #7c3aed 64%,
    #38bdf8 96%
  );
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 6px 20px rgba(124, 58, 237, 0.22);
}

.sidebar .brand-modes {
  color: color-mix(in srgb, var(--muted) 88%, var(--brand) 12%);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transform: translateY(0.5px);
}

.sidebar .brand-subtitle {
  display: block;
  margin: 0;
  color: color-mix(in srgb, var(--muted) 82%, var(--brand));
  font-size: 12px;
  font-weight: 760;
  line-height: 1.18;
  letter-spacing: 0;
  white-space: nowrap;
}

.sidebar {
  background: color-mix(in srgb, var(--nav-glass) 62%, transparent);
  border-bottom-color: color-mix(in srgb, var(--line) 64%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 1px 0 rgba(125, 211, 252, 0.035);
  backdrop-filter: blur(24px) saturate(1.28);
}

@media (max-width: 840px) {
  .sidebar .brand {
    min-width: 202px;
    gap: 9px;
  }

  .sidebar .brand-mark {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .sidebar .brand-title {
    font-size: 21px;
  }

  .sidebar .brand-modes,
  .sidebar .brand-subtitle {
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .sidebar .brand {
    min-width: 0;
    gap: 7px;
  }

  .sidebar .brand-mark {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .sidebar .brand-title {
    font-size: 18px;
  }

  .sidebar .brand-modes,
  .sidebar .brand-subtitle {
    display: block;
    max-width: 130px;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
  }
}

/* Prompt dock final layout: keep controls aligned and float references inside the prompt box. */
.create-prompt-actions {
  --dock-control-width: 100px;
  --dock-control-height: 34px;
  --dock-control-gap: 6px;
  --dock-control-font-size: 12px;
  position: relative;
  z-index: 8;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--dock-control-gap);
}

.create-prompt-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--dock-control-gap);
}

.dock-control-strip {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--dock-control-gap);
  overflow-x: auto;
  flex-wrap: nowrap;
}

.dock-upload-button,
.count-stepper,
.dock-model-picker,
.ratio-picker {
  width: var(--dock-control-width);
  min-width: var(--dock-control-width);
}

.dock-upload-button,
.count-stepper,
.dock-model-picker,
.dock-model-picker select,
.ratio-picker-trigger,
.prompt-enhance-button {
  font-size: var(--dock-control-font-size);
}

.dock-upload-button {
  height: var(--dock-control-height);
  min-height: var(--dock-control-height);
  padding: 0 10px;
  gap: 6px;
  justify-content: center;
  white-space: nowrap;
}

.count-stepper {
  height: var(--dock-control-height);
  min-height: var(--dock-control-height);
  padding: 0 10px;
  gap: 6px;
}

.dock-model-picker {
  position: relative;
  flex: 0 0 var(--dock-control-width);
  width: var(--dock-control-width);
  min-width: var(--dock-control-width);
  max-width: var(--dock-control-width);
  height: var(--dock-control-height);
  min-height: var(--dock-control-height);
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0 22px 0 10px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.09),
      rgba(255, 255, 255, 0.018)
    ),
    color-mix(in srgb, var(--panel) 42%, transparent);
  backdrop-filter: blur(18px) saturate(1.32);
  font-weight: 900;
  white-space: nowrap;
}

.dock-model-picker::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-64%) rotate(45deg);
  pointer-events: none;
}

.dock-model-picker > span,
.dock-model-picker-trigger > span {
  display: none;
}

.dock-model-picker select,
.dock-model-picker-trigger {
  width: 100%;
  height: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
}

.dock-model-picker select {
  appearance: none;
  padding: 0;
  text-overflow: ellipsis;
}

.dock-model-picker select option {
  color: #111827;
  background: #ffffff;
}

.dock-model-picker-trigger strong {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dock-model-picker-trigger.active {
  color: var(--brand);
}

.dock-model-picker-panel.floating {
  position: fixed;
  left: var(--model-panel-left, 8px);
  right: auto;
  bottom: var(--model-panel-bottom, 80px);
  z-index: 20080;
  width: var(--model-panel-width, 176px);
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.88);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.028) 44%
    ),
    rgba(20, 24, 39, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 20px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px) saturate(1.28);
}

.dock-model-picker-title {
  margin: 0 0 8px 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
}

.dock-model-picker-list {
  display: grid;
  gap: 6px;
}

.dock-model-option {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(248, 250, 252, 0.88);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.dock-model-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dock-model-option:hover,
.dock-model-option:focus-visible,
.dock-model-option.active {
  color: #fff;
  border-color: color-mix(in srgb, var(--brand) 52%, rgba(255, 255, 255, 0.16));
  background: color-mix(in srgb, var(--brand) 28%, rgba(255, 255, 255, 0.06));
}

.ratio-picker {
  flex: 0 0 var(--dock-control-width);
  width: var(--dock-control-width);
  min-width: var(--dock-control-width);
}

.ratio-picker-trigger {
  height: var(--dock-control-height);
  min-height: var(--dock-control-height);
  padding: 0 10px;
  gap: 6px;
  font-size: var(--dock-control-font-size);
}

.prompt-submit-stack {
  position: relative;
  width: 48px;
  min-width: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.system-hover-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483647;
  min-width: 74px;
  max-width: min(360px, calc(100vw - 24px));
  max-height: 44px;
  overflow: hidden;
  box-sizing: border-box;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(18, 20, 32, 0.9);
  box-shadow: 0 16px 32px rgba(2, 4, 12, 0.3);
  backdrop-filter: blur(14px);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 6px, 0) scale(0.98);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.system-hover-tooltip.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.system-hover-tooltip__label {
  display: -webkit-box;
  max-height: 30px;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow: hidden;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.prompt-enhance-button {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
}

.prompt-enhance-anchor {
  position: absolute;
  right: 0;
  bottom: calc(100% + 27px);
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.prompt-enhance-button {
  border: 0;
  border-radius: 20px;
  color: rgba(248, 247, 255, 0.96);
  background: transparent;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease;
}

.prompt-enhance-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #ff1892;
  box-shadow: 0 12px 28px rgba(255, 24, 146, 0.3);
  opacity: 0;
  transform: scale(0.88);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.prompt-enhance-anchor:hover .prompt-enhance-button,
.prompt-enhance-anchor:focus-within .prompt-enhance-button,
.prompt-enhance-button:hover,
.prompt-enhance-button:focus-visible {
  color: #fff;
  background: transparent;
  border-color: transparent;
  transform: translateY(-1px);
}

.prompt-enhance-anchor:hover .prompt-enhance-button::after,
.prompt-enhance-anchor:focus-within .prompt-enhance-button::after,
.prompt-enhance-button:hover::after,
.prompt-enhance-button:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.prompt-enhance-icon-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
}

.prompt-enhance-button .icon {
  width: 20px;
  height: 20px;
}

.prompt-enhance-button[aria-busy="true"] {
  color: #fff;
}

.prompt-enhance-button[aria-busy="true"]::after {
  opacity: 1;
  transform: scale(1);
}

.prompt-enhance-button[aria-busy="true"] .icon {
  animation: prompt-enhance-wand-pulse 1.05s ease-in-out infinite;
}

.prompt-enhance-button:disabled {
  opacity: 0.56;
  cursor: default;
  transform: none;
  pointer-events: none;
}

.prompt-enhance-button:disabled::after {
  opacity: 0;
  transform: scale(0.88);
}

.prompt-enhance-button[aria-busy="true"]:disabled {
  opacity: 0.84;
}

.prompt-enhance-button[aria-busy="true"]:disabled::after {
  opacity: 1;
  transform: scale(1);
}

@keyframes prompt-enhance-wand-pulse {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(-10deg) scale(1.08);
  }
}

.create-submit-button {
  position: relative;
  width: 48px;
  height: 48px;
  min-width: 48px;
  flex-basis: 48px;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.create-submit-button::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 50% 24%,
    rgba(255, 255, 255, 0.36) 0%,
    rgba(255, 255, 255, 0.18) 30%,
    transparent 62%
  );
  opacity: 0;
  transform: scale(0.72);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  pointer-events: none;
}

.create-submit-button:hover:not(:disabled),
.create-submit-button:focus-visible:not(:disabled) {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 34px color-mix(in srgb, var(--brand) 34%, transparent);
  filter: saturate(1.08);
}

.create-submit-button:hover:not(:disabled)::after,
.create-submit-button:focus-visible:not(:disabled)::after {
  opacity: 1;
  transform: scale(1);
}

.create-submit-button:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.create-submit-button .icon {
  position: relative;
  z-index: 1;
}

.create-submit-button:disabled {
  transform: none;
  filter: none;
}

.prompt-input-box.has-references {
  min-height: 166px;
}

.prompt-input-box.has-references .prompt-input-floating {
  min-height: 108px;
  padding-top: 70px;
}

.prompt-input-box.has-references .prompt-input-hint {
  top: 76px;
}

.prompt-input-box.has-references.ratio-open {
  min-height: 166px;
}

.prompt-input-box.has-references .ratio-picker-panel.floating,
.create-prompt-dock
  .prompt-input-box.has-references
  .ratio-picker-panel.floating {
  top: 76px;
}

.dock-reference-row {
  left: 12px;
  top: 2px;
  bottom: auto;
  z-index: 6;
  width: max-content;
  max-width: calc(100% - 24px);
}
