@layer base, layout, components, responsive;
@layer base {
  :root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #182a3b;
    background: #f6f8fa;
    font-synthesis: none;
    --green: #087f5b;
    --green-light: #e9f6ef;
    --border: #e0e7ed;
    --muted: #637182;
    --red: #b6353b;
    --amber: #8c621c;
  }
  * {
    box-sizing: border-box;
  }
  body {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
  }
  button,
  input,
  select {
    font: inherit;
  }
  button,
  a,
  input,
  select {
    -webkit-tap-highlight-color: transparent;
  }
  button {
    cursor: pointer;
  }
  button:disabled {
    opacity: 0.55;
    cursor: wait;
  }
  input,
  select {
    min-width: 0;
    max-width: 100%;
    color: inherit;
    background: white;
    border: 1px solid #cbd6df;
    border-radius: 6px;
    padding: 9px 11px;
    min-height: 40px;
  }
  input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 0;
    margin: 0;
    accent-color: var(--green);
  }
  input:read-only:not([type="checkbox"]) {
    background: #f4f6f8;
  }
  input:disabled,
  select:disabled {
    color: #637182;
    background: #f4f6f8;
  }
  fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
  }
  label {
    display: block;
    font-size: 13px;
    font-weight: 550;
  }
  a {
    color: var(--green);
    text-decoration: none;
  }
  h1,
  h2,
  h3,
  p {
    margin: 0;
  }
  h1 {
    font-size: 29px;
    font-weight: 660;
    letter-spacing: -0.85px;
    line-height: 1.25;
  }
  h2 {
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.25px;
  }
  h3 {
    font-size: 15px;
    font-weight: 620;
  }
  :focus-visible {
    outline: 3px solid #32a787;
    outline-offset: 3px;
  }
  [hidden] {
    display: none !important;
  }
  .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;
  }
  .skip-link {
    position: fixed;
    left: 12px;
    top: -80px;
    z-index: 20;
    background: white;
    padding: 10px 16px;
    border: 1px solid var(--green);
    border-radius: 6px;
  }
  .skip-link:focus {
    top: 12px;
  }
  .icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    vertical-align: middle;
  }
  .muted-text {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
  }
  .eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 1.7px;
    color: #536e62;
  }
  .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    background: var(--green);
    color: white;
    border-radius: 9px;
    flex: 0 0 auto;
  }
  .brand-mark .icon {
    width: 21px;
    height: 21px;
    stroke-width: 2.5;
  }
  .boot {
    min-height: 100dvh;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 15px;
  }
  .boot p {
    color: var(--muted);
  }
  .no-script {
    text-align: center;
    padding: 20px;
  }
}
@layer layout {
  .workspace {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 206px minmax(0, 1fr);
  }
  .sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    background: #fbfcfd;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 27px 21px 33px;
    color: #14283a;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.5px;
  }
  nav {
    padding: 0 12px;
    display: grid;
    gap: 5px;
  }
  nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 13px;
    border-radius: 6px;
    color: #526273;
    font-size: 13px;
    font-weight: 550;
  }
  nav a:hover {
    background: #f0f4f6;
  }
  nav a[aria-current="page"] {
    background: #e9f3ee;
    color: #08724f;
  }
  nav a[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: -12px;
    height: 24px;
    width: 3px;
    background: var(--green);
    border-radius: 0 3px 3px 0;
  }
  .sidebar-footer {
    margin-top: auto;
    padding: 25px;
    border-top: 1px solid #eaf0f3;
    font-size: 12px;
  }
  .sidebar-footer .small-label {
    color: #5e6f7c;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 1.7px;
  }
  .sidebar-footer p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 11px 0 3px;
  }
  #main:not(.login-page):not(.boot) {
    padding: 34px clamp(20px, 3vw, 48px) 40px;
    max-width: 1700px;
    width: 100%;
    margin: 0 auto;
  }
  #main:focus {
    outline: none;
  }
  #page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
  #page-header h1 {
    margin: 8px 0 5px;
  }
  #page-header p {
    color: var(--muted);
    font-size: 13px;
  }
  .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .connection {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 39px;
    margin: 15px 0 18px;
    color: #61766e;
    font-size: 11px;
  }
  .connection-note {
    margin-left: auto;
    color: var(--muted);
  }
  .connection.warning {
    flex-wrap: wrap;
    background: #fff8e9;
    color: #795218;
    border: 1px solid #e8d3a7;
    border-radius: 7px;
    padding: 10px 12px;
  }
  .connection.warning .text-button {
    margin-left: auto;
  }
  .summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
  }
  .stat {
    background: white;
    border: 1px solid var(--border);
    padding: 19px 20px 16px;
    border-radius: 8px;
  }
  .stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #536679;
    font-weight: 550;
  }
  .stat-number {
    color: #1c3445;
    font-size: 33px;
    line-height: 1.2;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    margin: 10px 0 4px;
    letter-spacing: -0.8px;
  }
  .stat > span {
    font-size: 11px;
    color: var(--muted);
  }
  .stat.healthy {
    border-top: 2px solid #30a77c;
  }
  .stat.failing {
    border-top: 2px solid #d88487;
  }
  .stat.muted {
    border-top: 2px solid #a0acb8;
  }
  .stat.watching {
    border-top: 2px solid #d6b26a;
  }
  .heartbeat-strip {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 17px 0 26px;
    font-size: 12px;
  }
  .heartbeat-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 550;
  }
  .heartbeat-title .icon {
    width: 16px;
    color: #657989;
  }
  .strip-end {
    margin-left: auto;
    color: var(--muted);
    font-size: 11px;
  }
}
@layer components {
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #cfd9e2;
    border-radius: 6px;
    background: white;
    color: #425669;
    font-size: 12px;
    font-weight: 550;
    white-space: nowrap;
  }
  .button:hover:not(:disabled) {
    background: #f2f6f8;
    border-color: #a8bac6;
  }
  .button.primary {
    color: white;
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 2px 3px #1c745314;
  }
  .button.primary:hover:not(:disabled) {
    background: #066c4d;
  }
  .text-button {
    background: transparent;
    border: 0;
    color: var(--green);
    font-size: 12px;
    font-weight: 550;
    padding: 8px 5px;
    border-radius: 4px;
  }
  .text-button:hover:not(:disabled) {
    background: #edf6f1;
  }
  .text-button.danger {
    color: var(--red);
  }
  .button.danger-button {
    color: white;
    background: var(--red);
    border-color: var(--red);
  }
  .button.danger-button:hover:not(:disabled) {
    background: #97282e;
  }
  .icon-button {
    background: transparent;
    color: var(--muted);
    border: 0;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    border-radius: 5px;
  }
  .icon-button:hover {
    background: #f0f4f6;
  }
  .panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
  }
  .panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 19px 21px;
  }
  .panel-heading > div {
    min-width: 0;
  }
  .panel-heading h2 {
    margin-bottom: 3px;
  }
  .filters {
    padding: 0 21px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .filters select {
    font-size: 12px;
    min-width: 130px;
    padding: 7px 28px 7px 10px;
    min-height: 37px;
  }
  .search {
    flex: 1;
    position: relative;
    max-width: 380px;
  }
  .search .icon {
    position: absolute;
    left: 11px;
    top: 10px;
    width: 16px;
    color: #8696a6;
  }
  .search input {
    width: 100%;
    font-size: 12px;
    padding: 8px 12px 8px 36px;
    min-height: 37px;
  }
  input::placeholder {
    color: #5e6f7c;
    opacity: 1;
    font-weight: 400;
  }
  .table-scroll {
    position: relative;
    overflow: auto;
  }
  .table-scroll:focus-visible {
    outline-offset: -3px;
  }
  table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-variant-numeric: tabular-nums;
  }
  thead {
    background: #f7f9fb;
    color: #5e6f7c;
    font-size: 10px;
    letter-spacing: 0.25px;
  }
  th {
    font-weight: 550;
  }
  thead th {
    border-block: 1px solid #e8edf2;
    padding: 11px 16px;
    white-space: nowrap;
  }
  td,
  tbody th {
    border-bottom: 1px solid #edf1f4;
    padding: 13px 16px;
    font-size: 12px;
  }
  th:first-child,
  td:first-child {
    padding-left: 21px;
  }
  th:last-child,
  td:last-child {
    padding-right: 21px;
  }
  tbody tr:last-child > * {
    border-bottom: none;
  }
  tbody tr:hover,
  tbody tr.selected {
    background: #f8fcfa;
  }
  .target-name {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 0;
    padding: 0;
    color: #223c50;
    font-size: 13px;
    font-weight: 620;
    text-align: left;
  }
  .target-name .icon {
    width: 13px;
    height: 13px;
    color: #98aaa9;
  }
  .endpoint {
    display: block;
    max-width: clamp(140px, 16vw, 285px);
    color: #5e6f7c;
    font-size: 10px;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
  }
  .small-note {
    display: block;
    font-size: 10px;
    font-weight: 400;
    color: #657687;
    margin-top: 3px;
  }
  .type-tag {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.7px;
    background: #f0f4f7;
    border: 1px solid #e5ebf0;
    padding: 3px 6px;
    border-radius: 4px;
    color: #556b7d;
  }
  .family-button {
    border: none;
    padding: 0;
    background: transparent;
    text-align: left;
    display: block;
    min-width: 96px;
    border-radius: 3px;
    color: inherit;
  }
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 10px;
    line-height: 1.45;
    font-weight: 550;
    white-space: nowrap;
  }
  .badge.healthy {
    color: #08754e;
    background: #edf7f1;
  }
  .badge.failing {
    color: #a83238;
    background: #fceef0;
  }
  .badge.muted,
  .badge.disabled,
  .badge.unknown {
    color: #5b6a78;
    background: #eff2f5;
  }
  .badge.watching {
    color: #805716;
    background: #fff5df;
  }
  .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8b9baa;
    display: inline-block;
    flex: 0 0 auto;
  }
  .dot.healthy {
    background: #15936c;
  }
  .dot.failing {
    background: #ca4b57;
  }
  .dot.watching {
    background: #b4872e;
  }
  .dot.muted,
  .dot.disabled,
  .dot.unknown {
    background: #8d9eac;
  }
  .cell-detail {
    display: block;
    margin-top: 5px;
    color: #5e6f7c;
    font-size: 10px;
    font-weight: 400;
    max-width: 220px;
  }
  #target-table th:not(:first-child):not(:last-child),
  #target-table td:not(:first-child):not(:last-child) {
    padding-inline: 12px;
  }
  .latency-heading,
  .latency-cell {
    text-align: right;
    white-space: nowrap;
  }
  .latency-button {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    border: 0;
    border-radius: 3px;
    padding: 0;
    background: transparent;
    color: #304d59;
    font-size: 12px;
    font-weight: 550;
    font-variant-numeric: tabular-nums;
  }
  .latency-button:hover {
    color: var(--green);
  }
  .latency-button:hover .latency-value {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .latency-sparkline {
    display: block;
    width: 80px;
    height: 28px;
  }
  .trend-area {
    fill: #15936c;
    fill-opacity: 0.08;
  }
  .trend-area.failed {
    fill: #ca4b57;
  }
  .trend-line {
    stroke-width: 1.25;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
  }
  .trend-line.passed {
    stroke: #15936c;
  }
  .trend-line.failed {
    stroke: #ca4b57;
  }
  .latency-sparkline.muted .trend-line {
    stroke: #8293a2;
  }
  .latency-sparkline.muted .trend-area {
    fill: #8293a2;
  }
  .trend-grid {
    fill: none;
    stroke: #e6edf0;
    stroke-dasharray: 3 3;
    vector-effect: non-scaling-stroke;
  }
  .not-checked {
    color: #8a98a6;
  }
  .last-check,
  .interval {
    white-space: nowrap;
    color: #657486;
    font-size: 11px;
  }
  .table-footer {
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 21px;
    color: #5e6f7c;
    font-size: 11px;
  }
  .pagination-controls,
  .pagination-controls label,
  .pagination-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .pagination-controls {
    margin-left: auto;
    gap: 16px;
  }
  .pagination-controls label {
    font-size: 11px;
    font-weight: 400;
  }
  .pagination-controls select {
    min-height: 32px;
    padding: 5px 7px;
  }
  .pagination-buttons .button {
    min-height: 32px;
    width: 32px;
    padding: 6px;
  }
  .pagination-buttons .button:disabled {
    cursor: default;
  }
  .empty-state {
    text-align: center;
    padding: 47px 20px;
    color: #5e6f7c;
  }
  .empty-state > .icon {
    width: 35px;
    height: 35px;
    color: #91b1a7;
    margin-bottom: 15px;
  }
  .empty-state h3 {
    color: #304d59;
    margin-bottom: 6px;
  }
  .empty-state p {
    font-size: 12px;
    margin-bottom: 18px;
  }
  .empty-state.compact {
    padding: 25px 15px;
  }
  .section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 28px 0 12px;
  }
  .host-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
  }
  .host-card {
    padding: 16px;
  }
  .host-card > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .host-card h3 {
    font-size: 12px;
    text-transform: capitalize;
  }
  .host-card p {
    font-size: 14px;
    margin: 14px 0 5px;
  }
  .host-card > span {
    font-size: 10px;
  }
  .detail-panel {
    margin-top: 20px;
  }
  .detail-panel .panel-heading {
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
  }
  .detail-panel .panel-heading .muted-text {
    overflow-wrap: anywhere;
  }
  .detail-panel .panel-heading > div:first-child {
    flex: 1 1 180px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .detail-heading-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
  }
  .family-switch {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #f2f6f8;
  }
  .family-switch-button {
    border: 0;
    border-radius: 4px;
    padding: 6px 11px;
    min-height: 32px;
    background: transparent;
    color: #536679;
    font-size: 12px;
    font-weight: 550;
  }
  .family-switch-button[aria-pressed="true"] {
    color: var(--green);
    background: white;
    box-shadow: 0 1px 3px #23413614;
  }
  .family-switch-button:hover:not(:disabled) {
    background: white;
  }
  .detail-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr);
  }
  .detail-grid > div {
    padding: 22px;
  }
  .detail-grid > div + div {
    border-left: 1px solid var(--border);
  }
  .facts {
    margin: 20px 0 12px;
    font-size: 12px;
  }
  .facts > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
  }
  .facts dt {
    color: #5e6f7c;
  }
  .facts dd {
    margin: 0;
    text-align: right;
    overflow-wrap: anywhere;
  }
  .history-panel .filters label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #5e7282;
  }
  .history-panel .filters select {
    min-width: 180px;
  }
  .history-chart {
    margin: 0 0 14px;
    padding: 0 7px;
  }
  .history-chart figcaption,
  .history-chart > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #5e6f7c;
    font-size: 10px;
  }
  .history-chart figcaption {
    margin-bottom: 12px;
  }
  .history-chart svg {
    width: 100%;
    height: 112px;
    border-bottom: 1px solid #e6edf0;
  }
  .history-chart > div {
    font-size: 9px;
    margin-top: 5px;
  }
  #history-content > .history-chart {
    margin: 18px 20px 25px;
  }
  .history-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 21px;
    border-top: 1px solid var(--border);
  }
  .loading-text {
    font-size: 12px;
    color: #688176;
    padding: 25px;
  }
  .account-panel {
    max-width: 630px;
    padding: 35px;
  }
  .account-avatar {
    display: inline-flex;
    background: var(--green-light);
    color: var(--green);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 24px;
  }
  .account-avatar .icon {
    width: 25px;
    height: 25px;
  }
  .account-panel h2 {
    margin: 10px 0 7px;
    font-size: 23px;
  }
  .account-panel p {
    font-size: 13px;
    color: var(--muted);
  }
  .account-panel .facts {
    margin: 30px 0;
    padding-block: 20px 10px;
    border-block: 1px solid var(--border);
  }
  .account-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
  }
  .account-panel > .muted-text {
    font-size: 11px;
  }
  #notice {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    max-width: calc(100vw - 32px);
    z-index: 10;
    background: #243e35;
    color: white;
    box-shadow: 0 5px 25px #1d403224;
    border-radius: 7px;
    padding: 12px 19px;
    font-size: 13px;
    pointer-events: none;
    opacity: 0;
    transition:
      opacity 0.15s,
      transform 0.15s;
  }
  #notice.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  dialog {
    width: min(580px, calc(100vw - 28px));
    max-height: calc(100dvh - 42px);
    border: 1px solid #d9e4e0;
    border-radius: 11px;
    padding: 0;
    color: inherit;
    box-shadow: 0 16px 70px #172b3d30;
  }
  dialog::backdrop {
    background: #1c354366;
    backdrop-filter: blur(2px);
  }
  .dialog-heading {
    padding: 22px 24px 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    gap: 10px;
  }
  .dialog-heading h2 {
    margin-top: 5px;
    font-size: 21px;
  }
  .dialog-body {
    padding: 20px 24px;
  }
  .dialog-body > p {
    color: #546b77;
    font-size: 13px;
  }
  .dialog-body input:not([type="checkbox"]),
  .dialog-body select {
    width: 100%;
    margin-top: 5px;
  }
  .dialog-body label {
    margin-top: 16px;
  }
  .dialog-body fieldset > label:first-of-type {
    margin-top: 0;
  }
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
    margin-top: 2px;
  }
  .form-grid + div {
    margin-top: 16px;
  }
  .field-hint {
    font-size: 11px;
    color: #5e6f7c;
    margin-top: 7px;
  }
  .optional {
    margin-left: 5px;
    color: var(--muted);
    font-weight: 400;
    font-size: 11px;
  }
  .family-fields {
    margin-top: 16px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
  }
  .family-fields legend {
    font-size: 13px;
    font-weight: 550;
    margin-bottom: 16px;
  }
  .family-fields label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 0;
  }
  .check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 2px;
  }
  .dialog-footer {
    padding: 17px 24px;
    border-top: 1px solid var(--border);
    background: #fbfcfc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .dialog-footer > div {
    display: flex;
    gap: 8px;
  }
  .info-box {
    font-size: 12px;
    padding: 12px;
    background: #edf5f2;
    border: 1px solid #d3e5dd;
    border-radius: 6px;
    margin-bottom: 20px;
  }
  .error {
    color: #ac3139 !important;
    font-size: 12px !important;
    margin: 12px 0;
  }
  .error:empty {
    margin: 0;
  }
  .login-page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 70px 20px 30px;
    background:
      radial-gradient(ellipse at 50% 15%, #edf5ef 0, transparent 65%), #f6f8fa;
  }
  .login-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 21px;
    letter-spacing: -0.6px;
    margin-bottom: 46px;
  }
  .login-brand .brand-mark {
    width: 33px;
    height: 33px;
  }
  .login-card {
    background: white;
    border: 1px solid #dde8e2;
    padding: 39px;
    border-radius: 11px;
    width: min(430px, 100%);
    box-shadow: 0 9px 38px #23413605;
  }
  .login-card h1 {
    margin-top: 17px;
    font-size: 34px;
    line-height: 1.3;
    color: #234237;
    letter-spacing: -1.1px;
  }
  .login-intro {
    color: #536e62;
    font-size: 13px;
    margin: 16px 0 29px;
  }
  .login-card input {
    width: 100%;
    margin: 8px 0 10px;
  }
  .login-card .button {
    width: 100%;
    margin: 10px 0 0;
    min-height: 43px;
    justify-content: space-between;
    padding: 11px 16px;
  }
  .login-foot {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e7eeea;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #5e6f7c;
    font-size: 10px;
  }
  .login-foot .icon {
    width: 14px;
    height: 14px;
  }
  .login-caption {
    margin-top: 26px;
    font-size: 11px;
    color: #5e6f7c;
  }
}
@layer responsive {
  @media (min-width: 1500px) {
    .latency-button {
      flex-direction: row;
      align-items: center;
      gap: 10px;
    }
    td,
    tbody th {
      padding-block: 16px;
    }
    .stat {
      padding: 23px;
    }
  }
  @media (max-width: 1100px) {
    .workspace {
      grid-template-columns: 178px minmax(0, 1fr);
    }
    .brand {
      padding: 25px 16px 30px;
      gap: 8px;
      font-size: 16px;
    }
    #main:not(.login-page):not(.boot) {
      padding: 27px 22px;
    }
    .host-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .strip-end {
      display: none;
    }
    .summary {
      gap: 10px;
    }
    .stat {
      padding: 16px;
    }
  }
  @media (max-width: 760px) {
    .workspace {
      display: block;
    }
    .sidebar {
      position: relative;
      width: 100%;
      height: auto;
      border-right: 0;
      border-bottom: 1px solid var(--border);
    }
    .brand {
      padding: 17px 20px 13px;
    }
    nav {
      display: flex;
      justify-content: space-around;
      padding: 0 8px 9px;
      gap: 2px;
    }
    nav a {
      padding: 8px 10px;
      gap: 7px;
      font-size: 12px;
    }
    nav a .icon {
      width: 15px;
      height: 15px;
    }
    nav a[aria-current="page"]::before {
      display: none;
    }
    .sidebar-footer {
      display: none;
    }
    #main:not(.login-page):not(.boot) {
      padding: 25px 16px;
    }
    h1 {
      font-size: 26px;
    }
    #page-header {
      align-items: start;
      gap: 9px;
    }
    #page-header p {
      font-size: 11px;
      max-width: 190px;
    }
    #page-header .eyebrow {
      font-size: 8px;
      letter-spacing: 1.2px;
    }
    .header-actions {
      gap: 6px;
      padding-top: 20px;
    }
    #page-header.with-transfers {
      flex-wrap: wrap;
    }
    .with-transfers .header-actions {
      width: 100%;
      padding-top: 8px;
      flex-wrap: wrap;
    }
    .header-actions [data-action="refresh"] {
      padding: 9px;
    }
    .header-actions [data-action="refresh"] span {
      display: none;
    }
    .header-actions .button {
      font-size: 11px;
      padding-inline: 9px;
      gap: 5px;
    }
    .summary {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .stat {
      padding: 15px 16px;
    }
    .stat-number {
      font-size: 29px;
      margin-top: 7px;
    }
    .heartbeat-strip {
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 20px;
    }
    .heartbeat-title {
      font-size: 11px;
    }
    .heartbeat-strip .muted-text {
      font-size: 10px;
    }
    .connection {
      font-size: 10px;
      gap: 6px;
      margin-bottom: 13px;
    }
    .connection-note {
      max-width: 165px;
      text-align: right;
      font-size: 9px;
    }
    .panel-heading {
      padding: 16px;
    }
    #snapshot-time {
      display: none;
    }
    .filters {
      padding-inline: 16px;
      gap: 8px;
      flex-wrap: wrap;
    }
    .search {
      flex-basis: 100%;
      max-width: none;
    }
    .filters select {
      min-width: 118px;
    }
    .targets-panel table {
      min-width: 730px;
    }
    .table-footer {
      padding: 11px 16px;
      gap: 12px;
    }
    .detail-grid {
      grid-template-columns: minmax(0, 1fr);
    }
    .detail-grid > div + div {
      border-left: 0;
      border-top: 1px solid var(--border);
    }
    .detail-grid > div {
      padding: 17px;
    }
    .section-label {
      flex-wrap: wrap;
      gap: 5px;
    }
    .history-panel .filters {
      align-items: start;
    }
    .history-panel .filters label {
      flex: 1;
      display: block;
    }
    .history-panel .filters select {
      min-width: 100px;
      max-width: 100%;
      margin-top: 5px;
      width: 100%;
    }
    #history-content table {
      min-width: 510px;
    }
    .history-footer {
      flex-wrap: wrap;
      gap: 10px;
      padding: 14px;
    }
    .account-panel {
      padding: 25px;
    }
    .account-panel .facts {
      font-size: 11px;
    }
    .account-actions {
      flex-wrap: wrap;
    }
    .dialog-body,
    .dialog-heading {
      padding: 18px;
    }
    .dialog-footer {
      padding: 14px 18px;
      gap: 6px;
    }
    .dialog-footer .button {
      padding-inline: 9px;
    }
    .login-page {
      padding-top: 42px;
    }
    .login-brand {
      margin-bottom: 32px;
    }
    .login-card {
      padding: 30px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      scroll-behavior: auto !important;
      transition: none !important;
    }
  }
}
