:root {
  color-scheme: dark;
  --bg: #07110f;
  --panel: #101b18;
  --panel-2: #18231f;
  --text: #f4f7ef;
  --muted: #a8b5ad;
  --accent: #44d18d;
  --accent-2: #f0c25b;
  --danger: #ff6b6b;
  --line: rgba(255, 255, 255, 0.12);
  --focus: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  background:
    linear-gradient(135deg, rgba(68, 209, 141, 0.14), transparent 32%),
    linear-gradient(315deg, rgba(240, 194, 91, 0.12), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}

button {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(460px, 0.9fr) minmax(520px, 1.1fr);
  gap: 32px;
  min-height: 100vh;
  padding: 56px;
}

.status-panel,
.command-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 27, 24, 0.9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.status-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
}

.command-panel {
  padding: 34px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: var(--accent);
  color: #06110f;
  font-size: 40px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 54px;
  line-height: 1.05;
}

h2 {
  font-size: 34px;
}

.mic-state {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 48px;
  padding: 22px;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 28px;
  font-weight: 700;
}

.mic-state.is-listening {
  color: var(--accent);
}

.mic-state.is-error {
  color: var(--danger);
}

.pulse {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: currentColor;
}

.is-listening .pulse {
  animation: pulse 1.2s ease-in-out infinite;
}

.transcript {
  min-height: 120px;
  margin: 42px 0 0;
  color: var(--text);
  font-size: 34px;
  line-height: 1.25;
}

.result {
  min-height: 70px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 23px;
  line-height: 1.35;
}

.primary-actions {
  display: flex;
  gap: 18px;
  margin-top: 34px;
}

.action-button,
.command-card {
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--text);
  background: var(--panel-2);
  cursor: pointer;
}

.action-button {
  min-width: 180px;
  min-height: 68px;
  padding: 0 28px;
  font-size: 25px;
  font-weight: 800;
}

.action-button.is-primary {
  background: var(--accent);
  color: #06110f;
}

.action-button:focus,
.command-card:focus {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.command-card {
  min-height: 156px;
  padding: 24px;
  text-align: left;
}

.command-card strong {
  display: block;
  color: var(--text);
  font-size: 25px;
  line-height: 1.2;
}

.command-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.3;
}

.command-card:focus,
.command-card:hover {
  border-color: var(--accent);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}
