:root {
  color-scheme: dark;
  --bg: #111315;
  --surface: #191d20;
  --line: #303639;
  --text: #eff3f1;
  --muted: #a0aaa7;
  --green: #74d7a3;
  --cyan: #78cdd6;
  --amber: #ecc879;
  --red: #f1938c;
  --radius: 6px;
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.5 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button,
a,
select,
input {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
button {
  color: inherit;
}
svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  stroke-width: 1.7;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 0 40px;
}
.masthead {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 26px;
  font-weight: 750;
  line-height: 1.1;
}
.brand-caption {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 450;
  margin-top: 7px;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #22322a;
  border: 1px solid #3c5a49;
  border-radius: 7px;
  color: var(--green);
}
.brand-icon svg {
  width: 25px;
  height: 25px;
}
.host-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.host-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}
.host-os {
  border-left: 1px solid var(--line);
  padding-left: 12px;
  margin-left: 6px;
  color: var(--muted);
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  margin-top: 7px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
h2 > svg {
  color: var(--muted);
}
.eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.overview {
  padding-top: 31px;
}
.live-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.connection {
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
}
.connection::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 7px;
}
.connection.live {
  color: var(--green);
}
.connection.stale {
  color: var(--amber);
}
.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
}
.icon-button:hover {
  background: #252b2e;
}
.icon-button:disabled {
  opacity: 0.5;
}
.icon-button svg {
  width: 15px;
  height: 15px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 28px 0 0;
  padding: 0 0 25px;
  border-bottom: 1px solid var(--line);
}
.metric {
  min-width: 0;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}
.metric:first-child {
  padding-left: 0;
  border-left: 0;
}
.metric:last-child {
  padding-right: 0;
}
.metric-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  min-height: 25px;
}
.metric-label > svg {
  width: 16px;
  height: 16px;
}
.metric-hint,
.temp {
  margin-left: auto;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.temp {
  border: 1px solid #365146;
  background: #1a2b24;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--green);
}
.temp.warn {
  border-color: #6c5734;
  background: #30281b;
  color: var(--amber);
}
.temp.hot {
  border-color: #704541;
  background: #34211e;
  color: var(--red);
}
.metric-value {
  font-size: 35px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  margin-top: 15px;
  white-space: nowrap;
}
.metric-value small {
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 6px;
}
.metric-caption {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  min-height: 32px;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
canvas {
  display: block;
  width: 100%;
  height: 43px;
  margin: 9px 0 5px;
}
.metric-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  margin-top: 9px;
  font-variant-numeric: tabular-nums;
}
.paging {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: 57px;
  padding-top: 10px;
}
.transcode-slot {
  min-height: 42px;
  padding-top: 10px;
}
.transcode-badge {
  display: inline-block;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid #435b67;
  border-radius: 4px;
  background: #1c2b33;
  color: var(--cyan);
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.transcode-badge[hidden] {
  display: none;
}
.transcode-badge.unavailable {
  color: var(--muted);
  border-color: var(--line);
  background: var(--surface);
}
.paging > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.paging span {
  color: var(--muted);
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.paging svg {
  height: 11px;
  width: 11px;
}
.paging strong {
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.uptime-host {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 57px;
}
.uptime-host > svg {
  color: var(--muted);
  height: 25px;
  width: 25px;
}
.uptime-host strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.uptime-host span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.notice {
  margin-top: 18px;
  padding: 10px 13px;
  border-left: 2px solid var(--amber);
  background: #252218;
  color: #e6ce97;
  font-size: 12px;
}
.notice[hidden] {
  display: none;
}
.storage,
.services {
  padding-top: 26px;
}
.compact {
  min-height: 32px;
}
.count {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
}
.storage-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: var(--muted);
}
select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 5px;
  font-size: 11px;
}
.drive-head,
.drive-main {
  display: grid;
  grid-template-columns: minmax(160px, 1.5fr) minmax(150px, 1.2fr) minmax(
      130px,
      1fr
    ) 70px minmax(145px, 1.05fr);
  column-gap: 20px;
  align-items: center;
}
.drive-head {
  color: var(--muted);
  font-size: 9px;
  padding: 19px 16px 9px;
}
.drive {
  border-top: 1px solid var(--line);
}
.drive:last-child {
  border-bottom: 1px solid var(--line);
}
.drive-main {
  padding: 16px;
  list-style: none;
  cursor: pointer;
  min-height: 87px;
}
.drive-main::-webkit-details-marker {
  display: none;
}
.drive-main:hover {
  background: #181c1e;
}
.drive-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.disk-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  border: 1px solid #34464a;
  border-radius: 5px;
  background: #1b282b;
  flex-shrink: 0;
}
.disk-icon.hdd {
  color: var(--amber);
  border-color: #4a4435;
  background: #29271e;
}
.drive-name {
  font-weight: 550;
  font-size: 13px;
}
.drive-sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.drive-size,
.drive-used,
.drive-temp {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.drive-size-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.percent {
  color: var(--muted);
  font-size: 10px;
}
.bar {
  height: 4px;
  border-radius: 2px;
  background: #2c3335;
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  background: var(--cyan);
  border-radius: 2px;
}
.bar.warn > span {
  background: var(--amber);
}
.bar.hot > span {
  background: var(--red);
}
.drive-used small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.drive-temp.hot {
  color: var(--red);
}
.drive-temp.warn {
  color: var(--amber);
}
.health {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--green);
}
.health svg {
  width: 13px;
  height: 13px;
}
.health.warning,
.health.limited {
  color: var(--amber);
}
.health.failed {
  color: var(--red);
}
.health.unavailable {
  color: var(--muted);
}
.health-cell {
  position: relative;
  padding-right: 15px;
}
.health-cell > .chevron {
  position: absolute;
  right: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  color: var(--muted);
}
details[open] .chevron {
  transform: rotate(180deg);
}
.drive-details {
  padding: 0 16px 18px 62px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  font-size: 11px;
  color: var(--muted);
}
.drive-details strong {
  color: var(--text);
  font-weight: 450;
  margin-left: 6px;
}
.drive-details p {
  flex-basis: 100%;
  font-size: 10px;
}
.storage-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
}
.services {
  margin-top: 3px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 10px;
  background: #171b1d;
}
.search svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.search input {
  width: 170px;
  min-width: 0;
  outline: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 12px;
}
.search input::placeholder {
  color: var(--muted);
}
.service-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin: 16px 0 17px;
}
.service-tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 7px 0 11px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.service-tabs button[aria-selected="true"] {
  color: var(--green);
  border-bottom-color: var(--green);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.service {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 15px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition:
    border-color 0.12s,
    background 0.12s;
}
.service:hover {
  border-color: var(--accent);
  background: #212629;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 6px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, #191d20);
  flex-shrink: 0;
}
.service-copy {
  min-width: 0;
  padding-right: 8px;
}
.service-name {
  font-size: 13px;
  font-weight: 600;
}
.service-domain {
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.service .external {
  position: absolute;
  top: 11px;
  right: 10px;
  width: 11px;
  height: 11px;
  color: #717b77;
}
.lan {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 4px;
  background: #2e3437;
  font-size: 8px;
  color: #bbc3c0;
  border-radius: 3px;
  vertical-align: 1px;
}
.empty {
  padding: 28px 0;
  color: var(--muted);
  font-size: 13px;
}
.empty[hidden] {
  display: none;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 20px 0 25px;
  margin-top: 32px;
  font-size: 10px;
  color: var(--muted);
}
.footer-separator {
  color: #53605a;
  padding: 0 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1500px) {
  main {
    max-width: 1400px;
  }
  .metric {
    padding-left: 30px;
    padding-right: 30px;
  }
}
@media (max-width: 1000px) {
  main {
    padding: 0 26px;
  }
  .metric {
    padding: 0 15px;
  }
  .metric-value {
    font-size: 29px;
  }
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .drive-head,
  .drive-main {
    grid-template-columns: minmax(140px, 1.3fr) minmax(100px, 1fr) minmax(
        100px,
        1fr
      ) 52px minmax(112px, 1fr);
    column-gap: 12px;
  }
  .drive-main {
    padding: 14px 8px;
  }
  .drive-head {
    padding-left: 8px;
    padding-right: 8px;
  }
  .disk-icon {
    display: none;
  }
  .drive-details {
    padding-left: 8px;
  }
  .host-os {
    display: none;
  }
}
@media (max-width: 720px) {
  main {
    padding: 0 18px;
  }
  .masthead {
    height: 85px;
  }
  .brand {
    font-size: 23px;
  }
  .brand-icon {
    width: 38px;
    height: 38px;
  }
  .overview {
    padding-top: 23px;
  }
  h1 {
    font-size: 20px;
    max-width: 210px;
  }
  .live-actions {
    gap: 9px;
  }
  .connection {
    font-size: 10px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
    margin-top: 25px;
  }
  .metric {
    padding: 0 15px;
  }
  .metric:nth-child(3) {
    padding-left: 0;
    border: 0;
  }
  .metric:nth-child(2) {
    padding-right: 0;
  }
  .metric-value {
    font-size: 31px;
  }
  .metric-caption {
    min-height: 34px;
  }
  .section-heading {
    gap: 10px;
  }
  .drive-head {
    display: none;
  }
  .drive-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 12px;
    padding: 16px 0;
  }
  .drive-title {
    grid-column: 1;
  }
  .drive-size {
    grid-column: 2;
    grid-row: 1;
  }
  .drive-used {
    grid-column: 2;
    grid-row: 2;
  }
  .drive-temp {
    grid-column: 1;
    grid-row: 2;
  }
  .drive-temp::before {
    content: "Temperature ";
    color: var(--muted);
    font-size: 10px;
  }
  .health-cell {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .health-cell .drive-sub {
    margin: 0;
  }
  .health-cell > .chevron {
    top: 2px;
  }
  .drive-details {
    padding: 0 0 15px;
  }
  .storage-tools {
    gap: 7px;
  }
  .storage-tools > span {
    display: none;
  }
  .storage-footer {
    flex-direction: column;
    gap: 3px;
  }
  .storage {
    padding-top: 21px;
  }
  .drives {
    margin-top: 14px;
  }
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service {
    padding: 12px 10px;
    gap: 9px;
    min-height: 84px;
  }
  .service-icon {
    width: 28px;
    height: 32px;
  }
  .service-icon svg {
    width: 18px;
    height: 18px;
  }
  .service-name {
    font-size: 12px;
  }
  .service-domain {
    font-size: 9px;
  }
  .search {
    padding: 5px 7px;
  }
  .search input {
    width: 110px;
  }
  .service-tabs {
    gap: 17px;
  }
  .service-tabs button {
    font-size: 11px;
  }
  footer {
    font-size: 9px;
  }
  .count {
    font-size: 9px;
  }
  h2 {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
