:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  background: #101113;
  color: #ebedef;
  --muted: #91979e;
  --line: #303338;
  --panel: #191b1e;
  --accent: #b8d6c4;
}
* {
  box-sizing: border-box;
  scrollbar-width: none !important;
  -ms-overflow-style: none;
  -webkit-user-select: none !important;
  user-select: none !important;
  caret-color: transparent;
}
*::-webkit-scrollbar {
  display: none !important;
  width: 0;
  height: 0;
}
input,
textarea {
  caret-color: auto;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 16px;
  background: #24272b;
  color: inherit;
  font-weight: 600;
  white-space: nowrap;
}
button:hover:not(:disabled) {
  filter: brightness(1.15);
}
button:active:not(:disabled) {
  filter: brightness(0.8);
  box-shadow: inset 0 0 0 2px currentColor;
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
  color: #92979c;
  background: #24272b;
  border-color: #373b40;
  filter: grayscale(1);
}
button[aria-busy="true"] {
  cursor: progress;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.primary {
  background: var(--accent);
  color: #14251d;
  border-color: var(--accent);
}
.danger {
  color: #ffc1bb;
  background: #522b2b;
  border-color: #79413c;
}
.quiet {
  background: transparent;
  color: #c1c6cb;
}
.muted,
small {
  color: var(--muted);
}
p {
  line-height: 1.65;
}
h1 {
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 550;
  letter-spacing: -1.1px;
  margin: 12px 0;
}
h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #a7b9b0;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-panel {
  width: min(440px, 100%);
  padding: 38px;
}
.login-panel h1 {
  font-size: 29px;
}
.login-panel > .primary {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #cbd0d4;
  margin-top: 21px;
  font-weight: 550;
}
input {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border-radius: 7px;
  border: 1px solid #373b40;
  background: #111315;
  color: #f3f4f5;
  outline: none;
}
input:focus {
  border-color: #b8d6c4;
  box-shadow: 0 0 0 3px #b8d6c415;
}
input[readonly] {
  opacity: 0.55;
}
input::placeholder {
  color: #687078;
}
small {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}
header {
  min-height: 88px;
  max-width: 1520px;
  padding: 20px 5%;
  margin: auto;
  border-bottom: 1px solid #24272b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-weight: 650;
  font-size: 15px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 5px;
}
.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #53635b;
  border-radius: 10px;
  color: var(--accent);
  font-size: 22px;
}
.header-actions {
  display: flex;
  gap: 9px;
}
.workspace {
  width: min(1350px, 90%);
  margin: 52px auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.heading p {
  font-size: 13px;
  margin-top: 9px;
}
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
  color: #a2a9b0;
  font-size: 11px;
}
.service {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #8a6550;
}
.dot.on {
  background: #9ac3aa;
  box-shadow: 0 0 9px #8daf9b20;
}
.tenant-panel {
  overflow: hidden;
}
.section-heading {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-heading button {
  padding: 7px 10px;
  font-size: 11px;
}
.badge {
  font-size: 11px;
  background: #292e32;
  color: #bdc4cb;
  border-radius: 5px;
  padding: 3px 7px;
}
.tenant-row {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(220px, 2fr) minmax(180px, 1.2fr) auto;
  gap: 24px;
  border-bottom: 1px solid #2a2d31;
}
.tenant-row:last-child {
  border-bottom: 0;
}
.tenant-name {
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.tenant-device {
  font-size: 10px;
  color: #889199;
  margin-top: 8px;
}
.tenant-details {
  display: grid;
  gap: 7px;
  align-content: start;
  font-size: 12px;
  min-width: 0;
}
.detail {
  display: flex;
  gap: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.detail .key {
  min-width: 54px;
  color: #79838c;
  font-size: 10px;
  padding-top: 2px;
}
.detail .value {
  min-width: 0;
}
.row-actions {
  display: flex;
  gap: 6px;
  align-self: center;
}
.row-actions button {
  padding: 8px 10px;
  font-size: 11px;
}
.row-actions .remove {
  color: #cf9f9b;
}
.empty {
  padding: 35px;
  text-align: center;
  color: #a6adb4;
  font-size: 13px;
}
.footnote {
  font-size: 11px;
  color: #77828a;
  margin-top: 18px;
}
dialog {
  width: min(690px, calc(100% - 28px));
  border: 1px solid #3b4147;
  border-radius: 14px;
  background: #191c20;
  color: inherit;
  padding: 30px;
  max-height: 92vh;
  overflow: auto;
}
dialog::backdrop {
  background: #060708b8;
  backdrop-filter: blur(5px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dialog-heading h2 {
  margin-top: 8px;
}
.dialog-heading .close {
  padding: 7px 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 22px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.error {
  color: #e8a19b;
  font-size: 12px;
  line-height: 1.6;
  margin: 15px 0 0;
}
.error:empty {
  display: none;
}
#password-dialog,
#delete-dialog {
  max-width: 470px;
}
#notice {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #d0e2d6;
  color: #173123;
  padding: 13px 22px;
  border-radius: 8px;
  box-shadow: 0 10px 50px #0008;
  font-size: 13px;
  max-width: 90vw;
}
#notice.bad {
  background: #efb7af;
  color: #452420;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1050px) {
  .tenant-row {
    grid-template-columns: minmax(140px, 1fr) minmax(200px, 1.8fr);
  }
  .row-actions {
    justify-self: end;
  }
  .workspace {
    width: 92%;
    margin-top: 35px;
  }
}
@media (max-width: 620px) {
  header {
    padding: 17px 4%;
  }
  .header-actions {
    gap: 2px;
  }
  .header-actions button {
    font-size: 10px;
    padding: 8px;
  }
  .brand {
    font-size: 12px;
  }
  .mark {
    width: 30px;
    height: 32px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .heading .primary {
    width: 100%;
  }
  .workspace {
    margin-top: 32px;
  }
  .services {
    gap: 13px;
  }
  .tenant-row {
    display: flex;
    flex-direction: column;
    gap: 17px;
    padding: 22px;
  }
  .row-actions {
    align-self: stretch;
  }
  .row-actions button {
    flex: 1;
  }
  .section-heading {
    padding: 18px 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 23px;
  }
  .login-panel {
    padding: 28px;
  }
  h1 {
    font-size: 30px;
  }
}

#refresh .refresh-icon {
  display: inline-block;
  margin-left: 0.5em;
  line-height: 1;
}
#refresh.refreshing .refresh-icon {
  animation: refresh-spin 0.7s linear infinite;
}
@keyframes refresh-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  #refresh.refreshing .refresh-icon {
    animation-duration: 2s;
  }
}

.legal-links {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: #aeb3b9;
}
.legal-links a {
  color: var(--accent);
}

.list-options {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 16px 25px;
  border-bottom: 1px solid var(--line);
}
.list-options label {
  display: grid;
  gap: 7px;
  margin: 0;
  font-size: 11px;
  min-width: 0;
}
.list-options select,
.list-options input,
.list-options button {
  height: 36px;
  font-size: 12px;
  padding: 8px 10px;
}
.number-search {
  flex: 1 1 190px;
}
.search-result {
  margin: 14px 25px;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.list-options select {
  width: 100%;
  border: 1px solid #373b40;
  border-radius: 7px;
  background: #111315;
  color: #f3f4f5;
}
#dashboard .pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 23px;
  font-size: 11px;
  color: var(--muted);
}
#dashboard .pagination button {
  font-size: 11px;
  padding: 8px 12px;
}

#recipient-change {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
#recipient-change legend {
  font-size: 13px;
  font-weight: 600;
}
#recipient-change select {
  width: 100%;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #111315;
  color: inherit;
  font: inherit;
  font-size: 12px;
}

.mfa-panel {
  width: 100%;
  max-width: 560px;
}
.mfa-form,
.mfa-content {
  display: grid;
  gap: 18px;
}
.mfa-form label {
  margin: 0;
}
.mfa-form button {
  justify-self: start;
}
.mfa-qr {
  width: 220px;
  height: 220px;
  max-width: 100%;
  justify-self: center;
  background: white;
  border: 12px solid white;
}
.mfa-key,
.mfa-recovery {
  font-family: monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.8;
}
.mfa-policy {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 20px;
}
.mfa-policy input[type="checkbox"] {
  width: auto;
  display: inline-block;
  margin-right: 8px;
}
.mfa-policy select {
  padding: 10px;
  background: var(--panel);
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 7px;
  width: 100%;
}
#account > #mfa-settings {
  margin: 22px 0;
}

.mfa-panel h2 {
  font-size: 20px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.mfa-panel .dialog-heading {
  gap: 12px;
}
.mfa-panel .brand-logo {
  flex-shrink: 0;
}
