:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: #172033;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] { display: none !important; }

body {
  margin: 0;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.panel {
  width: min(720px, 100%);
  min-width: 0;
  background: #ffffff;
  border: 1px solid #d8deea;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(30, 41, 59, 0.12);
  padding: 32px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #5f6f89;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.copy {
  color: #4a5870;
  line-height: 1.6;
  margin: 18px 0 28px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.status-grid div {
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  padding: 14px;
  min-width: 0;
}

dt {
  color: #6b7890;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.pending {
  color: #7c5d00;
}

.success {
  color: #116b45;
  font-weight: 700;
}

.failure {
  color: #a32727;
  font-weight: 700;
}

.payload {
  width: 100%;
  max-width: 100%;
  min-height: 140px;
  overflow-x: auto;
  margin: 0 0 18px;
  padding: 16px;
  background: #111827;
  border-radius: 8px;
  color: #e5edf8;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

button {
  appearance: none;
  border: 0;
  border-radius: 6px;
  background: #2454d6;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 10px 16px;
}

button:hover {
  background: #1c43ad;
}

/* ─── Auth forms ─────────────────────────────────── */

.auth-form {
  width: min(420px, 100%);
  background: #ffffff;
  border: 1px solid #d8deea;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(30, 41, 59, 0.12);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-title {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.1;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d3a50;
}

.form-field input {
  appearance: none;
  border: 1px solid #c8d0e0;
  border-radius: 6px;
  font: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  background: #fafbfd;
  color: #172033;
  outline: none;
  transition: border-color 0.15s;
}

.form-field input:focus {
  border-color: #2454d6;
  background: #fff;
}

.form-field input::placeholder {
  color: #9aa5b8;
}

.form-error {
  background: #fff2f2;
  border: 1px solid #f0b8b8;
  border-radius: 6px;
  color: #a32727;
  font-size: 0.875rem;
  padding: 10px 12px;
}

.btn-primary {
  appearance: none;
  border: 0;
  border-radius: 6px;
  background: #2454d6;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 11px 16px;
  text-align: center;
  transition: background 0.15s;
}

.btn-primary:hover:not(:disabled) {
  background: #1c43ad;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  appearance: none;
  border: 1px solid #c8d0e0;
  border-radius: 6px;
  background: #fff;
  color: #4a5870;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 14px;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}

.btn-secondary:hover {
  border-color: #2454d6;
  color: #2454d6;
}

.btn-link {
  color: #2454d6;
  text-decoration: none;
  font-weight: 600;
}

.btn-link:hover {
  text-decoration: underline;
}

.auth-footer {
  margin: 0;
  font-size: 0.875rem;
  color: #5f6f89;
  text-align: center;
}

/* ─── Panel header with logout ───────────────────── */

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .shell {
    padding: 18px;
  }

  .panel {
    padding: 22px;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════
   APP SHELL
   ═══════════════════════════════════════════════════ */

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f7fb;
}

/* ─── Navbar ────────────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #d8deea;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 0;
  flex-shrink: 0;
}

.nav-brand {
  font-size: 1.125rem;
  font-weight: 800;
  color: #172033;
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-right: 32px;
  flex-shrink: 0;
}

.nav-brand:hover {
  color: #2454d6;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #5f6f89;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}

.nav-link:hover {
  background: #f0f4fc;
  color: #172033;
}

.nav-link--active {
  color: #2454d6;
  background: #eef3fc;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-user {
  font-size: 0.8125rem;
  color: #5f6f89;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 6px 12px;
}

.btn-full {
  width: 100%;
}

/* ─── Page layout (sidebar + content) ──────────── */

.page-layout {
  flex: 1;
  display: flex;
  min-height: 0;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #d8deea;
  overflow-y: auto;
}

.sidebar-inner {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-area {
  flex: 1;
  min-width: 0;
  padding: 24px;
  overflow-y: auto;
}

/* ─── Filter sidebar ────────────────────────────── */

.filter-heading {
  margin: 0 0 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8494ab;
}

.filter-section {
  display: flex;
  flex-direction: column;
}

.filter-radio-group,
.filter-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-radio,
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #2d3a50;
  cursor: pointer;
  padding: 3px 0;
}

.filter-radio input,
.filter-checkbox input {
  cursor: pointer;
  accent-color: #2454d6;
}

.filter-select {
  appearance: none;
  border: 1px solid #c8d0e0;
  border-radius: 6px;
  background: #fafbfd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f6f89' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: #172033;
  font: inherit;
  font-size: 0.875rem;
  padding: 8px 32px 8px 10px;
  cursor: pointer;
  transition: border-color 0.12s;
}

.filter-select:focus {
  border-color: #2454d6;
  outline: none;
}

.filter-input {
  appearance: none;
  border: 1px solid #c8d0e0;
  border-radius: 6px;
  background: #fafbfd;
  color: #172033;
  font: inherit;
  font-size: 0.875rem;
  padding: 8px 10px;
  outline: none;
  transition: border-color 0.12s;
}

.filter-input:focus {
  border-color: #2454d6;
  background: #fff;
}

.filter-input::placeholder {
  color: #9aa5b8;
}

.tag-suggestions {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 160px;
  overflow-y: auto;
}

.tag-suggestion-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background 0.1s;
}

.tag-suggestion-item:hover {
  background: #f0f4fc;
}

.active-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ─── Results header ────────────────────────────── */

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.results-count {
  font-size: 0.875rem;
  color: #5f6f89;
}

/* ─── Media grid ────────────────────────────────── */

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.media-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid #d8deea;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
  color: inherit;
}

.media-card:hover {
  box-shadow: 0 6px 24px rgba(30, 41, 59, 0.12);
  transform: translateY(-2px);
  border-color: #b8c4d8;
}

.media-card-thumb {
  aspect-ratio: 4 / 3;
  background: #e8ecf4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #9aa5b8;
}

.thumb-placeholder svg {
  width: 40px;
  height: 40px;
}

.media-card-body {
  padding: 10px 12px 12px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #172033;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.card-source {
  font-size: 0.75rem;
  color: #7484a0;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100px;
}

/* ─── Skeleton loading ──────────────────────────── */

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.skeleton-card {
  background: #fff;
  border: 1px solid #d8deea;
  border-radius: 10px;
  overflow: hidden;
}

.skeleton-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(90deg, #e8ecf4 25%, #f0f4fa 50%, #e8ecf4 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e8ecf4 25%, #f0f4fa 50%, #e8ecf4 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-line--short {
  width: 60%;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Empty / Error states ──────────────────────── */

.empty-state,
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  gap: 12px;
  color: #5f6f89;
}

.state-icon {
  width: 48px;
  height: 48px;
  color: #b8c4d8;
}

.empty-state p,
.error-state p {
  margin: 0;
  font-size: 0.9375rem;
}

.error-state p {
  color: #a32727;
}

/* ─── Pagination ────────────────────────────────── */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e8ecf4;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #d8deea;
  border-radius: 6px;
  background: #fff;
  color: #4a5870;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover:not(:disabled) {
  border-color: #2454d6;
  color: #2454d6;
}

.page-btn--active {
  background: #2454d6;
  border-color: #2454d6;
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-ellipsis {
  font-size: 0.875rem;
  color: #8494ab;
  padding: 0 4px;
}

/* ─── Badges ────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: capitalize;
  white-space: nowrap;
  line-height: 1.4;
}

/* Media type badges */
.badge--image   { background: #e0edff; color: #1a47a8; }
.badge--animation { background: #e8f5e0; color: #1a6b35; }
.badge--comic   { background: #f0e8ff; color: #5a1ab8; }

/* Rating badges */
.badge--safe         { background: #dcf4e8; color: #116b45; }
.badge--questionable { background: #fff2d8; color: #7c5d00; }
.badge--explicit     { background: #ffe8e8; color: #a32727; }

/* Tag category chips */
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
  cursor: default;
}

.tag-chip--general   { background: #e8ecf4; color: #4a5870; }
.tag-chip--character { background: #dbe9ff; color: #1a47a8; }
.tag-chip--series    { background: #ede8ff; color: #5a1ab8; }
.tag-chip--artist    { background: #dcf4e8; color: #116b45; }
.tag-chip--meta      { background: #fff2d8; color: #7c5d00; }

.tag-chip--removable {
  cursor: pointer;
}

.tag-chip--removable:hover {
  opacity: 0.8;
}

.tag-chip-remove {
  display: flex;
  align-items: center;
  margin-left: 2px;
}

/* ═══════════════════════════════════════════════════
   ENTRY DETAIL PAGE
   ═══════════════════════════════════════════════════ */

.entry-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.entry-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #5f6f89;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.12s;
}

.entry-back:hover {
  color: #2454d6;
}

.entry-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.entry-preview-area {
  background: #fff;
  border: 1px solid #d8deea;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  max-height: 70vh;
}

.entry-preview-area img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.entry-preview-area .entry-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px;
  color: #9aa5b8;
  text-align: center;
  width: 100%;
  height: 100%;
}

.entry-preview-placeholder svg {
  width: 56px;
  height: 56px;
}

.entry-preview-placeholder p {
  margin: 0;
  font-size: 0.875rem;
}

.entry-preview-wrap {
  position: relative;
}

/* Prev/next controls only appear when a navigable view set is present. */
.entry-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #d8deea;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #2a3346;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 30, 60, 0.14);
  transition: background 0.12s, color 0.12s, opacity 0.12s, transform 0.12s;
}

.entry-nav-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  display: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(18, 24, 38, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.entry-preview-wrap.has-nav .entry-nav-arrow,
.entry-preview-wrap.has-nav .entry-nav-count {
  display: inline-flex;
}

.entry-nav-arrow:hover:not([disabled]) {
  background: #2454d6;
  color: #fff;
}

.entry-nav-arrow:active:not([disabled]) {
  transform: translateY(-50%) scale(0.94);
}

.entry-nav-arrow[disabled] {
  opacity: 0.3;
  cursor: default;
  box-shadow: none;
}

.entry-nav-arrow--prev { left: 12px; }
.entry-nav-arrow--next { right: 12px; }

.entry-preview-wrap.is-navigating .entry-preview-area {
  opacity: 0.55;
  transition: opacity 0.1s ease;
}

.entry-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.entry-title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  color: #172033;
}

.entry-title--untitled {
  color: #8494ab;
  font-style: italic;
}

.entry-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.entry-meta-table {
  background: #fff;
  border: 1px solid #d8deea;
  border-radius: 8px;
  overflow: hidden;
}

.meta-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  padding: 10px 14px;
  gap: 12px;
  border-bottom: 1px solid #f0f2f7;
  font-size: 0.875rem;
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-label {
  font-weight: 600;
  color: #7484a0;
  font-size: 0.8125rem;
}

.meta-value {
  color: #172033;
}

.meta-value a {
  color: #2454d6;
  text-decoration: none;
  font-weight: 600;
}

.meta-value a:hover {
  text-decoration: underline;
}

.entry-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entry-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8494ab;
  margin: 0;
}

.tag-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.facets-list {
  background: #fff;
  border: 1px solid #d8deea;
  border-radius: 8px;
  overflow: hidden;
}

.facet-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  padding: 8px 14px;
  gap: 12px;
  border-bottom: 1px solid #f0f2f7;
  font-size: 0.8125rem;
}

.facet-row:last-child {
  border-bottom: none;
}

.facet-name {
  font-weight: 600;
  color: #7484a0;
}

.facet-value {
  color: #172033;
}

/* ─── Annotations ───────────────────────────────── */

.annotations-section {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 24px 48px;
}

.annotations-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #172033;
  margin: 0 0 16px;
}

.annotation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.annotation-item {
  background: #fff;
  border: 1px solid #d8deea;
  border-radius: 8px;
  padding: 14px 16px;
}

.annotation-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.annotation-author {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2d3a50;
}

.annotation-date {
  font-size: 0.75rem;
  color: #8494ab;
}

.annotation-kind-badge {
  margin-left: auto;
}

.annotation-body {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #2d3a50;
  margin: 0;
  white-space: pre-wrap;
}

.annotation-replies {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f2f7;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.annotation-reply {
  padding-left: 14px;
  border-left: 2px solid #d8deea;
}

/* ─── Responsive ────────────────────────────────── */

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 50;
    box-shadow: 4px 0 20px rgba(30, 41, 59, 0.12);
    width: 280px;
  }

  .sidebar--open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 56px 0 0;
    background: rgba(23, 32, 51, 0.3);
    z-index: 40;
  }

  .sidebar-overlay--visible {
    display: block;
  }

  .entry-layout {
    grid-template-columns: 1fr;
  }

  .entry-preview-area {
    max-height: 50vh;
  }
}

/* ─── Admin section ──────────────────────────── */

.admin-section {
  max-width: 600px;
}

.admin-section h1 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  color: #172033;
}

.admin-section > p {
  color: #5f6f89;
  margin: 0 0 24px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  border: 1px solid #d8deea;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}

.admin-form .form-field select {
  appearance: none;
  border: 1px solid #c8d0e0;
  border-radius: 6px;
  background: #fafbfd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f6f89' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: #172033;
  font: inherit;
  font-size: 0.875rem;
  padding: 8px 32px 8px 10px;
  cursor: pointer;
}

.admin-form .form-field select:focus {
  border-color: #2454d6;
  outline: none;
}

.admin-form .btn-primary {
  align-self: flex-start;
}

#import-status {
  background: #fff;
  border: 1px solid #d8deea;
  border-radius: 8px;
  padding: 20px;
}

#import-status h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #172033;
}

#import-status p {
  margin: 0 0 12px;
  color: #5f6f89;
}

@media (max-width: 640px) {
  .navbar {
    padding: 0 16px;
  }

  .nav-user {
    display: none;
  }

  .content-area {
    padding: 16px;
  }

  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .entry-page,
  .annotations-section {
    padding: 16px;
  }
}
