.studio-page {
  background: #faf9fe;
}
.studio-shell {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 38px var(--gutter) 80px;
}
.studio-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.studio-heading p {
  margin: 0 0 7px;
  color: var(--violet);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.studio-heading h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.055em;
}
.studio-tabs {
  display: flex;
  gap: 6px;
}
.studio-tabs button {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}
.studio-tabs button[aria-selected="true"] {
  border-color: var(--violet);
  background: #eeeaff;
  color: var(--violet-deep);
}
.login-gate {
  min-height: calc(100dvh - 180px);
  display: grid;
  place-items: center;
}
.login-gate > div {
  max-width: 620px;
  padding: 60px;
  border-radius: 28px;
  background: linear-gradient(135deg, #efeaff, #fff 72%);
  border: 1px solid #ded8ff;
}
.login-gate p {
  margin: 0;
  color: var(--violet);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.login-gate h1 {
  margin: 15px 0 0;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
}
.login-gate span {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  line-height: 1.7;
}
.login-gate button,
.portfolio-empty button {
  margin-top: 28px;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  padding: 0 20px;
  background: var(--violet);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.portfolio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--ink);
}
.portfolio-head h2 {
  margin: 0;
  font-size: 1.35rem;
}
.portfolio-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.studio-primary,
.studio-secondary {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.studio-primary {
  background: var(--violet);
  color: #fff;
}
.studio-primary:hover {
  background: var(--violet-deep);
}
.studio-primary:disabled,
.studio-secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.studio-secondary {
  border: 1px solid #dcd9e6;
  background: #fff;
}
.studio-secondary:hover:not(:disabled) {
  border-color: var(--violet);
  background: var(--lavender);
}
.portfolio-list {
  display: grid;
  gap: 16px;
}
.portfolio-game {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}
.portfolio-game__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px 20px;
  background: #f6f4fc;
}
.portfolio-game__head > div:first-child {
  margin-right: auto;
}
.portfolio-game__head h3 {
  margin: 0;
  font-size: 1.1rem;
}
.portfolio-game__head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}
.portfolio-game__head button {
  min-height: 38px;
  border: 1px solid #d9d5e5;
  border-radius: 11px;
  padding: 0 12px;
  background: #fff;
  font-size: 0.7rem;
  font-weight: 750;
  cursor: pointer;
}
.version-track {
  display: grid;
}
.version-row {
  display: grid;
  grid-template-columns: 130px minmax(160px, 1fr) 140px 150px auto;
  align-items: center;
  gap: 18px;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}
.version-row:first-child {
  border-top: 0;
}
.version-row strong {
  font-size: 0.82rem;
}
.version-row small {
  color: var(--muted);
}
.version-row button,
.version-row a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 0 11px;
  background: var(--lavender);
  color: var(--violet-deep);
  font-size: 0.68rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.status-badge {
  display: inline-flex;
  width: max-content;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 800;
}
.status-draft {
  background: #efedf3;
  color: #625f6b;
}
.status-uploaded {
  background: #e6f5ff;
  color: #03639e;
}
.status-submitted,
.status-reviewing {
  background: #e9eeff;
  color: #3154c8;
}
.status-changes_requested {
  background: #fff0d8;
  color: #9a5600;
}
.status-rejected {
  background: #ffe3e7;
  color: #ac2d40;
}
.status-published {
  background: #dff7ed;
  color: #007154;
}
.status-superseded {
  background: #eceaf0;
  color: #77727e;
}
.portfolio-empty {
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed #d4d0e1;
  border-radius: 20px;
  background: #fff;
}
.portfolio-empty strong,
.portfolio-empty span {
  display: block;
}
.portfolio-empty span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}
.form-context {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.form-context > button {
  border: 0;
  background: transparent;
  color: var(--violet);
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}
.form-context > div {
  display: flex;
  flex-direction: column;
  margin-right: auto;
}
.form-context > div span {
  color: var(--muted);
  font-size: 0.62rem;
}
.form-context > div strong {
  font-size: 0.86rem;
}
.submission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}
.submission-form {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 8px 26px;
}
.form-step {
  display: grid;
  grid-template-columns: 48px 1fr;
}
.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-marker span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--violet);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(110, 64, 255, 0.22);
}
.step-marker i {
  width: 2px;
  flex: 1;
  min-height: 30px;
  background: #d8d0ff;
}
.step-body {
  min-width: 0;
  padding: 6px 0 30px 14px;
}
.form-step + .form-step .step-body {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.form-step + .form-step .step-marker {
  padding-top: 22px;
}
.step-body > header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}
.step-body h2 {
  margin: 0;
  font-size: 1rem;
}
.step-body header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field-grid > label,
.full-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
}
.span-2 {
  grid-column: 1/-1;
}
.field-grid label > span,
.full-field > span,
fieldset legend {
  font-size: 0.72rem;
  font-weight: 750;
}
.field-grid em,
.full-field em {
  color: #d93550;
  font-style: normal;
}
.field-grid input,
.field-grid textarea,
.field-grid select,
.full-field textarea {
  width: 100%;
  border: 1px solid #dcd9e6;
  border-radius: 11px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  font-size: 0.78rem;
  outline: 0;
}
.field-grid textarea {
  min-height: 86px;
  resize: vertical;
}
.field-grid .span-2 textarea {
  min-height: 105px;
}
.field-grid small,
.full-field small {
  color: #9995a3;
  font-size: 0.62rem;
}
.field-grid small b,
.full-field small b {
  font-weight: 600;
}
.field-grid label > small {
  align-self: flex-end;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
fieldset legend {
  margin-bottom: 11px;
}
.choice {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 12px 7px 0;
  font-size: 0.7rem;
}
.choice input {
  width: auto;
}
.upload-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
}
.dropzone {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1.5px dashed #a797ed;
  border-radius: 14px;
  background: #fbfaff;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.dropzone:hover {
  border-color: var(--violet);
  background: #f5f1ff;
}
.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-icon {
  color: var(--violet);
  font-size: 2rem;
}
.dropzone strong {
  font-size: 0.78rem;
}
.dropzone small {
  max-width: 85%;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.45;
}
.dropzone-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
}
.dropzone-cover strong,
.dropzone-cover small,
.dropzone-cover .upload-icon {
  position: relative;
  z-index: 1;
}
.step-body > .studio-secondary {
  margin-top: 14px;
}
.full-field textarea {
  min-height: 100px;
  resize: vertical;
}
.full-field small {
  align-self: flex-end;
}
.version-rule {
  margin-top: 15px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #edf3ff;
  color: #3e587b;
  font-size: 0.68rem;
  line-height: 1.55;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}
.form-actions [aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}
.submission-aside {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 18px;
}
.submission-aside > section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.submission-aside header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.submission-aside h2 {
  margin: 0;
  font-size: 0.88rem;
}
.submission-aside header button {
  border: 0;
  background: transparent;
  color: var(--violet);
  font-size: 0.67rem;
  cursor: pointer;
}
.submission-aside ol {
  list-style: none;
  margin: 15px 0 0;
  padding: 0;
}
.submission-aside li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
}
.submission-aside li:first-child {
  border-top: 0;
}
.check-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #eeeaf3;
  color: #807b89;
  font-size: 0.6rem;
}
.is-pass .check-icon {
  background: #dff8ed;
  color: #007253;
}
.is-warn .check-icon {
  background: #fff0d8;
  color: #9b5900;
}
.submission-aside li small {
  color: var(--muted);
}
.review-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
}
.submission-aside > section > p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
}
#reviewFeedback p {
  white-space: pre-line;
  color: #8c4e00;
}
.studio-page .toast {
  z-index: 100;
}
@media (max-width: 1000px) {
  .submission-layout {
    grid-template-columns: 1fr;
  }
  .submission-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
  .submission-aside > section:first-child {
    grid-column: 1/-1;
  }
  .version-row {
    grid-template-columns: 110px 1fr 120px auto;
  }
  .version-row > small:nth-of-type(2) {
    display: none;
  }
}
@media (max-width: 720px) {
  .studio-shell {
    padding: 24px 14px 60px;
  }
  .studio-heading {
    align-items: start;
    display: block;
  }
  .studio-tabs {
    margin-top: 18px;
    overflow-x: auto;
  }
  .portfolio-head {
    align-items: flex-start;
  }
  .version-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .version-row > small {
    grid-column: 1;
  }
  .submission-form {
    padding: 8px 14px;
  }
  .form-step {
    grid-template-columns: 38px 1fr;
  }
  .step-marker span {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
  .step-body {
    padding-left: 10px;
  }
  .step-body > header {
    display: block;
  }
  .step-body header p {
    margin-top: 5px;
  }
  .field-grid,
  .upload-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .submission-aside {
    grid-template-columns: 1fr;
  }
  .submission-aside > section:first-child {
    grid-column: auto;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .form-actions > * {
    flex: 1 1 42%;
  }
  .form-context {
    align-items: flex-start;
  }
  .login-gate > div {
    padding: 38px 24px;
  }
}
