.one-studio {
  box-sizing: border-box;
  width: min(32rem, calc(100% - 2rem));
  max-height: min(88dvh, 50rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: #1c2b3e;
  background: #fff;
  border: 0;
  border-radius: 1.5rem;
  box-shadow: 0 20px 80px #111f3b30;
  font: inherit;
}
.one-studio::backdrop { background: #101c32a6; }
body:has(.one-studio[open]) { overflow: hidden; }
.one-studio * { box-sizing: border-box; }
.one-studio :is(button,input,textarea) { font: inherit; }
.one-studio button { cursor: pointer; margin: 0; }
.one-studio button:disabled { opacity: .55; cursor: wait; }
.one-studio :focus-visible { outline: 3px solid #ffac38; outline-offset: 3px; }
.one-studio__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.15rem 0 1.6rem; }
.one-studio__top span { color: #315f95; font-size: .875rem; font-weight: 700; }
.one-studio__close { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: #f2f5f7; color: #354153; }
.one-studio__body { padding: .6rem 1.6rem 1.35rem; }
.one-studio h2 { font-size: 1.7rem; line-height: 1.35; letter-spacing: -.055em; margin: 0 0 .5rem; text-align: left; scroll-margin-top: 1.5rem; }
.one-studio h2:focus:not(:focus-visible) { outline: none; }
.one-studio__info,.one-studio__empty,.one-studio__help,.one-studio__status,.one-studio__confirm p { margin: 0; color: #536375; line-height: 1.6; font-size: .95rem; }
.one-studio__info { margin: 0 0 1.4rem; }
.one-studio__empty { background: #f2f6fa; padding: 1rem; border-radius: .8rem; margin-top: 1rem; }
.one-studio__status:not(:empty) { padding-top: .9rem; color: #234f81; }
.one-studio__primary,.one-studio__secondary,.one-studio__danger,.one-studio__text { border: 0; min-height: 2.75rem; border-radius: .75rem; padding: .65rem .95rem; font-weight: 700 !important; line-height: 1.4; }
.one-studio__primary { background: #155cbb; color: #fff; }
.one-studio__primary:hover { background: #154d98; }
.one-studio__secondary { color: #33485d; background: #eaf0f5; }
.one-studio__danger { background: #b42c3c; color: #fff; }
.one-studio__text { color: #3f5972; padding-inline: .55rem; background: transparent; }
.one-studio__text:hover { background: #eff3f7; }
.one-studio__row { display: flex; align-items: center; gap: .65rem; padding: .8rem 0; border-bottom: 1px solid #e2e8ed; min-width: 0; }
.one-studio__row:first-of-type { margin-top: .5rem; }
.one-studio__thumb { width: 3.3rem; height: 3.3rem; flex: none; border-radius: .7rem; object-fit: cover; background: #e9edf2; display: block; }
.one-studio__item-title { color: #23364a; line-height: 1.4; overflow-wrap: anywhere; flex: 1; min-width: 0; }
.one-studio__actions,.one-studio__buttons,.one-studio__previews { display: flex; gap: .4rem; align-items: center; }
.one-studio__actions { flex: none; }
.one-studio__confirm p { margin-bottom: .55rem; }
.one-studio__confirm button { margin-right: .35rem; }
.one-studio__form { margin: 0; display: grid; }
.one-studio__form label { font-weight: 650; text-align: left; margin-bottom: .35rem; font-size: .95rem; line-height: 1.4; }
.one-studio__form label span { font-weight: 400; color: #617184; }
.one-studio__form :is(input,textarea) { margin: 0 0 1rem; border: 1px solid #cbd6df; color: #223447; border-radius: .75rem; padding: .75rem; width: 100%; background: #fff; font-size: 1rem; line-height: 1.5; min-width: 0; }
.one-studio__form input[type=file] { margin-bottom: .3rem; }
.one-studio__form input::file-selector-button { font: inherit; border: 0; border-radius: .4rem; background: #edf2f8; color: #244365; padding: .25rem .45rem; margin-right: .5rem; }
.one-studio__form textarea { resize: vertical; min-height: 5.5rem; }
.one-studio__help { font-size: .875rem; }
.one-studio__previews { flex-wrap: wrap; padding-top: .55rem; }
.one-studio__previews:empty { display: none; }
.one-studio__buttons { justify-content: flex-end; margin-top: 1.3rem; }
@media(max-width: 480px){
  .one-studio { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 1.4rem 1.4rem 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .one-studio__body { padding-inline: 1.25rem; }
  .one-studio__top { padding-left: 1.25rem; }
  .one-studio__actions { gap: .1rem; }
}
@media(prefers-reduced-motion: no-preference){
  .one-studio[open] { animation: one-studio-open 180ms ease-out; }
  @keyframes one-studio-open { from { opacity: .5; transform: translateY(8px); } }
}
