.unified-ready.unused {
  display: none;
}
.un-creating footer {
  display: none;
}
.unified-ready #page-create {
  height: 100dvh;
  padding: 96px 22px 18px;
  box-sizing: border-box;
}
.creation-app {
  height: 100%;
  width: 100%;
  max-width: none !important;
  display: grid;
  grid-template-columns: 194px minmax(0, 1fr);
  gap: 24px;
  color: var(--fg);
}
.creation-sidebar {
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.creation-new {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.creation-new > span {
  margin-left: auto;
  font-size: 17px;
  font-weight: 300;
}
.creation-sidebar img {
  width: 17px;
  height: 17px;
  opacity: 0.75;
}
.creation-side-label {
  font-size: 10px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  margin: 15px 15px 10px;
}
.creation-side-item {
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--fg-muted);
  font: inherit;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  text-align: left;
  cursor: pointer;
}
.creation-side-item.active {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 3px 14px rgba(53, 74, 94, 0.035);
}
.creation-side-item:hover {
  background: var(--bg-card);
}
.creation-side-item > span {
  margin-left: auto;
  font-size: 10px;
  color: var(--fg-dim);
}
.creation-side-foot {
  margin-top: auto;
  padding: 20px 15px;
  display: grid;
  gap: 12px;
  font-size: 10px;
  color: var(--fg-dim);
  line-height: 1.8;
}
.creation-side-foot a {
  color: var(--fg-muted);
}
.creation-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0 15px 0 0;
}
.creation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 3px 22px;
  flex-shrink: 0;
}
.creation-header > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.creation-header h1 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0;
}
.creation-header > div > span {
  color: var(--fg-dim);
  font-size: 11px;
}
.creation-header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}
.creation-header-actions a {
  font-size: 11px;
  color: var(--fg-muted);
}
.creation-header-actions button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 50%;
  color: var(--fg-muted);
  cursor: pointer;
}
.creation-header-actions button img {
  width: 15px;
  height: 15px;
}
.creation-header-actions [data-mobile-history] {
  display: none;
}
.creation-results {
  min-height: 100px;
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 3px 30px;
  scrollbar-width: thin;
  scrollbar-color: #d9e0e5 transparent;
}
.creation-result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--fg-muted);
  padding: 5px 0 18px;
}
.creation-result-heading span:last-child {
  font-size: 10px;
  color: #aa746d;
}
.creation-record-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.creation-empty-heading {
  grid-column: 1/-1;
  align-self: start;
  text-align: left;
  padding: 12px 0 18px;
}
.creation-empty-heading h2 {
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}
.creation-empty-heading p {
  font-size: 12px;
  color: var(--fg-dim);
}
.creation-inspiration-card {
  min-width: 0;
  padding: 0;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid rgba(100, 125, 148, 0.05);
  border-radius: 17px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.22s,
    box-shadow 0.22s;
}
.creation-inspiration-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.creation-inspiration-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: contain;
  padding: 18px;
  background: linear-gradient(150deg, #f4f6f8, #fbfaf7);
  box-sizing: border-box;
}
.creation-inspiration-card > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 15px;
  color: var(--fg);
  font-size: 12px;
}
.creation-inspiration-card small {
  color: var(--fg-dim);
  font-size: 9px;
  white-space: nowrap;
}
.creation-result-card {
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 17px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.creation-result-media {
  aspect-ratio: 1;
  background: #edf1f4;
}
.creation-preview {
  padding: 0;
  background: none;
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: zoom-in;
}
.creation-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.creation-wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 25px;
  height: 100%;
  min-height: 160px;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse at 25% 15%, #e4eff3, transparent 65%), #f1f4f7;
  text-align: center;
}
.creation-wait i {
  width: 27px;
  height: 27px;
  border: 2px solid rgba(79, 109, 126, 0.14);
  border-top-color: #779aaa;
  border-radius: 50%;
  animation: creation-spin 1.2s linear infinite;
}
.creation-wait strong {
  font-size: 12px;
  font-weight: 400;
  color: #71838f;
}
.creation-wait small {
  font-size: 10px;
  line-height: 1.8;
  color: #97a2aa;
  max-width: 190px;
}
.creation-wait.is-error {
  background: #faf1ee;
}
.creation-wait.is-error > span {
  font-size: 28px;
  color: #c68475;
}
.creation-result-info {
  padding: 15px;
}
.creation-result-info > p {
  font-size: 12px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 10px;
  min-height: 42px;
}
.creation-result-info > span {
  font-size: 9px;
  color: var(--fg-dim);
}
.creation-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
}
.creation-card-actions button,
.creation-card-actions a {
  border: 0;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--fg-muted);
  padding: 7px 9px;
  font-size: 10px;
  cursor: pointer;
}
.creation-card-actions a {
  margin-left: auto;
}
.creation-composer-wrap {
  flex: 0 0 auto;
  position: relative;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 4px 3px 0;
}
.creation-mini-tips {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
}
.creation-mini-tips button {
  border: 1px solid rgba(112, 133, 152, 0.1);
  background: rgba(255, 255, 255, 0.68);
  color: var(--fg-muted);
  border-radius: 24px;
  font-size: 10px;
  padding: 8px 13px;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s;
}
.creation-mini-tips button:hover {
  transform: translateY(-2px);
  background: white;
}
.creation-composer {
  position: relative;
  border: 1px solid rgba(150, 175, 192, 0.35);
  border-radius: 23px;
  padding: 18px 20px 13px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px);
  box-shadow:
    0 12px 45px rgba(86, 111, 136, 0.1),
    0 2px 4px rgba(53, 76, 95, 0.02);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.creation-composer:focus-within {
  border-color: rgba(119, 155, 175, 0.6);
  box-shadow:
    0 12px 45px rgba(86, 111, 136, 0.13),
    0 0 0 3px rgba(140, 173, 192, 0.045);
}
.creation-prompt-label,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.creation-composer textarea {
  resize: none;
  width: 100%;
  min-height: 62px;
  max-height: 160px;
  padding: 2px 0 12px;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 14px;
  line-height: 1.8;
  color: var(--fg);
  outline: none;
  box-sizing: border-box;
}
.creation-composer textarea::placeholder {
  color: #a2acb4;
}
.creation-composer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.creation-control-group {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.creation-control-group button {
  min-height: 35px;
  padding: 7px 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  background: #f3f5f7;
  border: 0;
  border-radius: 10px;
  color: #72808b;
  font-size: 11px;
  cursor: pointer;
}
.creation-control-group img {
  width: 16px;
  height: 16px;
  opacity: 0.65;
}
.creation-select select {
  border: 0;
  outline: none;
  border-radius: 10px;
  min-height: 35px;
  padding: 7px 20px 7px 10px;
  background: #f3f5f7;
  color: #586873;
  font: inherit;
  font-size: 11px;
  max-width: 185px;
  cursor: pointer;
}
.creation-submit {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 30px;
  background: #26353f;
  color: white;
  padding: 8px 16px 8px 19px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(41, 61, 75, 0.12);
  transition:
    transform 0.2s,
    background 0.2s;
  flex-shrink: 0;
}
.creation-submit:hover {
  background: #3d596b;
  transform: translateY(-1px);
}
.creation-submit b {
  font-size: 17px;
  font-weight: 400;
}
.creation-submit small {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
}
.creation-submit:disabled {
  opacity: 0.45;
  cursor: wait;
  transform: none;
}
.creation-composer-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 10px 0;
  color: #a0abb3;
  font-size: 9px;
  line-height: 1.7;
}
.creation-options-panel {
  display: grid;
  grid-template-columns: 110px 150px 1fr;
  gap: 15px;
  padding: 18px 0 5px;
  border-top: 1px solid var(--border);
  margin-top: 15px;
}
.creation-options-panel[hidden] {
  display: none;
}
.creation-options-panel label {
  font-size: 10px;
  color: var(--fg-muted);
  display: grid;
  gap: 6px;
}
.creation-options-panel input,
.creation-options-panel select {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 8px;
  color: var(--fg);
  font: inherit;
}
.creation-options-panel small {
  font-size: 9px;
  color: var(--fg-dim);
}
.creation-reference-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  padding: 6px;
  background: #f6f8fa;
  border-radius: 12px;
  margin-bottom: 13px;
}
.creation-reference-chip img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: white;
  border-radius: 7px;
}
.creation-reference-chip > span {
  font-size: 11px;
  line-height: 1.6;
  color: #637783;
}
.creation-reference-chip small {
  display: block;
  font-size: 9px;
  color: #a0adb5;
}
.creation-reference-chip button {
  border: 0;
  background: none;
  color: #9ba7af;
  padding: 8px;
  cursor: pointer;
  font-size: 18px;
}
.creation-viewer {
  border: 0;
  border-radius: 24px;
  width: min(1000px, calc(100vw - 36px));
  max-height: 90dvh;
  margin: auto;
  padding: 22px;
  background: var(--bg-card);
  color: var(--fg);
  box-sizing: border-box;
}
.creation-viewer::backdrop {
  background: rgba(44, 59, 70, 0.38);
  backdrop-filter: blur(8px);
}
.creation-viewer > img {
  width: 100%;
  height: 65dvh;
  object-fit: contain;
  background: var(--bg-soft);
  border-radius: 16px;
}
.creation-viewer > div {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 5px 0;
  font-size: 12px;
}
.creation-viewer p {
  flex: 1;
  line-height: 1.8;
}
.creation-viewer a {
  color: var(--fg-muted);
  white-space: nowrap;
}
.creation-viewer-close {
  position: absolute;
  right: 32px;
  top: 32px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: #53606b;
  font-size: 24px;
  cursor: pointer;
}
.un-primary {
  border: 0;
  border-radius: 30px;
  background: #26353f;
  color: #fff;
  padding: 13px 19px;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
@keyframes creation-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1300px) {
  .creation-record-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .creation-app {
    grid-template-columns: 172px 1fr;
    gap: 20px;
  }
  .creation-control-group {
    gap: 4px;
  }
  .creation-select select {
    max-width: 150px;
  }
  .creation-main {
    padding-right: 2px;
  }
  .creation-header > div > span {
    display: none;
  }
}
@media (max-width: 1000px) {
  .creation-app {
    grid-template-columns: 150px 1fr;
    gap: 16px;
  }
  .creation-record-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .creation-reference-button span {
    display: none;
  }
  .creation-select select {
    max-width: 124px;
  }
  .creation-submit {
    gap: 5px;
  }
  .creation-submit small {
    display: none;
  }
}
@media (max-width: 800px) {
  .unified-ready #page-create {
    padding: 80px 14px 0;
    height: calc(100dvh - 62px - env(safe-area-inset-bottom));
  }
  .creation-app {
    display: block;
    position: relative;
  }
  .creation-sidebar {
    display: none;
    position: absolute;
    top: 53px;
    left: 0;
    bottom: 0;
    z-index: 110;
    width: 225px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow-lg);
  }
  .creation-app.show-history .creation-sidebar {
    display: flex;
  }
  .creation-main {
    height: 100%;
    padding: 0;
  }
  .creation-header {
    padding: 8px 4px 15px;
  }
  .creation-header h1 {
    font-size: 21px;
  }
  .creation-header-actions {
    gap: 10px;
  }
  .creation-header-actions [data-mobile-history] {
    display: block;
    width: auto;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 10px;
  }
  .creation-header-actions > a {
    font-size: 10px;
  }
  .creation-results {
    padding-bottom: 20px;
  }
  .creation-result-heading {
    padding-bottom: 12px;
    font-size: 10px;
  }
  .creation-result-heading span:last-child {
    font-size: 8px;
    max-width: 160px;
    text-align: right;
  }
  .creation-empty-heading {
    padding: 6px 0 10px;
  }
  .creation-empty-heading h2 {
    font-size: 22px;
    line-height: 1.4;
  }
  .creation-empty-heading p {
    font-size: 10px;
    line-height: 1.8;
  }
  .creation-record-grid {
    gap: 11px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .creation-inspiration-card {
    border-radius: 14px;
  }
  .creation-inspiration-card > img {
    padding: 12px;
    aspect-ratio: 1.1;
  }
  .creation-inspiration-card > span {
    padding: 12px;
    font-size: 11px;
  }
  .creation-inspiration-card small {
    display: none;
  }
  .creation-result-card {
    border-radius: 14px;
  }
  .creation-result-info {
    padding: 11px;
  }
  .creation-result-info > p {
    font-size: 11px;
    min-height: 38px;
  }
  .creation-result-info > span {
    font-size: 8px;
  }
  .creation-card-actions {
    gap: 4px;
    flex-wrap: wrap;
  }
  .creation-card-actions button,
  .creation-card-actions a {
    font-size: 9px;
    padding: 7px;
  }
  .creation-wait {
    padding: 14px;
    gap: 12px;
    min-height: 130px;
  }
  .creation-wait small {
    font-size: 9px;
  }
  .creation-composer-wrap {
    padding: 3px 1px 5px;
  }
  .creation-mini-tips {
    gap: 5px;
    margin-bottom: 9px;
    justify-content: start;
    overflow: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .creation-mini-tips button {
    font-size: 9px;
    padding: 7px 10px;
    flex-shrink: 0;
  }
  .creation-composer {
    border-radius: 19px;
    padding: 14px 12px 10px;
  }
  .creation-composer textarea {
    font-size: 16px;
    min-height: 64px;
    padding-bottom: 10px;
  }
  .creation-composer textarea::placeholder {
    font-size: 12px;
  }
  .creation-composer-controls {
    gap: 6px;
    flex-wrap: wrap;
    position: relative;
    padding-bottom: 0;
  }
  .creation-control-group {
    gap: 4px;
    flex-wrap: wrap;
    padding-right: 66px;
    width: 100%;
  }
  .creation-control-group button {
    padding: 7px;
    min-height: 34px;
  }
  .creation-select select {
    font-size: 10px;
    min-height: 34px;
    max-width: 130px;
    padding: 7px 14px 7px 8px;
  }
  .creation-reference-button span {
    display: none;
  }
  .creation-ratio select {
    max-width: 64px;
  }
  .creation-count select {
    max-width: 64px;
  }
  .creation-submit {
    position: absolute;
    right: 0;
    bottom: 0;
    min-height: 38px;
    width: 61px;
    padding: 8px;
    gap: 6px;
    font-size: 11px;
  }
  .creation-submit b {
    font-size: 14px;
  }
  .creation-submit small {
    display: none;
  }
  .creation-composer-note {
    font-size: 8px;
    margin: 7px 3px 0;
    min-height: 14px;
  }
  .creation-composer-note > span:last-child {
    display: none;
  }
  .creation-options-panel {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-height: 35dvh;
    overflow: auto;
  }
  .creation-negative {
    grid-column: 1/-1;
  }
  .creation-options-panel input,
  .creation-options-panel select {
    font-size: 16px;
    min-height: 40px;
  }
  .creation-reference-chip {
    margin-bottom: 9px;
  }
  .creation-reference-chip img {
    width: 36px;
    height: 36px;
  }
  .creation-reference-chip small {
    display: none;
  }
  .creation-viewer {
    padding: 14px;
    border-radius: 18px;
  }
  .creation-viewer > img {
    height: 52dvh;
  }
  .creation-viewer > div {
    flex-wrap: wrap;
    gap: 14px;
    font-size: 11px;
  }
  .creation-viewer p {
    flex-basis: 100%;
  }
  .creation-viewer-close {
    right: 22px;
    top: 22px;
  }
  .creation-side-item {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .creation-app * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
[data-theme="dark"] .creation-composer,
[data-theme="dark"] .creation-sidebar,
[data-theme="dark"] .creation-side-item.active {
  background: var(--bg-card);
}
[data-theme="dark"] .creation-mini-tips button,
[data-theme="dark"] .creation-control-group button,
[data-theme="dark"] .creation-select select,
[data-theme="dark"] .creation-reference-chip {
  background: var(--bg-soft);
  color: var(--fg-muted);
}
@media (max-width: 800px) and (max-height: 650px) {
  .creation-mini-tips,
  .creation-empty-heading {
    display: none;
  }
  .creation-results {
    min-height: 0;
  }
  .creation-header {
    padding-bottom: 8px;
  }
  .creation-composer textarea {
    min-height: 45px;
    max-height: 75px;
  }
  .creation-options-panel {
    max-height: 110px;
  }
  .creation-composer-note {
    margin-top: 5px;
  }
}
@media (max-width: 800px) {
  .creation-submit {
    width: 78px;
  }
  .creation-control-group {
    padding-right: 84px;
  }
  .creation-submit small {
    display: inline;
    font-size: 8px;
  }
  .creation-submit b {
    display: none;
  }
}
.creation-empty-grid {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 30px;
  box-sizing: border-box;
}
.creation-empty-grid .creation-empty-heading {
  text-align: center;
  padding: 20px;
}
.creation-empty-note {
  display: block;
  margin-top: 20px;
  font-size: 11px;
  color: var(--fg-dim);
}
@media (max-width: 800px) {
  .creation-empty-grid .creation-empty-heading {
    padding: 16px;
  }
  .creation-empty-grid h2 {
    font-size: 22px;
  }
  .creation-empty-grid p {
    line-height: 1.9;
  }
  .creation-empty-note {
    font-size: 10px;
  }
}
