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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-size: 32px;
}

h2 {
  font-size: 20px;
}

.subtle,
.hint {
  color: #5f6f7e;
}

.account {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.email {
  color: #34495e;
  font-size: 14px;
}

.panel {
  background: #ffffff;
  border: 1px solid #d9e1e8;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 10px 32px rgba(26, 43, 61, 0.08);
  margin-bottom: 20px;
}

form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 650;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b9c5d0;
  border-radius: 6px;
  padding: 10px 12px;
  background: #ffffff;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  background: #126f83;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #0f5f70;
}

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

button.secondary {
  background: #e7edf2;
  color: #17202a;
}

.buttonLink {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 6px;
  padding: 10px 16px;
  background: #126f83;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

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

.jobsList {
  display: grid;
  gap: 12px;
}

.jobItem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #d9e1e8;
  border-radius: 8px;
  padding: 14px;
}

.jobTitle {
  margin: 0 0 4px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.jobMeta {
  margin: 0;
  color: #5f6f7e;
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 3px 9px;
  background: #e7edf2;
  color: #34495e;
  font-size: 13px;
  font-weight: 750;
}

.badge.completed {
  background: #dff3e8;
  color: #1d7044;
}

.jobActions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.transcript {
  width: 100%;
  max-height: 520px;
  overflow: auto;
  margin: 0;
  border: 1px solid #d9e1e8;
  border-radius: 8px;
  padding: 16px;
  white-space: pre-wrap;
  color: #17202a;
  background: #f8fafb;
  font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.hint {
  margin: 18px 0 0;
  font-size: 14px;
}

.status {
  margin-top: 18px;
  min-height: 24px;
  font-weight: 650;
}

.status.error {
  color: #a83232;
}

.status.success {
  color: #1d7044;
}

.hidden {
  display: none;
}

@media (max-width: 700px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .account {
    justify-content: flex-start;
  }

  .jobItem,
  .sectionHeader {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .sectionHeader {
    flex-direction: column;
  }

  .jobActions {
    justify-content: space-between;
  }
}
