/* Studio theme. The approved home page and its artwork use styles.css. */
body[data-page="studio"] {
  background: #f4f7fc;
  font-size: 14px;
}
/* Keep scrolled form headings from showing through the floating navigation. */
body[data-page="studio"]::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 88px;
  z-index: 999;
  background: #f4f7fcf5;
  border-bottom: 1px solid #e3eaf5;
  backdrop-filter: blur(12px);
  pointer-events: none;
}
.preview-context {
  margin: 0;
  padding: 11px 24px;
  background: #eef4ff;
  border-block: 1px solid #dfe9f7;
  color: #466697;
  font-size: 12px;
  line-height: 1.7;
}
.photo-crop-dialog {
  width: min(880px, calc(100% - 24px));
  max-height: 92dvh;
  overflow: auto;
  padding: 28px;
  border: 1px solid #dae5f6;
  border-radius: 22px;
  color: #25456d;
  background: white;
}
.photo-crop-dialog::backdrop {
  background: #172e5480;
  backdrop-filter: blur(5px);
}
.photo-crop-dialog h2 {
  font-size: 28px;
  margin: 5px 0;
  letter-spacing: -0.8px;
}
.photo-crop-dialog > p {
  font-size: 12px;
  color: #7088a7;
}
.photo-crop-dialog canvas {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(520px, 46dvh);
  margin-inline: auto;
  border-radius: 10px;
  touch-action: none;
  cursor: crosshair;
  background: #e8eef7;
}
.crop-adjustments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin-top: 14px;
}
.crop-adjustments label {
  font-size: 11px;
  color: #637fa4;
}
.crop-adjustments input {
  display: block;
  width: 100%;
  accent-color: #315fe2;
}
.crop-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.crop-actions .create-button {
  width: auto;
  font-size: 12px;
  padding: 12px 18px;
}
.upload-thumb .crop-photo-button {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  margin-top: 6px;
  border-radius: 6px;
  border: 1px solid #d8e4f7;
  color: #3866b3;
  background: #eef4ff;
  padding: 6px 4px;
  font-size: 10px;
  line-height: 1.5;
}
@media (max-width: 480px) {
  .photo-crop-dialog {
    padding: 18px;
  }
  .photo-crop-dialog h2 {
    font-size: 23px;
  }
  .crop-adjustments {
    gap: 6px 12px;
  }
  .crop-actions {
    flex-wrap: wrap;
  }
  .preview-context {
    padding-inline: 18px;
    font-size: 11px;
  }
}
.quote-inputs {
  padding: 14px;
  background: #f4f7fc;
  border: 1px solid #e1e8f4;
  border-radius: 12px;
  margin: 16px 0;
}
.quote-inputs > strong {
  display: block;
  color: #4d658a;
  font-size: 11px;
  margin: 6px 0;
}
.quote-setting {
  margin: 4px 0;
  color: #425a80;
  font-size: 12px;
  line-height: 1.5;
}
.quote-photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.quote-photo-row figure {
  margin: 0;
  width: 120px;
}
.quote-photo-row img {
  width: 120px;
  height: 105px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
}
.quote-photo-row figcaption {
  font-size: 10px;
  color: #798ba5;
  overflow-wrap: anywhere;
  margin-top: 5px;
}
.studio-shell {
  width: min(1440px, calc(100% - 80px));
  margin: 116px auto 0;
}
.studio-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.studio-intro h1 {
  margin: 7px 0 10px;
  font-size: clamp(30px, 3.3vw, 49px);
  letter-spacing: -2px;
  line-height: 1.15;
  font-weight: 800;
}
.studio-intro h1 span {
  color: #3565e8;
}
.studio-intro p:not(.eyebrow) {
  color: #64758f;
  margin: 0;
  font-size: 14px;
}
.mobile-break {
  display: none;
}
.account-button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #dae3f1;
  background: white;
  padding: 10px 16px 10px 10px;
  border-radius: 50px;
  color: #263957;
  font-weight: 700;
  white-space: nowrap;
  min-height: 48px;
}
.account-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #eff4ff;
  color: #4266c8;
  border-radius: 50%;
  font-size: 22px;
}
.workspace-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dce4f0;
  margin-bottom: 20px;
}
.workspace-tabs {
  display: flex;
  gap: 25px;
}
.workspace-tab {
  border: 0;
  background: none;
  color: #60738f;
  padding: 12px 0 15px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 3px solid transparent;
  min-height: 48px;
}
.workspace-tab.active {
  color: #244fcb;
  border-bottom-color: #3e6ce8;
}
.workspace-tab span {
  font-size: 10px;
  margin-left: 5px;
  background: #e5ecfa;
  padding: 2px 6px;
  border-radius: 6px;
}
.private-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #61738c;
}
.private-badge span {
  width: 6px;
  height: 6px;
  background: #4caa91;
  border-radius: 50%;
}
.studio-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #eaf0ff;
  border: 1px solid #dce6ff;
  border-radius: 12px;
  padding: 11px 16px;
  margin: 0 0 20px;
  color: #4b628c;
}
.studio-notice > span {
  font-size: 23px;
  color: #3565db;
}
.studio-notice p {
  margin: 0;
  flex: 1;
  font-size: 12px;
}
.studio-notice button {
  border: none;
  background: none;
  color: #315dcc;
  font-weight: 800;
  padding: 8px;
  white-space: nowrap;
}
.budget-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 15px 20px;
  background: #fff;
  border: 1px solid #e0e7f3;
  border-radius: 14px;
  margin-bottom: 20px;
}
.budget-strip > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}
.budget-symbol {
  color: #769346;
  background: #f1f6e7;
  padding: 7px 13px;
  border-radius: 12px;
  font-size: 24px;
}
.budget-strip p {
  margin: 0;
  white-space: nowrap;
}
.budget-strip strong {
  font-size: 20px;
}
.budget-strip small {
  display: block;
  font-size: 10px;
  color: #73829c;
}
.budget-meter {
  flex: 1;
  min-width: 100px;
}
.meter-track {
  height: 5px;
  background: #eef2f8;
  border-radius: 8px;
  overflow: hidden;
  margin: 7px 0;
}
.meter-track span {
  display: block;
  height: 100%;
  background: #4e75e0;
  width: 0;
}
.subtle-button {
  background: none;
  border: none;
  color: #3c5eaa;
  font-weight: 700;
  padding: 9px 3px;
  font-size: 12px;
  min-height: 38px;
}
.subtle-button:hover {
  color: #123aab;
  text-decoration: underline;
}
.tool-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 22px;
}
.tool-groups {
  display: flex;
  gap: 8px;
  overflow: auto;
  scrollbar-width: thin;
}
.tool-group {
  background: transparent;
  border: 1px solid transparent;
  color: #6b7b94;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 10px;
  white-space: nowrap;
  min-height: 42px;
}
.tool-group.active {
  background: #e7edfc;
  color: #3057bd;
  border-color: #dbe4f9;
}
.all-tools-button {
  border: 0;
  background: white;
  color: #476283;
  padding: 10px 15px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.tool-pills {
  display: flex;
  gap: 18px;
  overflow: auto;
  margin: 12px 0 18px;
  padding: 0 4px 3px;
  scrollbar-width: thin;
}
.tool-pill {
  background: none;
  color: #74829a;
  font-size: 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 0;
  white-space: nowrap;
  min-height: 38px;
}
.tool-pill.active {
  color: #2c59ce;
  border-color: #2c59ce;
  font-weight: 800;
}
.creative-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 370px) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}
.creation-card {
  background: #fff;
  border: 1px solid #e0e7f2;
  border-radius: 21px;
  padding: 25px;
  box-shadow: 0 10px 35px #344b7710;
}
.step-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #7a8aa3;
}
.step-label > span {
  border: 1px solid #dbe4f3;
  border-radius: 50%;
  display: inline-grid;
  width: 21px;
  height: 21px;
  place-items: center;
  font-size: 9px;
  color: #6982b8;
}
.tool-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 6px;
}
.tool-card-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.8px;
}
.sparkle-icon {
  font-size: 33px;
  color: #6987d8;
  line-height: 1;
}
.tool-description {
  font-size: 12px;
  line-height: 1.7;
  color: #71829c;
  margin: 0 0 21px;
}
.field-label {
  display: block;
  font-size: 12px;
  color: #374d6f;
  font-weight: 700;
  margin: 17px 0 7px;
}
.field-label > span {
  font-weight: 400;
  color: #8b97ac;
}
.studio-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dce4ef;
  background: #fbfcfe;
  border-radius: 10px;
  padding: 11px 12px;
  color: #30435f;
  font-size: 12px;
}
.studio-input::placeholder {
  color: #97a3b7;
}
textarea.studio-input {
  resize: vertical;
  min-height: 110px;
}
.field-help {
  font-size: 11px;
  line-height: 1.7;
  color: #7888a0;
  margin: 7px 0;
}
.field-help a {
  color: #3f66bd;
  text-decoration: underline;
}
.upload-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 165px;
  padding: 20px 12px;
  border: 1.5px dashed #bdcfec;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7faff, #f1f5ff);
  color: #526d9b;
  cursor: pointer;
  text-align: center;
  margin: 8px 0;
}
.upload-drop:hover,
.upload-drop.dragging {
  border-color: #4674df;
  background: #eaf1ff;
}
.upload-symbol {
  font-size: 27px;
  color: #4977df;
  background: white;
  box-shadow: 0 5px 15px #3a69cd15;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 11px;
}
.upload-drop strong {
  font-size: 12px;
  color: #365a9f;
}
.upload-drop small {
  color: #8b9ab3;
  font-size: 10px;
  margin-top: 4px;
}
.upload-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-drop:focus-within {
  outline: 3px solid #75a0ff;
  outline-offset: 3px;
}
.upload-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.upload-thumb {
  position: relative;
}
.upload-thumb img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid #dce4f0;
}
.upload-thumb small {
  display: block;
  font-size: 9px;
  text-align: center;
  max-width: 62px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-thumb button {
  position: absolute;
  right: -4px;
  top: -4px;
  border: 0;
  background: #385788;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  padding: 0;
}
.boolean-field {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f7;
  font-size: 12px;
  font-weight: 600;
  color: #465b7b;
}
.boolean-field input {
  width: 18px;
  height: 18px;
  accent-color: #3d68db;
  flex-shrink: 0;
}
.boolean-field small {
  display: block;
  font-weight: 400;
  font-size: 10px;
  line-height: 1.6;
  color: #8491a8;
}
.advanced-settings {
  margin: 15px 0;
  border-top: 1px solid #e8edf5;
  padding-top: 14px;
}
.advanced-settings summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6580aa;
  font-size: 11px;
  font-weight: 700;
  min-height: 30px;
  list-style: none;
}
.advanced-settings[open] summary {
  margin-bottom: 12px;
  color: #345fae;
}
.studio-consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 10px;
  color: #71819a;
  line-height: 1.7;
  margin: 18px 0;
}
.studio-consent input {
  width: 16px;
  height: 16px;
  accent-color: #3e6bdc;
  flex-shrink: 0;
  margin: 2px 0 0;
}
.estimate-card {
  border: 1px solid #e2e9f5;
  border-radius: 12px;
  background: #f7f9ff;
  padding: 12px 14px;
  margin-top: 15px;
}
.estimate-card > span {
  color: #8291aa;
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: 800;
}
.estimate-card > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.estimate-card strong {
  color: #345dba;
  font-size: 28px;
  letter-spacing: -1px;
}
.estimate-card div > span {
  font-size: 11px;
  color: #6f81a2;
}
.estimate-card .estimate-detail {
  font-size: 9px;
  margin-left: auto;
  text-align: right;
}
.create-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 11px;
  min-height: 49px;
  background: #365fda;
  color: #fff;
  padding: 13px 18px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 14px;
  box-shadow: 0 5px 14px #315ac824;
}
.create-button:hover:not(:disabled) {
  background: #264bbd;
}
.create-button span:last-child:not(:first-child) {
  font-size: 20px;
  line-height: 1;
}
.form-footnote {
  color: #98a3b5;
  font-size: 9px;
  text-align: center;
  margin: 9px 0 0;
}
.studio-status {
  font-size: 11px;
  color: #557297;
  line-height: 1.65;
}
.studio-status.error {
  color: #b34f4a;
}
.tool-warning {
  background: #fff7e8;
  color: #8c6839;
  border: 1px solid #f0dfbf;
  border-radius: 9px;
  padding: 11px;
  font-size: 11px;
  line-height: 1.7;
  margin-top: 14px;
}
.canvas-card {
  min-width: 0;
  border: 1px solid #dce5f2;
  background: white;
  border-radius: 21px;
  overflow: hidden;
  box-shadow: 0 10px 35px #344b770b;
}
.canvas-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 22px 26px 18px;
}
.canvas-heading h2 {
  margin: 6px 0 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.6px;
}
.preview-pill {
  font-size: 8px;
  letter-spacing: 0.6px;
  font-weight: 800;
  color: #6c85a3;
  background: #f0f5fc;
  border: 1px solid #e2ebf6;
  padding: 6px 9px;
  border-radius: 30px;
  white-space: nowrap;
}
.viewer-stage {
  --canvas: #edf3fc;
  position: relative;
  height: clamp(360px, 38vw, 565px);
  overflow: hidden;
  isolation: isolate;
  background-color: var(--canvas);
  background-image:
    radial-gradient(ellipse at 50% 40%, #ffffffdd, #ffffff00 67%),
    linear-gradient(#a4bde117 1px, transparent 1px),
    linear-gradient(90deg, #a4bde117 1px, transparent 1px);
  background-size:
    auto,
    36px 36px,
    36px 36px;
}
.viewer-stage[data-background="warm"] {
  --canvas: #f3eee5;
}
.viewer-stage[data-background="dark"] {
  --canvas: #242d40;
  background-image:
    radial-gradient(ellipse at 50% 40%, #64728c77, #ffffff00 67%),
    linear-gradient(#a4bde112 1px, transparent 1px),
    linear-gradient(90deg, #a4bde112 1px, transparent 1px);
}
.canvas-halo {
  width: 70%;
  aspect-ratio: 1.3;
  border: 1px solid #afc5e631;
  border-radius: 50%;
  position: absolute;
  left: 15%;
  top: 12%;
  transform: rotate(-25deg);
  pointer-events: none;
}
.canvas-coordinate {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 20px;
  left: 23px;
  right: 23px;
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #8fa2be;
  font-weight: 700;
  pointer-events: none;
}
model-viewer {
  display: block;
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  background: transparent;
}
#image-result {
  position: absolute;
  width: calc(100% - 80px);
  height: calc(100% - 80px);
  inset: 40px;
  object-fit: contain;
  border-radius: 12px;
}
.canvas-brand {
  position: absolute;
  bottom: 24px;
  left: 25px;
  color: #90a3bd88;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -1px;
  line-height: 1;
  pointer-events: none;
}
.canvas-brand span {
  display: block;
  font-size: 6px;
  letter-spacing: 1.8px;
  margin-top: 6px;
  font-weight: 700;
}
.canvas-axis {
  position: absolute;
  bottom: 24px;
  right: 24px;
  color: #7a98bb;
  font-size: 27px;
  line-height: 1;
  pointer-events: none;
}
.canvas-axis span {
  display: block;
  font-size: 8px;
  text-align: center;
}
.canvas-axis small {
  position: absolute;
  right: -8px;
  bottom: 0;
  font-size: 8px;
}
.viewer-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 13px 21px;
  border-bottom: 1px solid #e9eef6;
  gap: 8px;
}
.viewer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.viewer-button {
  border: 1px solid transparent;
  background: none;
  border-radius: 7px;
  color: #6d819e;
  font-size: 18px;
  padding: 5px 10px;
  min-height: 38px;
  white-space: nowrap;
}
.viewer-button span {
  font-size: 10px;
  margin-left: 3px;
}
.viewer-button.selected {
  background: #eff4ff;
  border-color: #e3eaf9;
  color: #4b6ec2;
}
.canvas-swatches {
  display: flex;
  gap: 8px;
}
.swatch {
  border: 3px solid white;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  outline: 1px solid #d9e1ec;
  padding: 0;
}
.swatch.selected {
  outline-color: #6788cc;
}
.swatch-sky {
  background: #dce8f8;
}
.swatch-warm {
  background: #e8dfd1;
}
.swatch-dark {
  background: #374258;
}
.viewer-extra {
  padding: 10px 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 10px;
  color: #7285a0;
}
.viewer-extra label {
  display: flex;
  gap: 8px;
  align-items: center;
}
.viewer-extra select {
  max-width: 180px;
  border: 1px solid #dce5f1;
  padding: 5px;
  border-radius: 5px;
  font-size: 10px;
}
.current-result {
  padding: 16px 25px;
}
.current-result > div:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.current-result strong {
  color: #3c5276;
  font-size: 12px;
}
.current-result div > span:last-child {
  color: #98a5b9;
  font-size: 9px;
  margin-left: auto;
}
.result-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #62a88c;
}
.current-result p {
  margin: 4px 0 0 13px;
  color: #8e9cb1;
  font-size: 10px;
}
.example-shelf {
  margin: 0 23px 13px;
  border-top: 1px solid #e8edf4;
  padding-top: 14px;
}
.example-shelf > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  align-items: center;
}
.example-shelf > div > span {
  font-size: 8px;
  letter-spacing: 1px;
  color: #8495ad;
  font-weight: 800;
}
.example-shelf small {
  color: #98a7bb;
  font-size: 9px;
}
.example-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.example-card {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid #e3e9f2;
  background: #fff;
  border-radius: 10px;
  min-width: 0;
  color: #4a6082;
}
.example-card.selected {
  border-color: #b8caf0;
  background: #f5f8ff;
}
.example-card img {
  width: 42px;
  height: 45px;
  object-fit: contain;
  border-radius: 6px;
  background: #edf2f9;
}
.example-card > span:last-child {
  margin-left: auto;
  color: #889fbd;
  font-size: 13px;
}
.example-card strong {
  display: block;
  font-size: 10px;
  line-height: 1.5;
}
.example-card small {
  display: block;
  font-size: 8px;
}
.example-credit {
  padding: 0 25px 17px;
  color: #9aa7ba;
  font-size: 8px;
  margin: 0;
  line-height: 1.7;
}
.example-credit a {
  text-decoration: underline;
}
.studio-reassurance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 3px;
  color: #8c9ab1;
  font-size: 10px;
}
.studio-reassurance p {
  margin: 0;
}
.studio-reassurance p > span {
  margin-right: 8px;
  color: #7294c3;
  font-size: 17px;
}
.studio-reassurance strong {
  color: #687e9c;
  margin-right: 5px;
}
.studio-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #dce5f1;
  padding: 24px 0 30px;
  gap: 20px;
  margin-top: 30px;
}
.studio-footer .brand {
  font-size: 22px;
  gap: 10px;
}
.studio-footer .brand span {
  color: #6d8bca;
}
.studio-footer p {
  color: #94a1b6;
  font-size: 10px;
}
.studio-footer > a:last-child {
  color: #6c83a8;
  font-size: 10px;
  font-weight: 700;
}
.canvas-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: #eff5fbef;
  padding: 30px;
  text-align: center;
  backdrop-filter: blur(12px);
}
.loading-orbit {
  width: 54px;
  height: 54px;
  border: 1px solid #c1d2ed;
  border-top: 3px solid #4876dc;
  border-radius: 50%;
  animation: turn 1.8s linear infinite;
  margin-bottom: 23px;
}
.canvas-loading strong {
  font-size: 20px;
  letter-spacing: -0.7px;
}
.canvas-loading p {
  max-width: 340px;
  font-size: 12px;
  color: #7b8fae;
}
.canvas-loading progress {
  width: min(280px, 80%);
  height: 6px;
  margin-top: 10px;
  accent-color: #4c76d6;
}
.model-loading {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translateX(-50%);
  color: #6b83ab;
  font-size: 12px;
  background: #ffffffdf;
  border-radius: 12px;
  padding: 12px 18px;
  pointer-events: none;
}
.report-result {
  position: absolute;
  inset: 45px;
  overflow: auto;
  padding: 24px;
  background: #ffffffee;
  border: 1px solid #dbe6f5;
  border-radius: 16px;
}
.report-result h3 {
  font-size: 22px;
  letter-spacing: -0.6px;
  margin: 0 0 15px;
}
.report-metric {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #e4ebf5;
  padding: 10px 0;
  font-size: 12px;
}
.report-metric span {
  color: #7c8da5;
}
.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 24px;
  gap: 20px;
}
.section-intro h2 {
  margin: 4px 0 8px;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1px;
}
.section-intro p:not(.eyebrow) {
  margin: 0;
  color: #7a8aa3;
  font-size: 12px;
}
.library-filters {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.library-filters select {
  max-width: 170px;
  background: white;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dce5f2;
  border-radius: 10px;
  background: white;
  padding: 5px 12px;
  min-width: 230px;
  width: 340px;
}
.search-box span {
  color: #7892b8;
  font-size: 24px;
}
.search-box input {
  background: none;
  border: 0;
  font-size: 12px;
  width: 100%;
  padding: 8px 0;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.creation-tile {
  background: white;
  border: 1px solid #dde6f2;
  border-radius: 15px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  color: #405779;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.creation-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px #3d56861a;
}
.tile-art {
  height: 180px;
  background: radial-gradient(ellipse at center, #ffffff, #e7eef9);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.tile-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tile-art > span {
  font-size: 52px;
  color: #a7bce0;
}
.tile-copy {
  padding: 15px;
}
.tile-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.tile-copy p {
  margin: 4px 0 10px;
  font-size: 10px;
  color: #8a9bb3;
}
.tile-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
.empty-state {
  min-height: 260px;
  padding: 80px 20px;
  border: 1px dashed #ccd9ef;
  border-radius: 20px;
  color: #92a2ba;
  text-align: center;
  font-size: 16px;
  line-height: 2;
}
.activity-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.activity-stat {
  background: white;
  border: 1px solid #dfe6f1;
  border-radius: 14px;
  padding: 20px;
}
.activity-stat strong {
  display: block;
  font-size: 29px;
  letter-spacing: -1px;
  color: #3c64bb;
}
.activity-stat span {
  color: #8293ae;
  font-size: 11px;
}
.activity-table-wrap {
  overflow: auto;
  border: 1px solid #dce5f2;
  border-radius: 14px;
  background: white;
}
.activity-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
.activity-table th {
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #8a9bb2;
  padding: 17px;
  background: #f9fbff;
  font-weight: 700;
}
.activity-table td {
  border-top: 1px solid #edf1f7;
  padding: 14px 17px;
}
.activity-table td small {
  display: block;
  color: #95a3b8;
  font-size: 9px;
}
.status-chip {
  display: inline-block;
  font-size: 9px;
  color: #668396;
  background: #edf4f8;
  border-radius: 20px;
  padding: 4px 9px;
}
.status-chip.complete {
  color: #4b8b78;
  background: #edf8f2;
}
.status-chip.failed,
.status-chip.submission_unknown,
.status-chip.needs_attention {
  color: #a7714e;
  background: #fff2e7;
}
.studio-dialog {
  width: min(500px, calc(100% - 32px));
  border: 1px solid #dce5f4;
  border-radius: 23px;
  padding: 34px;
  color: #263d62;
  background: #fff;
  box-shadow: 0 40px 140px #18294850;
  max-height: 90dvh;
  overflow: auto;
}
.studio-dialog::backdrop {
  background: #1e325b66;
  backdrop-filter: blur(7px);
}
.studio-dialog h2 {
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -1.1px;
  margin: 10px 0 14px;
}
.studio-dialog > p:not(.eyebrow):not(.studio-status) {
  color: #7c8ba4;
  font-size: 12px;
}
.modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: #f3f6fb;
  color: #8194b3;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  font-size: 21px;
}
.dialog-emblem {
  display: inline-block;
  font-size: 39px;
  color: #7494d6;
  line-height: 1;
  margin-bottom: 15px;
}
.quote-lines {
  border-top: 1px solid #e4eaf4;
  margin-top: 25px;
  padding: 10px 0;
}
.quote-line,
.quote-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 12px;
}
.quote-total {
  border-top: 1px solid #e4eaf4;
  margin-bottom: 14px;
  font-weight: 700;
  padding-top: 17px;
}
.quote-total strong {
  font-size: 23px;
  color: #3765c6;
  letter-spacing: -0.7px;
}
.tools-dialog {
  width: min(850px, calc(100% - 32px));
}
.tool-section-title {
  color: #8c9cb3;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 26px;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.tool-browser-card {
  padding: 15px;
  border: 1px solid #dfe7f4;
  background: #fbfcff;
  border-radius: 12px;
  color: #4d6387;
  text-align: left;
}
.tool-browser-card strong {
  display: block;
  font-size: 12px;
}
.tool-browser-card small {
  display: block;
  color: #90a0b7;
  font-size: 10px;
  margin-top: 4px;
}
.logout-button {
  background: none;
  border: 1px solid #dce5f1;
  border-radius: 10px;
  color: #7e8ca3;
  padding: 10px 15px;
  width: 100%;
  margin-top: 24px;
}
.saved-file-list {
  font-size: 11px;
  color: #8295b1;
}
.saved-file-list p {
  padding: 9px 0;
  margin: 0;
  border-bottom: 1px solid #edf1f7;
}
.danger {
  color: #ad635c;
}
.item-actions {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.item-actions .create-button {
  margin: 0;
}
.studio-toast {
  position: fixed;
  z-index: 100;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 23px;
  border-radius: 12px;
  background: #263e68;
  color: white;
  font-size: 12px;
  box-shadow: 0 10px 35px #1d315b33;
  max-width: calc(100% - 30px);
  text-align: center;
}
.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice-grid label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #7188a8;
  border: 1px solid #dde7f4;
  border-radius: 7px;
  padding: 5px 8px;
}
.choice-grid input {
  accent-color: #4f79d5;
}
.action-list {
  max-height: 220px;
  overflow: auto;
  border: 1px solid #dee6f3;
  border-radius: 10px;
  padding: 7px 10px;
}
.action-list label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #6f83a4;
  padding: 6px 0;
}
/* Keep the working controls readable and comfortably sized on touch screens. */
.field-label,
.studio-input,
.create-button,
.boolean-field {
  font-size: 14px;
}
.tool-description {
  font-size: 13px;
}
.field-help,
.studio-status,
.studio-consent {
  font-size: 12px;
}
.form-footnote {
  font-size: 10px;
}
.viewer-extra {
  flex-wrap: wrap;
}
.viewer-extra select {
  max-width: 210px;
}
.viewer-stage:fullscreen {
  width: 100vw;
  height: 100dvh;
}
.import-control {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #dce5f2;
  background: white;
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  cursor: pointer;
}
.import-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}
.import-control:focus-within {
  outline: 3px solid #75a0ff;
  outline-offset: 3px;
}
@media (max-width: 420px) {
  .studio-intro {
    position: relative;
    display: block;
  }
  .studio-intro .eyebrow {
    max-width: 220px;
    min-height: 22px;
  }
  .studio-intro h1 {
    padding-top: 13px;
  }
  .studio-intro .account-button {
    position: absolute;
    right: 0;
    top: 0;
  }
  .studio-intro p:not(.eyebrow) {
    max-width: 330px;
  }
}
@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1450px) {
  .creative-workspace {
    grid-template-columns: 390px minmax(0, 1fr);
  }
  .creation-card {
    padding: 30px;
  }
}
@media (max-width: 1100px) {
  .studio-shell {
    width: calc(100% - 44px);
  }
  .creative-workspace {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 16px;
  }
  .creation-card {
    padding: 20px;
  }
  .tool-group {
    padding: 9px 10px;
  }
  .viewer-stage {
    height: 430px;
  }
  .canvas-heading {
    padding: 20px;
  }
  .canvas-heading h2 {
    font-size: 17px;
  }
  .preview-pill {
    font-size: 7px;
  }
  .library-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .budget-strip {
    gap: 15px;
  }
  .budget-strip .subtle-button {
    font-size: 10px;
  }
  .studio-intro h1 {
    font-size: 37px;
  }
}
@media (max-width: 780px) {
  .studio-shell {
    margin-top: 102px;
    width: calc(100% - 32px);
  }
  .studio-intro {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }
  .studio-intro .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .studio-intro h1 {
    font-size: 31px;
    letter-spacing: -1.3px;
  }
  .studio-intro p:not(.eyebrow) {
    font-size: 11px;
    max-width: 270px;
  }
  .account-button {
    font-size: 10px;
    padding: 6px 9px;
    gap: 5px;
    min-height: 40px;
  }
  .account-icon {
    width: 23px;
    height: 23px;
    font-size: 17px;
  }
  .private-badge {
    display: none;
  }
  .workspace-tabs {
    gap: 22px;
  }
  .workspace-tab {
    font-size: 12px;
  }
  .studio-notice {
    padding: 9px 12px;
    gap: 8px;
  }
  .studio-notice p {
    font-size: 10px;
  }
  .studio-notice button {
    font-size: 10px;
  }
  .creative-workspace {
    grid-template-columns: 1fr;
  }
  .creation-card {
    padding: 23px;
  }
  .canvas-heading {
    padding: 16px 20px;
  }
  .canvas-heading h2 {
    font-size: 18px;
  }
  .viewer-stage {
    height: 370px;
  }
  .example-shelf {
    margin: 0 17px 10px;
  }
  .example-card {
    gap: 7px;
    padding: 7px;
  }
  .example-card strong {
    font-size: 9px;
  }
  .example-card small {
    font-size: 7px;
  }
  .example-credit {
    padding: 0 20px 14px;
    font-size: 7px;
  }
  .current-result {
    padding: 13px 20px;
  }
  .viewer-controls {
    padding: 8px 14px;
  }
  .viewer-button {
    padding: 5px 8px;
  }
  .tool-navigation {
    gap: 5px;
  }
  .tool-groups {
    gap: 2px;
  }
  .tool-group {
    padding: 7px 10px;
    font-size: 11px;
  }
  .all-tools-button {
    font-size: 10px;
    padding: 9px;
  }
  .tool-pills {
    gap: 20px;
  }
  .budget-strip {
    flex-wrap: wrap;
    padding: 13px 15px;
    gap: 8px 18px;
  }
  .budget-meter {
    min-width: 120px;
  }
  .budget-strip p {
    font-size: 11px;
  }
  .budget-strip strong {
    font-size: 18px;
  }
  .budget-symbol {
    padding: 4px 9px;
    font-size: 20px;
  }
  .studio-reassurance {
    align-items: flex-start;
    padding: 17px 4px;
  }
  .studio-reassurance p {
    font-size: 9px;
  }
  .studio-reassurance .subtle-button {
    font-size: 9px;
    white-space: nowrap;
  }
  .studio-footer {
    flex-wrap: wrap;
    margin-top: 15px;
  }
  .studio-footer p {
    display: none;
  }
  .library-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .section-intro h2 {
    font-size: 27px;
  }
  .tile-art {
    height: 155px;
  }
  .studio-dialog {
    padding: 29px 24px;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .activity-summary {
    gap: 8px;
  }
  .activity-stat {
    padding: 14px;
  }
  .activity-stat strong {
    font-size: 24px;
  }
  .activity-stat span {
    font-size: 9px;
  }
  .library-filters {
    flex-wrap: wrap;
  }
  .search-box {
    min-width: 0;
    flex: 1;
  }
  .library-filters select {
    max-width: 145px;
    font-size: 11px;
  }
  .section-intro p:not(.eyebrow) {
    font-size: 11px;
  }
}
@media (max-width: 420px) {
  .mobile-break {
    display: inline;
  }
  .studio-intro h1 {
    font-size: 32px;
  }
  .studio-intro {
    align-items: center;
  }
  .account-button > span:last-child {
    display: none;
  }
  .studio-intro p:not(.eyebrow) {
    max-width: 230px;
  }
  .studio-shell {
    width: calc(100% - 24px);
  }
  .viewer-stage {
    height: 320px;
  }
  .viewer-button span {
    font-size: 9px;
  }
  .viewer-button {
    font-size: 16px;
    padding: 5px 6px;
  }
  .canvas-swatches {
    gap: 6px;
  }
  .swatch {
    width: 21px;
    height: 21px;
  }
  .current-result div > span:last-child {
    font-size: 8px;
  }
  .example-card img {
    width: 28px;
    height: 30px;
  }
  .example-card > span:last-child {
    display: none;
  }
  .canvas-heading .step-label {
    font-size: 8px;
    letter-spacing: 0.6px;
  }
  .canvas-heading h2 {
    font-size: 17px;
  }
  .preview-pill {
    padding: 5px 7px;
  }
  .studio-notice > span {
    display: none;
  }
  .tile-art {
    height: 135px;
  }
  .tile-copy {
    padding: 12px;
  }
  .tile-copy strong {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-orbit {
    animation: none;
  }
  .creation-tile {
    transition: none;
  }
}
