:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #172d2a;
  background: #f4f7f6;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
aside {
  width: 240px;
  background: #112e29;
  color: #c4d6d1;
  padding: 36px 22px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  font-size: 25px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  align-items: center;
}
.brand > span {
  font-size: 22px;
}
.muted {
  font-weight: 400;
  color: #b2cac2;
}
.workspace {
  font-size: 9px;
  letter-spacing: 1.7px;
  margin: 44px 12px 24px;
  color: #7ca097;
}
.workspace b {
  display: block;
  color: #dce9e5;
  font-size: 13px;
  letter-spacing: 0;
  margin-top: 11px;
}
nav {
  display: grid;
  gap: 7px;
}
.nav {
  background: transparent;
  border: 0;
  color: #a7bfb7;
  text-align: left;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
}
.nav:hover,
.nav.active {
  background: #25493d;
  color: #d2f6d1;
}
.aside-bottom {
  margin-top: auto;
  font-size: 12px;
  padding: 15px 10px;
}
.aside-bottom p {
  font-size: 11px;
  color: #7e9c93;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b7e69c;
  margin-right: 5px;
}
main {
  margin-left: 240px;
  width: calc(100% - 240px);
  padding: 0 42px;
}
header {
  height: 86px;
  border-bottom: 1px solid #dfe8e4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #84968f;
}
header b {
  color: #3c544a;
  font-weight: 500;
}
header i {
  font-style: normal;
  margin: 0 14px;
  color: #b3c0ba;
}
.version {
  padding: 7px 12px;
  border: 1px solid #dfe6e2;
  border-radius: 6px;
  font-size: 10px;
}
.heading {
  margin: 40px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #638675;
}
h1 {
  font-size: 34px;
  letter-spacing: -1px;
  margin: 11px 0;
}
p {
  font-size: 14px;
  color: #789087;
  line-height: 1.65;
  margin: 8px 0;
}
h2 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 16px;
  margin-top: 30px;
}
.primary,
.secondary,
.download {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  background: #244e3d;
  color: #fff;
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.primary:hover {
  background: #35694f;
}
.secondary,
.download {
  background: #eef4f0;
  color: #31523f;
  border: 1px solid #dae6de;
}
.card {
  background: #fff;
  border: 1px solid #e0e8e3;
  border-radius: 12px;
  padding: 26px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.stats article > span {
  font-size: 12px;
  color: #778b82;
}
.stats strong {
  display: block;
  font-size: 34px;
  font-weight: 600;
  margin: 16px 0 8px;
  letter-spacing: -1px;
}
small {
  color: #7b9086;
  font-size: 11px;
  line-height: 1.6;
}
.grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.badge {
  font-size: 10px;
  background: #f2f6f3;
  color: #6f8a79;
  border: 1px solid #e1eae3;
  border-radius: 5px;
  padding: 5px 9px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #577264;
  margin: 16px 0;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 12px;
  background: #fafcfb;
  border: 1px solid #dfe8e2;
  border-radius: 6px;
  color: #284439;
  margin-top: 9px;
  outline: none;
  font-size: 13px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #719f7d;
  box-shadow: 0 0 0 3px #719f7d15;
}
textarea {
  resize: vertical;
}
.form-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.note {
  font-size: 11px;
  margin-top: 18px;
  color: #91a197;
}
.setup {
  background: #f3f7ed;
  border-color: #e0e8d5;
}
.setup p {
  max-width: 310px;
}
.orb {
  font-size: 26px;
  color: #68855d;
}
ol {
  list-style: none;
  counter-reset: steps;
  padding: 0;
  margin: 28px 0;
}
ol li {
  counter-increment: steps;
  position: relative;
  padding: 0 0 24px 42px;
}
ol li:before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  border: 1px solid #cedcc2;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  text-align: center;
  line-height: 25px;
  font-size: 11px;
  color: #647f58;
}
ol b {
  font-size: 13px;
  display: block;
  color: #4b6344;
}
ol span {
  font-size: 11px;
  color: #87987a;
  display: block;
  margin-top: 5px;
}
.setup .download {
  background: #fff;
  width: 100%;
}
.activity {
  margin-top: 24px;
}
.quiet {
  border: 0;
  background: transparent;
  color: #779582;
  font-size: 12px;
  padding: 5px;
}
.aside-bottom .quiet {
  color: #acc5bb;
  padding: 0;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  letter-spacing: 0.5px;
  font-weight: 500;
  color: #8ea095;
  padding: 12px 10px;
  border-bottom: 1px solid #e7eee8;
}
td {
  padding: 17px 10px;
  border-bottom: 1px solid #eff3f0;
  max-width: 300px;
}
td.text {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
tr:last-child td {
  border: 0;
}
.pill {
  white-space: nowrap;
  background: #eef4ef;
  color: #637c67;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
}
.pill.failed,
.pill.unknown {
  background: #fff2ea;
  color: #ae7650;
}
.pill.queued,
.pill.claimed {
  background: #eff3f9;
  color: #7588a0;
}
.empty {
  padding: 32px;
  text-align: center;
  color: #90a298;
  font-size: 13px;
  background: #fafcfb;
  border: 1px dashed #e4ebe6;
  border-radius: 8px;
}
.empty b {
  display: block;
  color: #597463;
  margin-bottom: 7px;
}
footer {
  display: flex;
  justify-content: space-between;
  margin: 32px 0;
  font-size: 10px;
  color: #a0b0a5;
}
dialog {
  border: 1px solid #dce8df;
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: calc(100% - 28px);
  box-shadow: 0 20px 80px #122d2930;
}
dialog::backdrop {
  background: #102d2960;
  backdrop-filter: blur(4px);
}
dialog h2 {
  margin: 13px 0;
}
.close {
  float: right;
  background: transparent;
  border: 0;
  font-size: 25px;
  color: #8b9b91;
}
.paircode {
  display: block;
  font-size: 30px;
  letter-spacing: 4px;
  color: #254b38;
  font-family: monospace;
  padding: 20px 0;
}
#pairResult small {
  display: block;
}
#createCode {
  width: 100%;
}
.login {
  max-width: 530px;
  margin: 70px auto;
}
.login h1 {
  font-size: 40px;
}
.login button {
  width: 100%;
  margin: 10px 0 20px;
}
.device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.device-icon {
  font-size: 28px;
  background: #f0f5ed;
  padding: 12px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 20px;
}
.device-grid h2 {
  overflow-wrap: anywhere;
}
.device-grid small {
  display: block;
  margin: 12px 0;
}
pre {
  background: #152c26;
  color: #cce4cf;
  padding: 24px;
  border-radius: 8px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.8;
}
.api-card {
  max-width: 960px;
}
.api-card h2 {
  font-size: 27px;
  margin-top: 14px;
}
#filter {
  width: auto;
  margin: 0;
}
#toast {
  position: fixed;
  top: 20px;
  right: 28px;
  padding: 14px 20px;
  background: #173e2e;
  color: #fff;
  border-radius: 8px;
  z-index: 10;
  font-size: 13px;
  max-width: 440px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  main {
    padding-right: max(42px, calc((100vw - 1450px) / 2));
    padding-left: max(42px, calc((100vw - 1450px) / 2));
  }
}
@media (max-width: 1050px) {
  aside {
    width: 190px;
    padding: 30px 16px;
  }
  main {
    margin-left: 190px;
    width: calc(100% - 190px);
    padding: 0 25px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stats .card {
    padding: 18px;
  }
  .device-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  body {
    display: block;
  }
  aside {
    position: static;
    width: 100%;
    padding: 18px;
  }
  .brand {
    font-size: 20px;
  }
  .workspace,
  .aside-bottom {
    display: none;
  }
  nav {
    display: flex;
    gap: 0;
    overflow: auto;
    margin-top: 18px;
  }
  .nav {
    white-space: nowrap;
    font-size: 11px;
    padding: 10px;
  }
  main {
    margin: 0;
    width: 100%;
    padding: 0 18px;
  }
  header {
    height: 55px;
  }
  .heading {
    display: block;
    margin: 26px 0;
  }
  .heading > .primary {
    margin-top: 15px;
  }
  h1 {
    font-size: 29px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stats strong {
    font-size: 28px;
  }
  .card {
    padding: 20px;
  }
  .device-grid {
    grid-template-columns: 1fr;
  }
  .card-title {
    gap: 10px;
  }
  footer span {
    display: none;
  }
  .login {
    margin: 30px auto;
  }
  .form-bottom {
    gap: 10px;
  }
  td {
    min-width: 110px;
  }
  td.text {
    min-width: 180px;
  }
}
.google-login {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #fff;
  border: 1px solid #d7e0dc;
  border-radius: 7px;
  padding: 14px;
  color: #263d34;
  font-weight: 600;
  margin: 24px 0 12px;
}
.google-icon {
  font-size: 22px;
  font-weight: 700;
  color: #4285f4;
}
.backup-login {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #edf1ee;
}
.backup-login summary {
  cursor: pointer;
  font-size: 12px;
  color: #85998d;
}
.key-card {
  margin-bottom: 24px;
}
.company-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #eef2ef;
  padding: 18px 0;
}
.company-row small {
  flex: 1;
  min-width: 150px;
}
.company-row code {
  font-size: 10px;
  color: #829587;
  overflow-wrap: anywhere;
}
#workspaceSelect {
  width: auto;
  max-width: 260px;
  margin: 0;
  font-size: 12px;
}
#companyForm {
  max-width: 600px;
  margin: 22px 0 30px;
}

.scope-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.scope-options label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.scope-options input {
  width: auto;
}
fieldset {
  border: 1px solid #dce4da;
  border-radius: 12px;
  padding: 18px;
  margin: 20px 0;
}
.company-row > div {
  margin: 10px 0;
  overflow-wrap: anywhere;
}
