:root {
  color-scheme: light;
  --bg: #fff3f4;
  --card: #ffffff;
  --text: #151011;
  --muted: #5b5456;
  --primary: #ff0000;
  --primary-dark: #cc0000;
  --success: #166534;
  --success-bg: #dcfce7;
  --error: #991b1b;
  --error-bg: #ffe5e7;
  --border: #f0d9dc;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.page--narrow {
  width: min(760px, calc(100% - 2rem));
}

.page--public {
  width: min(900px, calc(100% - 2rem));
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
  text-decoration: none;
  color: var(--text);
}

.site-brand__logo {
  width: clamp(210px, 26vw, 300px);
  height: auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 12px 30px rgba(21, 16, 17, 0.06);
}

.card + .card {
  margin-top: 1.25rem;
}

.hero h1,
h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

p {
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label,
.details-list div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.full-width {
  grid-column: 1 / -1;
}

input,
textarea,
button,
.button-secondary,
.button-danger {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #fff;
}

textarea {
  resize: vertical;
}

button,
.button-secondary,
.button-danger {
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button {
  background: var(--primary);
  color: #fff;
}

button:hover {
  background: var(--primary-dark);
}

.button-secondary {
  background: #ffe9ea;
  color: #7a1c23;
}

.button-danger {
  background: #dc2626;
  color: #fff;
}

.secondary-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.decision-form {
  display: grid;
  gap: 0.5rem;
  min-width: min(420px, 100%);
}

.decision-form textarea {
  min-height: 86px;
}

.alert {
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.alert--success {
  background: var(--success-bg);
  color: var(--success);
}

.alert--error {
  background: var(--error-bg);
  color: var(--error);
}

.alert ul {
  margin: 0;
  padding-left: 1.2rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.admin-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0;
}

.admin-panel h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.credential-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px dashed var(--primary);
  border-radius: 14px;
  background: #fff5f5;
}

.credential-box code {
  display: inline-block;
  width: fit-content;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: #151011;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1rem;
}

.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.admin-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fffafb;
}

.admin-list__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-list__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  align-items: center;
}

.admin-list__actions form {
  margin: 0;
}

.admin-badge {
  display: inline-flex;
  margin-left: 0.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #ffe9ea;
  color: #7a1c23;
  font-size: 0.75rem;
  font-weight: 700;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.95rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.status--pending {
  color: #9a3412;
  background: #ffedd5;
}

.status--approved {
  color: var(--success);
  background: var(--success-bg);
}

.status--rejected {
  color: var(--error);
  background: var(--error-bg);
}

.details-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 1.5rem;
  padding: 1rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: #7a1c23;
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-list__actions {
    justify-content: flex-start;
  }
}
