@charset "UTF-8";

* { box-sizing: border-box; }
html { background: var(--canvas); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 620; }
h1 { font-size: clamp(2rem, 3.5vw, 3.15rem); line-height: 1.38; }
h2 { font-size: 1.25rem; line-height: 1.5; }
h3 { font-size: 1.08rem; line-height: 1.5; }
a { color: var(--green); text-underline-offset: .23em; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; }
button, input, a, summary { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
::selection { color: var(--green-ink); background: var(--green); }
.skip, .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  z-index: 5; left: 12px; top: 12px; width: auto; height: auto;
  clip-path: none; padding: .65em 1.2em; border-radius: 5px;
  color: var(--green-ink); background: var(--green);
}
.mono, .reference, .secret code, .details time, .activity time {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
}
.mono, .reference, .page-head h1, h2, dd, .lead, code { overflow-wrap: anywhere; }
.muted, dt, .quiet, .reference, .provider, .note, .source-time { color: var(--subtle); }

.masthead { background: #1c2022; border-bottom: 1px solid var(--line); }
.masthead-inner, .content {
  width: min(100%, 1392px);
  margin-inline: auto;
  padding-inline: clamp(24px, 6vw, 90px);
}
.masthead-inner {
  min-height: 78px; display: flex; align-items: center;
  column-gap: clamp(30px, 5vw, 80px);
}
.brand, .login-brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "Inter", "Segoe UI", sans-serif; font-size: 1.35rem;
  font-weight: 400; letter-spacing: -.04em; line-height: 1.3;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand b, .login-brand b { font-weight: 650; }
.brand { min-height: 44px; }
.rack-logo { width: 31px; display: inline-grid; gap: 3px; color: var(--green); flex: none; }
.rack-logo i {
  position: relative; display: block; height: 6px; border-radius: 2px; border: 1px solid currentColor;
}
.rack-logo i::after { content: ""; position: absolute; left: 3px; top: 1px; height: 2px; width: 8px; background: currentColor; }
.rack-logo i:nth-child(2) { margin-inline: 2px; }
.rack-logo i:last-child { margin-inline: 4px; }
.nav { align-self: stretch; display: flex; align-items: stretch; gap: clamp(18px, 2.5vw, 40px); }
.nav a {
  position: relative; display: flex; align-items: center; min-height: 48px; padding: 2px;
  text-decoration: none; color: var(--subtle); font-size: .94rem; font-weight: 550;
}
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current]::after {
  content: ""; position: absolute; bottom: -1px; height: 3px; left: 0; right: 0;
  border-radius: 3px 3px 0 0; background: var(--green);
}
.account { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; min-width: 0; }
.account-name { font-size: .875rem; color: var(--subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 50%; background: transparent;
  color: var(--ink); font-size: 1.25rem; line-height: 1;
}
.logout:hover { background: var(--raised); }
.workspace:focus, .guest:focus { outline: none; }
.content { padding-block: clamp(28px, 5.5vw, 74px) 80px; }
.page-head {
  display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between;
  gap: 18px; margin-bottom: clamp(24px, 3vw, 38px);
}
.page-head > div { min-width: 0; }
.page-head p { color: var(--subtle); }
.page-head .provider { margin-bottom: 4px; }
.inventory-head { align-items: baseline; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.inventory-total { font-size: .9rem; }
.inventory-total b { color: var(--ink); font-variant-numeric: tabular-nums; }
.button-row, .tool-links, .section-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.search {
  display: flex; align-items: center; gap: 14px; width: min(100%, 290px); min-height: 47px;
  padding: 4px 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--canvas);
}
.inventory .search { margin-bottom: 24px; }
.search:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.lens { width: 14px; height: 14px; position: relative; flex: none; border: 1.5px solid var(--subtle); border-radius: 50%; }
.lens::after { content: ""; position: absolute; width: 7px; height: 1.5px; bottom: -2px; right: -5px; transform: rotate(45deg); background: var(--subtle); }
.search input { width: 100%; min-width: 0; min-height: 34px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .9rem; }
.search input:focus-visible { outline: 0; }
input::placeholder { color: var(--subtle); opacity: 1; }

.machine-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.machine-card, .empty, .panel, .login-form { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.machine-card { min-width: 0; display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 32px); }
.machine-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; }
.provider { font-size: .86rem; font-weight: 550; }
.machine-heading .provider { display: flex; align-items: center; gap: 8px; }
.provider-mark {
  display: inline-block; flex: none; width: 12px; height: 12px; border: 1px solid var(--subtle);
  border-radius: 2px; box-shadow: 3px -3px 0 -1px var(--paper), 3px -3px 0 0 var(--subtle);
}
.machine-heading h2 { font-size: clamp(1.45rem, 2.1vw, 1.8rem); line-height: 1.5; margin-top: 15px; }
.machine-heading h2, .machine-heading .reference { grid-column: 1 / -1; }
.reference { font-size: .81rem; }
.status {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
  padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--raised); color: #d6ddda; font-size: .79rem; font-weight: 550;
}
.status i { display: block; width: 6px; height: 6px; border-radius: 50%; flex: none; background: currentColor; }
.status.positive { color: var(--green); background: var(--green-tint); border-color: #51674f; }
.status.pending { color: var(--warning); background: #38322a; border-color: #6e6046; }
.card-data { margin-block: auto 16px; padding-top: 26px; }
.card-data > div, .details > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--line); padding: 12px 0;
}
.card-data > div:last-child, .details > div:last-child { border-bottom: 0; }
.card-data dt, .card-data dd { font-size: .875rem; }
.card-data dd, .details dd { text-align: right; min-width: 0; }
.card-data time, .amount { font-variant-numeric: tabular-nums; }
.card-data time span, .port-divider { color: var(--subtle); }
.card-link {
  display: flex; align-items: center; justify-content: space-between; min-height: 46px;
  border-top: 1px solid var(--line); color: var(--green); text-decoration: none; font-weight: 550;
  padding-top: 12px;
}
.card-link span { font-family: system-ui, sans-serif; font-size: 1.35rem; }
.card-link:hover { text-decoration: underline; }
.empty { padding: clamp(34px, 6vw, 80px) 22px; text-align: center; }
.empty p { color: var(--subtle); margin-top: 6px; }
.empty .btn { margin-top: 23px; }
.empty-rack { margin-bottom: 17px; }

.detail-grid, .stack { display: grid; gap: 20px; align-items: start; }
.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full-width { grid-column: 1 / -1; }
.panel { min-width: 0; padding: clamp(20px, 2.4vw, 32px); }
.panel h2 { margin-bottom: 16px; }
.details:not(:last-child) { margin-bottom: 15px; }
.details dd { font-weight: 550; }
.power-line, .activity li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.power-line:last-child, .activity li:last-child { border-bottom: 0; }
.power-line p, .note, .source-time, .copy-status, .activity time { color: var(--subtle); font-size: .875rem; }
.note, .copy-status:not(:empty) { margin-top: 14px; }
.source-time { margin-bottom: 7px; }
.activity { margin: 0; padding: 0; list-style: none; }
.activity time { display: block; font-size: .8rem; }
.activity li > span { font-size: .9rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; max-width: 100%; padding: 8px 17px;
  font-size: .9375rem; font-weight: 580; line-height: 1.55; text-decoration: none; text-align: center;
  border-radius: 8px; border: 1px solid var(--line-strong); color: var(--ink); background: var(--paper);
}
.btn:hover { border-color: var(--subtle); background: var(--raised); }
.btn.primary { border-color: var(--green); color: var(--green-ink); background: var(--green); }
.btn.primary:hover { background: #d2e4c6; }
.btn.danger { background: var(--danger); color: #3c1918; border-color: var(--danger); }
.btn.danger:hover { background: #ffcac2; }
.btn.danger-outline { border-color: #936762; color: var(--danger); }
.btn.small { padding-inline: 13px; min-height: 38px; font-size: .875rem; }
.btn:disabled { background: #282c2e; color: #a0a9a5; border-color: var(--line); }
.button-row { margin-top: 18px; }
.full { width: 100%; }
.back-link, .text-link { display: inline-flex; align-items: center; min-height: 38px; color: var(--green); font-size: .9rem; font-weight: 550; text-decoration: none; }
.back-link { margin-bottom: 12px; }
.back-link:hover, .text-link:hover, .table-title:hover { text-decoration: underline; }
.section-head { margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head.spread { justify-content: space-between; }
.count { padding: 1px 8px; border-radius: 6px; background: var(--raised); color: var(--ink); font: 550 .8rem/1.7 var(--mono); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .91rem; }
td, th { border-bottom: 1px solid var(--line); padding: 13px 10px; text-align: left; vertical-align: middle; }
th { font-size: .84rem; font-weight: 550; color: var(--subtle); }
td:last-child { text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
.table-title { color: var(--ink); text-decoration: none; font-weight: 580; overflow-wrap: anywhere; }
.table-title + small { display: block; }
.focused { max-width: 650px; }
.focused h1, .login-form h1 { font-size: clamp(1.85rem, 3vw, 2.45rem); }
.lead { font-size: 1.08rem; margin: 8px 0 20px; }
.lead .reference { display: block; }
.amount { color: var(--green); font-size: 1.65rem; }
.amount small { font: .82rem var(--mono); }
.notice, .errorlist {
  padding: 13px 16px; margin-bottom: 18px; border: 1px solid var(--line-strong); border-radius: 8px;
  color: var(--ink); background: var(--raised);
}
.notice.success { color: var(--green); border-color: #51674f; background: var(--green-tint); }
.notice.warning { color: var(--warning); border-color: #6e6046; background: #393229; }
.notice.error, .errorlist { color: var(--danger); border-color: #805a55; background: #3d2e2f; }
.errorlist { list-style-position: inside; }
.field { display: block; font-size: .94rem; font-weight: 550; margin: 16px 0; }
.field input {
  display: block; width: 100%; min-height: 49px; margin-top: 7px; padding: 9px 13px;
  color: var(--ink); background: #1c2022; border: 1px solid var(--line-strong); border-radius: 7px;
}
.secret { background: var(--canvas); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-top: 16px; overflow-wrap: anywhere; }
.secret code { white-space: pre-wrap; }
.install-steps { margin: 18px 0 0; padding-left: 24px; }
.install-steps li { margin-block: 6px; }
.install-steps code { display: block; font-family: var(--mono); }
.guest { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.guest-content { width: min(100%, 445px); }
.login-form { position: relative; padding: clamp(24px, 5vw, 42px); box-shadow: 0 18px 55px #090b0c36; }
.login-brand { margin-bottom: 25px; border-bottom: 1px solid var(--line); padding-bottom: 25px; display: flex; font-size: 1.23rem; }
.login-form > p { color: var(--subtle); margin: 4px 0 24px; }
.login-form .full { justify-content: space-between; padding: 11px 16px; margin-top: 6px; }

@media (max-width: 740px) {
  .masthead-inner, .content { padding-inline: clamp(16px, 4.5vw, 28px); }
  .masthead-inner { display: grid; grid-template-columns: 1fr auto; min-height: auto; column-gap: 10px; padding-top: 9px; }
  .brand { font-size: 1.18rem; justify-self: start; }
  .rack-logo { width: 27px; }
  .account { grid-column: 2; grid-row: 1; }
  .account-name { display: none; }
  .nav { grid-row: 2; grid-column: 1 / -1; gap: 22px; }
  .nav a { min-height: 44px; }
  .content { padding-block: 28px 56px; }
  .page-head { gap: 8px; margin-bottom: 20px; }
  .inventory-head { align-items: start; flex-direction: column; padding-bottom: 17px; }
  .inventory .search { margin-bottom: 18px; }
  .machine-grid, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .btn.small, .back-link, .text-link, summary { min-height: 44px; }
  .btn.small { padding-inline: 12px; }
  .guest { padding: 18px; }
}
@media (max-width: 520px) {
  .search { width: 100%; }
  .machine-card { padding: 20px; }
  .machine-heading h2 { margin-top: 12px; }
  .card-data { padding-top: 17px; }
  .card-data > div { gap: 10px; }
  .status { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
