:root {
  color-scheme: dark;
  background: #101e20;
  color: #f0faf7;
  font: 16px/1.45 system-ui, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  display: flex;
  min-height: 100vh;
  margin: 0;
  padding: 22px;
  align-items: center;
  justify-content: center;
}
main { width: 100%; max-width: 360px; text-align: center; }
img { display: block; margin: 0 auto 12px; }
h1 { margin: 0; font-size: 2.25rem; line-height: 1.12; letter-spacing: -.035em; }
.rooms { margin: 8px 0 16px; color: #b7cfca; }
.robot-status {
  margin: 0 0 16px;
  padding: 8px 10px;
  border: 1px solid #34534e;
  border-radius: 10px;
  color: #e2f0eb;
}
#robot-summary { margin: 0; font-size: .95rem; font-weight: 650; }
#robot-alert { margin: 3px 0 0; color: #ffdb9f; font-size: .875rem; white-space: pre-line; }
.commands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
#start { grid-column: 1 / -1; }
button {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 13px;
  padding: 12px;
  color: #102b24;
  background: #92e7c3;
  font: 700 1.2rem system-ui, "Segoe UI", sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}
button:focus { outline: 3px solid #fff; outline-offset: 4px; }
button:disabled { opacity: .54; cursor: default; }
.secondary {
  min-height: 48px;
  border: 1px solid #496a63;
  background: #1b3030;
  color: #f0faf7;
  font-size: 1rem;
}
output { display: block; min-height: 2em; margin-top: 12px; color: #b7cfca; }
[hidden] { display: none !important; }
@media (min-width: 480px) {
  main { max-width: 448px; }
  .commands { grid-template-columns: 1.25fr .7fr 1.25fr; }
  #start { grid-column: auto; }
}
@media (max-height: 400px) {
  body { padding: 12px; }
  img { width: 43px; height: 43px; margin-bottom: 7px; }
  .rooms { margin-bottom: 14px; }
  .robot-status { margin-bottom: 12px; padding: 5px 8px; }
  button { min-height: 48px; }
}
