:root {
  color-scheme: dark;
  font-family: Arial, sans-serif;
  background: #0f1419;
  color: #edf2f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0f1419;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #8fb3d9;
  font-size: 14px;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.icon-button,
button {
  border: 0;
  border-radius: 7px;
  background: #253241;
  color: #edf2f7;
  cursor: pointer;
  font-weight: 700;
}

button {
  min-height: 46px;
  padding: 12px 14px;
}

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

.icon-button {
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.status-item,
.panel {
  border: 1px solid #26384a;
  background: #16212c;
  border-radius: 8px;
}

.status-item {
  padding: 14px;
}

.status-item span,
.transcript span {
  display: block;
  color: #9aabbc;
  font-size: 13px;
  margin-bottom: 7px;
}

.status-item strong,
.transcript strong {
  display: block;
  overflow-wrap: anywhere;
}

.panel {
  padding: 18px;
  margin-top: 14px;
}

.record-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.primary {
  background: #22c55e;
  color: #07130b;
}

.secondary {
  background: #38bdf8;
  color: #061018;
}

.danger {
  background: #ef4444;
  color: #fff;
}

.message {
  min-height: 22px;
  color: #facc15;
  overflow-wrap: anywhere;
}

.transcript {
  padding: 14px;
  background: #0d1620;
  border: 1px solid #26384a;
  border-radius: 7px;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.command-form {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 10px;
  margin-top: 12px;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #33485c;
  border-radius: 7px;
  padding: 0 13px;
  background: #0d1620;
  color: #edf2f7;
}

@media (max-width: 720px) {
  .status-grid,
  .control-grid {
    grid-template-columns: 1fr 1fr;
  }

  .record-row,
  .command-form {
    grid-template-columns: 1fr;
  }
}
