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

body {
  margin: 0;
}

.topbar {
  align-items: center;
  border-bottom: 1px solid #deded8;
  display: flex;
  height: 64px;
  justify-content: space-between;
  padding: 0 24px;
}

.brand {
  color: #17201b;
  font-weight: 700;
  text-decoration: none;
}

.container {
  margin: 0 auto;
  max-width: 1040px;
  padding: 32px 20px 64px;
}

.hero {
  max-width: 560px;
  padding-top: 80px;
}

h1 {
  font-size: 36px;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0 0 12px;
}

h2 {
  font-size: 18px;
  margin: 0 0 12px;
}

p {
  color: #58605b;
  line-height: 1.6;
}

button,
.button {
  background: #193b2d;
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 650;
  min-height: 40px;
  padding: 0 16px;
  place-items: center;
  text-decoration: none;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

button.is-loading .spinner,
button:disabled .spinner {
  display: inline-block;
}

.spinner {
  animation: spin 0.8s linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  border-top-color: white;
  display: none;
  height: 14px;
  margin-right: 8px;
  width: 14px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.ghost {
  background: transparent;
  border: 1px solid #c8cac2;
  color: #17201b;
}

.panel {
  align-items: center;
  background: white;
  border: 1px solid #deded8;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}

.sync-form {
  align-items: end;
  display: flex;
  gap: 12px;
}

label {
  color: #58605b;
  display: grid;
  font-size: 13px;
  gap: 6px;
}

.hint {
  color: #747b76;
  display: block;
  font-size: 12px;
  line-height: 1.35;
  max-width: 320px;
}

input {
  border: 1px solid #c8cac2;
  border-radius: 8px;
  font: inherit;
  height: 38px;
  padding: 0 10px;
  width: 96px;
}

.section {
  margin-top: 28px;
}

.notice {
  background: #edf5ee;
  border: 1px solid #cddfce;
  border-radius: 8px;
  color: #214431;
  margin: 14px 0 0;
  padding: 12px 16px;
}

.notice.warning {
  background: #fff7e6;
  border-color: #ead39a;
  color: #634515;
}

.table {
  background: white;
  border: 1px solid #deded8;
  border-radius: 8px;
}

.row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 12px 16px;
}

.row + .row {
  border-top: 1px solid #eeeeea;
}

.memory-list {
  display: grid;
  gap: 10px;
}

.memory-item {
  background: white;
  border: 1px solid #deded8;
  border-radius: 8px;
  color: #17201b;
  display: grid;
  gap: 6px;
  padding: 16px;
  text-decoration: none;
}

.memory-item span {
  color: #58605b;
  line-height: 1.4;
}

.memory-item small,
.muted {
  color: #747b76;
}

.empty {
  border: 1px dashed #b8bbb2;
  border-radius: 8px;
  padding: 32px;
}

.memory-detail {
  background: white;
  border: 1px solid #deded8;
  border-radius: 8px;
  padding: 24px;
}

.back {
  color: #193b2d;
  display: inline-block;
  margin-bottom: 20px;
}

.notes,
.raw {
  background: #f3f3ef;
  border-radius: 8px;
  overflow: auto;
  padding: 16px;
  white-space: pre-wrap;
}

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

.segment {
  border-left: 3px solid #c8cac2;
  padding-left: 12px;
}

.speaker {
  color: #58605b;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.text {
  line-height: 1.55;
}

.error {
  color: #a22;
  margin: 0;
  padding: 0 16px 12px;
}

@media (max-width: 720px) {
  .panel,
  .sync-form {
    align-items: stretch;
    flex-direction: column;
  }

  .row {
    grid-template-columns: 1fr;
  }
}
