:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #183b35;
  background: #f6f7f4;
  font-size: 15px;
  line-height: 1.5;
  font-synthesis: none;
  --green: #164e43;
  --muted: #65766f;
  --border: #dfe6df;
  --orange: #e77933;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: #234b41;
  padding: 10px 15px;
  font-weight: 650;
  transition: background 0.15s;
}
button:hover {
  background: #f0f5ef;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.primary:hover {
  background: #246557;
}
.secondary {
  background: #edf4ef;
}
.danger {
  color: #a1392f;
}
.text-button {
  background: transparent;
  border: 0;
  padding: 4px;
  color: var(--green);
}
a {
  color: #236551;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cdd9cf;
  border-radius: 9px;
  background: #fff;
  color: #183b35;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8fbdaa;
  outline-offset: 2px;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 14px;
}
label input,
label select,
label textarea {
  display: block;
  margin-top: 6px;
}
input[type="checkbox"] {
  width: auto;
  display: inline;
  margin-right: 8px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin-bottom: 7px;
  line-height: 1.2;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
}
p {
  color: var(--muted);
}
small,
.muted {
  color: var(--muted);
  font-size: 13px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 750;
  color: #739586;
  margin-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.mark {
  display: grid;
  place-items: center;
  border: 1px solid #779b8a;
  border-radius: 12px;
  background: #ffffff0c;
  width: 38px;
  height: 38px;
  font-size: 22px;
  color: #e8be8d;
}
.brand span small {
  display: block;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #94b4a4;
  font-size: 10px;
}
.shell {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: #133d37;
  padding: 28px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.sidebar label {
  color: #bad0c4;
}
.sidebar select {
  background: #204b42;
  border-color: #41685b;
  color: #fff;
}
nav {
  display: grid;
  gap: 7px;
}
nav button {
  text-align: left;
  background: transparent;
  border-color: transparent;
  color: #bcd0c5;
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 12px;
}
nav button.active {
  background: #315d50;
  color: #fff;
}
nav button:hover {
  background: #2a554a;
}
.nav-icon {
  width: 22px;
  text-align: center;
  font-size: 19px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #386052;
  padding-top: 18px;
}
.sidebar-bottom button {
  color: #c2d8ca;
}
.content {
  min-width: 0;
  padding: 32px 38px 55px;
  max-width: 1600px;
  width: 100%;
  margin: auto;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 15px;
}
.topline .eyebrow {
  margin: 0;
  color: #61786e;
}
.mode {
  font-size: 11px;
  letter-spacing: 0.5px;
  border: 1px solid #d2e3d6;
  border-radius: 30px;
  background: #edf5ec;
  padding: 5px 10px;
  white-space: nowrap;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
.page-title p {
  margin: 8px 0 0;
}
.hero {
  background: linear-gradient(120deg, #174e43, #34795f);
  border: 1px solid #2d6d57;
  color: #fff;
  border-radius: 18px;
  padding: 26px 30px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.hero h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  margin-bottom: 8px;
}
.hero p {
  color: #cbe0d2;
  max-width: 600px;
  margin: 0;
}
.hero .eyebrow {
  color: #b7d3c0;
}
.hero button {
  white-space: nowrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 20px;
}
.stat strong {
  display: block;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 7px 0;
}
.stat span {
  font-size: 13px;
  color: var(--muted);
}
.stat .stat-label {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1px;
  color: #3c5b4f;
}
.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 23px;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 23px;
  margin-bottom: 22px;
  min-width: 0;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}
.panel-header h2 {
  margin: 0;
}
.panel-header p {
  margin: 0;
}
.warning {
  background: #fff7e8;
  border: 1px solid #ecdab3;
  color: #76501c;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
}
.success {
  background: #edf6ef;
  border: 1px solid #cee0d3;
  padding: 14px;
  border-radius: 10px;
}
.empty {
  text-align: center;
  padding: 36px 18px;
  color: #708277;
}
.empty strong {
  display: block;
  color: #2a5043;
  margin-bottom: 7px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #74867a;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 16px 12px;
  border-bottom: 1px solid #edf0eb;
  font-size: 13px;
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
.report-title {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  color: #224c3e;
  font-weight: 650;
  display: block;
  max-width: 420px;
  overflow-wrap: anywhere;
}
.report-title:hover {
  background: none;
  text-decoration: underline;
}
.ref {
  font-weight: 700;
  color: #8d9d91;
  font-size: 11px;
  margin-right: 8px;
}
td small {
  display: block;
  margin-top: 4px;
}
.pill {
  display: inline-block;
  border-radius: 6px;
  background: #edf1ec;
  padding: 4px 8px;
  color: #586c5e;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.pill.reported,
.pill.reopened {
  color: #97601f;
  background: #fcf0d9;
}
.pill.claimed {
  background: #eaf0f9;
  color: #46668c;
}
.pill.contained {
  background: #edf0fb;
  color: #5b5d94;
}
.pill.cleared,
.pill.verified {
  background: #e9f3eb;
  color: #2b7750;
}
.pill.failed,
.pill.uncertain,
.pill.undelivered {
  background: #faeae6;
  color: #a34c35;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: #75ab87;
  margin-right: 6px;
}
.activity {
  display: grid;
  gap: 17px;
}
.activity-item {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  font-size: 13px;
}
.activity-item p {
  font-size: 12px;
  margin: 3px 0 0;
}
.activity-item .dot {
  margin-top: 7px;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar input {
  max-width: 300px;
}
.toolbar select {
  width: auto;
}
.split-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.full {
  grid-column: 1/-1;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.staff-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.staff-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.staff-card h3 {
  margin-bottom: 5px;
}
.staff-card p {
  font-size: 13px;
  margin-bottom: 9px;
}
.staff-card .actions {
  margin-top: 14px;
}
.steps {
  display: grid;
  gap: 18px;
  counter-reset: steps;
}
.step {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
}
.step:before {
  counter-increment: steps;
  content: counter(steps);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e7efe7;
  color: #3a6550;
  font-size: 12px;
  font-weight: 700;
}
.step p {
  font-size: 13px;
  margin: 4px 0 0;
}
.sim-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 23px;
}
.conversation {
  max-height: 600px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 5px;
}
.bubble {
  align-self: flex-start;
  background: #edf3ed;
  padding: 14px 17px;
  max-width: 92%;
  border-radius: 14px 14px 14px 3px;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble small {
  display: block;
  font-size: 10px;
  margin-top: 7px;
}
.bubble.from-user {
  background: #174e43;
  color: #fff;
  align-self: flex-end;
  border-radius: 14px 14px 3px 14px;
}
.bubble.from-user small {
  color: #bad3c4;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #102d285c;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
}
.drawer {
  background: #f8f9f6;
  width: 650px;
  max-width: 100%;
  height: 100%;
  overflow: auto;
  padding: 30px;
  box-shadow: -15px 0 60px #12362e1a;
}
.drawer h1 {
  font-size: 24px;
}
.close {
  float: right;
}
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.details dt {
  font-size: 11px;
  color: #77897d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.details dd {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.photos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.photos img {
  width: 120px;
  height: 100px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid var(--border);
}
.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100dvh;
}
.auth-story {
  background: #133d37;
  padding: 50px 9%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}
.auth-story h1 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.1;
  letter-spacing: -2px;
  max-width: 560px;
}
.auth-story p {
  color: #b9d2c3;
  font-size: 17px;
  max-width: 500px;
}
.auth-story .eyebrow {
  color: #b0ccba;
}
.story-flow {
  border: 1px solid #4e7666;
  padding: 24px;
  border-radius: 15px;
  margin: 35px 0;
}
.story-flow div {
  padding: 11px 0;
  display: flex;
  gap: 16px;
  align-items: center;
}
.story-flow span {
  background: #315e4d;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #b9d4c0;
  font-size: 12px;
}
.auth-main {
  display: grid;
  place-items: center;
  padding: 40px;
}
.auth-card {
  max-width: 420px;
  width: 100%;
}
.auth-card h1 {
  font-size: 30px;
}
.auth-card .primary {
  width: 100%;
  margin: 5px 0 20px;
}
.auth-card footer {
  text-align: center;
  font-size: 13px;
}
.auth-lang {
  position: absolute;
  right: 28px;
  top: 24px;
}
.auth-lang select {
  padding: 6px;
}
.error {
  background: #fff0eb;
  border: 1px solid #ebcabe;
  color: #a04c33;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  background: #183e34;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 30px #14372e33;
  z-index: 100;
  display: none;
}
.code {
  font:
    13px ui-monospace,
    monospace;
  background: #f0f4ed;
  border-radius: 8px;
  padding: 14px;
  overflow-wrap: anywhere;
  user-select: all;
}
.legal {
  max-width: 800px;
  margin: 50px auto;
  padding: 25px;
}
.mobile-top {
  display: none;
}
.bars {
  display: grid;
  gap: 15px;
}
.bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 30px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.bar-track {
  height: 8px;
  border-radius: 10px;
  background: #edf2eb;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: #649e7a;
  border-radius: 10px;
}
.form-hint {
  font-size: 12px;
  color: #6d8072;
  margin-top: -7px;
  margin-bottom: 14px;
}
.recovery {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #163b32aa;
  display: grid;
  place-items: center;
  padding: 20px;
}
.recovery .panel {
  max-width: 540px;
}
details summary {
  cursor: pointer;
  font-weight: 650;
  padding: 5px 0;
}
.shift-days {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.shift-days label {
  font-size: 12px;
  margin: 0;
}
.shift-days input {
  margin-right: 2px;
}
.date-chip {
  font-size: 12px;
  background: #edf1eb;
  padding: 6px 10px;
  border-radius: 7px;
}
.report-number {
  color: #6d8d7a;
  font-size: 12px;
  letter-spacing: 1px;
}
.hidden {
  display: none !important;
}
@media (max-width: 1100px) {
  .content {
    padding: 25px;
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .sim-grid {
    grid-template-columns: 290px minmax(0, 1fr);
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .sidebar {
    padding: 25px 14px;
  }
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 16px;
    gap: 14px;
  }
  .sidebar .brand {
    font-size: 18px;
  }
  .sidebar > label {
    margin: 0;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 3px;
  }
  .sidebar nav button {
    padding: 9px 10px;
    white-space: nowrap;
    font-size: 12px;
  }
  .nav-icon {
    display: none;
  }
  .sidebar-bottom {
    display: none;
  }
  .content {
    padding: 20px 15px 40px;
  }
  .topline {
    margin-bottom: 20px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat strong {
    font-size: 30px;
  }
  .hero {
    padding: 21px;
    display: block;
  }
  .hero button {
    margin-top: 18px;
  }
  .page-title {
    align-items: flex-start;
  }
  .page-title h1 {
    font-size: 25px;
  }
  .panel {
    padding: 17px;
  }
  .sim-grid {
    grid-template-columns: 1fr;
  }
  .staff-list {
    grid-template-columns: 1fr;
  }
  .auth-layout {
    display: block;
  }
  .auth-story {
    padding: 30px;
  }
  .auth-story .story-flow,
  .auth-story > small {
    display: none;
  }
  .auth-story h1 {
    font-size: 32px;
    margin: 35px 0 15px;
  }
  .auth-story p {
    font-size: 14px;
  }
  .auth-main {
    padding: 30px 22px;
  }
  .auth-lang {
    top: 20px;
    right: 15px;
  }
  .auth-lang select {
    max-width: 95px;
    background: #245349;
    color: #fff;
  }
  .split-form {
    grid-template-columns: 1fr;
  }
  .details {
    grid-template-columns: 1fr 1fr;
  }
  .drawer {
    padding: 20px;
  }
  .topline .eyebrow {
    font-size: 10px;
  }
  .mode {
    font-size: 10px;
  }
  .conversation {
    max-height: 480px;
  }
  .table-wrap {
    margin: 0 -5px;
  }
  .page-title .actions button {
    font-size: 12px;
    padding: 8px;
  }
  .bar-row {
    grid-template-columns: 80px 1fr 25px;
  }
}

progress {
  appearance: none;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 10px;
  background: #edf2eb;
}
progress::-webkit-progress-bar {
  background: #edf2eb;
  border-radius: 10px;
}
progress::-webkit-progress-value {
  background: #649e7a;
  border-radius: 10px;
}
progress::-moz-progress-bar {
  background: #649e7a;
  border-radius: 10px;
}

@media (max-width: 760px) {
  .reports-table,
  .reports-table tbody {
    display: block;
  }
  .reports-table thead {
    display: none;
  }
  .reports-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    gap: 12px;
  }
  .reports-table tr:last-child {
    border: 0;
  }
  .reports-table td {
    display: block;
    border: 0;
    padding: 0 8px;
    min-width: 0;
  }
  .reports-table td:first-child {
    grid-column: 1/-1;
  }
  .reports-table td:before {
    content: attr(data-label);
    display: block;
    color: #7b8c80;
    font-size: 10px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .reports-table .report-title {
    max-width: 100%;
    overflow-wrap: break-word;
    font-size: 14px;
  }
  .reports-table td small {
    font-size: 12px;
  }
  .reports-table td:last-child {
    font-size: 12px;
  }
  .stat {
    min-height: 120px;
  }
  .page-title .actions {
    flex-shrink: 0;
  }
  .page-title > div:first-child {
    min-width: 0;
  }
}
