.empty-state {
  min-height: 330px;
  padding: 52px 24px;
  display: grid;
  place-items: center;
  text-align: center;
}

.empty-state[hidden] { display: none; }

.empty-box {
  max-width: 560px;
}

.empty-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: var(--red-500);
  background: var(--red-50);
  border: 1px solid var(--red-100);
  border-radius: 24px;
}

.empty-icon svg {
  width: 34px;
  height: 34px;
}

.empty-box h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.empty-box p {
  margin: 9px auto 0;
  color: var(--ink-500);
  font-size: 13px;
}

.empty-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.drop-active .panel {
  outline: 3px dashed var(--red-400);
  outline-offset: 8px;
}

.message {
  position: fixed;
  top: 88px;
  left: 50%;
  z-index: 120;
  width: min(680px, calc(100% - 24px));
  padding: 14px 16px;
  color: var(--red-700);
  background: rgba(255, 242, 242, 0.98);
  border: 1px solid var(--red-100);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.15);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.message.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.footer {
  padding: 30px 0;
  color: var(--ink-400);
  background: var(--ink-950);
  font-size: 11px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  color: var(--ink-200);
  font-weight: 800;
  letter-spacing: 0.09em;
}

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

.header-upload-button[hidden] {
  display: none !important;
}

.header-upload-button {
  min-height: 32px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink-300);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0.72;
  transition: color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.header-upload-button:hover {
  color: var(--white);
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.header-upload-button svg {
  width: 14px;
  height: 14px;
}

.header-delete-button[hidden] {
  display: none !important;
}

.header-delete-button {
  width: 32px;
  min-height: 32px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: var(--red-300);
  background: rgba(227, 22, 18, 0.06);
  border: 1px solid rgba(227, 22, 18, 0.2);
  border-radius: var(--radius-pill);
  opacity: 0.75;
  transition: color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.header-delete-button:hover {
  color: var(--white);
  opacity: 1;
  background: rgba(227, 22, 18, 0.22);
  border-color: rgba(227, 22, 18, 0.45);
}

.header-delete-button svg {
  width: 14px;
  height: 14px;
}

