* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f7f8fb;
  color: #272639;
  font:
    14px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a,
button,
input,
select,
textarea {
  outline-color: #9278ed;
  outline-offset: 4px;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -1.1px;
  line-height: 1.25;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.35px;
  font-weight: 650;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
p {
  line-height: 1.7;
}
small,
.small {
  font-size: 12px;
}
.muted {
  color: #8a899b;
}
.block {
  display: block;
}
.mono {
  font-family: Consolas, monospace;
  font-size: 12px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  padding: 31px 19px 0;
  background: #fff;
  border-right: 1px solid #ececf3;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 730;
  letter-spacing: -0.7px;
  line-height: 1.1;
}
.brand-mark {
  width: 43px;
  height: 45px;
  border-radius: 14px;
  background: #8061d9;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px #8061d91a;
  transform: rotate(-4deg);
}
.brand small {
  display: block;
  color: #9a98ab;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 2.2px;
  margin-top: 7px;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #aaa8bb;
  font-weight: 650;
  margin: 43px 12px 13px;
}
.nav-section {
  margin-top: 32px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 3px 0;
  color: #858296;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 550;
  transition: 0.15s;
}
.nav-link:hover {
  background: #f8f6ff;
  color: #7655cd;
}
.nav-link.selected {
  background: #f0eafb;
  color: #805bcf;
}
.nav-new {
  font-size: 9px;
  border-radius: 5px;
  background: #eee7fb;
  color: #9778d7;
  padding: 2px 5px;
  margin-left: auto;
  letter-spacing: 0.5px;
}
.sidebar-bottom {
  margin-top: auto;
}
.small-note {
  background: #f8f6fc;
  border: 1px solid #efebf7;
  border-radius: 12px;
  margin: 25px 5px 24px;
  padding: 17px 14px;
  color: #a497bc;
  font-size: 11px;
  line-height: 1.8;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 20px 4px;
  border-top: 1px solid #f0edf5;
}
.profile strong {
  font-size: 11px;
  font-weight: 600;
}
.profile small {
  display: block;
  font-size: 9px;
  color: #a2a0af;
  margin-top: 2px;
}
.profile form {
  margin-left: auto;
}
.avatar {
  background: #f5e9de;
  color: #b08b71;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 12px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: #a4a1b3;
  border: 0;
  padding: 7px;
  border-radius: 8px;
}
.icon-button:hover {
  background: #f0eafb;
  color: #7c5bcd;
}
.app-shell {
  margin-left: 238px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid #eaeaf1;
  background: #ffffffc9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
}
.breadcrumb {
  color: #656176;
  font-size: 11px;
}
.breadcrumb span {
  margin: 0 13px;
  color: #c0bdcc;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: #8e8b9f;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #79b89d;
}
.platform-pill {
  border: 1px solid #e7e5ed;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 9px;
  margin-left: 3px;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 35px 38px 50px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 29px;
}
.page-heading p {
  color: #9995a8;
  font-size: 12px;
  margin-top: 10px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 600;
  color: #a09aac;
  margin-bottom: 11px;
}
.heading-star {
  color: #b59ae7;
  font-size: 34px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 12px;
  font-weight: 400;
}
.button {
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
  display: inline-flex;
  gap: 9px;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  transition: 0.15s;
  min-height: 40px;
}
.primary {
  background: #8060d8;
  color: #fff;
  box-shadow: 0 4px 9px #7150c21a;
}
.primary:hover {
  background: #6e4dc7;
  transform: translateY(-1px);
}
.secondary {
  background: white;
  color: #746b8b;
  border-color: #e7e1ef;
}
.secondary:hover {
  background: #f4effc;
}
.dark {
  background: #3b3156;
  color: #fff;
}
.full {
  width: 100%;
}
.small-button {
  min-height: 30px;
  padding: 5px 11px;
  font-size: 10px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 25px;
}
.stat-card {
  background: #fff;
  border: 1px solid #edeaf2;
  padding: 20px 22px;
  border-radius: 12px;
  box-shadow: 0 2px 3px #28223b02;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-icon {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.purple {
  background: #f0eafa;
  color: #9a79d5;
}
.peach {
  background: #fcf0e7;
  color: #cfa481;
}
.green {
  background: #e9f4ee;
  color: #8eb69f;
}
.blue {
  background: #eaf1fb;
  color: #8badd5;
}
.stat-caption {
  font-size: 9px;
  color: #b3aebf;
}
.stat-number {
  font-size: 29px;
  line-height: 1;
  letter-spacing: -0.9px;
  display: block;
  margin-top: 22px;
  font-weight: 600;
}
.stat-label {
  font-size: 11px;
  color: #9690a5;
  display: block;
  margin-top: 10px;
}
.dashboard-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 23px;
}
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  background: #eee5fc;
  padding: 27px 28px;
  min-height: 255px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
}
.light {
  background: #ffffff80;
  color: #8f74ba;
}
.neutral {
  background: #f5f4f8;
  color: #a09aac;
}
.lavender {
  background: #eee7fb;
  color: #9779cb;
}
.hero-card .pill {
  letter-spacing: 0.7px;
  font-size: 8px;
}
.hero-card h2 {
  margin-top: 17px;
  font-size: 25px;
  line-height: 1.28;
  letter-spacing: -0.6px;
  position: relative;
  z-index: 1;
  color: #4f3e68;
}
.hero-card p {
  font-size: 10px;
  color: #9e88b7;
  position: relative;
  z-index: 1;
  margin-top: 10px;
}
.hero-card .button {
  margin-top: 20px;
  font-size: 10px;
  padding: 9px 14px;
  min-height: 36px;
  position: relative;
  z-index: 1;
}
.hero-doodle {
  position: absolute;
  right: 15px;
  bottom: 15px;
  width: 180px;
  height: 200px;
}
.doodle-flower {
  font-size: 190px;
  line-height: 1;
  color: #c6a4ed;
  position: absolute;
  bottom: -10px;
  right: -10px;
  transform: rotate(10deg);
  text-shadow: 1px 1px 0 #a985d0;
}
.doodle-star {
  position: absolute;
  right: 8px;
  top: 0;
  font-size: 53px;
  color: #b898db;
  transform: rotate(15deg);
}
.doodle-smile {
  position: absolute;
  right: 63px;
  bottom: 61px;
  font-size: 38px;
  color: #8865ac;
  line-height: 1;
}
.panel {
  background: #fff;
  border: 1px solid #eae7f0;
  border-radius: 12px;
  padding: 24px;
  min-width: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.section-heading h2 {
  font-size: 14px;
}
.section-heading p {
  font-size: 10px;
  color: #a29aac;
  margin-top: 5px;
}
.activity-panel {
  padding: 25px;
}
.bar-chart {
  display: flex;
  gap: 16px;
  align-items: stretch;
  height: 168px;
  padding: 10px 5px 0;
}
.chart-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.chart-track {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: flex-end;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 39px,
    #f6f4fa 39px,
    #f6f4fa 40px
  );
}
.chart-bar {
  background: #ded1f6;
  border-radius: 5px 5px 0 0;
  width: 65%;
  max-width: 35px;
  margin: auto auto 0;
  min-height: 3px;
}
.chart-column:last-child .chart-bar {
  background: #9b7cdb;
}
.chart-label,
.chart-value {
  font-size: 9px;
  color: #b2a8c2;
  padding-top: 8px;
}
.chart-value {
  padding: 0 0 5px;
}
.section-space {
  margin-top: 28px;
}
.text-link {
  color: #9978cf;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}
.text-link:hover {
  color: #6741b2;
}
.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}
.mini-card {
  background: white;
  border-radius: 10px;
  border: 1px solid #eae7f0;
  display: flex;
  overflow: hidden;
  min-height: 116px;
}
.mini-card:hover {
  box-shadow: 0 6px 16px #7f65ad13;
}
.mini-card-image {
  width: 40%;
  max-width: 112px;
  background: #f6f2fb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c6b4dd;
}
.mini-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mini-card-info {
  padding: 15px 12px;
  min-width: 0;
}
.tiny-label {
  font-size: 8px;
  color: #b4a7c3;
}
.mini-card h3 {
  font-size: 11px;
  line-height: 1.4;
  margin: 5px 0 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}
.status {
  font-size: 9px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 4px 7px;
  white-space: nowrap;
  color: #8b7a9e;
  background: #f4eff9;
}
.status:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.status.published,
.status.succeeded {
  color: #7caa91;
  background: #edf6f0;
}
.status.draft,
.status.queued {
  color: #b69a68;
  background: #fcf6e9;
}
.status.archived,
.status.cancelled {
  color: #a6a0b2;
  background: #f1eef5;
}
.status.failed {
  color: #ce858b;
  background: #fceff1;
}
.status.needs_review {
  color: #bd8b45;
  background: #fff3df;
}
.status.processing,
.status.submitting {
  color: #a88bcf;
  background: #f2ebfc;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}
th {
  color: #aaa2b6;
  font-size: 9px;
  letter-spacing: 0.25px;
  font-weight: 500;
  padding: 0 12px 15px;
}
td {
  padding: 15px 12px;
  border-top: 1px solid #f2eef6;
  font-size: 11px;
  color: #756d85;
}
th:first-child,
td:first-child {
  padding-left: 0;
}
th:last-child,
td:last-child {
  padding-right: 0;
}
.provider-label {
  font-size: 10px;
}
.table-empty {
  text-align: center;
  padding: 50px;
  color: #a99bb9;
}
.tabs {
  display: flex;
  gap: 29px;
  border-bottom: 1px solid #e7e2ee;
  margin-bottom: 23px;
}
.tabs a {
  font-size: 12px;
  padding: 12px 2px 15px;
  color: #a39bab;
  position: relative;
}
.tabs a.active {
  color: #8d69c8;
  font-weight: 600;
}
.tabs a.active:after {
  position: absolute;
  content: "";
  height: 2px;
  bottom: -1px;
  background: #9c78d6;
  left: 0;
  right: 0;
}
.filterbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}
.filterbar select {
  max-width: 190px;
}
.search-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 360px;
  margin: 0;
}
.search-field svg {
  position: absolute;
  left: 13px;
  color: #b7afc2;
}
.search-field input {
  padding-left: 41px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.content-card {
  border: 1px solid #e8e3f0;
  border-radius: 12px;
  background: white;
  overflow: hidden;
  transition: 0.2s;
}
.content-card:hover {
  box-shadow: 0 8px 20px #75619615;
  transform: translateY(-3px);
}
.content-image {
  height: 200px;
  position: relative;
  background: #f2edf9;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.content-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 17px;
}
.content-card:nth-child(3n + 2) .content-image {
  background: #eff5f0;
}
.content-card:nth-child(3n + 3) .content-image {
  background: #f9f1e9;
}
.placeholder-image {
  color: #d5c7e6;
}
.premium-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffffffcf;
  color: #b89968;
  font-size: 8px;
  font-weight: 650;
  border-radius: 5px;
  padding: 4px 7px;
  letter-spacing: 0.5px;
}
.content-card-body {
  padding: 16px 17px;
}
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-title-row h3 {
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.subtle-arrow {
  color: #bcb1cb;
}
.code-label {
  font: 9px/1.4 monospace;
  color: #b5aabd;
  display: block;
  margin-top: 4px;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}
.card-bottom .small {
  font-size: 9px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a69cb4;
  font-size: 11px;
  padding: 22px 0;
}
.pagination > div {
  display: flex;
  gap: 9px;
}
.pagination .button {
  font-size: 10px;
  min-height: 32px;
  padding: 7px 13px;
}
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: #ffffffa1;
  border: 1px dashed #e0d7ef;
  border-radius: 13px;
  color: #c4afd9;
}
.empty-state h2,
.empty-state h3,
.empty-state h1 {
  margin: 17px 0 7px;
  color: #776489;
}
.empty-state h2 {
  font-size: 21px;
}
.empty-state p {
  font-size: 12px;
  color: #aaa0b5;
}
.empty-state .button,
.empty-state .text-link {
  margin-top: 22px;
}
.empty-state.compact {
  padding: 35px 20px;
  background: #fcfbff;
}
.empty-state.compact p {
  font-size: 11px;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr);
  gap: 25px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #7a6b8c;
  font-size: 11px;
  font-weight: 550;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #e7e0ef;
  border-radius: 7px;
  background: #fff;
  padding: 11px 12px;
  color: #72637f;
  min-height: 41px;
  font-size: 12px;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
input::placeholder,
textarea::placeholder {
  color: #c1b5cc;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #a28ac8;
  outline: 2px solid #a28ac820;
  outline-offset: 1px;
}
input[readonly] {
  background: #f8f6fb;
  color: #a49aad;
}
input[type="color"] {
  padding: 4px;
  height: 45px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hint {
  font-size: 10px;
  color: #b0a4bd;
  font-weight: 400;
  line-height: 1.7;
}
.checkbox-label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.7;
  font-size: 11px;
  font-weight: 400;
}
.checkbox-label input {
  width: 15px;
  height: 15px;
  min-height: 0;
  accent-color: #8d69cb;
  margin-top: 3px;
  flex-shrink: 0;
}
.upload-zone {
  position: relative;
  min-height: 260px;
  border: 1.5px dashed #ddcfee;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 15px;
  gap: 9px;
  background: #fcfaff;
  cursor: pointer;
  text-align: center;
  overflow: hidden;
}
.upload-zone:hover,
.upload-zone.dragging {
  background: #f5eefc;
  border-color: #b496d3;
}
.upload-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
  width: 100%;
  height: 100%;
}
.upload-zone strong {
  font-size: 12px;
  font-weight: 550;
  color: #9476ad;
}
.upload-icon {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  background: #f1e8fb;
  color: #b39bce;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.upload-preview:empty {
  display: none;
}
.upload-preview img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}
.upload-zone.has-preview .upload-icon,
.upload-zone.has-preview .studio-upload-art {
  display: none;
}
.file-name {
  font-size: 10px;
  color: #a18ab6;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.small-upload {
  min-height: 190px;
  margin: 17px 0;
}
.back-link {
  margin-bottom: 20px;
}
.notice {
  border-radius: 9px;
  padding: 15px 17px;
  font-size: 11px;
  line-height: 1.7;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.notice.error {
  background: #fff1f2;
  border: 1px solid #f3d6da;
  color: #b2747f;
  margin-bottom: 20px;
}
.notice.warning {
  background: #fff6e9;
  border: 1px solid #efdebf;
  color: #b19564;
  display: block;
}
.notice.subtle {
  background: #f4effb;
  color: #a08bb8;
  border: 1px solid #e9e0f4;
}
.studio-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 25px;
}
.step-label {
  font-size: 12px;
  color: #8d7a9f;
  font-weight: 550;
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 19px;
}
.step-label span {
  background: #f3edf9;
  color: #b19bc8;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 10px;
}
.studio-layout .stack .step-label {
  margin-bottom: 0;
}
.studio-upload {
  display: flex;
  flex-direction: column;
}
.upload-zone.tall {
  flex: 1;
  min-height: 425px;
  gap: 16px;
}
.studio-upload-art {
  position: relative;
  color: #c4acdf;
  margin: 15px 0 9px;
}
.studio-upload-art > span {
  position: absolute;
  right: -19px;
  top: -16px;
  font-size: 25px;
  color: #ccb4e8;
}
.upload-zone.tall strong {
  font-size: 14px;
}
.upload-zone.tall .muted {
  font-size: 11px;
}
.budget-note {
  display: flex;
  gap: 10px;
  font-size: 10px;
  color: #b4a6c1;
  line-height: 1.8;
}
.experiment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.experiment-card {
  border: 1px solid #e7dfef;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.experiment-image {
  height: 160px;
  background: #f3eff8;
  position: relative;
  padding: 15px;
}
.experiment-image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.experiment-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #8e6fbac9;
}
.experiment-play svg {
  width: 13px;
  margin-left: 2px;
}
.experiment-caption {
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #a090af;
  gap: 6px;
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.result-frame {
  background: #f7f3fb;
  min-height: 350px;
  aspect-ratio: 1;
  max-height: 600px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}
.result-frame img,
.result-frame video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.result-placeholder {
  text-align: center;
  color: #c6b0df;
}
.result-placeholder h3 {
  color: #9b82af;
  margin: 16px 0 8px;
}
.result-placeholder p {
  font-size: 11px;
  color: #b3a0c3;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 40px;
  padding-top: 22px;
  border-top: 1px solid #efe8f5;
  margin-top: 25px;
}
.detail-grid dt {
  font-size: 10px;
  color: #b0a2bd;
  margin-bottom: 6px;
}
.detail-grid dd {
  font-size: 11px;
  margin: 0;
  color: #8f7d9f;
  overflow-wrap: anywhere;
}
.prompt-text {
  font-size: 12px;
  color: #aa97ba;
}
.settings-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0;
  border-top: 1px solid #f0eaf5;
  font-size: 11px;
  color: #a38fb4;
}
.setting-value {
  text-align: right;
  font-size: 10px;
  color: #9e8bac;
}
.setting-value.ok {
  color: #8cad99;
}
.setting-value.warning {
  color: #bca174;
}
.settings-layout p {
  font-size: 12px;
}
.event {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 0;
  border-top: 1px solid #f3edf8;
  font-size: 11px;
}
.event-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c1aad9;
}
.event small {
  display: block;
  font-size: 9px;
  margin-top: 3px;
}
.event > span:last-child {
  margin-left: auto;
  font-size: 9px;
}
.guest-shell main {
  padding: 0;
  max-width: none;
}
.login-scene {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
  background: #fff;
}
.login-art {
  position: relative;
  overflow: hidden;
  background: #eae1fa;
  padding: 11vh 8vw;
  color: #725395;
  display: flex;
  flex-direction: column;
}
.login-art > .eyebrow {
  color: #a08ab6;
  letter-spacing: 2px;
}
.login-art h1 {
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -1.8px;
  margin-top: 27px;
  z-index: 2;
  font-weight: 600;
}
.login-art h1 > span {
  color: #b194d0;
  display: block;
  font-size: 75px;
  margin-top: 20px;
}
.login-art p {
  font-size: 14px;
  line-height: 1.9;
  color: #a18bb6;
  margin-top: 20px;
  z-index: 2;
}
.art-shape {
  position: absolute;
}
.art-shape-one {
  width: 330px;
  height: 330px;
  background: #c9ade8;
  border-radius: 44% 56% 58% 42%;
  bottom: -80px;
  right: 20px;
  transform: rotate(25deg);
}
.art-shape-two {
  width: 190px;
  height: 190px;
  background: #dfc8ad;
  border-radius: 45% 55% 42% 58%;
  bottom: 100px;
  right: -90px;
  transform: rotate(-20deg);
}
.art-star {
  position: absolute;
  color: #bfa0dd;
  font-size: 150px;
  bottom: 175px;
  right: 40px;
}
.art-caption {
  margin-top: auto;
  padding-top: 100px;
  font-size: 8px;
  letter-spacing: 2px;
  color: #a38cb8;
  z-index: 2;
}
.login-panel {
  max-width: 400px;
  margin: auto;
  padding: 40px;
  width: 100%;
  box-sizing: content-box;
}
.login-panel .brand {
  margin-bottom: 65px;
}
.login-panel h2 {
  font-size: 27px;
  color: #61516f;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.login-panel > .muted {
  font-size: 12px;
  margin-top: 10px;
}
.login-panel .stack {
  margin-top: 30px;
  gap: 21px;
}
.login-panel .button {
  margin-top: 8px;
}
.login-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 10px;
  color: #bdadc9;
  margin-top: 35px;
}
.login-panel label .muted {
  font-size: 9px;
  font-weight: 400;
}
.error-number {
  font-size: 65px;
  font-weight: 600;
  color: #c3add9;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 10px;
  z-index: 100;
  background: white;
  padding: 10px;
}
.skip-link:focus {
  top: 10px;
}
@media (min-width: 1600px) {
  .content-image {
    height: 240px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .app-shell {
    margin-left: 210px;
  }
  main {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 17px;
  }
  .mini-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-doodle {
    right: -45px;
    opacity: 0.7;
  }
  .hero-card h2 {
    font-size: 23px;
  }
  .experiment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .login-art {
    padding: 10vh 6vw;
  }
  .login-art h1 {
    font-size: 39px;
  }
  .login-panel {
    padding: 35px;
    max-width: 330px;
  }
}
@media (max-width: 960px) {
  .sidebar {
    width: 185px;
  }
  .app-shell {
    margin-left: 185px;
  }
  .brand {
    font-size: 18px;
  }
  .brand-mark {
    width: 35px;
    height: 38px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1.5px;
  }
  .nav-link {
    font-size: 11px;
    gap: 9px;
    padding: 10px;
  }
  .workspace-label {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading > .button {
    font-size: 9px;
    padding: 10px;
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .hero-doodle {
    right: 25px;
    opacity: 1;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .editor-layout,
  .studio-layout,
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .upload-zone.tall {
    min-height: 330px;
  }
  .comparison-grid {
    gap: 15px;
  }
  .result-frame {
    min-height: 230px;
  }
  .login-art h1 {
    font-size: 33px;
  }
  .login-panel {
    padding: 25px;
    max-width: 290px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .experiment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 17px 20px;
    border-bottom: 1px solid #e9e1f1;
  }
  .sidebar .brand {
    font-size: 20px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    margin-top: 20px;
    gap: 7px;
  }
  .sidebar .workspace-label,
  .sidebar-bottom,
  .nav-new {
    display: none;
  }
  .nav-link {
    white-space: nowrap;
    margin: 0;
    gap: 7px;
    padding: 9px 10px;
    font-size: 10px;
  }
  .nav-link svg {
    width: 16px;
  }
  .app-shell {
    margin-left: 0;
  }
  .topbar {
    height: 50px;
    padding: 0 20px;
  }
  .topbar-right,
  .breadcrumb {
    font-size: 9px;
  }
  main {
    padding: 25px 19px;
  }
  .page-heading {
    flex-direction: column;
    gap: 17px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .heading-star {
    font-size: 25px;
    margin-left: 6px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-number {
    font-size: 26px;
  }
  .stat-label {
    font-size: 9px;
  }
  .stat-caption {
    display: none;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-icon {
    width: 32px;
    height: 32px;
  }
  .hero-card {
    padding: 24px;
    min-height: 270px;
  }
  .hero-card h2 {
    font-size: 24px;
  }
  .hero-doodle {
    right: -15px;
    opacity: 0.8;
  }
  .mini-card-grid {
    gap: 10px;
  }
  .mini-card {
    flex-direction: column;
  }
  .mini-card-image {
    height: 100px;
    width: 100%;
    max-width: none;
  }
  .mini-card-info {
    padding: 12px;
  }
  .mini-card h3 {
    max-width: none;
  }
  .panel {
    padding: 20px;
  }
  .tabs {
    gap: 20px;
    overflow: auto;
  }
  .tabs a {
    font-size: 11px;
    white-space: nowrap;
  }
  .filterbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .search-field {
    max-width: none;
    flex-basis: 100%;
  }
  .filterbar select {
    flex: 1;
    max-width: none;
  }
  .catalog-grid {
    gap: 13px;
  }
  .content-image {
    height: 150px;
  }
  .content-card-body {
    padding: 12px;
  }
  .premium-badge {
    font-size: 6px;
    top: 9px;
    right: 9px;
  }
  .card-title-row h3 {
    font-size: 11px;
  }
  .card-bottom {
    gap: 4px;
    flex-wrap: wrap;
  }
  .status {
    font-size: 8px;
  }
  .experiment-grid {
    gap: 13px;
  }
  .experiment-image {
    height: 130px;
  }
  .experiment-caption {
    flex-direction: column;
    align-items: flex-start;
    font-size: 9px;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .login-scene {
    display: block;
  }
  .login-art {
    display: none;
  }
  .login-panel {
    max-width: 350px;
    box-sizing: border-box;
    padding: 50px 25px;
    min-height: 100vh;
  }
  .login-panel .brand {
    margin-bottom: 50px;
  }
  .event {
    flex-wrap: wrap;
  }
  .event > span:last-child {
    margin-left: 20px;
  }
  .setting-row {
    align-items: flex-start;
  }
  .setting-value {
    max-width: 55%;
  }
  .empty-state {
    padding: 50px 15px;
  }
  .page-heading .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
.login-feedback[hidden],
.field-error[hidden] {
  display: none;
}
.field-error {
  font-size: 11px;
  color: #a34857;
  font-weight: 400;
}
.login-panel input[aria-invalid="true"] {
  border-color: #ca8190;
}
.login-panel button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* Compact studio: keep the palette, emphasize content and controls. */
[hidden] {
  display: none !important;
}
.sidebar nav {
  margin-top: 30px;
}
.nav-link {
  font-size: 13px;
}
.workspace-label {
  text-transform: none;
  letter-spacing: 0.3px;
  font-size: 11px;
  margin-top: 25px;
}
main {
  max-width: 1480px;
  padding-top: 32px;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
}
.page-heading {
  margin-bottom: 24px;
}
.button {
  font-size: 12px;
  box-shadow: none;
}
.button:hover,
.content-card:hover {
  transform: none;
}
label {
  font-size: 12px;
  color: #62566f;
}
input,
select,
textarea {
  font-size: 13px;
  color: #4f445e;
}
.hint {
  font-size: 12px;
  color: #82758e;
}
.stat-label,
.setting-row {
  font-size: 12px;
  color: #82758e;
}
.setting-value {
  font-size: 12px;
}
.setting-value.ok {
  color: #548064;
}
.setting-value.warning {
  color: #97722f;
}
.section-heading h2 {
  font-size: 15px;
}
.text-link {
  font-size: 12px;
}
.empty-state {
  padding: 44px 20px;
}
.empty-state.compact {
  padding: 26px 20px;
}
.upload-zone.tall {
  min-height: 330px;
}
.prompt-preview {
  padding-top: 2px;
}
summary {
  cursor: pointer;
  color: #756385;
  font-size: 13px;
  font-weight: 550;
}
.prompt-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #82758e;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 15px;
}
.notice.success {
  background: #edf6f0;
  color: #548064;
}
.login-art {
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-symbol {
  font-size: 300px;
  line-height: 1;
  color: #c4a4e7;
  z-index: 1;
}
.login-panel .brand {
  margin-bottom: 35px;
}
.login-panel h1 {
  color: #61516f;
}
.login-panel .stack {
  margin-top: 25px;
}
@media (max-width: 640px) {
  .sidebar nav {
    margin-top: 18px;
  }
  .sidebar-bottom {
    display: block;
  }
  .profile {
    padding: 12px 0 0;
    margin-top: 14px;
  }
  .profile .avatar {
    display: none;
  }
  .profile small {
    display: none;
  }
  .profile strong {
    font-size: 12px;
  }
  .nav-link {
    font-size: 12px;
  }
  .page-heading .button {
    width: auto;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .upload-zone.tall {
    min-height: 260px;
  }
}

.sidebar {
  overflow-y: auto;
}
.sidebar nav,
.sidebar > .brand {
  flex-shrink: 0;
}
