.image-panel {
  background: #ffffff;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 75vh;       /* fits a standard viewport */
  overflow: hidden;
}

#image-wrapper {
  position: relative;
  text-align: center;
  width: 100%;
}

.image-display {
  max-width: 95%;
  max-height: 70vh;       /* limits tall images */
  border-radius: 10px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.image-display:hover {
  transform: scale(1.01);
}

#full-link {
  text-decoration: none;
  color: inherit;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f5f7;
  color: #111827;
}

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

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.brand {
  font-weight: 600;
  font-size: 20px;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.user-label {
  font-size: 14px;
  color: #4b5563;
}

.main-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: flex-start;
}

.sidebar {
  background: #ffffff;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.image-panel {
  background: #ffffff;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.image-display {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  object-fit: contain;
}

.field-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
  display: block;
}

.input {
  width: 100%;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.input.small {
  width: auto;
  min-width: 140px;
}

.meta-box {
  background: #f9fafb;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.meta-label {
  color: #6b7280;
  margin-right: 4px;
}

.rating-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.hint {
  font-size: 11px;
  color: #9ca3af;
}

.btn {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
  text-decoration: none;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.btn.primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.btn.ghost {
  background: transparent;
}

.btn.full {
  width: 100%;
}

.input.saved {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  font-size: 13px;
}

.table th,
.table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.table th {
  background: #f9fafb;
  font-weight: 500;
  color: #6b7280;
}

.thumb {
  max-height: 60px;
  border-radius: 6px;
  object-fit: cover;
}
