:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #eaf1eb;
  background: #071611;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 90% 0, #173e2d 0, transparent 48%), #071611;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
a {
  color: #d5eb9c;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
  margin: 4px 0 10px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  margin: 0 0 14px;
}
h3 {
  font-size: 15px;
  margin: 8px 0;
}
p {
  line-height: 1.6;
}
.muted,
small {
  color: #a4b8a9;
}
.eyebrow {
  text-transform: uppercase;
  color: #d4bd72;
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 700;
}
.shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  padding: 28px 14px;
  background: #07110d;
  border-right: 1px solid #2c4536;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 8px 40px;
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1.8;
}
.brand b {
  font-family: Georgia;
  font-size: 28px;
  border: 1px solid #d6bc6e;
  border-radius: 5px 5px 16px 16px;
  padding: 2px 9px;
  color: #ead79e;
}
.brand small {
  display: block;
  color: #d4bd72;
  font-size: 10px;
}
.nav {
  background: transparent;
  text-align: left;
  border: 0;
  border-radius: 5px;
  color: #b7c9bd;
  padding: 13px 15px;
}
.nav.active {
  background: #d4eaa0;
  color: #102217;
  font-weight: 650;
  box-shadow: 0 0 24px #d4eaa018;
}
.sidebar footer {
  margin-top: auto;
  padding: 30px 10px 0;
  color: #91aa99;
  font-size: 11px;
  line-height: 1.8;
}
.topbar {
  height: 68px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2c4536;
  background: #0b1c14c9;
}
.owner {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.avatar {
  border: 1px solid #75895c;
  background: #1f3521;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  color: #dfd58f;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 30px 32px 70px;
  min-width: 0;
}
.heading {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}
.heading p {
  margin: 0;
  color: #a8bdaf;
  font-size: 13px;
}
.button {
  background: #163326;
  border: 1px solid #46634b;
  color: #e8f2e5;
  padding: 11px 15px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 650;
  min-height: 42px;
}
.button:hover {
  background: #254632;
}
.button.primary {
  color: #122417;
  background: #d3e99f;
  border-color: #d3e99f;
}
.button.danger {
  background: #442725;
  color: #ffd1c8;
  border-color: #8f4d43;
}
.link {
  background: none;
  border: 0;
  color: #d7eb9f;
  padding: 0;
  text-align: left;
  font-weight: 650;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.panel {
  background: linear-gradient(145deg, #10261a, #0b1c14);
  border: 1px solid #35533e;
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 20px;
  min-width: 0;
}
.panelhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.panelhead h2 {
  margin: 0;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid #294333;
}
.row:last-child {
  border: 0;
}
.row p {
  margin: 6px 0 0;
  font-size: 12px;
}
.badge {
  display: inline-block;
  border: 1px solid #537044;
  background: #213924;
  color: #d5e9a8;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 10px;
  white-space: nowrap;
}
.badge.warn {
  color: #f0d58b;
  background: #382f1c;
  border-color: #75643b;
}
.badge.dim {
  color: #a8bbae;
  border-color: #3d5947;
  background: #13251a;
}
.badge.error {
  color: #ffbdb2;
  background: #402522;
  border-color: #75473e;
}
.empty {
  padding: 32px 18px;
  text-align: center;
  color: #a7bcae;
}
.empty h3 {
  color: #e2eddf;
  font-size: 19px;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
}
.grid .panel {
  height: fit-content;
}
.tablewrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  color: #9fb3a4;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 12px 10px;
  background: #132c1d;
}
td {
  padding: 15px 10px;
  border-top: 1px solid #2b4534;
}
tbody tr:hover {
  background: #163220;
}
td small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.formgrid .wide {
  grid-column: 1/-1;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #c3d2c6;
}
input,
select,
textarea {
  border: 1px solid #49634c;
  background: #091c12;
  color: #edf4e9;
  padding: 11px 12px;
  border-radius: 5px;
  min-width: 0;
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #d3e99f;
}
label.check {
  flex-direction: row;
  align-items: center;
  line-height: 1.5;
}
.formend {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tabs button {
  padding: 9px 14px;
  border: 1px solid #3c5742;
  background: transparent;
  color: #bbcdbf;
  border-radius: 4px;
}
.tabs .active {
  background: #d4e99f;
  color: #142a18;
}
.note {
  border-left: 3px solid #d2b864;
  background: #25301b;
  color: #dedebc;
  padding: 12px 15px;
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0 18px;
}
.note.error {
  border-color: #cd7e69;
  color: #ffd3c5;
  background: #352520;
}
.metrics {
  display: flex;
  gap: 30px;
  padding: 5px 0 20px;
}
.metrics strong {
  display: block;
  font-size: 27px;
  font-weight: 600;
  color: #e6d394;
}
.metrics small {
  font-size: 11px;
}
.record {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
}
.fact {
  padding: 12px 0;
  border-bottom: 1px solid #2a4432;
}
.fact small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.fact strong {
  font-size: 13px;
  font-weight: 500;
}
.email {
  white-space: pre-wrap;
  font: 14px/1.8 system-ui;
  color: #e4efdf;
  border-top: 1px solid #2c4536;
  padding-top: 18px;
  overflow-wrap: anywhere;
}
.progress {
  height: 5px;
  background: #263f2d;
  border-radius: 10px;
  margin: 14px 0;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: #d2e99e;
  width: 0;
  transition: width 0.2s;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.filters input {
  flex: 1;
  min-width: 140px;
}
.filters select {
  width: auto;
}
dialog {
  max-width: min(740px, 95vw);
  width: 740px;
  max-height: 92dvh;
  background: #0e2217;
  color: #e6f0e3;
  border: 1px solid #617a4c;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 30px 100px #000a;
}
dialog::backdrop {
  background: #020b08c7;
  backdrop-filter: blur(6px);
}
.modalhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.modalhead h2 {
  margin: 0;
}
.close {
  background: transparent;
  border: 0;
  color: #cbd9ca;
  font-size: 24px;
  padding: 8px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #d4eaa0;
  color: #122516;
  padding: 12px 22px;
  border-radius: 7px;
  box-shadow: 0 8px 35px #0005;
  max-width: 90vw;
  display: none;
  z-index: 10;
}
.loading {
  padding: 50px;
}
.intake {
  max-width: 620px;
  margin: 40px auto;
  padding: 24px;
}
.hold {
  touch-action: none;
  user-select: none;
  min-width: 210px;
}
.formerror {
  color: #ffbaad;
  line-height: 1.5;
  font-size: 13px;
}
.smalltext {
  font-size: 12px;
}
.sticky {
  position: sticky;
  top: 20px;
}
.connection {
  border-left: 3px solid #b39a55;
}
.statusline {
  font-size: 11px;
  color: #a0b89e;
}
.split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.button:focus-visible,
.nav:focus-visible {
  outline: 2px solid #fff2ba;
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  main {
    padding: 25px 20px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .record {
    grid-template-columns: 1fr;
  }
  .sticky {
    position: static;
  }
  .topbar {
    padding: 0 20px;
  }
}
@media (max-width: 600px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 5px;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid #3a533e;
  }
  .brand,
  .sidebar footer,
  .sidebar .eyebrow {
    display: none;
  }
  .nav {
    white-space: nowrap;
    padding: 11px;
  }
  .topbar {
    height: 50px;
    padding: 0 15px;
    font-size: 11px;
  }
  main {
    padding: 20px 14px;
  }
  .heading {
    align-items: flex-start;
  }
  .heading h1 {
    font-size: 25px;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .heading .actions {
    justify-content: flex-end;
  }
  .metrics {
    gap: 20px;
  }
  dialog {
    padding: 18px;
  }
  .panel {
    padding: 16px;
  }
  .grid {
    gap: 0;
  }
  .formgrid .wide {
    grid-column: auto;
  }
  .row {
    align-items: flex-start;
  }
  .tablewrap table {
    min-width: 540px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
[hidden] {
  display: none !important;
}

.setupsteps {
  padding-left: 24px;
  line-height: 1.7;
}
.setupsteps li {
  margin: 18px 0;
}
.callbackaddress {
  overflow-wrap: anywhere;
  font-family: monospace;
  padding: 12px;
  border: 1px solid #3a533e;
  border-radius: 8px;
}
.connection details {
  margin-top: 20px;
}
.connection summary {
  cursor: pointer;
  padding: 12px 0;
}
.connection input[type="file"] {
  max-width: 100%;
}
.connection h3 {
  overflow-wrap: anywhere;
}
.connection form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.mail-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.7;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}
.mail-unread {
  border-left: 3px solid #d6e6a4;
  padding-left: 1rem;
}

.research-intro {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 32px;
  border-top: 2px solid #cbe88a;
}
.research-counts {
  display: grid;
  gap: 4px;
  border-left: 1px solid #345443;
  padding-left: 24px;
}
.research-counts strong {
  color: #d5eb9c;
  font-size: 28px;
}
.research-counts span {
  font-size: 12px;
  color: #a5b8aa;
  margin-bottom: 12px;
}
.research-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.research-filters label {
  min-width: 180px;
  flex: 1;
}
.research-table {
  min-width: 850px;
}
.research-table td {
  vertical-align: top;
}
.research-table small {
  display: block;
  margin: 7px 0;
}
.research-actions {
  display: grid;
  gap: 8px;
}
@media (max-width: 650px) {
  .research-intro {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .research-counts {
    border-left: 0;
    border-top: 1px solid #345443;
    padding: 16px 0 0;
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .research-counts span {
    margin: 0;
  }
}
