.studio {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(300px, 1fr) minmax(
      270px,
      310px
    );
  min-height: calc(100vh - 69px);
  margin: 0 auto;
  max-width: 1750px;
}
.rail,
.inspector {
  background: var(--surface);
  padding: 1.3rem 1.2rem;
}
.rail {
  border-right: 1px solid var(--line);
}
.inspector {
  border-left: 1px solid var(--line);
}
.rail-heading,
.status-row,
.preview-head,
.edit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}
.rail h1 {
  font-size: 1.2rem;
  letter-spacing: -0.037em;
}
.rail > label,
.metadata {
  margin-top: 0.8rem;
}
.metadata {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 0.5rem;
}
.status-row {
  font-size: 0.78rem;
  color: var(--muted);
  min-height: 2rem;
  margin: 0.13rem 0 0.55rem;
}
.slot-group {
  margin-top: 0.95rem;
}
.slot-group h3 {
  font-size: 0.77rem;
  color: var(--muted);
  margin-bottom: 0.37rem;
}
.slot-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
}
.slot-list button {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  font-weight: 600;
  font-size: 0.78rem;
  border-color: transparent;
  background: #f6f7fb;
  padding: 0.43rem 0.37rem;
  white-space: nowrap;
}
.slot-list button:hover,
.slot-list .current {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: #ded9ff;
}
.slot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b9c1d2;
  flex: none;
}
.slot-dot.filled {
  background: #16806e;
}
.preview {
  padding: 1.45rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f2f3fa;
}
.preview-head {
  align-items: flex-start;
  flex-wrap: wrap;
}
.preview-head h2,
.inspector h2 {
  font-size: 1.17rem;
  letter-spacing: -0.02em;
}
.preview-head p,
.inspector > .muted {
  color: var(--muted);
  font-size: 0.83rem;
  margin-top: 0.3rem;
}
.segments {
  display: flex;
  padding: 3px;
  background: #e5e8f3;
  border-radius: 9px;
  gap: 2px;
}
.segments button {
  font-size: 0.79rem;
  padding: 0.4rem 0.55rem;
  border: 0;
  background: transparent;
  white-space: nowrap;
  color: #4d5870;
}
.segments .current {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 1px 3px #28305419;
}
.preview-field {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 665px;
  margin-top: 1.1rem;
  border: 1px solid #e3e5f0;
  border-radius: 13px;
  background: radial-gradient(ellipse at 50% 33%, #fdfdff, #e9e7f7 72%);
}
.phone {
  width: min(285px, 90%);
  aspect-ratio: 390/812;
  border: 8px solid #292739;
  border-radius: 37px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 20px 40px #25254435;
  position: relative;
}
.phone:after {
  content: "";
  position: absolute;
  width: 32%;
  height: 3px;
  bottom: 6px;
  left: 34%;
  border-radius: 8px;
  background: #2c263b;
  opacity: 0.65;
  pointer-events: none;
}
.phone-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f7f4fc center/100% 100%;
  color: #2d2545;
  font-size: 0.74rem;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px 5px;
  font-size: 0.64rem;
  font-weight: 700;
}
.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  padding: 0 12px;
  font-size: 1rem;
  font-weight: 750;
}
.phone-symbol {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  color: #5144af;
  background: #ede8fb center/100% 100% no-repeat;
  flex: none;
}
.phone-search {
  margin: 0 11px 8px;
  padding: 6px;
  text-align: center;
  border-radius: 8px;
  background: #fff9 center/100% 100% no-repeat;
  color: #5d5770;
}
.phone-body {
  flex: 1;
  overflow: hidden;
}
.phone-row {
  min-height: 57px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-bottom: 1px solid #51477614;
  background: #ffffffb8;
}
.phone-avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: #e9ddfc;
  color: #594582;
  font-weight: 800;
  flex: none;
}
.phone-row:nth-child(even) .phone-avatar {
  background: #d6ede7;
  color: #315a51;
}
.phone-row p {
  font-size: 0.66rem;
  color: #5d5870;
}
.phone-row time {
  margin-left: auto;
  color: #645e76;
  font-size: 0.6rem;
}
.phone-nav,
.phone-composer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 4px;
  padding: 7px 4px 17px;
  background: #fbf9ffed;
  border-top: 1px solid #eee8fa;
}
.phone-nav button {
  border: 0;
  padding: 0;
  background: none;
  display: grid;
  justify-items: center;
  gap: 3px;
  font-size: 0.55rem;
  color: #55496b;
  min-width: 0;
}
.phone-nav button[aria-current="true"] {
  color: var(--accent-dark);
}
.bubble-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 10px;
}
.bubble-line.right {
  flex-direction: row-reverse;
}
.bubble {
  display: grid;
  place-items: center;
  min-height: 34px;
  width: 91px;
  padding: 4px;
  text-align: center;
  background: #fff center/100% 100% no-repeat;
  border-radius: 10px;
}
.right .bubble {
  background-color: #ddd4ff;
}
.phone-composer .entry {
  flex: 1;
  min-height: 24px;
  border-radius: 5px;
  background: #fff center/100% 100% no-repeat;
}
.phone-composer .send {
  width: 37px;
  font-size: 0.58rem;
}
.moment-cover {
  height: 135px;
  background: linear-gradient(125deg, #eedafb99, #c1b3f099);
  display: flex;
  align-items: end;
  justify-content: end;
  padding: 12px;
  font-weight: 800;
}
.moment-post {
  margin: 10px;
  background: #fff9;
  border-radius: 8px;
  padding: 10px;
}
.moment-post p {
  margin-top: 5px;
}
.crop-workspace {
  height: 238px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 1rem 0 0.65rem;
  display: grid;
  place-items: center;
  background: repeating-conic-gradient(#f5f5fa 0% 25%, #eaeaf2 0% 50%) 50%/16px
    16px;
  overflow: hidden;
}
.crop-workspace canvas {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  outline: 1px solid #877bd2;
  cursor: grab;
  touch-action: none;
}
.crop-workspace canvas:active {
  cursor: grabbing;
}
.crop-workspace #crop-empty {
  background: #fff;
  padding: 0.45rem 0.65rem;
  border-radius: 7px;
  font-size: 0.8rem;
  color: var(--muted);
}
.upload-control {
  display: block;
  color: var(--accent-dark);
  background: var(--accent-soft);
  cursor: pointer;
}
.upload-control:focus-within {
  outline: 3px solid #6054e0;
  outline-offset: 3px;
}
.upload-control input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  opacity: 0;
}
.source-info {
  font-size: 0.76rem;
  color: var(--muted);
  min-height: 2.7em;
  margin: 0.45rem 0 0.65rem;
}
.inspector fieldset {
  display: grid;
  gap: 0.75rem;
}
.inspector output {
  color: var(--accent-dark);
  justify-self: end;
}
.inspector label:has(output) {
  grid-template-columns: 1fr auto;
}
.inspector label input[type="range"] {
  grid-column: 1/-1;
}
.inspector .feedback {
  margin-top: 1rem;
}
.edit-actions button {
  font-size: 0.78rem;
  padding: 0.55rem 0.5rem;
}
@media (max-width: 1040px) {
  .studio {
    grid-template-columns: 205px minmax(260px, 1fr) 235px;
  }
  .rail,
  .inspector,
  .preview {
    padding: 1rem 0.75rem;
  }
  .preview-field {
    min-height: 575px;
  }
}
@media (max-width: 780px) {
  .studio {
    grid-template-columns: minmax(160px, 0.7fr) minmax(250px, 1fr);
  }
  .preview {
    grid-column: 2;
    grid-row: 1/3;
  }
  .inspector {
    border-left: 0;
    border-right: 1px solid var(--line);
    grid-column: 1;
  }
  .rail {
    grid-column: 1;
  }
  .preview-field {
    min-height: 430px;
  }
}
@media (max-width: 480px) {
  .studio {
    display: flex;
    flex-direction: column;
  }
  .rail,
  .inspector {
    border: 0;
  }
  .preview {
    order: 2;
  }
  .preview-field {
    min-height: 485px;
  }
}
