.admin-page header {
  max-width: none;
}
.admin-badge {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
}
.back-link {
  margin-left: auto;
  font-size: 12px;
}
.admin-main {
  max-width: 1400px;
  padding: 45px 5%;
}
.access-panel {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 80px;
  align-items: center;
  padding: 45px 0 80px;
}
.access-panel h1 {
  font-size: 58px;
}
.access-panel > div > p {
  max-width: 420px;
  color: var(--muted);
}
.access-note {
  background: #edf0e6;
  border-left: 3px solid #8c9c75;
  padding: 15px 18px;
  font-size: 12px;
  line-height: 1.8;
  margin: 25px 0;
  max-width: 420px;
}
.access-card {
  padding: 35px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 40px #254a3510;
}
.access-card h2 {
  margin-top: 18px;
}
.access-card p {
  color: var(--muted);
}
.access-card .primary {
  margin-top: 10px;
}
.mode-pill {
  background: #edf0e6;
  color: #637850;
  font-size: 10px;
  letter-spacing: 0.7px;
  padding: 7px 10px;
  border-radius: 5px;
  white-space: nowrap;
}
.muted {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.text-link {
  font-size: 12px;
  color: var(--green);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 0;
  cursor: pointer;
}
.workspace-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 10px 0 28px;
}
.workspace-heading h1 {
  font-size: 42px;
  margin: 10px 0;
}
.workspace-heading p {
  font-size: 12px;
  color: var(--muted);
}
.workspace-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 28px;
}
.stats button {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--green);
  padding: 20px;
}
.stats button:hover {
  border-color: #93aa8c;
}
.stats small {
  font-size: 11px;
  color: var(--muted);
}
.stats strong {
  font:
    32px "Playfair Display",
    serif;
  margin-top: 10px;
}
.admin-toolbar {
  display: flex;
  gap: 10px;
}
.admin-toolbar .search {
  min-width: 180px;
}
.admin-toolbar .secondary {
  font-size: 12px;
}
.table-container {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  margin-top: 15px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  padding: 15px 20px;
  background: #f0f2eb;
  font-size: 10px;
  letter-spacing: 0.5px;
  font-weight: 500;
  color: #73816c;
  white-space: nowrap;
}
td {
  padding: 17px 20px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 7px;
  font-size: 10px;
}
.table-book {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.table-thumb {
  width: 35px;
  height: 48px;
  background: #254d40;
  color: #f7efd6;
  border-radius: 2px;
  object-fit: cover;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 16px;
}
.table-book b {
  font-weight: 500;
}
.status-pill {
  font-size: 10px;
  border-radius: 4px;
  padding: 5px 9px;
  background: #f3ecd8;
  color: #90733f;
  text-transform: capitalize;
}
.status-pill.published {
  background: #e8f0e3;
  color: #527045;
}
.status-pill.archived {
  background: #ececea;
  color: #797f75;
}
.row-actions {
  display: flex;
  gap: 13px;
  align-items: center;
}
.row-actions button {
  border: 0;
  background: none;
  color: var(--green);
  padding: 5px 0;
  font-size: 11px;
  white-space: nowrap;
}
.table-footnote {
  font-size: 11px;
  color: var(--muted);
}
#admin-empty {
  text-align: center;
  padding: 35px;
}
.form-message {
  font-size: 12px;
  line-height: 1.7;
  color: #9c4538;
  min-height: 0;
}
.form-message:empty {
  display: none;
}
.form-message.success {
  color: var(--green);
}
.editor-dialog {
  max-width: 1000px;
  padding: 30px;
}
.editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.editor-heading .close {
  position: static;
}
.editor-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 35px;
}
.editor-grid section {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.editor-grid h3 {
  margin: 3px 0;
  font-size: 21px;
}
.editor-grid label > span {
  color: #9c5845;
}
.editor-aside {
  background: #f0f2eb;
  padding: 20px;
  border-radius: 7px;
}
.admin-cover-preview {
  height: 130px;
  background: #254d40;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: #f7efd6;
  font:
    22px "Playfair Display",
    serif;
  overflow: hidden;
  text-align: center;
  padding: 10px;
}
.admin-cover-preview img {
  width: auto;
  max-width: 100%;
  height: 110px;
  object-fit: contain;
}
.check-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.check-label input {
  width: auto;
}
.editor-footer {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.editor-footer > span {
  margin-right: auto;
  max-width: 350px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input[type="color"] {
  height: 40px;
  padding: 5px;
}
#preview-content img {
  max-width: 180px;
  max-height: 230px;
  object-fit: contain;
}
.catalog-alert {
  font-size: 12px;
  padding: 12px 15px;
  background: #edf0e6;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 15px;
}
.catalog-alert.error {
  background: #f8ece6;
  color: #8c4537;
}
.uploaded-cover {
  width: 146px;
  height: 207px;
  object-fit: cover;
  box-shadow: 3px 6px 11px #1b34292b;
}
.detail-layout .uploaded-cover {
  width: 180px;
  height: 255px;
}
.admin-preview-cover {
  display: flex;
  justify-content: center;
}
.detail-layout h2 {
  overflow-wrap: anywhere;
}
@media (max-width: 1000px) {
  .access-panel {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .workspace-heading {
    align-items: flex-start;
  }
  .workspace-actions {
    justify-content: flex-end;
  }
  .editor-grid {
    gap: 20px;
  }
  .admin-toolbar {
    flex-wrap: wrap;
  }
  .admin-toolbar .search {
    flex-basis: 50%;
  }
}
@media (max-width: 700px) {
  .access-panel {
    grid-template-columns: 1fr;
    padding-top: 0;
  }
  .access-panel h1 {
    font-size: 43px;
  }
  .admin-badge {
    display: none;
  }
  .access-card {
    padding: 25px;
  }
  .workspace-heading {
    flex-direction: column;
  }
  .workspace-heading h1 {
    font-size: 34px;
  }
  .workspace-actions {
    justify-content: flex-start;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats button {
    padding: 15px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .editor-dialog {
    padding: 20px;
  }
  .editor-footer {
    flex-wrap: wrap;
  }
  .editor-footer > span {
    flex-basis: 100%;
    max-width: none;
  }
  .admin-toolbar .search {
    flex-basis: 100%;
  }
  th,
  td {
    padding: 13px;
  }
  .uploaded-cover {
    width: 130px;
    height: 187px;
  }
}
