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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(24, 32, 47, 0.04), rgba(20, 121, 115, 0.05)),
    #f5f7fa;
}

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

.panel {
  background: #ffffff;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(18, 28, 45, 0.10);
  padding: 28px;
}

.header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 8px;
  color: #147973;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.status {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.status.idle {
  background: #edf1f5;
  color: #516070;
}

.status.live {
  background: #d9f4ed;
  color: #08715e;
}

.status.error {
  background: #ffe3df;
  color: #a12717;
}

.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 16px;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: #147973;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

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

button.secondary {
  background: #e8edf2;
  color: #243244;
}

.meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #5c6878;
  font-size: 14px;
  margin-bottom: 20px;
}

.transcript {
  min-height: 280px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 18px;
}

#placeholder {
  margin: 0;
  color: #7a8796;
}

.line {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e6ebf0;
  line-height: 1.65;
}

.line.partial {
  color: #516070;
}

.line.final {
  color: #18202f;
  font-weight: 650;
}

.error {
  min-height: 24px;
  color: #a12717;
  font-weight: 700;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 920px);
    padding: 20px 0;
  }

  .panel {
    padding: 18px;
  }

  .header {
    display: block;
  }

  h1 {
    font-size: 24px;
  }

  .status {
    display: inline-block;
    margin-top: 16px;
  }

  button {
    flex: 1 1 120px;
  }
}
