:root {
  --bg: #f7f8fa;
  --white: #fff;
  --ink: #232331;
  --muted: #8b8c9c;
  --line: #ececf2;
  --purple: #7857d8;
  --purple-light: #f1edfc;
  --sidebar: #171824;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b7a2ee;
  outline-offset: 3px;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  line-height: 1.4;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 16px;
}
small {
  font-size: 12px;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  z-index: 30;
  background: var(--sidebar);
  color: #9798ab;
  display: flex;
  flex-direction: column;
  padding: 30px 18px 14px;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  color: white;
  padding: 0 12px;
  margin-bottom: 39px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.6px;
}
.brand small {
  display: block;
  letter-spacing: 2.1px;
  font-size: 9px;
  font-weight: 400;
  color: #88899e;
  margin-top: -3px;
}
.brand-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ad8ff2, #7654d5);
  border-radius: 12px;
  font-size: 29px;
  font-style: italic;
  position: relative;
  color: white;
}
.brand-icon span {
  font-size: 16px;
  position: absolute;
  right: 0;
  top: -8px;
  color: #dac7ff;
}
.space-label {
  font-size: 11px;
  letter-spacing: 1px;
  padding: 0 15px;
  margin-bottom: 16px;
  color: #737488;
}
.space-label span {
  float: right;
  font-size: 8px;
  letter-spacing: 1px;
  opacity: 0.6;
  padding-top: 2px;
}
.nav-item {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  text-align: left;
  width: 100%;
  gap: 13px;
  padding: 12px 15px;
  border-radius: 9px;
  font-size: 14px;
  margin-bottom: 5px;
  transition: 0.2s;
}
.nav-item:hover {
  background: #252635;
  color: #e6e1f9;
}
.nav-item.active {
  background: #30283f;
  color: #d6bcff;
}
.nav-item.active .icon {
  color: #b58df4;
}
.nav-item .icon {
  width: 18px;
  height: 18px;
}
.new-label {
  font-size: 8px;
  letter-spacing: 0.4px;
  padding: 1px 4px;
  border-radius: 4px;
  background: #3d3032;
  color: #eab795;
  margin-left: auto;
}
.nav-divider {
  height: 1px;
  background: #2a2a38;
  margin: 23px 14px;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-note {
  margin: 20px 4px 20px;
  padding: 17px 15px;
  background: linear-gradient(130deg, #29253c, #212332);
  border: 1px solid #383145;
  border-radius: 12px;
  position: relative;
}
.sidebar-note .mini-star {
  color: #c4a2f3;
  font-size: 24px;
  display: block;
  line-height: 1.2;
  margin-bottom: 10px;
}
.sidebar-note strong {
  font-size: 12px;
  color: #d3cede;
  display: block;
}
.sidebar-note p {
  font-size: 10px;
  margin-top: 6px;
  color: #8f879e;
}
.setup-link {
  padding: 0;
  background: none;
  border: 0;
  color: #b79ddc;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 16px;
}
.setup-link .icon {
  width: 14px;
  height: 14px;
}
.account {
  width: 100%;
  background: none;
  border: 0;
  border-top: 1px solid #2c2c39;
  padding: 18px 7px 0;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 12px;
  color: #d5d3df;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #353044;
  color: #d6b6ee;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.account small {
  display: block;
  font-size: 9px;
  color: #77788d;
  margin-top: 2px;
}
.account > .icon {
  margin-left: auto;
  width: 15px;
  color: #79778e;
}
.main-wrap {
  margin-left: 236px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 78px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #a1a2ae;
  font-size: 12px;
}
.breadcrumb > .icon {
  width: 12px;
  height: 12px;
}
.breadcrumb strong {
  color: #646472;
  font-size: 12px;
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.model-indicator {
  font-size: 11px;
  color: #898994;
  display: flex;
  align-items: center;
  gap: 7px;
}
.model-indicator:before {
  content: "";
  width: 6px;
  height: 6px;
  background: #a49baa;
  border-radius: 50%;
}
.btn {
  border: 0;
  border-radius: 9px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.6;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}
.btn .icon {
  width: 17px;
  height: 17px;
}
.btn-sm {
  font-size: 12px;
  padding: 9px 15px;
}
.btn-dark {
  background: #272734;
  color: white;
}
.primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 5px 15px #7857d818;
}
.outline {
  border: 1px solid #e1e1e9;
  background: white;
  color: #5e5e70;
}
.soft {
  background: #f0ebfc;
  color: #7957c3;
}
.wide {
  width: 100%;
}
.text-btn {
  background: none;
  border: 0;
  color: #8d79b3;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.text-btn .icon {
  width: 14px;
  height: 14px;
}
.icon-btn {
  border: 0;
  background: none;
  padding: 5px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9a99a9;
}
.icon-btn:hover {
  background: #f1edf8;
  color: var(--purple);
}
.icon-btn .icon {
  width: 17px;
  height: 17px;
}
#main {
  padding: 32px 40px 45px;
  width: 100%;
  max-width: 1650px;
  margin: 0 auto;
  flex: 1;
}
.hero {
  min-height: 340px;
  border: 1px solid #eae5f4;
  border-radius: 17px;
  background:
    radial-gradient(ellipse at 90% 20%, #e2e0f9 0, transparent 65%),
    radial-gradient(ellipse at 40% 100%, #f6e7eb, transparent 70%), #f3f0fa;
  display: flex;
  position: relative;
  overflow: hidden;
}
.hero-copy {
  padding: 37px 35px;
  z-index: 1;
}
.hero-kicker {
  font-size: 9px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9580ae;
  font-weight: 600;
}
.hero-kicker > span {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #b39bcc;
}
.hero h1 {
  font-size: 35px;
  line-height: 1.55;
  letter-spacing: -1.5px;
  margin: 13px 0 12px;
  font-weight: 650;
  color: #30303f;
}
.hero h1 span {
  color: #8260b2;
}
.hero p {
  font-size: 12px;
  line-height: 1.9;
  color: #93909e;
}
.hero-actions {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 22px;
}
.hero-secondary {
  background: transparent;
  color: #8a7e9c;
  font-size: 11px;
  padding-left: 8px;
  box-shadow: none;
}
.hero-meta {
  display: flex;
  gap: 23px;
  font-size: 10px;
  color: #a29aac;
  margin-top: 26px;
}
.hero-meta > span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.hero-meta .icon {
  width: 13px;
  height: 13px;
}
.hero-art {
  position: absolute;
  right: 0;
  top: 0;
  width: 51%;
  height: 100%;
  pointer-events: none;
}
.orbit {
  position: absolute;
  border: 1px solid #d0c5df90;
  border-radius: 50%;
  width: 355px;
  height: 355px;
  left: 20%;
  top: 0;
  transform: rotate(-20deg) scaleY(0.7);
}
.orbit-two {
  width: 450px;
  height: 450px;
  left: 9%;
  top: -42px;
  transform: rotate(23deg) scaleY(0.7);
  border-style: dashed;
  border-color: #d5c7df70;
}
.floating-photo {
  position: absolute;
  padding: 7px 7px 23px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 14px 40px #75608725;
  width: 170px;
  height: 214px;
}
.floating-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.floating-photo > span {
  font-size: 6px;
  letter-spacing: 1.6px;
  position: absolute;
  bottom: 6px;
  left: 11px;
  color: #9992a4;
}
.photo-one {
  left: 15%;
  top: 88px;
  transform: rotate(-12deg);
  z-index: 2;
}
.photo-two {
  left: 48%;
  top: 38px;
  transform: rotate(12deg);
  width: 175px;
  height: 228px;
}
.art-star {
  position: absolute;
  font-size: 82px;
  line-height: 1;
  color: #a98bcb;
  top: 25px;
  left: 15%;
  transform: rotate(15deg);
  text-shadow: 0 4px 15px #a98bcb25;
}
.art-pill {
  position: absolute;
  z-index: 3;
  right: 9%;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffffdd;
  backdrop-filter: blur(10px);
  color: #9680b3;
  border: 1px solid white;
  border-radius: 25px;
  padding: 8px 15px;
  font-size: 8px;
  letter-spacing: 1.3px;
  transform: rotate(-8deg);
  box-shadow: 0 3px 20px #77629210;
}
.art-pill .icon {
  width: 16px;
  height: 16px;
}
.art-dot {
  width: 17px;
  height: 17px;
  background: #e7b89d;
  border-radius: 50%;
  position: absolute;
  right: 12%;
  top: 20%;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 36px;
}
.quick-grid > button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 19px 20px;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 14px;
}
.quick-grid > button:hover {
  border-color: #d8c9ed;
  box-shadow: 0 5px 20px #29234006;
}
.quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.quick-icon .icon {
  width: 22px;
  height: 22px;
}
.lilac {
  background: #f0eafa;
  color: #9470d2;
}
.peach {
  background: #fff0e7;
  color: #d8a17a;
}
.mint {
  background: #e7f3ef;
  color: #78aa98;
}
.quick-grid strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.quick-grid small {
  display: block;
  font-size: 10px;
  color: #a3a2ae;
  margin-top: 4px;
}
.quick-grid > button > .icon {
  width: 14px;
  height: 14px;
  color: #c8c4d0;
  margin-left: auto;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.section-heading h2 {
  font-size: 19px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.section-heading h2 > span {
  background: #eae8f0;
  border-radius: 5px;
  color: #9c91af;
  font-size: 10px;
  font-weight: 400;
  padding: 1px 6px;
  letter-spacing: 0;
}
.section-heading p {
  font-size: 11px;
  color: #9d9ba8;
  margin-top: 5px;
}
.search-box {
  border: 1px solid #e7e6ed;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  min-width: 235px;
}
.search-box .icon {
  width: 15px;
  height: 15px;
  color: #aaa5b5;
}
.search-box input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 11px;
  color: #4b465a;
  background: transparent;
}
.search-box input::placeholder {
  color: #b0aab9;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 23px 0 22px;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 6px 15px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 11px;
  color: #94909f;
}
.filter-chip:hover {
  background: #f0ecf7;
}
.filter-chip.selected {
  color: #8c63c4;
  background: #eee7fa;
  border-color: #e9dff7;
  font-weight: 600;
}
.filter-end {
  font-size: 10px;
  margin-left: auto;
  color: #b1adba;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.template-card {
  border: 1px solid #eae9ef;
  background: white;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  transition: 0.25s;
  min-width: 0;
}
.template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px #34244210;
  border-color: #d5c4e8;
}
.card-cover {
  height: 184px;
  position: relative;
  background: #e8e1d9;
  overflow: hidden;
}
.card-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.template-card:hover .card-cover > img {
  transform: scale(1.05);
}
.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #00000006, #0000 35%, #17132188);
}
.type-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 9px;
  color: white;
  background: #24212b33;
  border: 1px solid #ffffff30;
  border-radius: 4px;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(8px);
}
.type-tag .icon {
  width: 10px;
  height: 10px;
}
.card-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  background: #f9f4ffeb;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 9px;
  color: #9873c4;
}
.card-badge.orange {
  background: #fff0e8;
  color: #c48f66;
}
.cover-title {
  position: absolute;
  left: 18px;
  bottom: 17px;
  font-size: 19px;
  letter-spacing: 1px;
  font-weight: 500;
  color: white;
}
.cover-action {
  position: absolute;
  bottom: 16px;
  right: 14px;
  border: 1px solid #ffffff50;
  background: #ffffff14;
  color: white;
  border-radius: 50%;
  height: 25px;
  width: 25px;
  display: grid;
  place-items: center;
}
.cover-action .icon {
  width: 13px;
  height: 13px;
}
.card-body {
  padding: 16px 17px 14px;
}
.card-body > strong {
  font-size: 13px;
  font-weight: 600;
}
.card-body p {
  font-size: 10px;
  color: #a6a0b0;
  margin-top: 4px;
}
.card-body > span {
  border-top: 1px solid #f2f0f5;
  padding-top: 13px;
  margin-top: 13px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #afa7ba;
}
.card-body i {
  font-style: normal;
  color: #a58bbd;
  display: flex;
  align-items: center;
  gap: 3px;
}
.card-body .icon {
  width: 10px;
  height: 10px;
}
footer {
  padding: 0 40px 22px;
  font-size: 9px;
  color: #bab6c1;
  display: flex;
  justify-content: space-between;
  max-width: 1650px;
  width: 100%;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 5px 0 28px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: #a297b3;
  margin-bottom: 9px;
  font-weight: 600;
}
.page-heading h1 {
  font-size: 27px;
}
.page-heading p {
  font-size: 12px;
  color: #a09aaa;
  margin-top: 9px;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(290px, 0.82fr);
  gap: 24px;
  align-items: start;
}
.editor-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.editor-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 30px;
  padding: 0 26px;
}
.editor-tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 18px 0;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9c94a7;
}
.editor-tabs .icon {
  width: 16px;
  height: 16px;
}
.editor-tabs .selected {
  color: #8861c7;
  border-color: #9166d7;
}
.form-section {
  padding: 23px 25px;
  border-bottom: 1px solid #f1eef5;
}
.field-heading,
.step-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
}
.field-heading h3,
.step-heading h3 {
  font-size: 13px;
  font-weight: 600;
}
.field-heading b,
.step-heading b {
  font-size: 9px;
  color: #aaa1b5;
  font-weight: 400;
}
.field-heading .text-btn,
.step-heading .text-btn {
  margin-left: auto;
  font-size: 11px;
}
.step-heading > span {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #eee7fa;
  color: #9670cb;
  text-align: center;
  font-size: 11px;
  line-height: 22px;
}
.reference-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.upload-tile {
  width: 83px;
  height: 78px;
  background: #faf8fc;
  border: 1px dashed #d9d0e7;
  border-radius: 8px;
  color: #b3a5c6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 9px;
}
.upload-tile .icon {
  width: 19px;
  height: 19px;
}
.upload-tile:hover {
  background: #f0e8fb;
}
.library-tile {
  border: 1px solid #eeebf4;
}
.reference-thumb {
  position: relative;
  width: 83px;
  height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.reference-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.reference-thumb button {
  position: absolute;
  right: -5px;
  top: -5px;
  background: #51475e;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  padding: 0;
  display: grid;
  place-items: center;
}
.reference-thumb .icon {
  width: 11px;
  height: 11px;
}
.field-hint {
  font-size: 10px;
  color: #b2a9bd;
  margin-top: 10px;
}
.prompt-box {
  border: 1px solid #e7e1ef;
  border-radius: 9px;
  overflow: hidden;
  background: #fdfcfe;
}
.prompt-box:focus-within {
  border-color: #ac8ed5;
  box-shadow: 0 0 0 3px #a589ce0b;
}
textarea {
  resize: vertical;
  min-height: 205px;
  width: 100%;
  padding: 15px;
  border: 0;
  background: none;
  outline: 0;
  font-size: 12px;
  line-height: 1.9;
  color: #5d536a;
}
textarea::placeholder {
  color: #b3a9bf;
}
.prompt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: #b2a8bc;
  font-size: 8px;
}
.prompt-footer .icon {
  width: 11px;
  height: 11px;
  margin-right: 3px;
}
.prompt-suggestions {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.prompt-suggestions button {
  border: 0;
  background: #f7f3fc;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 9px;
  color: #a492b8;
}
.protocol-tag {
  font-size: 9px;
  color: #b1a8bd;
  margin-left: auto;
}
.model-box {
  border: 1px solid #ebe4f3;
  border-radius: 8px;
  background: #fcfaff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}
.model-logo {
  width: 32px;
  height: 32px;
  border: 1px solid #e8dff3;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: white;
  color: #9d7bc7;
}
.model-box small {
  font-size: 9px;
  color: #b2a6c0;
  display: block;
}
.model-box strong {
  font-size: 11px;
  display: block;
  color: #7c6a90;
  margin-top: 2px;
  word-break: break-all;
}
.model-box > .text-btn {
  margin-left: auto;
  font-size: 10px;
}
.parameter-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}
.parameter-row > .field-label {
  flex: 1;
  min-width: 0;
}
.field-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: #8a8097;
  font-weight: 500;
}
input:not([type="checkbox"]),
select {
  border: 1px solid #e7e2ed;
  border-radius: 7px;
  background: white;
  padding: 10px 12px;
  outline: 0;
  font-size: 12px;
  color: #686071;
  width: 100%;
  min-width: 0;
}
input:focus,
select:focus {
  border-color: #ad8ad8;
  box-shadow: 0 0 0 3px #a580d208;
}
input::placeholder {
  color: #b5adbd;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='m3 4 3 3 3-3' fill='none' stroke='%23a196ad'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 27px;
}
.parameter-note {
  display: flex;
  gap: 9px;
  font-size: 10px;
  color: #a399b1;
  flex: 1;
  padding-top: 21px;
}
.parameter-note small {
  font-size: 9px;
  color: #b8afc2;
}
.parameter-note .icon {
  width: 17px;
  height: 17px;
}
.generate-footer {
  padding: 22px 25px;
}
.generate-btn {
  width: 100%;
  padding: 12px;
}
.generate-footer > p {
  font-size: 9px;
  color: #b1a7bd;
  text-align: center;
  margin-top: 11px;
}
.result-panel {
  border: 1px solid var(--line);
  background: white;
  border-radius: 15px;
  padding: 22px;
  position: sticky;
  top: 25px;
}
.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.result-heading h3 {
  font-size: 13px;
}
.result-heading .text-btn {
  font-size: 10px;
}
.preview-empty {
  height: 320px;
  background: #faf9fc;
  border: 1px dashed #ebe5f2;
  border-radius: 12px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.preview-symbol {
  width: 65px;
  height: 65px;
  border: 1px solid #e6dcf1;
  background: linear-gradient(145deg, #fff, #eee5f6);
  border-radius: 18px;
  box-shadow: 0 8px 20px #a98dc415;
  display: grid;
  place-items: center;
  color: #b29acb;
  transform: rotate(-8deg);
  margin-bottom: 23px;
}
.preview-symbol .icon {
  width: 29px;
  height: 29px;
}
.preview-empty h3 {
  font-size: 12px;
  color: #9688a6;
  font-weight: 500;
}
.preview-empty p {
  font-size: 10px;
  color: #b4a9bf;
  margin-top: 8px;
  line-height: 1.9;
}
.preview-line {
  height: 1px;
  width: 25px;
  background: #d7c9e3;
  margin: 23px 0 12px;
}
.preview-empty > span {
  font-size: 7px;
  letter-spacing: 1.8px;
  color: #c3b7cd;
}
.creation-tips {
  display: flex;
  gap: 12px;
  margin-top: 23px;
  border-top: 1px solid #f2eef6;
  padding-top: 20px;
}
.creation-tips > .icon,
.creation-tips > span {
  color: #b8a2d0;
}
.creation-tips strong {
  font-size: 10px;
  color: #a293b0;
  font-weight: 500;
}
.creation-tips p {
  font-size: 9px;
  color: #b8acc3;
  margin-top: 4px;
  line-height: 1.9;
}
.video-upload {
  width: 100%;
  border: 1px dashed #dcd1e8;
  border-radius: 9px;
  background: #faf8fd;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  color: #b5a2c6;
}
.video-upload > strong {
  font-size: 12px;
  color: #9884ab;
  font-weight: 500;
}
.video-upload > small {
  font-size: 9px;
  color: #b5a6c4;
}
.button-row {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  margin-top: 12px;
}
.analysis-result {
  background: #faf8fd;
  border: 1px solid #ece5f5;
  border-radius: 8px;
  padding: 13px;
  margin-top: 16px;
  max-height: 220px;
  overflow: auto;
}
.analysis-result strong {
  font-size: 11px;
  color: #9477b4;
}
.analysis-result p {
  white-space: pre-wrap;
  font-size: 11px;
  line-height: 1.9;
  color: #9c8eac;
  margin-top: 7px;
}
.empty {
  grid-column: 1/-1;
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  border: 1px dashed #ded6e8;
  border-radius: 12px;
  background: #fcfbfe;
  padding: 25px;
}
.empty h3 {
  font-size: 15px;
  color: #93869e;
  margin-top: 15px;
}
.empty p {
  font-size: 12px;
  color: #b1a5bb;
  margin-top: 8px;
}
.locked-panel {
  min-height: 430px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.locked-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: #f0e9f9;
  color: #ac8fcf;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
}
.locked-icon .icon {
  width: 28px;
  height: 28px;
}
.locked-panel h2 {
  font-size: 18px;
  color: #83728f;
}
.locked-panel p {
  font-size: 12px;
  color: #ad9fb7;
  margin: 12px 20px 25px;
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 25px;
}
.settings-notice {
  display: flex;
  gap: 12px;
  padding: 17px 20px;
  background: #f0edf9;
  border: 1px solid #e8e1f4;
  border-radius: 10px;
  margin-bottom: 20px;
  color: #9a81b9;
}
.settings-notice strong {
  font-size: 12px;
}
.settings-notice p {
  font-size: 10px;
  margin-top: 4px;
  color: #a394b7;
}
.settings-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 23px;
  margin-bottom: 20px;
}
.settings-card-title {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.settings-card-title h3 {
  font-size: 14px;
}
.settings-card-title p {
  font-size: 10px;
  color: #a99db6;
  margin-top: 4px;
}
.settings-card-title .quick-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.settings-card-title .icon {
  width: 18px;
  height: 18px;
}
.connection-badge {
  margin-left: auto;
  white-space: nowrap;
  border: 1px solid #eee8f3;
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 9px;
  color: #b3a7be;
}
.connection-badge.connected {
  background: #edf7f0;
  color: #7ca087;
  border-color: #deeee2;
}
.settings-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 16px;
}
.settings-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
}
.settings-card-footer code {
  font-size: 9px;
  color: #b0a5be;
  word-break: break-all;
}
.clear-key {
  font-size: 9px;
  color: #b39cb7;
  display: flex;
  gap: 4px;
  align-items: center;
}
.settings-save {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}
.settings-help {
  background: #f1eef7;
  border: 1px solid #e7dfef;
  border-radius: 12px;
  padding: 24px;
  height: max-content;
  position: sticky;
  top: 25px;
}
.settings-help h3 {
  font-size: 16px;
  color: #92809f;
  margin: 10px 0 25px;
}
.settings-help > div {
  display: flex;
  gap: 11px;
  margin-bottom: 20px;
}
.settings-help b {
  font-size: 10px;
  letter-spacing: 1px;
  color: #b29ec6;
  padding-top: 2px;
}
.settings-help p {
  font-size: 11px;
  color: #b0a1bc;
  line-height: 1.9;
}
.settings-help hr {
  border: 0;
  border-top: 1px solid #e4dceb;
  margin: 25px 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 15px 0 30px;
}
.stats-row > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stats-row span {
  font-size: 12px;
  color: #a79aae;
}
.stats-row strong {
  font-size: 26px;
  font-weight: 500;
  color: #8c74a8;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.work-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.work-media {
  height: 220px;
  background: #f2edf7;
  position: relative;
}
.work-media img,
.work-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.status-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  border-radius: 4px;
  background: #fffffff0;
  color: #9e8bab;
  font-size: 9px;
  padding: 3px 7px;
}
.status-tag.failed {
  color: #c68b86;
  background: #fff3f0;
}
.status-tag.completed {
  color: #83a28d;
  background: #f3fcf5;
}
.status-tag.running,
.status-tag.queued {
  color: #a28abb;
  background: #f5efff;
}
.work-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 25px;
  color: #ab99bd;
  text-align: center;
}
.work-placeholder strong {
  font-size: 12px;
}
.work-placeholder p {
  font-size: 10px;
  max-height: 90px;
  overflow: auto;
  word-break: break-word;
}
.work-placeholder.failed {
  background: #faf2f0;
  color: #bd9693;
}
.work-info {
  padding: 14px;
}
.work-info > p {
  font-size: 11px;
  color: #a08fae;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
}
.work-info > div {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 13px;
  border-top: 1px solid #f0ebf5;
  padding-top: 10px;
}
.work-info > div > span {
  font-size: 8px;
  color: #beb0ca;
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 65%;
}
#editor-results > .work-card {
  margin-top: 17px;
}
.assets-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.asset-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.asset-media {
  height: 170px;
  background: #f3eff7;
}
.asset-media img,
.asset-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.asset-info {
  padding: 13px;
}
.asset-info > strong {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  color: #93839f;
}
.asset-info > p {
  font-size: 9px;
  color: #c0b2cb;
  margin-top: 3px;
}
.asset-info > div {
  display: flex;
  align-items: center;
  margin-top: 10px;
  gap: 4px;
}
.asset-info .text-btn {
  font-size: 10px;
  margin-right: auto;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #17132166;
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.modal {
  background: white;
  border: 1px solid #eee7f4;
  border-radius: 19px;
  box-shadow: 0 25px 100px #18132230;
  width: 430px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 26px;
}
.modal-wide {
  width: 740px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 15px;
}
.modal-header h2 {
  font-size: 19px;
}
.login-intro {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 14px 0 23px;
}
.login-intro p {
  font-size: 13px;
  color: #9b88ac;
}
.login-intro small {
  font-size: 10px;
  color: #b4a6c0;
}
.modal .field-label {
  margin-bottom: 15px;
}
.modal-footnote {
  color: #b9adbf;
  font-size: 10px;
  text-align: center;
  margin-top: 15px;
}
.form-error {
  font-size: 11px;
  color: #cb8d88;
  margin-bottom: 12px;
  white-space: pre-wrap;
}
.muted {
  color: #aa9ab6;
  font-size: 12px;
  line-height: 1.9;
  margin: 12px 0 25px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.upload-choice {
  display: flex;
  gap: 15px;
}
.upload-choice > * {
  flex: 1;
}
.picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.picker-item {
  padding: 0;
  border: 1px solid #eee7f4;
  background: #fcfaff;
  border-radius: 10px;
  overflow: hidden;
}
.picker-item img,
.picker-item > span {
  height: 125px;
  width: 100%;
  object-fit: contain;
  display: grid;
  place-items: center;
  color: #b59bc7;
  background: #f3ecf8;
}
.picker-item strong {
  display: block;
  font-size: 10px;
  color: #a28ab5;
  font-weight: 400;
  padding: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.spinner {
  width: 20px;
  height: 20px;
  display: inline-block;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#toast {
  position: fixed;
  bottom: 30px;
  left: calc(50% + 100px);
  transform: translate(-50%, 15px);
  padding: 13px 22px;
  border-radius: 10px;
  background: #30273cef;
  color: #f6efff;
  box-shadow: 0 10px 35px #24193420;
  font-size: 12px;
  z-index: 150;
  max-width: 80%;
  pointer-events: none;
  opacity: 0;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.mobile-menu {
  display: none;
}
.boot-error {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 1550px) {
  .card-cover {
    height: 225px;
  }
  .hero {
    min-height: 375px;
  }
  .hero-copy {
    padding: 45px;
  }
  .hero h1 {
    font-size: 39px;
  }
  .photo-one {
    left: 20%;
    top: 90px;
    width: 190px;
    height: 240px;
  }
  .photo-two {
    left: 50%;
    width: 190px;
    height: 260px;
  }
  .hero-art {
    right: 20px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-wrap {
    margin-left: 210px;
  }
  .topbar {
    padding: 0 27px;
  }
  #main {
    padding: 27px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .hero-copy {
    padding: 30px 27px;
  }
  .hero-art {
    width: 46%;
  }
  .floating-photo {
    width: 140px;
    height: 188px;
  }
  .photo-two {
    width: 140px;
    height: 190px;
    left: 49%;
    top: 50px;
  }
  .photo-one {
    left: 6%;
    top: 95px;
  }
  .art-star {
    left: 5%;
    top: 35px;
    font-size: 65px;
  }
  .art-pill {
    right: 5%;
    font-size: 7px;
    bottom: 38px;
  }
  .hero-meta {
    gap: 15px;
  }
  .quick-grid > button {
    padding: 17px 14px;
    gap: 10px;
  }
  .quick-grid small {
    font-size: 9px;
  }
  .quick-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .template-grid {
    gap: 17px;
  }
  .card-cover {
    height: 160px;
  }
  .cover-title {
    font-size: 16px;
  }
  .assets-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
    gap: 17px;
  }
  .form-section {
    padding: 20px;
  }
  .result-panel {
    padding: 18px;
  }
  .settings-layout {
    grid-template-columns: minmax(0, 1fr) 205px;
    gap: 18px;
  }
  .settings-help {
    padding: 19px;
  }
  .work-media {
    height: 180px;
  }
}
@media (max-width: 1000px) {
  .hero-art {
    opacity: 0.75;
    right: -40px;
  }
  .hero-copy {
    z-index: 3;
  }
  .hero h1 {
    font-size: 29px;
  }
  .hero-art .photo-one {
    left: 2%;
  }
  .hero-art .photo-two {
    left: 40%;
    top: 65px;
  }
  .hero-art .art-star {
    left: 0;
  }
  .hero-art .art-pill {
    display: none;
  }
  .quick-grid {
    gap: 10px;
  }
  .quick-grid small {
    display: none;
  }
  .quick-grid strong {
    font-size: 12px;
  }
  .quick-grid > button > .icon {
    display: none;
  }
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-cover {
    height: 195px;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .result-panel {
    position: static;
  }
  .preview-empty {
    height: 250px;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-help {
    position: static;
    display: none;
  }
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .top-actions {
    gap: 14px;
  }
  .model-indicator {
    display: none;
  }
  .assets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #editor-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  #editor-results > .preview-empty {
    grid-column: 1/-1;
    width: 100%;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: 0.25s;
    width: 236px;
    box-shadow: 15px 0 70px #17182430;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-wrap {
    margin-left: 0;
  }
  .topbar {
    height: 64px;
    padding: 0 20px;
  }
  .breadcrumb {
    gap: 10px;
  }
  .mobile-menu {
    border: 0;
    display: flex;
    background: none;
    padding: 0;
    color: #a49bae;
    margin-right: 4px;
  }
  .breadcrumb > span {
    display: none;
  }
  .breadcrumb > .icon {
    display: none;
  }
  .top-actions .btn {
    font-size: 11px;
    padding: 8px 12px;
  }
  #main {
    padding: 20px;
  }
  .hero {
    min-height: 320px;
  }
  .hero-copy {
    padding: 25px;
  }
  .hero h1 {
    font-size: 29px;
  }
  .hero-art {
    right: -15px;
    opacity: 0.8;
    width: 45%;
  }
  .hero-art .photo-one {
    width: 110px;
    height: 160px;
    left: 0;
    top: 123px;
  }
  .hero-art .photo-two {
    width: 100px;
    height: 145px;
    left: 37%;
    top: 65px;
  }
  .hero-art .art-star {
    font-size: 55px;
    top: 46px;
    left: -8px;
  }
  .hero p {
    font-size: 10px;
  }
  .hero-meta {
    gap: 13px;
    font-size: 8px;
  }
  .hero-actions .btn {
    font-size: 11px;
    padding: 10px 12px;
  }
  .hero-actions .hero-secondary {
    font-size: 9px;
    padding: 0;
  }
  .hero-meta {
    margin-top: 25px;
  }
  .hero-kicker {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .quick-grid {
    gap: 9px;
    margin-bottom: 28px;
    margin-top: 14px;
  }
  .quick-grid > button {
    padding: 13px 9px;
    gap: 7px;
    flex-direction: column;
    text-align: center;
  }
  .quick-grid strong {
    font-size: 11px;
  }
  .quick-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .quick-icon .icon {
    width: 18px;
    height: 18px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading p {
    font-size: 9px;
  }
  .search-box {
    min-width: 0;
    width: 155px;
    padding: 8px;
    gap: 6px;
    margin-top: 2px;
  }
  .search-box input {
    font-size: 9px;
  }
  .template-grid {
    gap: 13px;
  }
  .card-cover {
    height: 180px;
  }
  .filter-chip {
    padding: 5px 10px;
    font-size: 10px;
  }
  .filter-row {
    gap: 4px;
  }
  .filter-end {
    display: none;
  }
  .card-body {
    padding: 12px;
  }
  .card-body strong {
    font-size: 12px;
  }
  .card-body p {
    font-size: 9px;
  }
  .card-body > span {
    font-size: 8px;
  }
  .cover-title {
    left: 13px;
    font-size: 16px;
    letter-spacing: 0;
  }
  .cover-action {
    right: 10px;
    width: 22px;
    height: 22px;
  }
  .card-badge {
    font-size: 8px;
    top: 9px;
    right: 9px;
  }
  .type-tag {
    font-size: 8px;
    left: 9px;
    top: 9px;
  }
  .page-heading {
    margin-top: 3px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading p {
    font-size: 10px;
    max-width: 280px;
  }
  .page-heading > .btn {
    font-size: 10px;
    padding: 8px 10px;
    white-space: nowrap;
  }
  .page-heading .eyebrow {
    font-size: 8px;
  }
  .settings-card {
    padding: 18px;
  }
  .settings-card-title {
    gap: 10px;
  }
  .settings-card-title p {
    font-size: 9px;
  }
  .settings-card-title h3 {
    font-size: 12px;
  }
  .settings-card-title .quick-icon {
    display: none;
  }
  .settings-fields {
    grid-template-columns: 1fr;
  }
  .settings-notice {
    padding: 15px;
  }
  .settings-notice p {
    font-size: 9px;
  }
  .connection-badge {
    font-size: 8px;
  }
  .form-section {
    padding: 20px;
  }
  .editor-tabs {
    padding: 0 20px;
  }
  .prompt-footer {
    font-size: 7px;
  }
  .prompt-footer > span:first-child {
    max-width: 70%;
  }
  .field-heading .protocol-tag {
    font-size: 8px;
  }
  .field-heading h3 {
    font-size: 12px;
  }
  .stats-row {
    gap: 10px;
  }
  .stats-row > div {
    padding: 14px;
    display: block;
  }
  .stats-row strong {
    font-size: 25px;
    display: block;
  }
  .stats-row span {
    font-size: 10px;
  }
  .works-grid {
    gap: 13px;
  }
  .work-media {
    height: 190px;
  }
  .asset-media {
    height: 160px;
  }
  .work-info {
    padding: 10px;
  }
  .work-info > p {
    font-size: 10px;
  }
  .assets-grid {
    gap: 13px;
  }
  .asset-info {
    padding: 10px;
  }
  .asset-info > strong {
    font-size: 10px;
  }
  .asset-info .text-btn {
    font-size: 9px;
  }
  .asset-info > div {
    gap: 0;
  }
  .icon-btn .icon {
    width: 15px;
    height: 15px;
  }
  .modal {
    padding: 22px;
  }
  .modal-header h2 {
    font-size: 17px;
  }
  .picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .picker-item img,
  .picker-item > span {
    height: 120px;
  }
  .modal-backdrop {
    padding: 18px;
  }
  .locked-panel h2 {
    font-size: 16px;
  }
  .locked-panel p {
    font-size: 11px;
  }
  .locked-panel {
    min-height: 360px;
  }
  #toast {
    left: 50%;
    width: max-content;
    max-width: 90%;
    font-size: 11px;
  }
  footer {
    padding: 0 20px 20px;
    font-size: 8px;
  }
}
@media (max-width: 430px) {
  .hero-art {
    opacity: 0.45;
    right: -20px;
    width: 42%;
  }
  .hero-copy {
    padding: 25px 21px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero-actions {
    gap: 7px;
  }
  .hero-meta {
    gap: 14px;
  }
  .hero p {
    font-size: 10px;
  }
  .hero-meta .icon {
    width: 11px;
    height: 11px;
  }
  .hero-art .photo-one {
    left: 4%;
    top: 136px;
    width: 94px;
    height: 135px;
  }
  .hero-art .photo-two {
    left: 30%;
    width: 90px;
    height: 137px;
  }
  .hero-art .art-star {
    font-size: 45px;
    left: -12px;
  }
  .card-cover {
    height: 145px;
  }
  .cover-title {
    font-size: 14px;
    bottom: 14px;
    left: 11px;
  }
  .cover-action {
    display: none;
  }
  .card-body p {
    font-size: 8px;
  }
  .card-body > span {
    font-size: 7px;
  }
  .card-body i {
    font-size: 7px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .search-box {
    width: 140px;
  }
  .stats-row strong {
    font-size: 21px;
  }
  .work-media {
    height: 160px;
  }
  .work-placeholder {
    padding: 15px;
  }
  .work-info > div > span {
    font-size: 7px;
    max-width: 45%;
  }
  .asset-media {
    height: 135px;
  }
  .parameter-row {
    gap: 10px;
  }
  .parameter-note {
    font-size: 9px;
  }
  .parameter-note small {
    font-size: 8px;
  }
  .parameter-row .field-label {
    font-size: 10px;
  }
  .parameter-row select {
    font-size: 10px;
  }
  .button-row .btn {
    font-size: 10px;
    padding: 8px 10px;
  }
  #editor-results {
    grid-template-columns: 1fr;
  }
  .filter-chip {
    padding: 5px 8px;
  }
  .page-heading > .btn .icon {
    display: none;
  }
  .topbar {
    padding: 0 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Readable controls and compact-height navigation. */
.sidebar {
  overflow-y: auto;
}
.nav-item {
  flex-shrink: 0;
}
.hero p {
  font-size: 14px;
}
.hero-kicker {
  font-size: 10px;
}
.hero-meta {
  font-size: 11px;
}
.quick-grid strong {
  font-size: 14px;
}
.quick-grid small {
  font-size: 12px;
}
.section-heading p {
  font-size: 13px;
}
.filter-chip {
  font-size: 13px;
}
.card-body > strong {
  font-size: 15px;
}
.card-body p {
  font-size: 12px;
}
.card-body > span {
  font-size: 11px;
}
.search-box input {
  font-size: 13px;
}
.field-label {
  font-size: 14px;
}
input:not([type="checkbox"]),
select {
  font-size: 14px;
}
textarea {
  font-size: 14px;
}
.field-heading h3,
.step-heading h3 {
  font-size: 15px;
}
.field-hint {
  font-size: 12px;
}
.page-heading p {
  font-size: 14px;
}
.model-box strong {
  font-size: 14px;
}
.model-box small {
  font-size: 11px;
}
.preview-empty h3 {
  font-size: 14px;
}
.preview-empty p {
  font-size: 12px;
}
.settings-card-title h3 {
  font-size: 16px;
}
.settings-card-title p {
  font-size: 12px;
}
.settings-notice p {
  font-size: 12px;
}
.settings-help p {
  font-size: 13px;
}
.asset-info > strong {
  font-size: 13px;
}
.work-info > p {
  font-size: 13px;
  height: 47px;
}
.analysis-result p {
  font-size: 13px;
}
.prompt-suggestions button {
  font-size: 12px;
}
.prompt-footer {
  font-size: 10px;
}
.type-tag {
  font-size: 11px;
}
.card-badge {
  font-size: 11px;
}
.topbar .model-indicator {
  font-size: 12px;
}
.btn {
  font-size: 14px;
}
.text-btn {
  font-size: 13px;
}
.settings-card-footer code {
  font-size: 11px;
}
.connection-badge {
  font-size: 11px;
}
.form-error {
  font-size: 13px;
}
@media (max-height: 820px) {
  .sidebar-note {
    display: none;
  }
  .brand {
    margin-bottom: 27px;
  }
  .nav-divider {
    margin: 15px 14px;
  }
  .account {
    margin-top: 9px;
  }
}
@media (max-width: 760px) {
  .hero p {
    font-size: 12px;
  }
  .hero-meta {
    font-size: 9px;
  }
  .quick-grid strong {
    font-size: 12px;
  }
  .quick-grid small {
    display: none;
  }
  .card-body > strong {
    font-size: 13px;
  }
  .card-body p {
    font-size: 11px;
  }
  .card-body > span {
    font-size: 9px;
  }
  .type-tag,
  .card-badge {
    font-size: 9px;
  }
  .filter-chip {
    font-size: 12px;
    padding: 6px 9px;
  }
  .search-box input {
    font-size: 11px;
  }
  .section-heading p {
    font-size: 11px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-heading > .btn {
    font-size: 11px;
  }
  .btn {
    font-size: 13px;
  }
  .settings-card-title p {
    font-size: 11px;
  }
  .settings-card-title h3 {
    font-size: 14px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero-art {
    opacity: 0.6;
  }
}
.model-value {
  flex: 1;
  min-width: 0;
}
.model-value select {
  border: 0;
  padding: 3px 20px 3px 0;
  background-color: transparent;
  color: #7c6a90;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}
