.qoutas-welcome {
  background: radial-gradient(ellipse at 74% 34%, #48344f59, transparent 56%), #191523;
}
.qoutas-welcome::before { opacity: .14; }
.welcome-header, .welcome-layout, .welcome-footer { width: min(1260px, 100%); }
.welcome-header { min-height: 76px; padding: 19px 4%; }
.welcome-header .welcome-wordmark { font-size: 29px; gap: 9px; }
.welcome-header .welcome-wordmark svg { width: 36px; height: 36px; }
.welcome-account-links { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.welcome-account-links a { color: #e7ddec; font-size: 13px; text-decoration: none; padding: 8px 0; }
.welcome-account-links a:last-child { border: 1px solid #aa91af62; border-radius: 20px; padding: 7px 15px; }
.welcome-account-links a:hover, .welcome-footer a:hover { color: white; text-decoration: underline; }
.welcome-layout {
  display: grid;
  grid-template-columns: minmax(296px, .65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(26px, 4vw, 64px);
  padding: clamp(8px, 2.6vh, 30px) 4% 32px;
}
.welcome-intro { min-width: 0; }
.welcome-story h1 { font-size: clamp(41px, 4.6vw, 65px); letter-spacing: -.055em; line-height: 1; margin: 0 0 17px; }
.welcome-story h1 em { display: block; color: #e2bee7; letter-spacing: -.055em; }
.welcome-story > p { font-size: 14px; line-height: 1.6; margin: 0 0 24px; color: #c9bdce; }
.qoutas-welcome .auth-card { padding: 20px; border-radius: 17px; }
.qoutas-welcome #auth-form > label, .qoutas-welcome .auth-tabs button { font-size: 12px; }
.qoutas-welcome #auth-form input { font-size: 14px; min-height: 40px; }
.qoutas-welcome .auth-local { font-size: 11px; color: #c8bbd0; }
.qoutas-welcome .primary-button { font-size: 14px; }
.welcome-footer { padding: 14px 4% 22px; font-size: 11px; }
.welcome-footer > span:first-child { color: #ad9fb5; font: inherit; letter-spacing: normal; }
#landing-studio {
  min-width: 0;
  container-type: inline-size;
  height: clamp(508px, 72svh, 676px);
  border-radius: 24px;
  background: #2d2538;
}
.landing-placeholder {
  position: relative; overflow: hidden;
  height: 100%; border: 1px solid #655670; border-radius: inherit;
  display: grid; place-content: center; justify-items: center; gap: 16px;
  color: #eaddec; background: radial-gradient(ellipse at 52% 38%, #675668, #302b3a 78%);
}
.landing-placeholder img, .landing-model-poster {
  position: absolute; inset: 0; pointer-events: none;
  width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
}
.landing-placeholder span {
  align-self: end; position: absolute; bottom: 18px; left: 20px; padding: 7px 12px;
  color: #f3eafa; font-size: 12px; background: #302837da; border-radius: 20px;
}
.landing-model-poster { display: none; z-index: 1; object-fit: cover; }
.qd-compact.qd-starting-portrait:not(.qd-live-ready) .landing-model-poster { display: block; object-fit: contain; }
.qd-compact.qd-starting-portrait:not(.qd-live-ready) .qd-canvas { visibility: hidden; }
.qd-compact.qd-starting-portrait:not(.qd-live-ready) .qd-load {
  top: auto; bottom: 12%; left: 50%; right: auto; transform: translateX(-50%);
  width: max-content; max-width: 88%; padding: 6px 11px; border-radius: 14px; font-size: 12px;
}
.landing-placeholder button { color: #fff; background: #403346; border-radius: 8px; padding: 8px 18px; }
.landing-only { display: none; }
.qd-dialog.qd-compact {
  position: relative; inset: auto; z-index: auto; margin: 0;
  width: 100%; height: 100%; max-width: 100%; max-height: none;
  border-radius: inherit; border: 1px solid #9b879c55; background: #302836;
  box-shadow: 0 15px 55px #09061240;
}
.qd-compact .qd-shell { grid-template-rows: auto minmax(0, 1fr) auto; }
.qd-compact :is(.qd-header, .qd-footer, .qd-left, .qd-right, .qd-view, .qd-stage-label, .qd-stage-caption) { display: none; }
.qd-compact .qd-workspace { display: block; min-height: 0; }
.qd-compact .qd-stage {
  width: 100%; height: 100%; overflow: clip;
  background: radial-gradient(ellipse at 51% 42%, #988795 0, #776575 36%, #55495e 63%, #393442 100%);
}
.qd-compact .qd-stage::before {
  inset: 7% 10% -45%; border: 1px solid #f7deeb28; border-radius: 50% 50% 0 0;
}
.qd-compact .qd-stage::after {
  content: ''; position: absolute; pointer-events: none; inset: 12% 14% -45%;
  border: 1px solid #f7deeb16; border-radius: 50% 50% 0 0; z-index: -1;
}
.qd-compact .qd-canvas { inset: 0; }
.qd-compact .landing-studio-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 20px; background: #2a2332; border-bottom: 1px solid #d7c2df25;
}
.landing-studio-head h2 { font: 500 clamp(17px, 1.8vw, 24px)/1.25 Georgia, serif; color: #fff1f2; margin: 0 auto 0 0; }
.landing-studio-head .qd-frame-switch {
  flex: none; gap: 2px; margin: 0; padding: 3px; background: #201a28; border-radius: 24px;
}
.landing-studio-head .qd-frame-switch button {
  min-height: 32px; padding: 4px 12px; border-radius: 18px; color: #e6d8e9; background: transparent; font-size: 12px;
}
.landing-studio-head .qd-frame-switch button[aria-pressed=true] { color: #302136; background: #e1c3e3; }
.landing-studio-head .qd-frame-switch button:focus-visible { outline: 2px solid #f7dff7; outline-offset: 1px; }
.qd-compact .landing-expand {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px;
  color: #f3e1ef; background: #44374b; border-color: #a788a55e; border-radius: 24px; font-size: 12px;
}
.landing-expand svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
@container (max-width: 455px) {
  .qd-compact .landing-studio-head { gap: 7px; }
  .landing-studio-head .qd-frame-switch button { padding-inline: 9px; }
  .qd-compact .landing-expand { flex: none; width: 36px; height: 36px; padding: 0; justify-content: center; }
  .landing-expand span { display: none; }
}
.qd-compact .landing-stage-foot {
  display: flex; position: absolute; align-items: center; justify-content: space-between;
  left: 16px; right: 16px; bottom: 13px; pointer-events: none; z-index: 2;
}
.landing-stage-foot span, .qd-compact .landing-stage-foot button {
  color: #fff2fa; background: #292331cf; border-radius: 20px; font-size: 11px; padding: 6px 11px;
}
.qd-compact .landing-stage-foot button { pointer-events: auto; min-height: 34px; border-color: #f1dbef62; }
.qd-compact .landing-tools {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.18fr) auto;
  align-items: end; gap: 12px; padding: 16px 20px 18px; background: #2a2332;
  border-top: 1px solid #c7a5cc24;
}
.landing-tools > label { display: grid; gap: 5px; min-width: 0; color: #d8c8dc; font-size: 12px; }
.landing-tools select {
  display: block; width: 100%; min-width: 0; height: 38px; margin: 0; padding: 4px 7px;
  color-scheme: dark; background-color: #382e40; color: #fff3fa; border: 1px solid #73617b;
  border-radius: 8px; font: inherit; font-size: 13px;
}
.landing-tools select:focus-visible { outline: 2px solid #edc8ff; outline-offset: 2px; }
.landing-colors { display: flex; gap: 10px; }
.landing-tint { display: grid; justify-items: center; gap: 4px; font-size: 10px; color: #ddcfe0; cursor: pointer; }
.qoutas-welcome .landing-tint input[type=color] {
  appearance: none; cursor: pointer; width: 31px; height: 31px; min-height: 0; margin: 0; padding: 3px;
  background: transparent; border-radius: 50%; border: 1px solid #b19cb7;
}
.landing-tint input::-webkit-color-swatch-wrapper { padding: 0; }
.landing-tint input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.landing-tint input::-moz-color-swatch { border: 0; border-radius: 50%; }
.qd-dialog:has(.landing-only):not(.qd-compact) .qd-close { margin-left: auto; }
@media (max-width: 900px) {
  .welcome-layout { grid-template-columns: minmax(260px,.8fr) minmax(0,1.2fr); gap: 20px; }
  .welcome-intro { display: block; }
  .welcome-story { text-align: left; margin: 0; }
  .welcome-story > p { margin: 0 0 18px; font-size: 13px; }
  .qoutas-welcome .auth-card { padding: 16px; }
  .qd-compact .landing-tools { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 12px; }
  .landing-colors { grid-column: 1/-1; gap: 20px; }
  .landing-tint { display: flex; align-items: center; gap: 6px; }
  .qoutas-welcome .landing-tint input[type=color] { width: 27px; height: 27px; }
}
@media (max-width: 680px) {
  .welcome-header { padding: 12px 4%; min-height: 62px; flex-wrap: nowrap; gap: 10px; }
  .welcome-header .welcome-wordmark { font-size: 25px; }
  .welcome-header .welcome-wordmark svg { width: 30px; height: 30px; }
  .welcome-descriptor { display: none; }
  .welcome-layout { display: flex; gap: 15px; padding: 8px 4% 22px; align-items: stretch; }
  .welcome-intro { display: contents; }
  .welcome-story { align-self: center; text-align: center; }
  .welcome-story h1 { font-size: clamp(30px,7.5vw,43px); margin: 2px 0 7px; }
  .welcome-story h1 em { display: inline; }
  .welcome-story > p { font-size: 12px; max-width: 330px; margin: 0 auto; }
  #landing-studio { order: 1; height: clamp(376px, 53svh, 475px); border-radius: 16px; }
  .qd-compact .landing-studio-head { padding: 9px 12px; }
  .qd-compact .landing-tools { padding: 10px 12px; }
  .qd-compact .landing-expand { min-height: 36px; }
  .qoutas-welcome .auth-card { order: 2; width: 100%; max-width: none; }
  .qoutas-welcome #auth-form input { font-size: 16px; }
  .qd-dialog:has(.landing-only) .qd-footer > p { display: none; }
}
