:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef1f2;
  color: #182125;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(145deg, #eef1f2 0%, #f8f8f5 65%, #e5ece8 100%);
}

main {
  width: min(100%, 480px);
}

header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.mark {
  width: 12px;
  height: 46px;
  background: #197b58;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

header p {
  margin: 5px 0 0;
  color: #667277;
  font-size: 14px;
}

#machines {
  display: grid;
  gap: 10px;
}

.machine {
  width: 100%;
  min-height: 68px;
  border: 1px solid #cfd7d8;
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  color: #182125;
  box-shadow: 0 3px 12px rgba(24, 33, 37, 0.06);
}

.machine-name {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
  font-size: 16px;
  font-weight: 650;
}

.wake-button {
  flex: 0 0 auto;
  min-width: 80px;
  height: 40px;
  border: 0;
  border-radius: 5px;
  padding: 0 15px;
  background: #197b58;
  color: #ffffff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.wake-button:hover {
  background: #126445;
}

.wake-button:focus-visible {
  outline: 3px solid #84c7af;
  outline-offset: 2px;
}

.wake-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.loading,
#status {
  color: #667277;
  font-size: 14px;
}

#status {
  min-height: 22px;
  margin: 16px 0 0;
}

#status.error {
  color: #a62d32;
}

#status.success {
  color: #126445;
}

@media (prefers-color-scheme: dark) {
  :root {
    background: #151a1c;
    color: #edf2ef;
  }

  body {
    background: linear-gradient(145deg, #151a1c 0%, #1c2224 60%, #17221e 100%);
  }

  header p,
  .loading,
  #status {
    color: #aeb9b7;
  }

  .machine {
    border-color: #354144;
    background: #202729;
    color: #edf2ef;
    box-shadow: none;
  }

  #status.error {
    color: #ff9498;
  }

  #status.success {
    color: #73d6b1;
  }
}
