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

* {
  box-sizing: border-box;
}

body {
  min-height: 100svh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(221, 70, 52, 0.08), transparent 42%),
    linear-gradient(315deg, rgba(55, 121, 110, 0.10), transparent 48%),
    #f7f5ee;
}

body.blank {
  background: #f7f5ee;
}

.admin-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}

.panel {
  width: min(100%, 620px);
  padding: clamp(24px, 6vw, 44px);
  border: 1px solid rgba(23, 24, 20, 0.12);
  border-radius: 8px;
  background: rgba(255, 254, 248, 0.82);
  box-shadow: 0 18px 50px rgba(32, 33, 27, 0.10);
}

.eyebrow {
  margin: 0 0 10px;
  color: #6c2c24;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 9vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.copy {
  max-width: 54ch;
  margin: 18px 0 28px;
  color: #4c5048;
  font-size: 1rem;
  line-height: 1.6;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(23, 24, 20, 0.12);
  border-radius: 8px;
  background: rgba(23, 24, 20, 0.12);
}

.status-grid div {
  min-width: 0;
  padding: 16px;
  background: #fffef8;
}

.status-grid span {
  display: block;
  color: #696d64;
  font-size: 0.78rem;
}

.status-grid strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

button {
  min-height: 48px;
  border: 1px solid #20211b;
  border-radius: 8px;
  background: #20211b;
  color: #fffef8;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

button:nth-child(2),
button:nth-child(4) {
  background: transparent;
  color: #20211b;
}

button:focus-visible {
  outline: 3px solid #dd4634;
  outline-offset: 3px;
}

button:active {
  transform: translateY(1px);
}

.log {
  display: block;
  min-height: 52px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #ece8dc;
  color: #272922;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

@media (max-width: 560px) {
  .panel {
    padding: 22px;
  }

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