:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: #f6f7fb;
  color: #1c1e26;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px;
}

.app {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(13, 20, 33, 0.08);
}

.toolbar__group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.status {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 4px;
}

.version {
  font-size: 0.85rem;
  font-weight: 600;
  color: #3f4a6b;
  padding: 8px 12px;
  background: #f0f3fb;
  border-radius: 999px;
  border: 1px solid #d7deef;
  white-space: nowrap;
}

button {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #cad3ea;
  background: #eef1f7;
  color: #1c1e26;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.content {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.display-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

#display {
  border-radius: 12px;
  border: 2px solid #1c1e26;
  background: #000000;
  image-rendering: pixelated;
  width: 480px;
  height: 640px;
}

.led {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.led__dot {
  width: 64px;
  height: 12px;
  border-radius: 4px;
  background: #1c1e26;
  border: 2px solid #1c1e26;
  display: inline-block;
}

.keypad {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(13, 20, 33, 0.08);
}

.keypad__side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.keypad__side .key {
  width: 90px;
}

.keypad__grid {
  display: grid;
  grid-template-columns: repeat(3, 80px);
  grid-template-rows: repeat(7, 44px);
  gap: 10px;
}

.key {
  background: #e2e6f3;
  border: 1px solid #b8c3e2;
}

.key--tall {
  min-height: calc(44px * 2 + 10px);
}

.key--ptt {
  min-height: calc(44px * 3 + 20px);
}

.key--red {
  background: #b8161f;
  color: #ffffff;
  border-color: #8f1017;
  font-size: 1.2rem;
}

.key--red:active {
  background: #a3121b;
}

.key--emerg {
  background: #c76b00;
  color: #1c1e26;
  border-color: #9a5200;
  font-size: 1.2rem;
}

.key--emerg:active {
  background: #b35f00;
}

.key--green {
  background: #0f7a3c;
  color: #ffffff;
  border-color: #0b5b2d;
  font-size: 1.2rem;
}

.key--green:active {
  background: #0c6a34;
}

.key:active {
  background: #c8d0ea;
}

@media (max-width: 900px) {
  #display {
    width: 320px;
    height: 426px;
  }

  .keypad__grid {
    grid-template-columns: repeat(3, 64px);
  }
}
