:root {
  --ink: #12211b;
  --forest: #173f31;
  --forest-deep: #0c2e23;
  --mint: #c8f267;
  --paper: #fbfaf5;
  --cream: #f0f1e9;
  --line: #d9ddd4;
  --muted: #6e7b74;
  --white: #fff;
  --danger: #a13d31;
  --success: #246b43;
  --shadow: 0 30px 80px rgba(11, 42, 31, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  margin: 0;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.admin-brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  font-family: "Manrope", sans-serif;
  font-size: 23px;
  letter-spacing: -1.2px;
}

.admin-brand-mark,
.loading-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 50% 50% 50% 12%;
  color: var(--mint);
  display: inline-flex;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  transform: rotate(-5deg);
  width: 36px;
}

.admin-eyebrow {
  color: var(--forest);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.auth-page {
  background:
    radial-gradient(circle at 15% 10%, rgba(200, 242, 103, 0.35), transparent 25%),
    var(--forest-deep);
  min-height: 100vh;
}

.auth-shell {
  display: grid;
  gap: 45px;
  grid-template-columns: 0.7fr minmax(420px, 0.5fr);
  margin: 0 auto;
  max-width: 1200px;
  min-height: 100vh;
  padding: clamp(25px, 5vw, 70px);
}

.auth-shell > .admin-brand {
  align-self: start;
  color: white;
}

.auth-card {
  align-self: center;
  background: var(--paper);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 55px);
}

.auth-heading h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(33px, 4vw, 48px);
  letter-spacing: -2.5px;
  line-height: 1.05;
  margin: 0 0 14px;
}

.auth-heading p,
.auth-security {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 30px;
}

.auth-card label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-card label > span {
  font-size: 10px;
  font-weight: 800;
}

.auth-card input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  outline: 0;
  padding: 14px;
  width: 100%;
}

.auth-card input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(23, 63, 49, 0.08);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 65px;
}

.password-field button {
  background: transparent;
  border: 0;
  color: var(--forest);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.admin-button {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 18px;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
}

.admin-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-button-primary {
  background: var(--mint);
  color: var(--ink);
}

.admin-button-outline {
  background: transparent;
  border: 1px solid var(--line);
}

.forgot-button {
  align-self: center;
  background: transparent;
  border: 0;
  color: var(--forest);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.auth-security {
  border-top: 1px solid var(--line);
  font-size: 9px;
  margin: 28px 0 0;
  padding-top: 18px;
}

.setup-notice,
.auth-message {
  background: #f3eed5;
  border-radius: 10px;
  color: #625518;
  font-size: 10px;
  line-height: 1.55;
  margin-top: 20px;
  padding: 13px;
}

.setup-notice p {
  margin: 5px 0 0;
}

.auth-message {
  margin: 0;
}

.auth-message.error {
  background: #f7e5e1;
  color: var(--danger);
}

.auth-message.success {
  background: #e0f0e6;
  color: var(--success);
}

.auth-message.info {
  background: #e5ece8;
  color: var(--forest);
}

.admin-loading {
  align-items: center;
  background: var(--forest-deep);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  min-height: 100vh;
}

.admin-loading p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 245px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--forest-deep);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 30px 22px;
}

.admin-sidebar .admin-brand {
  margin-bottom: 55px;
}

.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.admin-sidebar nav a {
  align-items: center;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  font-size: 10px;
  font-weight: 700;
  gap: 11px;
  padding: 12px;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.admin-sidebar nav a.active span {
  color: var(--mint);
}

.back-to-site {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  margin-top: auto;
  padding: 12px;
}

.dashboard-main {
  min-width: 0;
  padding: 32px clamp(20px, 4vw, 60px) 80px;
}

.dashboard-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 26px;
}

.dashboard-header h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -2px;
  margin: 0;
}

.account-menu {
  align-items: center;
  display: flex;
  gap: 9px;
}

.account-avatar {
  align-items: center;
  background: var(--mint);
  border-radius: 50%;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.account-menu strong,
.account-menu small {
  display: block;
}

.account-menu strong {
  font-size: 10px;
}

.account-menu small {
  color: var(--muted);
  font-size: 8px;
  margin-top: 2px;
}

.account-menu button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  margin-left: 10px;
  text-decoration: underline;
}

.dashboard-section {
  scroll-margin-top: 25px;
  padding-top: 55px;
}

.dashboard-section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.dashboard-section-heading h2,
.settings-card h2 {
  font-family: "Manrope", sans-serif;
  font-size: 25px;
  letter-spacing: -1.3px;
  margin: 0;
}

.status-pill,
.draft-pill {
  background: #e5f3bc;
  border-radius: 999px;
  color: #40571f;
  font-size: 8px;
  font-weight: 800;
  padding: 8px 11px;
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(4, 1fr);
}

.stats-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 18px;
}

.stats-grid span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.stats-grid strong {
  font-family: "Manrope", sans-serif;
  font-size: 38px;
  letter-spacing: -2px;
  margin: 19px 0 auto;
}

.stats-grid small {
  color: var(--muted);
  font-size: 8px;
}

.empty-admin-state {
  background: white;
  border: 1px dashed var(--line);
  border-radius: 15px;
  padding: 50px 20px;
  text-align: center;
}

.empty-admin-state > span {
  align-items: center;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  height: 45px;
  justify-content: center;
  margin: 0 auto 17px;
  width: 45px;
}

.empty-admin-state h3 {
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  margin: 0 0 7px;
}

.empty-admin-state p,
.settings-card p {
  color: var(--muted);
  font-size: 10px;
  margin: 0;
}

.dashboard-message {
  background: #f7e5e1;
  border-radius: 10px;
  color: var(--danger);
  font-size: 10px;
  line-height: 1.55;
  padding: 13px;
}

.requests-list {
  display: grid;
  gap: 14px;
}

.request-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr auto;
  padding: 20px;
}

.request-card-heading,
.request-card-actions {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.request-date,
.request-details small,
.request-facts small,
.request-status span {
  color: var(--muted);
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.request-card h3 {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  letter-spacing: -0.8px;
  margin: 0;
}

.request-status select {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  outline: 0;
  padding: 8px 11px;
}

.request-facts {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.request-facts span,
.request-facts a {
  font-size: 10px;
  overflow-wrap: anywhere;
}

.request-facts a {
  color: var(--forest);
  text-decoration: underline;
}

.request-details {
  background: var(--cream);
  border-radius: 10px;
  margin-top: 18px;
  padding: 12px;
}

.request-details p {
  font-size: 10px;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

.request-card-actions {
  flex-direction: column;
  justify-content: end;
  min-width: 175px;
}

.request-card-actions .admin-button {
  width: 100%;
}

.no-listing {
  color: var(--muted);
  font-size: 9px;
  text-align: center;
  width: 100%;
}

.content-table {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}

.content-table-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  font-size: 10px;
  gap: 15px;
  grid-template-columns: 1.5fr 1fr auto;
  padding: 15px 18px;
}

.content-table-row:last-child {
  border-bottom: 0;
}

.content-table-row span {
  color: var(--muted);
}

.content-table-head {
  background: var(--cream);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.settings-card {
  align-items: center;
  background: var(--forest);
  border-radius: 18px;
  color: white;
  display: flex;
  justify-content: space-between;
  margin-top: 55px;
  padding: 30px;
}

.settings-card .admin-eyebrow {
  color: var(--mint);
}

.settings-card p {
  color: rgba(255, 255, 255, 0.55);
  margin-top: 8px;
}

.settings-card .admin-button-outline {
  border-color: rgba(255, 255, 255, 0.25);
  color: white;
}

@media (max-width: 950px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .admin-sidebar {
    display: none;
  }
}

@media (max-width: 700px) {
  .auth-shell {
    display: block;
    padding: 20px;
  }

  .auth-shell > .admin-brand {
    margin-bottom: 28px;
  }

  .dashboard-main {
    padding: 22px 14px 60px;
  }

  .dashboard-header {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }

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

  .dashboard-section-heading,
  .settings-card {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }

  .content-table-row {
    grid-template-columns: 1fr auto;
  }

  .content-table-row > :nth-child(2) {
    display: none;
  }

  .request-card {
    grid-template-columns: 1fr;
  }

  .request-card-actions {
    min-width: 0;
  }

  .request-facts {
    grid-template-columns: 1fr;
  }
}
