.studio-page {
  background: #fbfcf8;
  color: #27372d;
}
.studio-page button,
.studio-page select,
.studio-page textarea {
  font: inherit;
}
.studio-page [hidden] {
  display: none !important;
}
.studio-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100svh;
}
.studio-sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  background: #f0f3ea;
  border-right: 1px solid #e5e9dd;
  padding: 30px 20px 20px;
  display: flex;
  flex-direction: column;
}
.studio-sidebar .brand {
  padding: 0 7px;
  font-size: 22px;
  gap: 10px;
}
.studio-sidebar .brand-light {
  font-size: 13px;
}
.new-creation {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #2c4233;
  color: #f4f8ed;
  padding: 13px 15px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 550;
  margin: 32px 0 29px;
  box-shadow: 0 4px 8px #233c3210;
}
.new-creation > span:first-child {
  font-size: 18px;
  font-weight: 300;
}
.new-shortcut {
  margin-left: auto;
  color: #c4d2b3;
}
.sidebar-caption {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #919b87;
  padding: 0 14px;
  margin-bottom: 11px;
}
.sidebar-nav {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 12px;
}
.sidebar-nav.is-active {
  background: #e2e9d7;
  color: #3d5634;
  font-weight: 550;
}
.sidebar-nav > span:first-child {
  font-size: 19px;
}
.nav-dot {
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7b9860;
}
.history-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #828e76;
  font-size: 11px;
  padding: 28px 13px 13px;
}
.history-heading > span:last-child {
  font-size: 9px;
  color: #8c997d;
  background: #e6ebdf;
  padding: 2px 6px;
  border-radius: 4px;
}
.conversation-list {
  overflow: auto;
  flex: 1;
  min-height: 90px;
}
.conversation-link {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  padding: 11px 13px;
  color: #6c7960;
  border-radius: 7px;
}
.conversation-link > span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conversation-link:hover,
.conversation-link.is-current {
  background: #e4ebda;
  color: #344c2d;
}
.conversation-link > span:first-child {
  font-size: 17px;
  flex: none;
}
.history-empty {
  font-size: 11px;
  line-height: 1.9;
  color: #8f9b82;
  padding: 5px 13px;
}
.sidebar-bottom {
  border-top: 1px solid #dfe6d6;
  padding-top: 17px;
  margin-top: 15px;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
}
.avatar {
  width: 34px;
  height: 34px;
  border: 1px solid #d2ddc5;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  background: #e2ebd6;
  color: #617c48;
}
.user-card > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.user-card strong {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-card small {
  display: block;
  font-size: 9px;
  margin-top: 5px;
  color: #7f8e71;
}
.user-card > span:last-child {
  font-size: 16px;
  color: #859777;
}
.sidebar-logout {
  border: 0;
  background: none;
  font-size: 10px !important;
  color: #8e9c7f;
  padding: 12px 0 0 50px;
}
.studio-main {
  min-width: 0;
}
.studio-topbar {
  height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  border-bottom: 1px solid #eef0e8;
  font-size: 11px;
}
.studio-topbar > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
.breadcrumb {
  color: #929a88;
}
.breadcrumb-slash {
  color: #bcc4b2;
}
.model-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  border: 1px solid #e2e8d8;
  padding: 8px 11px;
  border-radius: 7px;
  background: #fff;
}
.beta-label {
  font-size: 7px;
  letter-spacing: 0.5px;
  background: #eef3e4;
  color: #829369;
  padding: 3px 5px;
  border-radius: 3px;
}
.studio-content {
  max-width: 1030px;
  margin: 0 auto;
  padding: 52px 58px 20px;
}
.studio-welcome {
  text-align: center;
}
.studio-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #8d9c77;
}
.little-spark {
  font-size: 17px;
  color: #7f9c52;
}
.studio-welcome h1 {
  font-size: 39px;
  line-height: 1.5;
  letter-spacing: -1.3px;
  font-weight: 600;
  margin: 19px 0 13px;
}
.studio-welcome h1 > span {
  color: #7f9b51;
}
.studio-welcome > p {
  font-size: 12px;
  line-height: 1.9;
  color: #849071;
}
.mobile-break {
  display: none;
}
.capability-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 30px;
}
.capability-pills span {
  font-size: 9px;
  letter-spacing: 0.2px;
  border: 1px solid #e4eadb;
  background: #f5f7ef;
  border-radius: 5px;
  padding: 6px 10px;
  color: #6d8154;
}
.image-composer {
  position: relative;
  background: white;
  border: 1px solid #d8e2cb;
  border-radius: 15px;
  padding: 18px;
  box-shadow:
    0 8px 32px #36511e06,
    0 1px 3px #36511e06;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.image-composer:focus-within {
  border-color: #9bb67b;
  box-shadow:
    0 0 0 3px #dde9c744,
    0 8px 28px #36511e06;
}
.image-composer textarea {
  display: block;
  resize: vertical;
  width: 100%;
  max-height: 220px;
  min-height: 86px;
  border: 0 !important;
  box-shadow: none;
  outline: none;
  background: none;
  color: #34452d;
  font-size: 13px;
  line-height: 1.8;
  padding: 4px 3px 15px;
}
.image-composer textarea::placeholder {
  color: #9da98e;
}
.composer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 9px;
}
.composer-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.upload-reference {
  border: 0;
  background: #f2f6e9;
  border-radius: 6px;
  padding: 8px 10px;
  color: #748a55;
  font-size: 11px !important;
  display: flex;
  align-items: center;
  gap: 5px;
}
.upload-reference:hover {
  background: #e7efd9;
}
.tool-divider {
  height: 15px;
  width: 1px;
  background: #e7ecdf;
}
.size-control {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #8d9a79;
  font-size: 12px;
}
.size-control select {
  appearance: auto;
  border: 0;
  outline: none;
  background: transparent;
  color: #758366;
  font-size: 10px;
  padding: 7px 0;
  cursor: pointer;
  max-width: 110px;
}
.generate-button {
  background: #d9ecab;
  border: 1px solid #c8de99;
  border-radius: 7px;
  min-height: 37px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 19px;
  color: #3d5728;
  font-size: 11px !important;
  font-weight: 600 !important;
  transition: background 0.2s;
}
.generate-button:hover {
  background: #cde594;
}
.generate-button > span:last-child {
  font-size: 16px;
}
.generate-button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.composer-note {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 9px;
  color: #929f80;
  margin: 13px 4px 0;
  line-height: 1.8;
}
.prompt-count {
  white-space: nowrap;
}
.composer-error {
  padding: 13px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  background: #fff0e8;
  border: 1px solid #ebd4c6;
  border-radius: 8px;
  color: #9b5938;
}
.reference-preview {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #f5f8ef;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 10px;
  max-width: 340px;
}
.reference-preview img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 5px;
}
.reference-preview strong {
  font-size: 11px;
  display: block;
  font-weight: 500;
}
.reference-preview div > span {
  font-size: 9px;
  color: #8b9a76;
  display: block;
  margin-top: 5px;
}
.icon-button {
  border: 0;
  background: transparent;
  padding: 5px;
  font-size: 22px !important;
  color: #8b9c76;
}
.remove-reference {
  margin-left: auto;
}
.drop-overlay {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  border: 2px dashed #8cab60;
  border-radius: 13px;
  background: #f1f7e7f5;
  color: #718d4f;
  font-size: 14px;
}
.image-composer.is-dragging .drop-overlay {
  display: flex;
}
.inspiration {
  margin-top: 38px;
}
.inspiration-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.inspiration-heading h2 {
  font-size: 12px;
  font-weight: 550;
  margin: 0;
}
.inspiration-heading > span {
  font-size: 9px;
  color: #939f82;
}
.inspiration-heading > span > span {
  font-size: 16px;
  margin-left: 8px;
}
.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.inspiration-card {
  border: 1px solid #e4e9dc;
  background: white;
  text-align: left;
  padding: 5px;
  border-radius: 11px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.inspiration-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px #354f2310;
}
.inspiration-art {
  height: 143px;
  position: relative;
  border-radius: 7px;
  overflow: hidden;
}
.inspiration-card > div:last-child {
  padding: 12px 9px 8px;
}
.inspiration-card strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
  letter-spacing: -0.3px;
}
.inspiration-card > div > span:not(.art-counter) {
  display: block;
}
.inspiration-card > div:last-child > span {
  font-size: 9px;
  color: #98a089;
  margin-top: 7px;
}
.inspiration-card i {
  font-style: normal;
  float: right;
  font-size: 14px;
  margin-top: -5px;
}
.art-counter {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #ffffffc0;
  font-size: 8px;
  letter-spacing: 1px;
}
.art-product {
  background: linear-gradient(135deg, #e8e1d4, #c2c9ae);
}
.art-circle {
  position: absolute;
  bottom: -40px;
  left: 20%;
  width: 150px;
  height: 100px;
  transform: rotate(-15deg);
  border-radius: 50%;
  background: #e5e2d2;
  box-shadow:
    0 -4px 0 #f4f2e8,
    10px 14px 22px #69715444;
}
.ceramic-cup {
  position: absolute;
  left: calc(50% - 29px);
  top: 33px;
  width: 58px;
  height: 64px;
  border-radius: 3px 3px 24px 24px;
  background: linear-gradient(90deg, #88997b, #c8d7b8 40%, #9bb08b);
  box-shadow: 9px 13px 17px #626c4b3b;
  transform: rotate(-9deg);
}
.ceramic-cup:before {
  content: "";
  position: absolute;
  width: 29px;
  height: 32px;
  border: 8px solid #a7b896;
  border-radius: 50%;
  right: -22px;
  top: 10px;
  z-index: -1;
}
.ceramic-cup:after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 58px;
  height: 11px;
  border-radius: 50%;
  background: #6a7a5c;
  border: 4px solid #b6c7a5;
  box-sizing: border-box;
}
.art-house {
  background: linear-gradient(#c3cdb7, #8d9c7d);
  isolation: isolate;
}
.forest-sun {
  position: absolute;
  top: 15px;
  right: 35px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e8e8cc;
  filter: blur(1px);
}
.forest-tree {
  position: absolute;
  bottom: 0;
  width: 22px;
  height: 130px;
  background: #4b654855;
  transform: rotate(6deg);
}
.tree-one {
  left: 25px;
}
.tree-two {
  right: 16px;
  width: 16px;
  background: #5e735747;
}
.little-house {
  position: absolute;
  width: 100px;
  height: 63px;
  bottom: 22px;
  left: calc(50% - 40px);
  background:
    repeating-linear-gradient(90deg, transparent 0 23px, #475a47 23px 27px),
    linear-gradient(130deg, #e3d4a7, #7e947b);
  border: 5px solid #4b5f4c;
  box-shadow: 10px 13px 0 #60755740;
  transform: skewY(-9deg);
}
.little-house:before {
  content: "";
  position: absolute;
  top: -16px;
  left: -15px;
  width: 120px;
  height: 12px;
  background: #465a49;
}
.art-orbit {
  background: linear-gradient(135deg, #e5e4d5, #c4cfb3);
}
.mini-orb {
  width: 73px;
  height: 73px;
  position: absolute;
  left: calc(50% - 36px);
  top: 35px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 22%,
    #f4f6d9,
    #b9cb98 43%,
    #6e8c58 80%,
    #597146
  );
  box-shadow: 15px 17px 24px #70855738;
}
.mini-orbit {
  position: absolute;
  left: calc(50% - 72px);
  top: 56px;
  width: 145px;
  height: 35px;
  border: 1px solid #7c8e64;
  border-radius: 50%;
  transform: rotate(-31deg);
}
.mini-star {
  position: absolute;
  right: 20%;
  top: 16px;
  color: #f7f8e9;
  font-size: 29px;
}
.inspiration-disclaimer {
  font-size: 8px;
  text-align: center;
  color: #a0aa92;
  margin-top: 15px;
}
.studio-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7px;
  letter-spacing: 1.7px;
  color: #a5ae97;
  border-top: 1px solid #edf0e6;
  margin-top: 28px;
  padding-top: 19px;
}
.studio-footer > span {
  font-size: 20px;
  color: #91a574;
}
.conversation-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #e8eddf;
  padding-bottom: 25px;
  margin-bottom: 24px;
}
.conversation-heading h1 {
  font-size: 23px;
  font-weight: 550;
  line-height: 1.6;
  margin: 12px 0 0;
  overflow-wrap: anywhere;
}
.saved-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 9px;
  color: #8e9d78;
}
.has-conversation {
  padding-top: 33px;
}
.turns {
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.turn {
  min-width: 0;
}
.user-message,
.assistant-message {
  display: flex;
  gap: 13px;
}
.user-message {
  margin-bottom: 22px;
}
.message-avatar,
.assistant-avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  flex: none;
  font-size: 11px;
  background: #e8eedf;
  color: #718b4f;
}
.assistant-avatar {
  background: #dfeec7;
  font-size: 21px;
  color: #779c45;
}
.message-author {
  font-size: 11px;
  font-weight: 600;
  display: block;
  margin: 6px 0 9px;
}
.assistant-label {
  font-size: 8px;
  margin-left: 7px;
  font-weight: 400;
  color: #889c70;
  background: #edf3e5;
  border-radius: 4px;
  padding: 2px 5px;
}
.user-message > div,
.assistant-content {
  min-width: 0;
  flex: 1;
}
.user-message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.85;
  margin: 0;
}
.reference-thumb {
  display: block;
  max-width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid #e0e7d7;
  margin-top: 11px;
}
.result-caption {
  font-size: 11px;
  color: #8b987b;
  line-height: 1.8;
  margin: 0 0 15px;
}
.result-image-link {
  display: block;
  max-width: 560px;
}
.result-image {
  width: auto;
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  background: #edf2e5;
}
.result-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 13px;
}
.download-button,
.use-image-button,
.retry-prompt {
  font-size: 10px !important;
  border: 1px solid #dbe5cc;
  border-radius: 6px;
  padding: 8px 10px;
  color: #647d43;
  background: #f3f7eb;
}
.use-image-button {
  background: white;
}
.result-actions > span {
  font-size: 9px;
  color: #9aa789;
  margin-left: auto;
}
.generation-progress {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px;
  border: 1px solid #e4ecd8;
  background: linear-gradient(120deg, #f2f6e9, #fafcf7);
  border-radius: 11px;
  min-height: 120px;
}
.generation-progress strong {
  font-size: 12px;
  font-weight: 500;
}
.generation-progress p {
  font-size: 10px;
  line-height: 1.8;
  color: #8a9b75;
}
.generation-spinner {
  width: 28px;
  height: 28px;
  flex: none;
  border: 2px solid #dce8c7;
  border-top-color: #85a557;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}
.generation-error {
  background: #fff3eb;
  border: 1px solid #ecdccc;
  border-radius: 10px;
  padding: 17px;
}
.generation-error p {
  font-size: 12px;
  color: #a17450;
  line-height: 1.8;
}
.retry-prompt {
  background: white;
  border-color: #e1d7c6;
  color: #92734b;
}
.has-conversation .composer-section {
  margin-top: 35px;
  position: sticky;
  bottom: 0;
  background: #fbfcf8f5;
  padding: 16px 0 18px;
  backdrop-filter: blur(12px);
  z-index: 5;
}
.has-conversation .image-composer {
  box-shadow: 0 -4px 25px #2b4a1410;
}
.mobile-menu {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.studio-page button:focus-visible,
.studio-page a:focus-visible,
.studio-page select:focus-visible {
  outline: 2px solid #799e4b;
  outline-offset: 3px;
}
@media (min-width: 1500px) {
  .studio-content {
    padding-top: 75px;
  }
  .studio-welcome h1 {
    font-size: 44px;
  }
  .inspiration-art {
    height: 175px;
  }
  .has-conversation {
    padding-top: 40px;
  }
}
@media (max-width: 1100px) {
  .studio-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .studio-sidebar {
    padding: 25px 14px 20px;
  }
  .studio-content {
    padding: 38px 30px 20px;
  }
  .studio-topbar {
    padding: 0 28px;
  }
  .studio-welcome h1 {
    font-size: 33px;
  }
  .inspiration-grid {
    gap: 10px;
  }
  .inspiration-card strong {
    font-size: 10px;
  }
  .inspiration-art {
    height: 125px;
  }
}
@media (max-width: 760px) {
  .studio-shell {
    display: block;
  }
  .studio-sidebar {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    z-index: 20;
    box-shadow: 15px 0 45px #25392c22;
  }
  .studio-sidebar.is-open {
    display: flex;
  }
  .studio-topbar {
    height: 65px;
    padding: 0 18px;
  }
  .studio-topbar > div {
    gap: 9px;
  }
  .mobile-menu {
    display: block;
    font-size: 17px !important;
  }
  .studio-content {
    padding: 35px 20px 20px;
  }
  .studio-welcome h1 {
    font-size: 31px;
    margin-top: 17px;
  }
  .studio-eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .studio-welcome > p {
    font-size: 11px;
  }
  .mobile-break {
    display: block;
  }
  .capability-pills {
    gap: 7px;
  }
  .capability-pills span {
    font-size: 8px;
    padding: 5px 7px;
  }
  .model-badge {
    font-size: 8px;
    padding: 6px 8px;
  }
  .beta-label {
    display: none;
  }
  .composer-tools {
    gap: 7px;
  }
  .tool-divider {
    display: none;
  }
  .image-composer {
    padding: 13px;
  }
  .image-composer textarea {
    font-size: 16px;
    min-height: 100px;
  }
  .upload-reference {
    font-size: 10px !important;
    padding: 8px;
  }
  .size-control select {
    font-size: 9px;
    max-width: 90px;
  }
  .generate-button {
    gap: 9px;
    font-size: 10px !important;
    padding: 8px 10px;
  }
  .composer-note {
    font-size: 8px;
    gap: 8px;
  }
  .prompt-count {
    display: none;
  }
  .inspiration {
    margin-top: 28px;
  }
  .inspiration-grid {
    gap: 8px;
  }
  .inspiration-art {
    height: 100px;
  }
  .inspiration-card strong {
    white-space: normal;
    font-size: 10px;
    line-height: 1.6;
  }
  .inspiration-card > div:last-child {
    padding: 9px 5px 6px;
  }
  .inspiration-card > div:last-child > span {
    font-size: 8px;
  }
  .inspiration-heading > span {
    font-size: 8px;
  }
  .ceramic-cup {
    transform: scale(0.8) rotate(-9deg);
    top: 17px;
  }
  .art-circle {
    left: 10%;
    bottom: -48px;
  }
  .little-house {
    transform: scale(0.7) skewY(-9deg);
    bottom: 8px;
    left: calc(50% - 48px);
  }
  .forest-sun {
    right: 10px;
    width: 28px;
    height: 28px;
  }
  .mini-orb {
    transform: scale(0.8);
    top: 18px;
  }
  .mini-orbit {
    transform: scale(0.8) rotate(-31deg);
    top: 40px;
  }
  .mini-star {
    right: 9%;
    top: 10px;
    font-size: 20px;
  }
  .conversation-heading h1 {
    font-size: 18px;
  }
  .saved-indicator {
    font-size: 8px;
  }
  .has-conversation {
    padding-top: 23px;
  }
  .user-message,
  .assistant-message {
    gap: 9px;
  }
  .result-actions {
    gap: 7px;
  }
  .download-button,
  .use-image-button {
    font-size: 9px !important;
    padding: 7px 8px;
  }
  .result-actions > span {
    display: none;
  }
  .user-message p {
    font-size: 12px;
  }
  .result-caption {
    font-size: 10px;
  }
  .generation-progress {
    padding: 17px;
    gap: 12px;
  }
  .generation-progress strong {
    font-size: 11px;
  }
  .generation-progress p {
    font-size: 9px;
  }
  .has-conversation .composer-section {
    bottom: 0;
    margin-top: 22px;
  }
  .has-conversation .image-composer textarea {
    min-height: 75px;
  }
  .studio-footer {
    margin-top: 24px;
  }
  .inspiration-disclaimer {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .studio-page * {
    animation: none !important;
    transition: none !important;
  }
}
/* Narrow phones and virtual-keyboard friendly composition. */
.studio-page{overflow-x:hidden}
.studio-page textarea,.studio-page select{touch-action:manipulation}
.studio-page .icon-button,.studio-page .upload-reference{min-height:36px}
@media(max-width:760px){
  .studio-topbar{position:sticky;top:0;z-index:10;background:#fbfcf8f5;backdrop-filter:blur(12px)}
  .studio-sidebar{height:100dvh;padding-bottom:max(20px,env(safe-area-inset-bottom))}
  .has-conversation .composer-section{padding-bottom:max(16px,env(safe-area-inset-bottom))}
  .result-image{max-height:65svh}
  .download-button,.use-image-button{min-height:36px;display:inline-flex;align-items:center}
  .image-composer textarea{max-height:28svh}
}
@media(max-width:360px){
  .studio-content{padding-left:14px;padding-right:14px}
  .studio-topbar{padding-left:12px;padding-right:12px}
  .breadcrumb{display:none}
  .breadcrumb-slash{display:none}
  .composer-toolbar{flex-wrap:wrap}
  .composer-tools{flex:1}
  .generate-button{width:100%;justify-content:center;min-height:40px}
  .studio-welcome h1{font-size:27px}
  .inspiration-grid{grid-template-columns:1fr}
  .inspiration-card{display:grid;grid-template-columns:100px 1fr;align-items:center;gap:10px}
  .inspiration-art{height:85px}
}
.inspiration-art>img{width:100%;height:100%;object-fit:cover;object-position:center 48%;display:block;transition:transform .4s}
.inspiration-card:hover .inspiration-art>img{transform:scale(1.04)}
.example-number{position:absolute;top:9px;left:9px;font-size:7px;letter-spacing:.8px;color:#59664d;background:#fffaf0cf;padding:4px 6px;border-radius:4px}

/* Reference previews preserve the full image, including wide and tall uploads. */
.reference-preview img { width: 64px; height: 64px; flex: 0 0 64px; object-fit: contain; background: #eaf0e3; }
.reference-preview > div { min-width: 0; flex: 1; }
.reference-preview .remove-reference { flex-shrink: 0; }
.reference-thumb { width: 100px; height: 90px; object-fit: contain; background: #f5f8ef; }

.reference-original { display: block; flex: 0 0 64px; cursor: zoom-in; }
