:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    sans-serif;
  color: #172338;
  background: #f3f5f8;
  font-size: 14px;
  font-synthesis: none;
  --accent: #146b66;
  --muted: #64748b;
  --line: #dce3eb;
  --dark: #142c35;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #cdd7e1;
  background: white;
  color: #24384c;
  padding: 9px 14px;
  border-radius: 7px;
  font-weight: 600;
  transition: background 0.12s;
}
button:hover {
  background: #e8f0f2;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.primary:hover {
  background: #105650;
}
.danger {
  color: #a12035;
}
.quiet {
  background: transparent;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd9e2;
  border-radius: 6px;
  background: white;
  padding: 10px;
  color: #132835;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  margin: 12px 0;
}
label small {
  font-weight: 400;
  color: var(--muted);
}
label.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}
label.checkbox input {
  width: auto;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
  margin-bottom: 0;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.25px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.55;
  color: var(--muted);
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 750;
  font-size: 17px;
  letter-spacing: -0.65px;
}
.mark {
  display: grid;
  place-items: center;
  background: #2a9389;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  letter-spacing: -1px;
}
.accent {
  color: #8bd4cd;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #103138, #215b59);
}
.login .card {
  width: min(420px, 92vw);
  padding: 35px;
}
.login h1 {
  margin-top: 35px;
}
.login button {
  width: 100%;
  margin-top: 10px;
}
#app:not([hidden]) {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  background: var(--dark);
  color: #edf5f7;
  padding: 24px 17px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  position: sticky;
  top: 0;
  height: 100vh;
}
aside nav {
  display: grid;
  gap: 6px;
}
aside button {
  border: 0;
  text-align: left;
  background: transparent;
  color: #c6d6df;
}
aside button:hover,
aside button.selected {
  background: #2d4e55;
  color: #fff;
}
aside .sidebar-foot {
  display: grid;
  gap: 10px;
  margin-top: auto;
  color: #b7cbd1;
  font-size: 12px;
}
aside select {
  background: #284b52;
  color: white;
  border-color: #46666b;
}
main {
  padding: 30px 36px;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 5px;
}
.card {
  border-radius: 12px;
  background: white;
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: 0 2px 5px #15283c06;
  margin-bottom: 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.metric {
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 700;
  margin-top: 10px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.section-head,
.actions,
.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.section-head {
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0;
}
.toolbar {
  margin-bottom: 15px;
}
.toolbar input {
  flex: 1;
  min-width: 140px;
}
.toolbar select {
  width: auto;
}
.actions {
  margin-top: 12px;
}
.status {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 20px;
  background: #edf2f7;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.status.completed,
.status.complete,
.status.ready,
.status.recording {
  color: #126348;
  background: #dcf5e9;
}
.status.failed,
.status.uncertain,
.status.partial {
  color: #9b3444;
  background: #fae7e9;
}
.status.queued,
.status.waiting_admission,
.status.login_active {
  color: #886313;
  background: #fff3cf;
}
.row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.row:last-child {
  border: 0;
}
.row strong {
  display: block;
  margin-bottom: 4px;
}
.row > div:first-child {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.clickable {
  cursor: pointer;
}
.clickable:hover {
  background: #f5f8f8;
}
.empty {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}
.error {
  color: #a12035;
  white-space: pre-wrap;
}
.notice {
  padding: 12px 14px;
  border: 1px solid #b6decf;
  color: #176457;
  background: #ecfaf4;
  border-radius: 8px;
  margin-bottom: 15px;
}
.notice.error {
  color: #a12035;
  background: #fff0f0;
  border-color: #f2c2c2;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 15px 70px #0003;
  padding: 24px;
  max-width: min(620px, 95vw);
  width: 100%;
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #122c4280;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-head h2 {
  margin: 0;
}
dialog .actions {
  justify-content: flex-end;
}
.credentials-hint {
  margin-top: 16px;
}
.credential-value {
  min-height: 60px;
  resize: none;
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
  background: #f6f8fa;
}
#credentials-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--accent);
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f6f8fa;
  border-radius: 6px;
  padding: 12px;
  font-size: 12px;
}
audio {
  width: 100%;
  margin-top: 10px;
}
details {
  margin: 10px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.transcript-line {
  display: grid;
  grid-template-columns: 75px 130px 1fr;
  gap: 12px;
  padding: 9px;
  border-bottom: 1px solid var(--line);
}
.transcript-line span:first-child {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.transcript-line span:nth-child(2) {
  font-weight: 600;
}
a {
  color: var(--accent);
  font-weight: 600;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.code {
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
}
#login[hidden] {
  display: none;
}
@media (max-width: 800px) {
  #app:not([hidden]) {
    grid-template-columns: 1fr;
  }
  aside {
    height: auto;
    position: static;
    gap: 12px;
    padding: 16px;
  }
  aside nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
  }
  aside nav button {
    padding: 8px 5px;
    font-size: 12px;
    text-align: center;
  }
  aside .sidebar-foot {
    display: flex;
    align-items: center;
  }
  aside select {
    max-width: 180px;
  }
  main {
    padding: 20px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .transcript-line {
    grid-template-columns: 55px 90px 1fr;
    gap: 6px;
    font-size: 12px;
  }
}
