:root {
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: #193338;
  background: #f3f6f5;
  font-size: 14px;
  font-synthesis: none;
  --green: #007f6b;
  --muted: #6b7f82;
  --line: #dde7e4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid #cbdad5;
  background: white;
  color: #25494a;
  padding: 10px 15px;
  border-radius: 7px;
  font-weight: 600;
}
button:hover {
  background: #edf6f2;
}
button.primary {
  background: #007f6b;
  color: white;
  border-color: #007f6b;
}
button.danger {
  color: #a62d35;
}
button.small {
  padding: 7px 11px;
  font-size: 12px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
select {
  padding: 10px 12px;
  border: 1px solid #ccd9d4;
  border-radius: 6px;
  background: white;
  color: #193338;
  min-width: 0;
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}
form {
  display: grid;
  gap: 20px;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 6px 0 12px;
}
h2 {
  font-size: 17px;
  margin: 0;
}
h3 {
  font-size: 14px;
}
p {
  line-height: 1.65;
}
small,
.muted {
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 700;
  color: #5f7e79;
}
.shell {
  display: grid;
  grid-template-columns: 228px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #112e31;
  color: #bed2ce;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 35px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 18px;
  color: white;
  font-weight: 650;
}
.brand-icon {
  width: 36px;
  height: 40px;
  border: 2px solid #65c5ab;
  border-radius: 12px 12px 16px 16px;
  color: #7cd8bd;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.brand small {
  font-size: 10px;
  display: block;
  font-weight: 400;
  letter-spacing: 1px;
  margin-top: 4px;
  color: #8da9a4;
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  border: 0;
  background: none;
  text-align: left;
  color: #bdd1cd;
  padding: 13px 16px;
  font-weight: 500;
}
nav button.active {
  background: #234942;
  color: #a5ecd3;
}
nav button:hover {
  background: #1e4140;
}
nav .eyebrow {
  padding: 12px 16px;
  color: #71928c;
  margin-top: 16px;
}
.sidebar footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
  font-size: 11px;
  line-height: 1.7;
  color: #8ba6a0;
}
.sidebar footer button {
  background: none;
  color: #bed2ce;
  border-color: #375652;
}
.content {
  padding: 0 38px 40px;
  max-width: 1800px;
  width: 100%;
  min-width: 0;
}
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.live {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1ba57f;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0 25px;
  gap: 15px;
}
.heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  position: relative;
}
.stat .number {
  font-size: 32px;
  margin: 15px 0 7px;
  font-weight: 650;
  letter-spacing: -1px;
}
.stat small {
  font-size: 11px;
}
.stat-symbol {
  position: absolute;
  right: 19px;
  top: 18px;
  background: #eff6f3;
  color: #428e7b;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 17px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 22px;
  overflow: hidden;
}
.panel-head {
  padding: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.panel-head p {
  font-size: 12px;
  margin: 6px 0 0;
  color: var(--muted);
}
.panel-body {
  padding: 24px;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 17px 23px;
  background: #fbfcfb;
  border-bottom: 1px solid var(--line);
}
.filters input {
  flex: 1;
  min-width: 170px;
}
.filters select {
  max-width: 230px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  color: #7b8e8d;
  background: #fbfcfb;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 650;
  padding: 15px 23px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 19px 23px;
  border-bottom: 1px solid #edf1ef;
  font-size: 12px;
}
td strong {
  display: block;
  font-size: 13px;
  margin-bottom: 7px;
}
td small {
  font-size: 11px;
}
tbody tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #fbfdfb;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 5px;
  background: #edf1f2;
  color: #677a80;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.badge.good {
  background: #e9f6ef;
  color: #24885c;
}
.badge.bad {
  background: #fceced;
  color: #b7454a;
}
.badge.warn {
  background: #fff3dc;
  color: #a77317;
}
.badge.info {
  background: #eaf2fc;
  color: #4280b0;
}
.subline {
  display: block;
  color: #9b6c16;
  font-size: 10px;
  margin-top: 7px;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  padding: 16px 23px;
  font-size: 11px;
  color: var(--muted);
  align-items: center;
}
.explain {
  display: flex;
  gap: 15px;
  border: 1px solid #d8e8e0;
  background: #ecf4ef;
  border-radius: 8px;
  padding: 17px 20px;
  font-size: 12px;
  line-height: 1.6;
  color: #536f63;
}
.explain b {
  color: #335e50;
}
.empty {
  padding: 50px 24px;
  text-align: center;
  color: var(--muted);
  line-height: 1.8;
}
.empty strong {
  display: block;
  color: #244940;
  font-size: 16px;
  margin-bottom: 8px;
}
.login {
  max-width: 430px;
  margin: 12vh auto;
  padding: 35px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.login .brand {
  color: #193338;
  margin-bottom: 35px;
}
.login p {
  color: var(--muted);
}
.loading {
  text-align: center;
  margin: 20vh;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}
.customer-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 24px;
  background: white;
}
.customer-card h3 {
  margin: 12px 0;
}
.customer-card p {
  color: var(--muted);
  font-size: 12px;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}
dialog {
  border: 1px solid #c8dad2;
  border-radius: 12px;
  padding: 27px;
  max-width: 760px;
  width: calc(100% - 40px);
  max-height: 88vh;
  box-shadow: 0 24px 100px #082a3430;
}
dialog::backdrop {
  background: #0d282a70;
}
dialog p {
  color: var(--muted);
  font-size: 12px;
}
.token {
  display: block;
  padding: 16px;
  background: #eff6f3;
  border: 1px dashed #72aa95;
  border-radius: 7px;
  word-break: break-all;
  font-size: 13px;
  user-select: all;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 20px 0;
}
.facts div {
  background: #f4f7f5;
  padding: 13px;
  border-radius: 6px;
}
.facts small {
  display: block;
  font-size: 10px;
  margin-bottom: 6px;
}
.facts strong {
  font-size: 12px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.error-text {
  color: #a2353d !important;
}
#notice {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 10;
  max-width: 440px;
  background: #163c36;
  color: white;
  border: 1px solid #5f9c88;
  border-radius: 9px;
  padding: 16px 22px;
  box-shadow: 0 10px 40px #132b2920;
}
.footnote {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 18px 0;
}
code {
  font-family: Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
  white-space: normal;
}
pre {
  background: #f0f4f2;
  padding: 14px;
  overflow: auto;
}
.split-title {
  display: flex;
  gap: 9px;
  align-items: center;
}
.count {
  border-radius: 5px;
  background: #eef3f0;
  font-size: 11px;
  color: #5b7b6c;
  padding: 4px 7px;
}
.check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 400;
}
.check input {
  min-width: 0;
}
.refresh-spin {
  opacity: 0.6;
}
.note-icon {
  font-size: 21px;
  color: #599a80;
}
.key-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.key-row:last-child {
  border: 0;
}
.audit {
  display: grid;
  grid-template-columns: 155px 110px 1fr;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 12px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 5px;
}
@media (min-width: 1500px) {
  .content {
    padding-left: 48px;
    padding-right: 48px;
  }
  td {
    padding-top: 23px;
    padding-bottom: 23px;
  }
}
.compact-meta {
  display: none;
}
@media (max-width: 1100px) {
  .sidebar nav button {
    font-size: 12px;
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
  }
  .stat > .muted {
    display: block;
    min-height: 32px;
  }
  #jobs th:nth-child(2),
  #jobs td:nth-child(2),
  #jobs th:nth-child(4),
  #jobs td:nth-child(4) {
    display: none;
  }
  #jobs td,
  #jobs th {
    white-space: normal;
    padding-left: 15px;
    padding-right: 15px;
  }
  #jobs td:last-child {
    white-space: nowrap;
  }
  .compact-meta {
    display: block;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 5px;
  }
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 25px 13px;
  }
  .content {
    padding: 0 22px 30px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .stat-symbol {
    display: none;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 16px;
    gap: 18px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 5px;
  }
  .sidebar nav .eyebrow {
    display: none;
  }
  .sidebar footer {
    display: block;
    position: absolute;
    right: 16px;
    top: 15px;
  }
  .sidebar footer > span {
    display: none;
  }
  .sidebar nav button {
    white-space: nowrap;
    padding: 10px;
  }
  .brand small {
    display: none;
  }
  .content {
    padding: 0 16px 25px;
  }
  .topbar {
    height: 58px;
  }
  .heading {
    margin-top: 24px;
    align-items: flex-start;
  }
  h1 {
    font-size: 24px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat .number {
    font-size: 28px;
  }
  .filters {
    padding: 15px;
  }
  .filters select {
    max-width: 100%;
    flex: 1;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .audit {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .panel-head {
    padding: 18px;
  }
  .table-footer {
    gap: 10px;
  }
  .heading button {
    white-space: nowrap;
  }
  .live {
    font-size: 10px;
  }
}
