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

body {
  margin: 0;
  min-width: 360px;
  background: #111827;
  color: #f9fafb;
}

.app {
  padding: 16px;
}

.hero {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.hero__icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  object-fit: contain;
  border-radius: 10px;
}

.hero h2,
.hero h3,
.section__header h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}

.section__header h3 {
  font-size: 12px;
  font-weight: 600;
}

.hero p {
  margin: 4px 0 0;
}

.section {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.actions-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
}

.primary {
  background: #7c3aed;
  color: white;
  width: 100%;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

button:disabled {
  cursor: default;
  opacity: 0.45;
}

.primary:disabled {
  background: rgba(124, 58, 237, 0.3);
  color: rgba(255, 255, 255, 0.72);
}

.text-button {
  background: transparent;
  color: #c4b5fd;
  padding: 0;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 10px;
}

.history-item__meta {
  min-width: 0;
}

.history-item__title {
  font-weight: 600;
  font-size: 11px;
  line-height: 1.25;
  word-break: break-word;
}

.muted {
  color: #cbd5e1;
  font-size: 12px;
}

.history-item__detail,
.empty-state {
  color: #cbd5e1;
  font-size: 12px;
}

.history-item__action {
  white-space: nowrap;
  background: rgba(124, 58, 237, 0.18);
  color: #ddd6fe;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  padding: 8px 10px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.footer .text-button {
  font-size: 11px;
}

.empty-state {
  padding: 8px 0;
}
