:root {
  --background: #ffffff;
  --surface: #fffaf0;
  --surface-strong: #fffdf6;
  --ink: #1f2b1d;
  --muted: #6f6a56;
  --line: #ded5bf;
  --leaf: #617a55;
  --leaf-dark: #2f4f32;
  --focus: #8fa36e;
  --shadow: 0 18px 44px rgb(47 79 50 / 8%);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.hidden {
  display: none !important;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 460px);
  gap: clamp(28px, 5vw, 72px);
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 52px);
}

.brand-panel,
.admin-panel {
  display: grid;
  align-content: center;
  gap: 18px;
}

.brand-panel img {
  width: min(220px, 58vw);
}

.brand-panel h1,
.admin-card h2 {
  margin: 0;
  font-family: Georgia, serif;
}

.brand-panel h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  line-height: 1;
}

.brand-panel p,
.status-line {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  color: var(--leaf-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.admin-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.admin-card input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface-strong);
  color: var(--ink);
}

.primary-button,
.secondary-button,
.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 900;
}

.primary-button {
  border: 0;
  padding: 0 18px;
  background: var(--leaf-dark);
  color: white;
}

.secondary-button,
.file-button {
  border: 1px solid var(--line);
  padding: 0 16px;
  background: var(--surface);
  color: var(--ink);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
}

hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
}
