/* Copyright © 2026 TrekTastes. Proprietary and confidential. */
:root {
  font-family: system-ui, sans-serif;
  color: #183b32;
  background: #f6f8f5;
  color-scheme: light;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: #fff;
  border-block-end: 1px solid #dae3dc;
  gap: 1rem;
}
header > a {
  font-size: 1.4rem;
  font-weight: 800;
  color: #17613e;
  text-decoration: none;
}
nav {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
main {
  max-width: 1050px;
  margin: 2rem auto;
  padding: 0 1rem;
}
h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-block-end: 0.5rem;
}
h2 {
  font-size: 1.25rem;
}
p {
  line-height: 1.55;
}
section,
form.card,
article {
  background: #fff;
  padding: 1.4rem;
  border: 1px solid #d9e1da;
  border-radius: 12px;
  margin-block: 1rem;
}
form {
  display: grid;
  gap: 1rem;
}
form.login {
  max-width: 440px;
  margin: 3rem auto;
}
label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}
input,
select,
textarea,
button {
  font: inherit;
  border-radius: 6px;
}
input,
select,
textarea {
  padding: 0.7rem;
  border: 1px solid #9ead9e;
  max-width: 100%;
  background: #fff;
  color: #183b32;
}
input:not([type='checkbox']),
textarea {
  width: 100%;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
button,
.button {
  cursor: pointer;
  padding: 0.65rem 1rem;
  border: 1px solid #17613e;
  background: #17613e;
  color: white;
  text-decoration: none;
  display: inline-block;
  min-height: 44px;
}
button.secondary {
  background: white;
  color: #17613e;
}
button.danger {
  background: #914024;
  border-color: #914024;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: #17613e;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid #d7a636;
  outline-offset: 3px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-block: 0.8rem;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500;
}
.check input {
  margin-block-start: 0.3rem;
}
.badge {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  background: #e7f2e6;
  font-weight: 650;
}
.muted {
  color: #596e61;
}
.feedback {
  white-space: pre-wrap;
  border-inline-start: 4px solid #b88624;
  padding: 1rem;
  background: #fff4d9;
  overflow-wrap: anywhere;
}
.error {
  padding: 1rem;
  background: #fff0ea;
  border: 1px solid #b95b3d;
  color: #75311c;
  border-radius: 8px;
}
.success {
  padding: 1rem;
  background: #e7f2e6;
  border-radius: 8px;
}
dl {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0.7rem;
}
dt {
  font-weight: 600;
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.terms {
  white-space: pre-wrap;
  max-height: 350px;
  overflow: auto;
  padding: 1rem;
  background: #f6f8f5;
  border: 1px solid #d9e1da;
  line-height: 1.55;
}
dialog {
  width: min(95vw, 1000px);
  height: 90vh;
  border: 1px solid #8da194;
  border-radius: 12px;
  padding: 1rem;
}
dialog::backdrop {
  background: #183b3299;
}
#preview-content {
  height: calc(100% - 55px);
  margin-block-start: 0.6rem;
}
#preview-content iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
#preview-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
small {
  font-weight: 400;
}
.document {
  border-inline-start: 3px solid #96ae95;
}
.queue-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
summary {
  cursor: pointer;
  padding: 0.8rem;
  font-weight: 600;
}
@media (max-width: 550px) {
  header {
    align-items: flex-start;
  }
  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  dl {
    grid-template-columns: 1fr;
  }
  dd {
    margin-block-end: 0.6rem;
  }
  section,
  article,
  form.card {
    padding: 1rem;
  }
}
