/* Local-only system typography: precise sans + tabular operational metadata. */
:root {
  color-scheme: dark;
  --bg: #0c1115;
  --panel: #131a20;
  --raised: #19232b;
  --border: #2a3740;
  --text: #edf1f3;
  --muted: #a1b0ba;
  --faint: #81949f;
  --green: #8ce7b7;
  --red: #ff9997;
  --amber: #f5cd80;
  --blue: #9cbedb;
  --radius: 10px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select {
  font: inherit;
}
a {
  color: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
button,
input,
select {
  color: var(--text);
}
input,
select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-height: 42px;
  padding: 9px 12px;
}
select {
  padding-right: 26px;
}
input {
  width: 100%;
}
input::placeholder {
  color: var(--faint);
}
label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  line-height: 1.25;
  font-weight: 600;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
small {
  font-size: 11px;
}
.eyebrow {
  font:
    10px/1.5 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: 1.5px;
  color: var(--faint);
  display: block;
}
.subtitle {
  color: var(--muted);
  margin-top: 10px;
}
.app-shell {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #10171c;
  border-right: 1px solid var(--border);
  padding: 30px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}
.brand small {
  display: block;
  font:
    8px/1.8 ui-monospace,
    monospace;
  letter-spacing: 1.4px;
  color: var(--muted);
}
.brand-mark {
  width: 33px;
  height: 37px;
  border: 1px solid #486054;
  border-radius: 7px;
  display: grid;
  place-content: center;
  color: var(--green);
  font:
    20px/1 Georgia,
    serif;
  letter-spacing: -3px;
  padding-right: 3px;
}
.brand-mark span {
  color: var(--text);
}
.side-section {
  font:
    10px/1.5 ui-monospace,
    monospace;
  color: var(--faint);
  letter-spacing: 1px;
  margin: 47px 10px 13px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 11px 13px;
  border-radius: 6px;
}
.nav-item.selected {
  background: #203029;
  color: #b9f0ce;
}
.nav-item > span:first-child {
  font-size: 20px;
  line-height: 1;
}
.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-left: auto;
}
.side-note {
  margin: 40px 10px 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.8;
}
.side-note .eyebrow {
  font-size: 9px;
  letter-spacing: 0.8px;
}
.side-note p {
  margin-top: 12px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.private-label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.private-label:before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid var(--faint);
  border-radius: 2px;
  display: inline-block;
}
.logout {
  border: 0;
  border-top: 1px solid var(--border);
  background: none;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 15px;
  padding: 15px 0 0;
  color: var(--muted);
  text-align: left;
}
.logout:hover {
  color: var(--text);
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 69px;
  border-bottom: 1px solid var(--border);
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.breadcrumb {
  color: var(--faint);
}
.breadcrumb span {
  margin: 0 12px;
  color: #596b75;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--text);
}
main {
  max-width: 1590px;
  margin: auto;
  padding: 37px 38px 25px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.page-heading .eyebrow {
  margin-bottom: 9px;
}
.control-row {
  display: flex;
  gap: 8px;
}
.sync-controls {
  flex-shrink: 0;
}
.sync-controls label {
  font-weight: 400;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 14px;
  min-height: 42px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.button:hover {
  background: #233039;
  border-color: #50616d;
}
.button > span {
  font-size: 19px;
  line-height: 1;
}
.snapshot-bar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--faint);
  font:
    11px/1.5 ui-monospace,
    Consolas,
    monospace;
  margin: 30px 0 18px;
}
.connection {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.connection:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
}
.connection.connected:before {
  background: var(--green);
}
.connection.failed:before {
  background: var(--amber);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  min-height: 109px;
}
.metric {
  background: transparent;
  color: var(--text);
  border: 0;
  border-right: 1px solid var(--border);
  text-align: left;
  padding: 18px 20px;
  position: relative;
  min-height: 108px;
}
.metric:last-child {
  border-right: 0;
}
.metric:hover {
  background: var(--raised);
}
.metric[aria-pressed="true"] {
  background: #22342d;
  box-shadow: inset 0 -2px var(--green);
}
.metric:focus-visible {
  outline-offset: -5px;
}
.metric-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.metric-value {
  display: block;
  font:
    500 28px/1.4 "Segoe UI",
    Arial,
    sans-serif;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
  margin-top: 5px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
  flex-shrink: 0;
}
.status-up {
  color: var(--green);
}
.status-down {
  color: var(--red);
}
.status-degraded {
  color: var(--amber);
}
.status-stale {
  color: var(--blue);
}
.status-pending,
.status-unmonitored {
  color: #b5bfc8;
}
.status-unmonitored .status-dot {
  background: transparent;
  border: 1px solid currentColor;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 33px 0 20px;
}
.section-heading p {
  font-size: 12px;
  color: var(--faint);
  margin-top: 5px;
}
.sort-note {
  font:
    10px/1.5 ui-monospace,
    monospace;
  color: var(--faint);
}
.filters {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 180px 155px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 22px;
}
.filters select {
  width: 100%;
}
.text-button {
  border: 0;
  background: none;
  min-height: 42px;
  padding: 9px 5px;
  color: var(--muted);
  font-size: 12px;
}
.text-button:hover {
  color: var(--green);
}
.asset-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.asset-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(175px, 0.72fr) minmax(0, 2fr);
}
.asset-summary {
  padding: 20px;
  border-right: 1px solid var(--border);
}
.asset-category {
  font:
    9px/1.5 ui-monospace,
    monospace;
  letter-spacing: 1px;
  color: var(--faint);
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.asset-name {
  font-size: 15px;
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}
.asset-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.check-list {
  padding: 7px 17px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.check-row {
  background: none;
  border: 0;
  border-bottom: 1px solid #25313a;
  display: grid;
  grid-template-columns: minmax(95px, 1fr) 103px 78px 80px 15px;
  gap: 12px;
  align-items: center;
  color: var(--text);
  padding: 13px 3px;
  text-align: left;
  min-height: 55px;
}
.check-row:last-child {
  border-bottom: 0;
}
.check-row:hover {
  background: #1a252d;
}
.check-label {
  font-weight: 500;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  white-space: nowrap;
}
.check-latency,
.check-time {
  font:
    10px/1.5 ui-monospace,
    monospace;
  color: var(--muted);
  white-space: nowrap;
}
.check-time {
  color: var(--faint);
}
.row-arrow {
  color: var(--faint);
  font-size: 16px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  color: var(--faint);
  font-size: 10px;
}
.empty-state {
  padding: 45px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  width: 100%;
}
.empty-state h3 {
  margin: 10px 0 7px;
}
.empty-state p {
  color: var(--muted);
  font-size: 12px;
}
.error-banner {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid #715e40;
  border-radius: 8px;
  background: #272319;
  padding: 16px;
  margin-bottom: 17px;
  font-size: 12px;
  color: #f2d4a1;
}
.error-banner p {
  margin-top: 4px;
  color: #dac7aa;
}
.error-banner > div {
  flex: 1;
}
.skip-link {
  position: absolute;
  left: 15px;
  top: -70px;
  z-index: 20;
  background: var(--green);
  color: #101815;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
/* Inspector uses native modal focus containment and Escape handling. */
dialog {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: min(640px, calc(100% - 32px));
  width: 640px;
  max-height: calc(100dvh - 48px);
  padding: 26px;
  box-shadow: 0 24px 100px #0009;
}
dialog::backdrop {
  background: #02080cbb;
}
.inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--raised);
  font-size: 25px;
}
.inspector-heading {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.inspector-asset {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 18px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px 0;
  margin: 15px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.detail-grid dt {
  font-size: 10px;
  color: var(--faint);
  margin-bottom: 4px;
}
.detail-grid dd {
  font-size: 12px;
  margin: 0;
  overflow-wrap: anywhere;
}
.inspector-note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.history-heading {
  margin-top: 18px;
}
.history-help {
  font-size: 11px;
  color: var(--faint);
  margin: 6px 0 17px;
}
.sparkline {
  width: 100%;
  height: 100px;
  color: var(--green);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  display: block;
}
.sparkline polyline {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  vector-effect: non-scaling-stroke;
}
.sparkline circle {
  fill: currentColor;
}
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-top: 14px;
}
.history-table th {
  text-align: left;
  font-size: 10px;
  color: var(--faint);
  font-weight: 500;
}
.history-table td,
.history-table th {
  border-bottom: 1px solid var(--border);
  padding: 10px 4px;
  vertical-align: top;
}
.history-table td:first-child {
  font-variant-numeric: tabular-nums;
}
.history-table caption {
  text-align: left;
  font-size: 11px;
  color: var(--muted);
  padding: 0 0 10px;
}
.history-error {
  margin-top: 14px;
}
.login-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-context {
  padding: 48px 60px;
  background: #111b1b;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}
.login-copy {
  margin: auto 0;
  max-width: 510px;
  padding: 70px 0;
}
.login-copy h1 {
  font-size: 46px;
  letter-spacing: -1.8px;
  line-height: 1.15;
  margin: 18px 0 24px;
}
.login-copy h1 span {
  color: var(--green);
}
.login-copy p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 375px;
}
.login-bottom {
  font:
    10px/1.5 ui-monospace,
    monospace;
  color: var(--faint);
}
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px;
}
.login-form {
  width: 100%;
  max-width: 360px;
}
.login-form h2 {
  font-size: 25px;
  margin: 14px 0 10px;
}
.login-form > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 27px;
  line-height: 1.8;
}
.login-form input[type="password"] {
  min-height: 47px;
}
.login-form .button {
  margin-top: 17px;
  width: 100%;
  min-height: 45px;
  background: var(--green);
  color: #10251a;
  border-color: var(--green);
  font-size: 13px;
}
.login-form .button:hover {
  background: #aff3cd;
}
.login-footnote {
  border-top: 1px solid var(--border);
  padding-top: 19px;
  margin-top: 28px;
  font-size: 11px;
  color: var(--faint);
  line-height: 1.8;
}
.login-error {
  color: var(--red);
  border: 1px solid #744341;
  background: #301f21;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 19px;
  font-size: 12px;
}
.field-hint {
  font-size: 11px;
  color: var(--faint);
  margin-top: 7px;
}
@media (min-width: 1600px) {
  main {
    padding-top: 46px;
  }
  .asset-card {
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 2fr);
  }
}
@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .sidebar {
    padding: 27px 16px;
  }
  .brand {
    font-size: 13px;
    gap: 8px;
  }
  .brand-mark {
    width: 28px;
  }
  .topbar {
    padding: 0 25px;
  }
  main {
    padding: 30px 25px;
  }
  .metric {
    padding: 17px 12px;
  }
  .filters {
    grid-template-columns: minmax(140px, 1fr) 150px 140px;
  }
  .filters .text-button {
    grid-column: 3;
    justify-self: end;
    min-height: 25px;
    padding: 0;
  }
  .asset-card {
    grid-template-columns: 1fr;
  }
  .asset-summary {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 15px 20px;
  }
  .asset-note {
    max-width: 650px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .subtitle {
    max-width: 350px;
  }
  .snapshot-bar {
    font-size: 10px;
  }
  .login-context {
    padding: 40px;
  }
  .login-copy h1 {
    font-size: 39px;
  }
}
@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 15px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    gap: 15px;
  }
  .side-section,
  .nav-item,
  .side-note,
  .sidebar .private-label {
    display: none;
  }
  .sidebar-bottom {
    margin: 0 0 0 auto;
    padding: 0;
  }
  .logout {
    border: 0;
    margin: 0;
    padding: 8px;
    gap: 17px;
    min-height: 44px;
    align-items: center;
    font-size: 12px;
  }
  .topbar {
    height: 48px;
    padding: 0 22px;
  }
  .topbar .private-label {
    font-size: 10px;
  }
  main {
    padding: 27px 22px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .metric:nth-child(3) {
    border-right: 0;
  }
  .metric:nth-child(-n + 3) {
    border-bottom: 1px solid var(--border);
  }
  .metric {
    min-height: 94px;
    padding: 14px 18px;
  }
  .metric-value {
    font-size: 26px;
  }
  .sync-controls select {
    max-width: 115px;
  }
  .page-heading .subtitle {
    max-width: 320px;
    font-size: 12px;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-context {
    padding: 24px 28px;
  }
  .login-copy,
  .login-bottom {
    display: none;
  }
  .login-main {
    padding: 55px 28px;
    align-items: start;
  }
  .login-main .login-form {
    max-width: 420px;
  }
  .login-context .brand {
    font-size: 15px;
  }
}
@media (max-width: 560px) {
  main {
    padding: 25px 16px;
  }
  .sidebar {
    padding: 12px 16px;
  }
  .topbar {
    padding: 0 16px;
  }
  .topbar > .private-label {
    display: none;
  }
  .page-heading {
    display: block;
  }
  .sync-controls {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .sync-controls label {
    margin: 0;
  }
  .sync-controls select {
    max-width: none;
  }
  .control-row {
    gap: 7px;
  }
  .snapshot-bar {
    display: block;
    line-height: 1.8;
    margin-top: 22px;
  }
  .snapshot-bar > span {
    display: flex;
  }
  .snapshot-bar #snapshot {
    margin-top: 4px;
  }
  .metrics {
    border-radius: 8px;
  }
  .metric {
    padding: 12px;
    min-height: 90px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric-value {
    font-size: 25px;
  }
  .section-heading {
    margin-top: 28px;
  }
  .sort-note {
    display: none;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .search-field {
    grid-column: 1/-1;
  }
  .filters .text-button {
    grid-column: 1/-1;
    justify-self: start;
    min-height: 44px;
    padding: 3px 0;
  }
  .filters select {
    max-width: 100%;
    min-height: 44px;
  }
  .check-list {
    padding: 4px 12px;
  }
  .check-row {
    grid-template-columns: minmax(80px, 1fr) 99px 58px 12px;
    gap: 7px;
    min-height: 61px;
  }
  .check-time {
    grid-column: 1/3;
    grid-row: auto;
    font-size: 9px;
  }
  .check-latency {
    font-size: 9px;
  }
  .row-arrow {
    grid-column: 4;
    grid-row: 1/3;
    align-self: center;
  }
  .check-label {
    font-size: 11px;
  }
  .check-row {
    position: relative;
  }
  .check-row .check-time {
    display: block;
  }
  .asset-summary {
    padding: 16px;
  }
  .asset-note {
    font-size: 11px;
  }
  .page-footer {
    flex-direction: column;
    gap: 6px;
    font-size: 9px;
  }
  .error-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .error-banner > div {
    min-width: 200px;
  }
  dialog {
    padding: 18px;
    max-width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }
  .detail-grid {
    gap: 14px;
  }
  .history-table {
    font-size: 10px;
  }
  .history-table td,
  .history-table th {
    padding: 9px 2px;
  }
  .history-table th:last-child,
  .history-table td:last-child {
    max-width: 85px;
    overflow-wrap: anywhere;
  }
  .button {
    min-height: 44px;
  }
  input,
  select {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
