:root {
  --paper: #f8f7f2;
  --ink: #273e35;
  --muted: #73796c;
  --line: #dfe3d7;
  --sage: #e9eddf;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    14px/1.65 Manrope,
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid #7e9461;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -1.4px;
}
em {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
}
.admin-header {
  min-height: 95px;
  padding: 20px max(32px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand img {
  object-fit: contain;
}
.brand > span {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.7px;
  font-weight: 500;
  margin-top: 7px;
}
.header-actions {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}
.button-dark {
  background: var(--ink);
  color: white;
}
.button-dark:hover {
  background: #42604c;
}
.button-outline {
  border-color: #c9d0be;
  background: transparent;
  color: var(--ink);
}
.button-outline:hover {
  background: var(--sage);
}
.eyebrow {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  margin-bottom: 20px;
}
.muted {
  color: var(--muted);
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.9;
}
.login-layout {
  min-height: calc(100vh - 175px);
  padding: 60px 24px;
  display: grid;
  place-items: center;
}
.login-card {
  background: #eeefe5;
  padding: 45px;
  width: min(100%, 450px);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.login-form {
  margin-top: 29px;
}
label {
  font-size: 11px;
  display: block;
  margin-bottom: 8px;
}
input,
select {
  background: #fdfdf9;
  border: 1px solid #cfd6c6;
  border-radius: 4px;
  padding: 11px 13px;
  min-height: 44px;
  color: var(--ink);
  width: 100%;
}
.login-form .button {
  margin-top: 20px;
  width: 100%;
  justify-content: space-between;
}
.login-footnote {
  font-size: 9px;
  color: var(--muted);
  margin-top: 30px;
}
.alert {
  background: #e7eddb;
  padding: 15px 18px;
  margin: 20px 0;
  border: 1px solid #c7d2b8;
  border-radius: 4px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.alert.error {
  background: #f7e9e3;
  border-color: #e2c1b4;
  color: #853b2d;
}
.alert.success {
  color: #3d6238;
}
.dashboard {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 32px 0 45px;
}
.admin-tabs {
  border-bottom: 1px solid var(--line);
  margin-bottom: 39px;
}
.admin-tabs > a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid var(--ink);
  padding: 0 8px 17px;
  font-weight: 600;
}
.admin-tabs span {
  background: var(--sage);
  border-radius: 20px;
  padding: 1px 9px;
  font-size: 11px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  margin-bottom: 34px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 42px;
}
.stats > a {
  background: #eeefe6;
  padding: 22px 25px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.stats > a:hover {
  background: var(--sage);
}
.stats span {
  font-size: 12px;
  color: var(--muted);
}
.stats strong {
  display: block;
  font-size: 37px;
  line-height: 1.3;
  font-weight: 500;
  margin-top: 12px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #809557;
  border-radius: 50%;
  margin-right: 4px;
}
.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}
h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.list-heading > span {
  font-size: 10px;
  color: var(--muted);
}
.filters {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.search-field {
  flex: 1;
}
.status-field {
  width: 190px;
}
.reset-link {
  font-size: 11px;
  align-self: flex-end;
  padding-bottom: 12px;
  text-decoration: underline;
}
.result-count {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 15px;
}
.empty-state {
  padding: 65px 24px;
  border: 1px dashed #cdd6c2;
  border-radius: 6px;
  text-align: center;
}
.empty-state > span {
  font-size: 35px;
  color: #8f9c79;
}
.empty-state h3 {
  font-size: 20px;
  font-weight: 500;
  margin-top: 15px;
}
.empty-state p {
  color: var(--muted);
  font-size: 12px;
  max-width: 430px;
  margin: 12px auto 20px;
}
.empty-state a {
  border-bottom: 1px solid #a6b398;
  font-size: 12px;
}
.request-card {
  background: #fcfcf8;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-bottom: 10px;
}
summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 25px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 105px 18px;
  align-items: center;
  gap: 24px;
}
summary::-webkit-details-marker {
  display: none;
}
.request-date {
  font-size: 12px;
}
.request-date small {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  color: var(--muted);
}
.request-person {
  min-width: 0;
  overflow-wrap: anywhere;
}
.request-person strong {
  display: block;
  font-weight: 600;
  font-size: 14px;
}
.request-person > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.status-badge {
  justify-self: start;
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 10px;
}
.status-badge.new {
  background: #e9efda;
  color: #526d31;
}
.status-badge.processed {
  background: #edefe9;
  color: #777e6b;
}
.expand-icon {
  font-size: 23px;
  line-height: 1;
  transition: transform 0.2s;
}
details[open] .expand-icon {
  transform: rotate(45deg);
}
.request-detail {
  padding: 25px;
  border-top: 1px solid var(--line);
}
.request-detail h3 {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
.request-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.9;
  max-width: 900px;
}
.consent-note {
  color: var(--muted);
  font-size: 10px;
  margin-top: 20px;
}
.request-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}
.request-actions > form {
  margin-left: auto;
}
.pagination {
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  padding: 25px 0 5px;
}
.pagination a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.storage-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 27px;
}
.admin-footer {
  border-top: 1px solid var(--line);
  padding: 24px max(32px, calc((100vw - 1240px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
}
@media (max-width: 800px) {
  summary {
    grid-template-columns: 165px minmax(0, 1fr) 90px 14px;
    gap: 15px;
    padding: 19px;
  }
  .page-heading h1 {
    font-size: 35px;
  }
  .stats {
    gap: 12px;
  }
  .stats > a {
    padding: 20px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .request-actions > form {
    margin-left: 0;
  }
}
@media (max-width: 580px) {
  .admin-header {
    padding: 17px 20px;
    min-height: 80px;
    gap: 15px;
  }
  .brand > span {
    font-size: 19px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 1.1px;
  }
  .brand {
    gap: 8px;
  }
  .brand img {
    width: 21px;
    height: 38px;
  }
  .header-actions {
    gap: 10px;
    font-size: 10px;
  }
  .header-actions .button {
    padding: 8px 11px;
    min-height: 36px;
    font-size: 10px;
  }
  .header-actions > a {
    display: none;
  }
  .dashboard {
    width: calc(100% - 32px);
    padding-top: 22px;
  }
  .admin-tabs {
    margin-bottom: 30px;
  }
  .page-heading {
    display: block;
  }
  .page-heading h1 {
    font-size: 35px;
  }
  .page-heading > .button {
    margin-top: 24px;
  }
  .stats {
    gap: 8px;
    margin-bottom: 30px;
  }
  .stats > a {
    padding: 14px 12px;
  }
  .stats span {
    display: block;
    font-size: 9px;
    min-height: 30px;
  }
  .stats strong {
    font-size: 30px;
    margin-top: 6px;
  }
  .list-heading {
    align-items: flex-start;
  }
  h2 {
    font-size: 19px;
  }
  .list-heading > span {
    font-size: 9px;
    white-space: nowrap;
    padding-top: 5px;
  }
  .search-field {
    flex-basis: 100%;
  }
  .status-field {
    flex: 1;
    width: auto;
  }
  .filters {
    gap: 12px;
  }
  input,
  select {
    font-size: 16px;
  }
  summary {
    grid-template-columns: minmax(0, 1fr) 92px 14px;
    gap: 15px 10px;
    padding: 18px;
  }
  .request-date {
    grid-column: 1 / 3;
    font-size: 11px;
  }
  .request-date small {
    font-size: 8px;
  }
  .request-person {
    grid-column: 1;
    grid-row: 2;
  }
  .status-badge {
    grid-column: 2;
    grid-row: 2;
  }
  .expand-icon {
    grid-column: 3;
    grid-row: 1 / 3;
  }
  .request-person strong {
    font-size: 13px;
  }
  .request-person > span {
    font-size: 11px;
  }
  .request-detail {
    padding: 20px 18px;
  }
  .request-actions {
    gap: 10px;
  }
  .request-actions .button {
    font-size: 10px;
  }
  .request-actions > form {
    width: 100%;
  }
  .request-actions > form .button {
    width: 100%;
  }
  .request-message {
    font-size: 12px;
  }
  .login-layout {
    padding: 35px 20px;
  }
  .login-card {
    padding: 31px 24px;
  }
  .login-card h1 {
    font-size: 35px;
  }
  .admin-footer {
    padding: 22px 20px;
    flex-direction: column;
    gap: 8px;
  }
  .empty-state {
    padding: 40px 20px;
  }
  .empty-state h3 {
    font-size: 18px;
  }
  .storage-note {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
