:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18252d;
  background: #fff;
  font-size: 15px;
  line-height: 1.5;
  --border: #dde3e7;
  --muted: #65747e;
  --accent: #166b59;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 68px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header a {
  font-size: 17px;
  font-weight: 650;
  text-decoration: none;
  color: inherit;
}
main {
  max-width: 1168px;
  margin: 40px auto;
  padding: 0 24px;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin: 0 0 8px;
}
h2 {
  font-size: 20px;
  margin: 0 0 20px;
}
h3 {
  font-size: 16px;
  margin-top: 28px;
}
p {
  margin: 8px 0;
}
.heading,
.detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.heading p,
.muted {
  color: var(--muted);
}
button,
input,
select {
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  background: #fff;
  color: inherit;
  min-height: 42px;
}
button {
  cursor: pointer;
  font-weight: 550;
  white-space: nowrap;
}
button:hover {
  background: #f3f6f7;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
button.primary:hover {
  background: #105445;
}
button.danger {
  color: #ab3434;
}
:focus-visible {
  outline: 3px solid #6da998;
  outline-offset: 2px;
}
input,
select {
  min-width: 0;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
#notice {
  min-height: 24px;
  color: #ab3434;
  margin: 16px 0;
}
#notice.success {
  color: var(--accent);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.filters {
  display: flex;
  gap: 8px;
}
#summary {
  color: var(--muted);
  font-size: 14px;
}
.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--border);
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 14px;
}
th {
  color: var(--muted);
  font-weight: 550;
  background: #f7f9fa;
  padding: 12px 16px;
}
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
td:first-child {
  min-width: 185px;
}
.column-filter {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  border: 0;
  padding: 0;
  min-height: 42px;
  background: transparent;
  color: inherit;
  text-align: left;
}
.column-filter-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.filter-control:hover {
  background: #eaf1ee;
  color: var(--accent);
}
.filter-control:focus-within {
  outline: 3px solid #6da998;
  outline-offset: 2px;
}
.filter-control svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}
.column-filter-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.column-filter-value {
  font-size: 12px;
  font-weight: 400;
  max-width: 160px;
  overflow-wrap: anywhere;
}
.column-filter.filtered {
  color: var(--accent);
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 280px;
  min-width: 150px;
}
.chip {
  display: inline-block;
  border: 1px solid;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.chip-green {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}
.chip-amber {
  background: #fffbeb;
  color: #854d0e;
  border-color: #fde68a;
}
.chip-violet {
  background: #f5f3ff;
  color: #5b21b6;
  border-color: #ddd6fe;
}
.chip-blue {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}
.chip-rose {
  background: #fff1f2;
  color: #9f1239;
  border-color: #fecdd3;
}
.chip-teal {
  background: #f0fdfa;
  color: #115e59;
  border-color: #99f6e4;
}
.chip-neutral {
  background: #f3f4f6;
  color: #4b5563;
  border-color: #d1d5db;
}
.chip-type {
  background: hsl(var(--chip-hue) 65% 95%);
  color: hsl(var(--chip-hue) 70% 25%);
  border-color: hsl(var(--chip-hue) 55% 78%);
}
.device-link {
  border: 0;
  padding: 0;
  min-height: 0;
  color: var(--accent);
  background: transparent;
  text-align: left;
}
.device-id {
  color: var(--muted);
  font:
    12px ui-monospace,
    monospace;
  display: block;
  margin-top: 3px;
}
tr.selected {
  background: #f0f7f4;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-transform: capitalize;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #929da5;
}
.status.online::before,
.status.healthy::before {
  background: #238368;
}
.status.degraded::before {
  background: #c38920;
}
.status.offline::before {
  background: #be4b4b;
}
#empty,
#no-logs {
  padding: 28px 0;
  color: var(--muted);
}
#retention {
  font-size: 12px;
  margin-top: 14px;
}
#detail,
#matter-detail {
  border-top: 1px solid var(--border);
  margin-top: 36px;
  padding-top: 28px;
}
.detail-heading h2 {
  margin: 0;
}
dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
}
dt {
  font-size: 12px;
  color: var(--muted);
}
dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.edit {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.edit > div:first-child {
  flex: 1;
  max-width: 340px;
}
.edit input {
  width: 100%;
}
.actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.login {
  max-width: 360px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
.login input {
  width: 100%;
  margin-bottom: 16px;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 10px;
  width: min(460px, calc(100vw - 32px));
  padding: 28px;
  color: inherit;
}
dialog::backdrop {
  background: rgb(18 31 39 / 35%);
}
dialog input {
  width: 100%;
  margin-bottom: 16px;
}
.dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}
#credential-value {
  font:
    12px ui-monospace,
    monospace;
}
#enroll-error {
  color: #ab3434;
}
#scan-error {
  color: #ab3434;
}
#matter-pair-error {
  color: #ab3434;
}
#matter-pair-progress {
  color: var(--accent);
}
#scan-status {
  color: var(--accent);
  font-weight: 550;
  margin-top: 20px;
}
#scan-results {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.discovered-device {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.discovered-device > * {
  display: block;
}
.discovered-device button {
  margin-top: 12px;
}
.network-address {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.discovery-state {
  font-size: 13px;
  color: var(--accent);
  margin-top: 4px;
}
.scan-note {
  font-size: 12px;
}
.manual-enrollment {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 24px;
}
.manual-enrollment p {
  font-size: 13px;
  margin-bottom: 12px;
}
#more {
  margin-top: 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  main {
    margin: 28px auto;
    padding: 0 16px;
  }
  header {
    padding: 0 16px;
  }
  h1 {
    font-size: 26px;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .filters {
    flex-wrap: wrap;
  }
  th,
  td {
    padding: 12px 10px;
  }
  dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .edit {
    flex-wrap: wrap;
  }
  .edit > div:first-child {
    flex-basis: 100%;
    max-width: none;
  }
  .edit > div:nth-child(2) {
    flex: 1;
  }
  .heading {
    align-items: flex-start;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
}
