* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

.header h1 {
  margin: 0;
  font-size: 24px;
}

.header p {
  margin: 8px 0 16px;
  color: #6b7280;
  font-size: 14px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.card + .card {
  margin-top: 12px;
}

.notice {
  font-size: 14px;
  line-height: 1.6;
}

.notice.error {
  border-left: 4px solid #ef4444;
  color: #991b1b;
}

.notice.info {
  border-left: 4px solid #3b82f6;
  color: #1e40af;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-title-row h2 {
  margin: 0;
  font-size: 18px;
}

.btn {
  border: none;
  border-radius: 8px;
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.btn-primary {
  background: #07c160;
  color: #fff;
}

.device-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.device-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
}

.device-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.device-balance {
  color: #6b7280;
  font-size: 14px;
}

.loading {
  margin-top: 12px;
  color: #6b7280;
  font-size: 14px;
}

.hidden {
  display: none;
}

.result-wrap {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.result-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  padding: 24px;
  text-align: center;
}

.result-card h1 {
  margin: 0 0 10px;
  font-size: 24px;
}

.result-card p {
  margin: 0 0 20px;
  color: #6b7280;
}
