@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans-latin-variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
/* Workshop studio */
:root {
  --paper: #f8f7f3;
  --white: #fffefa;
  --ink: #242b26;
  --muted: #606760;
  --action: #9b4129;
  --action-d: #78311e;
  --line: #d9dbd2;
  --sans: "DM Sans", "Segoe UI", Arial, sans-serif;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.utility {
  height: 29px;
  background: #25312b;
  color: #f8f6ed;
}
.utility > span:first-child svg {
  color: #d7af8d;
}
.nav {
  height: 72px;
  background: var(--dark-white, #fffef9);
  gap: clamp(28px, 5vw, 86px);
}
.brand {
  gap: 9px;
}
.brand b {
  font-family: var(--sans);
  font-size: 1.9rem;
  letter-spacing: -0.09em;
  font-weight: 760;
  text-transform: none;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 5px;
}
.nav nav a {
  font-size: 0.9rem;
  font-weight: 520;
}
.nav nav {
  height: 100%;
  gap: clamp(18px, 2.3vw, 42px);
}
.nav nav a {
  height: 100%;
  display: inline-flex;
  align-items: center;
  position: relative;
}
body:has(.atelier) .studio-nav:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--action);
}
.atelier {
  max-width: 1760px;
  margin: 0 auto;
  padding: 32px clamp(24px, 4.45vw, 84px) 64px;
}
.atelier-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 23px;
}
.micro {
  font-weight: 650;
  font-size: 0.68rem;
  letter-spacing: 0.155em;
  line-height: 1.6;
  color: var(--dark-muted, #626a60);
}
.trail {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark-muted, #3b453c);
}
.trail span {
  color: var(--dark-muted, #787c72);
}
.trail i {
  font-style: normal;
  font-weight: 400;
  color: #a9ada3;
}
.atelier-heading h1 {
  font-family: var(--sans);
  font-weight: 540;
  font-size: clamp(3.1rem, 4.65vw, 5.6rem);
  letter-spacing: -0.077em;
  line-height: 1.02;
  margin-top: 8px;
}
.studio-tools {
  display: flex;
  gap: 11px;
  align-items: center;
  padding-bottom: 3px;
}
.sample-label {
  font-size: 0.78rem;
  color: var(--dark-muted, #6e746b);
  margin-right: 4px;
}
.tool-button,
.version-picker select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--dark-line, #c9cdc2);
  background: var(--dark-white, #fcfbf6);
  border-radius: 5px;
  padding: 7px 12px;
  font: 550 0.82rem/1.2 var(--sans);
}
.tool-button:hover,
.zoom-btn:hover,
.idea-chip:hover {
  border-color: #787f73;
  background: white;
}
.atelier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.47fr) minmax(340px, 1fr);
  gap: clamp(16px, 1.65vw, 30px);
  align-items: stretch;
}
.product-stage,
.atelier-panel {
  border: 1px solid var(--dark-line, #d5d6cb);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  min-width: 0;
}
.product-stage {
  display: flex;
  flex-direction: column;
}
.stage-image {
  background: var(--dark-selected, #e7d9ca);
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 260px;
  isolation: isolate;
  display: grid;
  align-items: center;
}
.stage-image > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: absolute;
  inset: 0;
}
.stage-top {
  position: absolute;
  top: 15px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.stage-top button {
  pointer-events: auto;
}
.view-tag,
.zoom-btn {
  border-radius: 4px;
  background: #fcfaf3e8;
  border: 1px solid #aca59377;
  display: flex;
  align-items: center;
  justify-content: center;
}
.view-tag {
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 9px;
  box-shadow: 0 1px 3px #503b2510;
}
.view-tag i {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #496b50;
}
.zoom-btn {
  padding: 8px;
}
.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: var(--dark-cream, #f0eee7);
  border-block: 1px solid var(--dark-line, #d5d3c8);
}
.angle-tabs {
  display: flex;
  gap: 2px;
}
.angle-tabs button,
.panel-tabs button {
  font: 550 0.83rem/1.3 var(--sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.angle-tabs button {
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 7px 12px;
  color: var(--dark-muted, #62675e);
}
.angle-tabs .is-active {
  border-color: var(--dark-line, #bbc0b3);
  color: var(--dark-muted, #283328);
  background: var(--dark-white, #fffefa);
  box-shadow: 0 1px 3px #21292210;
}
.stage-index {
  font-size: 0.72rem;
  color: var(--dark-muted, #70746b);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.stage-spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px 17px;
}
.stage-spec h2 {
  font-size: clamp(1.3rem, 1.7vw, 2.1rem);
  font-weight: 570;
  letter-spacing: -0.055em;
  margin-top: 2px;
}
.blank-finish {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--dark-muted, #4a5048);
}
.blank-finish i {
  width: 12px;
  height: 12px;
  border: 1px solid white;
  background: #171a18;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #aeb3a8;
}
.atelier-panel {
  display: flex;
  flex-direction: column;
  background: var(--dark-white, #fffefa);
}
.panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  gap: 22px;
  background: var(--dark-white, #fafaf5);
  min-height: 51px;
}
.panel-tabs button {
  position: relative;
  color: var(--dark-muted, #646d62);
  padding: 14px 0;
}
.panel-tabs button.on {
  color: var(--dark-action, #85432a);
}
.panel-tabs button.on:after {
  content: "";
  height: 2px;
  background: #a34b30;
  position: absolute;
  inset: auto 0 -1px;
}
.studio-conversation,
.detail-pane {
  flex: 1;
  padding: clamp(18px, 1.8vw, 34px);
}
.studio-conversation h2,
.detail-pane h2 {
  font-weight: 560;
  font-family: var(--sans);
  font-size: clamp(1.62rem, 2.1vw, 2.5rem);
  letter-spacing: -0.065em;
}
.assistant-intro {
  margin: 8px 0 18px;
  font-size: 0.93rem;
  max-width: 380px;
  line-height: 1.55;
  color: var(--dark-muted, #5e665e);
}
#studio-prompt {
  border: 1px solid var(--dark-line, #c7cbc1);
  border-radius: 7px;
  padding: 12px;
  background: var(--dark-white, #faf9f5);
}
#studio-prompt:focus-within {
  border-color: #9b684e;
  box-shadow: 0 0 0 2px #9b684e19;
}
#prompt-text {
  width: 100%;
  min-height: 70px;
  resize: vertical;
  background: transparent;
  border: 0;
  padding: 1px 3px 8px;
  line-height: 1.5;
  outline: 0;
  font-size: 0.94rem;
}
#prompt-text::placeholder {
  color: var(--dark-muted, #787d73);
}
.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.attach-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dark-line, #d1d3c8);
  border-radius: 4px;
  background: var(--dark-white, #fdfcf7);
}
.apply-button {
  background: var(--action);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 4px;
  min-height: 38px;
  font-size: 0.85rem;
  font-weight: 600;
}
.apply-button:hover {
  background: var(--action-d);
}
.try-ideas {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.try-ideas > span {
  font-size: 0.76rem;
  color: var(--dark-muted, #686e64);
  margin-right: 1px;
}
.idea-chip {
  border: 1px solid var(--dark-line, #d3d7cc);
  background: var(--dark-white, #fffef9);
  border-radius: 15px;
  font-size: 0.75rem;
  line-height: 1.3;
  padding: 5px 9px;
  color: var(--dark-muted, #3d473d);
}
.studio-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--dark-white, #f5f5ed);
  border-top: 1px solid var(--line);
  padding: 15px clamp(18px, 1.8vw, 34px);
}
.studio-total > div {
  display: flex;
  flex-direction: column;
}
.studio-total > div > span {
  font-size: 0.78rem;
  color: var(--dark-muted, #62695e);
}
.studio-total b {
  font-size: 1.38rem;
  letter-spacing: -0.045em;
  line-height: 1.35;
  font-weight: 610;
}
.studio-total b small {
  font-size: 0.68rem;
  font-weight: 570;
  letter-spacing: 0.03em;
  color: var(--dark-muted, #626a60);
}
.checkout-btn {
  background: #29392e;
  color: white;
  border: 1px solid #29392e;
  font-size: 0.85rem;
  padding: 11px 16px;
  border-radius: 4px;
}
.checkout-btn:hover {
  background: #1d291f;
}
.messages {
  max-height: 170px;
  overflow: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
  padding-right: 4px;
}
.message {
  border-left: 2px solid var(--dark-line, #b4bfad);
  padding: 2px 0 2px 10px;
}
.message b {
  font-size: 0.72rem;
  color: var(--dark-muted, #626d61);
}
.message p {
  font-size: 0.87rem;
  line-height: 1.45;
}
.user-msg {
  border-color: var(--dark-line, #be9c86);
}
.user-msg b {
  color: var(--dark-action, #83543d);
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}
.spec-row > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dark-muted, #65705f);
}
.spec-row strong {
  font-weight: 540;
  text-align: right;
  overflow-wrap: anywhere;
}
.studio-edit {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 12px 0 2px;
  padding: 10px;
  border: 1px solid var(--dark-line, #bdc3b5);
  background: var(--dark-white, #f7f8f1);
  border-radius: 4px;
  font-size: 0.86rem;
}
.studio-under {
  padding: 16px 0 19px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.studio-under > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dark-muted, #636b60);
  font-size: 0.8rem;
}
.studio-under svg {
  color: var(--dark-muted, #65715f);
}
.workstrip {
  padding-top: 34px;
}
.strip-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}
.strip-heading h2 {
  font-size: clamp(1.85rem, 2.65vw, 3.35rem);
  font-weight: 530;
  letter-spacing: -0.065em;
  margin-top: 4px;
}
.quietlink {
  font-size: 0.82rem;
  font-weight: 540;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #979f90;
}
.craft-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.craft-cards button {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  background: transparent;
  text-align: left;
}
.craft-cards img {
  grid-column: 1/-1;
  width: 100%;
  aspect-ratio: 2.45;
  object-fit: cover;
  border-radius: 5px;
}
.craft-cards span {
  font-size: 1.02rem;
  font-weight: 550;
}
.craft-cards button:hover span {
  color: var(--action);
}
.zoom-image,
.checkout-image {
  width: 100%;
  border-radius: 5px;
}
.checkout-image {
  margin-bottom: 18px;
}
.rendered-photo svg {
  width: 100%;
  height: auto;
  display: block;
}
dialog:has(.zoom-image) {
  width: min(1000px, 94vw);
}
.attached-file {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 0.8rem;
}
.checkout-page > .quietlink {
  display: inline-flex;
  margin-bottom: 20px;
}
@media (min-width: 1550px) {
  .stage-image {
    min-height: 380px;
  }
  .studio-conversation,
  .detail-pane {
    padding: 32px;
  }
  .assistant-intro {
    margin-bottom: 24px;
  }
  #prompt-text {
    min-height: 95px;
  }
}
@media (max-width: 1040px) {
  .atelier-grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .atelier {
    padding-top: 24px;
  }
  .panel-tabs {
    padding: 0 18px;
  }
  .nav {
    gap: 26px;
  }
  .blank-finish {
    font-size: 0.75rem;
  }
  .stage-spec {
    padding: 12px;
  }
  .stage-bar {
    padding: 8px;
  }
  .angle-tabs button {
    padding: 6px 8px;
  }
  .stage-image {
    min-height: 235px;
  }
  .stage-spec .micro {
    font-size: 0.61rem;
  }
  .try-ideas {
    gap: 4px;
  }
  .idea-chip {
    padding: 5px 8px;
  }
}
@media (max-width: 760px) {
  .atelier {
    padding: 22px 18px 40px;
  }
  .atelier-heading {
    margin-bottom: 15px;
    align-items: center;
  }
  .atelier-heading h1 {
    font-size: 3.05rem;
  }
  .studio-tools {
    gap: 5px;
  }
  .sample-label {
    display: none;
  }
  .studio-tools .tool-button {
    font-size: 0.77rem;
    min-height: 36px;
  }
  .nav {
    height: 58px;
  }
  .nav nav {
    display: none;
  }
  .brand b {
    font-size: 1.65rem;
  }
  .atelier-grid {
    grid-template-columns: 1fr;
  }
  .stage-image {
    aspect-ratio: 1.75;
    min-height: 0;
  }
  .stage-image > img {
    object-fit: cover;
  }
  .stage-spec {
    padding: 12px 15px;
  }
  .stage-bar {
    padding: 7px 12px;
  }
  .stage-top {
    top: 10px;
    left: 11px;
    right: 11px;
  }
  .atelier-panel {
    border-radius: 6px;
  }
  .studio-conversation,
  .detail-pane {
    padding: 18px;
  }
  .studio-conversation h2 {
    font-size: 1.8rem;
  }
  .assistant-intro {
    max-width: none;
    margin: 6px 0 14px;
  }
  .panel-tabs {
    min-height: 44px;
  }
  .panel-tabs button {
    padding: 11px 0;
  }
  .studio-total {
    padding: 12px 18px;
  }
  .studio-under {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .studio-under > div {
    font-size: 0.74rem;
  }
  .workstrip {
    padding-top: 23px;
  }
  .craft-cards {
    gap: 10px;
  }
  .craft-cards img {
    aspect-ratio: 1.45;
  }
  .craft-cards span {
    font-size: 0.85rem;
  }
  .craft-cards svg {
    display: none;
  }
  .stage-spec h2 {
    font-size: 1.25rem;
  }
  .version-picker select {
    max-width: 100px;
  }
}
@media (max-width: 480px) {
  .utility {
    height: 25px;
  }
  .atelier-heading {
    align-items: flex-end;
  }
  .studio-tools:has(.version-picker) {
    max-width: 145px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .studio-tools:has(.version-picker) .tool-button {
    font-size: 0.71rem;
    padding: 6px 8px;
  }
  .studio-tools:has(.version-picker) button[data-a="studio-save"] {
    display: none;
  }
  .atelier-heading h1 {
    font-size: 2.65rem;
  }
  .atelier-grid {
    gap: 12px;
  }
  .stage-bar .angle-tabs button {
    font-size: 0.76rem;
    min-height: 33px;
  }
  .stage-spec {
    gap: 6px;
  }
  .blank-finish {
    font-size: 0.7rem;
  }
  .view-tag {
    font-size: 0.67rem;
  }
  .studio-under {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .studio-under > div:last-child {
    display: none;
  }
  .try-ideas {
    gap: 6px;
  }
  .craft-cards {
    grid-template-columns: 1fr;
  }
  .craft-cards img {
    aspect-ratio: 2.6;
  }
  .craft-cards span {
    font-size: 0.98rem;
  }
  .strip-heading h2 {
    font-size: 1.85rem;
  }
  .strip-heading .quietlink {
    font-size: 0.72rem;
  }
}

@media (min-width: 761px) {
  .stage-image {
    aspect-ratio: 1.72;
    min-height: 0;
    flex: 1 0 auto;
  }
  .stage-image > img {
    object-fit: cover;
  }
  .stage-spec {
    padding-block: 14px;
  }
  .stage-bar {
    padding-block: 8px;
  }
}
.finish-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.finish-picker > span {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 550;
  color: var(--dark-muted, #596355);
}
.finish-picker button {
  display: flex;
  gap: 7px;
  align-items: center;
  border: 1px solid var(--dark-line, #d5d6cc);
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 0.76rem;
  background: var(--dark-white, #fbfbf7);
}
.finish-picker button[aria-pressed="true"] {
  border-color: #777e6f;
}
.finish-picker i {
  height: 14px;
  width: 14px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px #0002;
}
.finish-picker small {
  font-size: 0.69rem;
}
.product-stage {
  align-self: start;
}
.stage-image {
  width: 100%;
}
.stage-spec .micro {
  font-size: 0.65rem;
}
@media (min-width: 761px) {
  .stage-image {
    aspect-ratio: 1.6;
  }
  .atelier-panel .try-ideas > span {
    width: 100%;
  }
}
@media (max-width: 760px) {
  .finish-picker {
    margin-top: 12px;
    padding-top: 10px;
  }
  .stage-image {
    max-height: 300px;
  }
}

@media (max-width: 760px) {
  .atelier .studio-total {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8;
    background: var(--dark-white, #fbfaf6);
    border-top: 1px solid var(--dark-line, #d6d5cd);
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  body:has(.atelier) footer {
    padding-bottom: 90px;
  }
}
