:root {
  --bg: #f3f6ee;
  --ink: #1e2520;
  --muted: #576357;
  --card: rgba(255, 255, 255, 0.82);
  --line: rgba(42, 66, 52, 0.16);
  --accent: #1f7a4c;
  --accent-2: #d08c1b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 700px at 10% -10%, #e2f0cd, transparent 60%),
              radial-gradient(1000px 600px at 90% 0%, #f7e4c4, transparent 60%),
              var(--bg);
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
}

.bg-shape-1 {
  width: 300px;
  height: 300px;
  background: #acd78f;
  top: 20px;
  left: 20px;
}

.bg-shape-2 {
  width: 260px;
  height: 260px;
  background: #f0b066;
  right: 24px;
  bottom: 40px;
}

.layout {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  animation: rise 550ms ease;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
  font-size: 12px;
}

h1 {
  margin: 0;
  font-size: clamp(26px, 4.4vw, 44px);
  line-height: 1.05;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.controls label {
  font-size: 14px;
  color: var(--muted);
}

select,
button {
  font: inherit;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 10px 12px;
}

button {
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.card {
  background: var(--card);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  animation: rise 650ms ease;
}

.label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.value {
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 700;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 14px;
  animation: rise 760ms ease;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.panel-header h2 {
  margin: 0;
  font-size: 20px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.timeline li {
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  padding: 10px 12px;
}

.timeline .type-image {
  border-left-color: var(--accent-2);
}

.timeline .meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--muted);
}

.timeline img {
  margin-top: 8px;
  width: min(320px, 100%);
  border-radius: 10px;
  border: 1px solid var(--line);
}

.admin-panel {
  border-color: rgba(157, 50, 38, 0.28);
}

.admin-note,
.admin-message {
  color: var(--muted);
  font-size: 14px;
}

.danger-button {
  background: #9d3226;
}

.delete-image-button {
  margin-top: 8px;
  padding: 7px 9px;
  font-size: 12px;
  background: #9d3226;
}

@keyframes rise {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 880px) {
  .cards {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}
