﻿#admin-root {
  margin: 35px 4%;
  max-width: 1300px;
}
.login {
  max-width: 430px;
  margin: 70px auto;
}
.login h1,
.editor h1 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -1.5px;
}
.login p {
  color: var(--muted);
  line-height: 1.7;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.field label {
  font:
    11px "Courier New",
    monospace;
  text-transform: uppercase;
}
.field input,
.field textarea,
.field select {
  background: #fafaf8;
  border: 1px solid #c8c6be;
  border-radius: 0;
  padding: 12px;
  color: var(--ink);
  width: 100%;
  min-height: 44px;
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field textarea.tall {
  min-height: 250px;
}
.solid {
  padding: 13px 18px;
  background: var(--ink);
  color: var(--paper);
  min-height: 44px;
}
.solid:hover {
  background: var(--blue);
  color: white;
}
.studio-nav {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 25px;
}
.studio-nav button {
  min-height: 44px;
  font: 12px monospace;
}
.studio-nav button[aria-pressed="true"] {
  color: var(--blue);
}
.studio-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 55px;
}
.list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.record-list {
  max-height: 75vh;
  overflow: auto;
  padding-right: 10px;
}
.record-list button {
  display: flex;
  text-align: left;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  align-items: center;
}
.record-list button.active {
  color: var(--blue);
}
.record-list img {
  width: 40px;
  height: 45px;
  object-fit: contain;
}
.record-list small {
  display: block;
  font: 10px monospace;
  color: var(--muted);
  margin-top: 5px;
}
.editor {
  max-width: 800px;
}
.editor h1 {
  margin-top: 0;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.field.wide {
  grid-column: 1/-1;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 25px;
  min-height: 40px;
}
.check input {
  width: 18px;
  height: 18px;
}
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.danger {
  color: #9a2525;
  text-decoration: underline;
  padding: 12px;
}
.notice {
  font: 11px/1.7 monospace;
  color: var(--muted);
  padding: 14px 0;
}
.error {
  color: #a02020;
  line-height: 1.5;
}
.status {
  font: 12px monospace;
  min-height: 25px;
}
.upload-row {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 25px;
}
.media-editor {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  margin: 20px 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}
.media-editor img {
  width: 90px;
  height: 110px;
  object-fit: contain;
}
.media-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.media-actions button {
  font: 10px monospace;
  padding: 8px 0;
}
.media-editor .field {
  margin-bottom: 10px;
}
.loading {
  padding: 40px;
}
.search {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  background: transparent;
  margin-bottom: 12px;
}
.profile-editor {
  max-width: 800px;
}
@media (max-width: 767px) {
  .studio-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .record-list {
    max-height: 220px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .field.wide {
    grid-column: auto;
  }
  .studio-nav {
    gap: 20px;
  }
  .studio-nav button {
    font-size: 11px;
  }
  #admin-root {
    margin: 25px 5%;
  }
  .login {
    margin: 40px auto;
  }
  .media-editor {
    grid-template-columns: 65px 1fr;
  }
  .media-editor img {
    width: 65px;
  }
  header nav {
    align-items: center;
  }
}
