[hidden] {
  display: none !important;
}
.studio {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}
.studio-head {
  min-height: 86px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--space);
  gap: 22px;
}
.studio-head .brand-logo {
  width: 108px;
}
.studio nav,
.tools,
.actions,
.feature,
.field-row,
.filters,
.viewer-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.studio-main,
.gallery-wrap {
  max-width: 1500px;
  margin: auto;
  padding: 52px var(--space) 96px;
}
.studio h1,
.public-gallery h1 {
  font-size: clamp(44px, 6vw, 84px);
}
.studio h2,
.collection-caption {
  font-size: clamp(24px, 3vw, 40px);
}
.studio h3,
.studio p {
  margin: 0;
}
.studio h3 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
}
.studio button,
.studio input,
.studio select,
.studio textarea {
  font: inherit;
}
.studio button,
.pill {
  border: 1px solid #cacbc1;
  border-radius: 24px;
  background: transparent;
  padding: 9px 15px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
}
.studio button:hover,
.studio button[aria-current="page"] {
  background: var(--sage);
}
.studio .primary {
  background: #252b23;
  border-color: #252b23;
  color: #fff;
}
.studio .primary:hover {
  background: #414a3b;
}
.studio button:disabled {
  opacity: 0.4;
  cursor: default;
}
.studio svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.studio button.icon {
  padding: 9px;
  min-width: 40px;
}
.studio :is(input:not([type="checkbox"]):not([type="file"]), select, textarea) {
  width: 100%;
  min-width: 0;
  color: inherit;
  border: 1px solid #acb0a2;
  border-radius: 9px;
  background: #fffefd;
  padding: 10px 12px;
}
.studio textarea {
  min-height: 86px;
}
.studio :focus-visible,
.photo-tile:focus-visible {
  outline: 2px solid #54634b;
  outline-offset: 3px;
}
.studio label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
}
.studio .field-row > label {
  flex: 1;
  min-width: min(170px, 100%);
}
.studio .check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.check input {
  accent-color: #44533f;
  width: 17px;
  height: 17px;
}
.heading-row,
.section-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.heading-row {
  margin-bottom: 28px;
}
.filters {
  border-block: 1px solid var(--line);
  padding: 18px 0;
  margin: 20px 0;
}
.filters label {
  min-width: min(210px, 100%);
}
.filters .tools {
  align-self: flex-end;
}
.login,
.edit-form {
  display: grid;
  gap: 16px;
}
.login {
  width: min(100%, 430px);
  margin: 8vh auto;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 40px);
}
.login h1 {
  font-size: 40px;
}
.login .eyebrow {
  color: #606955;
}
#editor {
  background: var(--paper);
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 18px;
  width: min(570px, calc(100% - 24px));
  max-height: 90dvh;
  overflow: auto;
  padding: clamp(20px, 4vw, 34px);
}
dialog::backdrop {
  background: #171b17a8;
}
.edit-form .actions {
  justify-content: flex-end;
}
.studio .muted {
  font-size: 13px;
  color: #5b6056;
}
.danger {
  color: #91372d;
}
.drop {
  border: 1.5px dashed #969e8b;
  border-radius: 14px;
  background: #eff0e9;
  padding: 25px;
  text-align: center;
  margin: 22px 0;
}
.drop.drag {
  border-color: #303d2a;
  background: #e1e7d8;
}
.drop label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  flex-direction: row;
}
.drop:focus-within {
  outline: 2px solid #54634b;
}
.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.pending {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}
.pending img {
  width: 80px;
  height: 76px;
  object-fit: cover;
  border-radius: 7px;
}
.studio progress {
  width: 100%;
  accent-color: #536947;
}
.section-line {
  margin: 26px 0 14px;
}
.photo-grid,
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr));
  gap: 18px;
}
.photo-card,
.package-row {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
}
.photo-card > img {
  width: 100%;
  height: 225px;
  object-fit: cover;
}
.card-body {
  padding: 14px;
  display: grid;
  gap: 11px;
}
.card-body h3,
.package-row h3,
.collection-tile h2 {
  overflow-wrap: anywhere;
}
.package-row {
  padding: 18px 20px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}
.feature {
  flex-wrap: nowrap;
}
.feature input {
  flex: 1;
}
.feature .icon {
  min-width: 32px;
  padding: 5px;
}
#notice:not(:empty) {
  position: fixed;
  z-index: 8;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #283326;
  color: white;
  border-radius: 12px;
  padding: 12px 18px;
  max-width: min(90vw, 650px);
  box-shadow: 0 5px 20px #0002;
}
#notice.error:not(:empty) {
  background: #813b31;
}
.form-error {
  color: #91372d;
  font-size: 14px;
}
.public-gallery .pricing-intro {
  padding-bottom: 0;
}
.collection-caption {
  display: grid;
  gap: 15px;
  margin-bottom: 24px;
}
.collection-caption a {
  font-size: 14px;
}
.collection-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}
.collection-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.photo-tile {
  padding: 0;
  align-self: start;
}
.collection-tile h2 {
  font-size: 25px;
  margin-top: 12px;
}
#viewer {
  border: 0;
  border-radius: 12px;
  background: #191c19;
  color: white;
  width: min(1000px, 96vw);
  padding: 12px;
}
#viewer img {
  height: 72dvh;
  object-fit: contain;
}
.viewer-bar {
  justify-content: center;
}
.viewer-bar button,
#close-viewer {
  padding: 8px 16px;
}
#close-viewer {
  display: block;
  margin-left: auto;
}
@media (max-width: 600px) {
  .studio-head {
    flex-wrap: wrap;
    padding: 15px 18px;
  }
  .studio nav {
    gap: 3px;
  }
  .studio nav button {
    font-size: 12px;
    padding: 6px 9px;
    min-height: 36px;
  }
  .studio-head .brand-logo {
    width: 80px;
  }
  .studio-main {
    padding: 30px 18px 80px;
  }
  .filters > label {
    width: 100%;
  }
  .studio .tools {
    gap: 6px;
  }
  .gallery-wrap {
    padding-top: 30px;
  }
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .collection-tile h2 {
    font-size: 18px;
  }
  .feature {
    gap: 3px;
  }
}
