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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button {
  min-height: 38px;
  border: 1px solid #1c4ed8;
  border-radius: 6px;
  background: #1c4ed8;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  border-color: #b6c0cc;
  background: #dce2ea;
  color: #637083;
  cursor: not-allowed;
}

input {
  min-height: 38px;
  min-width: 0;
  border: 1px solid #b8c2cf;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
}

h1,
h2,
p {
  margin: 0;
}

.app-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.auth-view {
  display: grid;
  min-height: calc(100vh - 56px);
  place-items: center;
}

.auth-form {
  display: grid;
  width: min(360px, 100%);
  gap: 10px;
  padding: 24px 0;
}

.workspace {
  display: grid;
  gap: 22px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #d8dee8;
}

.status-text,
.muted-text {
  color: #5f6f82;
  font-size: 13px;
}

.tabs {
  display: flex;
  gap: 6px;
}

.tab-button,
.secondary-button {
  border-color: #b8c2cf;
  background: #fff;
  color: #202833;
}

.tab-button[aria-current="page"] {
  border-color: #1c4ed8;
  color: #1c4ed8;
}

.danger-button {
  border-color: #b42318;
  background: #b42318;
}

.content-grid,
.calls-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.35fr);
  gap: 24px;
  align-items: start;
}

.tool-panel,
.records-panel,
.detail-panel,
.transcript-panel {
  display: grid;
  gap: 14px;
}

.command-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 86px 104px;
  gap: 8px;
}

.section-heading {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.transcript-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.transcript-list li {
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  line-height: 1.55;
}

.transcript-meta {
  display: block;
  margin-bottom: 4px;
  color: #637083;
  font-size: 12px;
  font-weight: 700;
}

.records-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.records-table th,
.records-table td {
  border-bottom: 1px solid #d8dee8;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.records-table tbody tr {
  cursor: pointer;
}

.records-table tbody tr:hover,
.records-table tbody tr.is-selected {
  background: #eaf1ff;
}

#recordingPlayer {
  width: 100%;
}

.error-text {
  min-height: 20px;
  color: #b42318;
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .topbar,
  .content-grid,
  .calls-layout,
  .command-row {
    grid-template-columns: 1fr;
  }
}
