  * {
    box-sizing: border-box;
  }

  body {
    margin: 0;
    min-height: 100vh;

    background: #000;
    color: #eee;

    font-family: monospace;

    display: flex;
    justify-content: center;
    align-items: center;
  }

  #app {
    text-align: center;
  }

  h1 {
    margin: 0;
  }

  .subtitle {
    margin-top: 8px;
    margin-bottom: 30px;
    opacity: 0.6;
  }

  .service {
    position: relative;
  }

  .service::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: -42px;
    transform: translateX(-50%);

    padding: 6px 10px;
    background: #111;
    color: #eee;
    border: 1px solid #444;
    border-radius: 4px;

    font-family: monospace;
    font-size: 12px;
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
  }

  .service:hover::after {
    opacity: 1;
  }

  .service-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    max-width: 600px;
    margin: 0 auto;
  }

  #service-grid {
    position: relative;
    z-index: 20;
    width: 100%;
    box-sizing: border-box;
  }

  .service-category {
    width: 100%;
    margin-bottom: 28px;
  }

  .service-category-title {
    margin: 0 0 12px;

    color: #aaa;

    font-family: monospace;
    font-size: 14px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .service-category-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
  }


  .lock {
    position: absolute;
    top: 5px;
    right: 6px;

    display: none;

    font-size: 12px;
    line-height: 1;
  }

  .service.locked .lock {
    display: block;
  }

  .service {
    position: relative;

    width: 82px;
    height: 82px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #000;
    color: #eee;

    border: 1px solid #333;
    border-radius: 9px;

    cursor: pointer;

    transition: border-color 0.15s ease,
      transform 0.15s ease;
  }

  .service:hover {
    border-color: #666;
    transform: translateY(-2px);
  }

  .service-icon {
    font-size: 38px;
  }
  .status-indicator {
  position: absolute;
  bottom: 6px;
  right: 6px;

  width: 8px;
  height: 8px;

  border-radius: 50%;
  background: #555;
}

.status-indicator.online {
  background: #4caf50;
}

.service-online {
  border-color: #4caf50;
}

.service-disabled {
  opacity: 0.4;
  filter: grayscale(1);
}


.service-disabled {
  opacity: 0.4;
  filter: grayscale(1);
}

#host-info {
    margin: 0 auto 24px;
    max-width: 900px;
    padding: 12px 16px;

    border: 1px solid #333;
    border-radius: 8px;

    background: #080808;

    font-family: monospace;
    font-size: 12px;
}

#host-system {
    margin-bottom: 10px;
    color: #aaa;
}

#host-metrics {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

#host-metrics span {
    white-space: nowrap;
}

  /* ==========================================
       jsPanel — S4UL Dark Theme
       ========================================== */

  .jsPanel {
    background: #080808 !important;
    color: #eee !important;

    border: 1px solid #333 !important;
    border-radius: 8px !important;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65) !important;
  }

  /* Header */

  .jsPanel-hdr {
    background: #0d0d0d !important;
    color: #eee !important;

    border-bottom: 1px solid #292929 !important;
  }

  .jsPanel-title {
    color: #eee !important;
    font-family: monospace !important;
  }

  /* Header controls */

  .jsPanel-controlbar {
    color: #aaa !important;
  }

  .jsPanel-controlbar span {
    color: #aaa !important;
  }

  .jsPanel-controlbar span:hover {
    color: #fff !important;
    background: #1a1a1a !important;
  }

  /* Content */

  .jsPanel-content {
    background: #000 !important;
    color: #eee !important;
  }

  /* iframe */

  .jsPanel-content iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
    background: #000;
  }

  /*------------------------------------*/

  #graph-view {
    display: none;
  }


  #view-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
  }

  #settings-button {
    width: 44px;
    height: 44px;

    border: 1px solid #555;
    border-radius: 8px;

    background: #111;
    color: #fff;

    font-size: 22px;
    cursor: pointer;
  }

  #settings-button:hover {
    background: #222;
  }