@import url("/static/ui-fonts.css");
:root {
  --ink: #183f34;
  --muted: #687d74;
  --line: #dbe5df;
  --paper: #fff;
  --bg: #f4f7f4;
  --warn: #915700;
  --bad: #a13333;
  --brand: #1b5846;
  color-scheme: light;
  font-family: "Noto Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.crew-button {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
button:hover,
.crew-button:hover {
  filter: brightness(0.94);
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
:focus-visible {
  outline: 3px solid #7bbf9a;
  outline-offset: 3px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #becfc4;
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
}
textarea {
  min-height: 100px;
  resize: vertical;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
label small {
  font-weight: 400;
  color: var(--muted);
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
}
select[multiple] {
  min-height: 150px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(25px, 4vw, 34px);
  letter-spacing: -0.7px;
  line-height: 1.25;
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 17px;
}
.muted,
small {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 5px;
}
.crew-top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px max(20px, calc((100vw - 1100px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.crew-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.crew-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.crew-brand strong {
  display: block;
}
.crew-main {
  max-width: 1140px;
  padding: 30px 20px 60px;
  margin: auto;
}
.crew-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.crew-heading p {
  margin-top: 8px;
  color: var(--muted);
}
.crew-heading > button {
  flex-shrink: 0;
  white-space: nowrap;
}
.crew-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: var(--paper);
  box-shadow: 0 3px 15px #183f3404;
  margin-bottom: 16px;
}
.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}
.crew-grid .crew-card {
  margin: 0;
}
.crew-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.crew-kpis article {
  padding: 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.crew-kpis strong {
  display: block;
  font-size: 27px;
  line-height: 1.3;
}
.crew-kpis span {
  font-size: 12px;
  color: var(--muted);
}
.crew-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.crew-tabs button {
  padding: 8px 13px;
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
.crew-tabs button[aria-selected="true"] {
  background: #e3eee7;
  border-color: #ccded2;
  color: var(--ink);
}
.crew-toolbar,
.crew-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.crew-toolbar input {
  flex: 1;
  min-width: 180px;
}
.crew-actions button,
.crew-actions a {
  font-size: 13px;
  padding: 8px 12px;
}
.crew-badge {
  display: inline-block;
  border-radius: 30px;
  background: #edf2ef;
  font-size: 12px;
  padding: 3px 10px;
  margin: 5px 7px 8px 0;
  color: var(--ink);
}
.crew-warning {
  color: var(--warn);
  background: #fff5df;
  border-radius: 9px;
  padding: 10px 13px;
  margin: 12px 0;
  font-size: 13px;
}
.crew-error {
  color: var(--bad);
  background: #fff0ef;
  border: 1px solid #f1c7c2;
  padding: 12px 16px;
  border-radius: 10px;
  margin: 12px 0;
  white-space: pre-wrap;
}
.crew-notice {
  padding: 12px 16px;
  border: 1px solid #bedac9;
  border-radius: 10px;
  background: #edf7ef;
  margin: 12px 0;
}
.crew-empty {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 13px;
}
.crew-facts {
  display: grid;
  gap: 4px;
  margin: 10px 0;
}
.crew-facts div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}
.crew-facts span {
  color: var(--muted);
}
.crew-facts strong {
  text-align: right;
  font-weight: 500;
}
.crew-copy {
  font-size: 13px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.crew-document {
  white-space: pre-wrap;
  max-height: 55vh;
  overflow: auto;
  padding: 14px 0;
}
.crew-login {
  max-width: 460px;
  margin: 45px auto;
}
.crew-login form {
  display: grid;
  gap: 17px;
  margin: 22px 0 8px;
}
.crew-preview {
  font-size: 12px;
  border-bottom: 1px solid #e5d7b8;
  background: #fff8e9;
  text-align: center;
  padding: 7px 15px;
  color: #755021;
}
dialog {
  max-width: 680px;
  width: calc(100% - 28px);
  max-height: 90dvh;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 25px;
  color: var(--ink);
  background: #fff;
}
dialog::backdrop {
  background: #0d281e70;
  backdrop-filter: blur(3px);
}
.crew-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}
.crew-form .wide,
.crew-form footer {
  grid-column: 1/-1;
}
.crew-form footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.crew-form pre {
  white-space: pre-wrap;
  font-size: 12px;
}
.crew-route {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  counter-reset: stop;
}
.crew-route li {
  padding: 8px 0 8px 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
  counter-increment: stop;
}
.crew-route li::before {
  content: counter(stop);
  position: absolute;
  left: 0;
  background: #e5eee7;
  border-radius: 50%;
  width: 23px;
  height: 23px;
  text-align: center;
  font-size: 12px;
}
.crew-route small {
  display: block;
}
.crew-link {
  color: var(--brand);
  text-underline-offset: 3px;
}
.crew-admin main {
  max-width: 1400px;
  margin: auto;
  padding: 26px;
}
.crew-admin .topbar {
  padding: 14px 26px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.crew-admin .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.crew-admin .brand img {
  width: 40px;
}
.crew-history {
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.crew-history pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.crew-inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.crew-task-order {
  display: grid;
  gap: 5px;
}
.crew-task-order > div {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}
.crew-task-order span {
  flex: 1;
}
.crew-task-order button {
  padding: 5px 10px;
}
.crew-subtitle {
  margin-bottom: 18px;
  color: var(--muted);
}
@media (max-width: 600px) {
  .crew-main {
    padding: 22px 14px 40px;
  }
  .crew-top {
    padding: 12px 16px;
  }
  .crew-brand strong {
    font-size: 14px;
  }
  .crew-card {
    padding: 17px;
  }
  .crew-heading {
    align-items: flex-start;
  }
  .crew-form {
    grid-template-columns: 1fr;
  }
  .crew-form > * {
    grid-column: 1;
  }
  .crew-tabs {
    gap: 3px;
  }
  .crew-tabs button {
    font-size: 13px;
    padding: 8px;
  }
  .crew-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .crew-admin main {
    padding: 18px 14px;
  }
  dialog {
    padding: 20px;
  }
  .crew-login {
    margin: 20px auto;
  }
}
[hidden] {
  display: none !important;
}
