* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, sans-serif;
  background: #f5f6f8;
  color: #1a1a1a;
}
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px;
}
h1 {
  font-size: 22px;
  margin-bottom: 4px;
}
.subtitle {
  color: #666;
  margin-bottom: 24px;
}
.card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}
input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}
button {
  width: 100%;
  padding: 10px 12px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
button.secondary {
  background: transparent;
  color: #2563eb;
  border: 1px solid #2563eb;
}
button.small {
  width: auto;
  padding: 6px 10px;
  font-size: 12px;
  background: #ef4444;
}
.error {
  color: #dc2626;
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 16px;
}
.toggle-link {
  text-align: center;
  font-size: 13px;
  color: #2563eb;
  cursor: pointer;
  margin-top: 8px;
}
.total-banner {
  background: #2563eb;
  color: white;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.total-banner .amount {
  font-size: 32px;
  font-weight: 700;
}
.total-banner .label {
  font-size: 13px;
  opacity: 0.85;
}
.site-group {
  margin-bottom: 16px;
}
.site-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.site-link {
  color: inherit;
  text-decoration: none;
}
.site-link:hover {
  text-decoration: underline;
}
.threshold-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 2px;
}
.threshold-input {
  flex: 0 0 160px;
  padding: 6px 8px;
  margin-bottom: 0;
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.threshold-currency { font-size: 12px; color: #888; }
.progress-wrap { padding-bottom: 8px; }
.progress-bar {
  height: 8px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: #16a34a;
  border-radius: 999px;
  transition: width 0.2s ease;
}
.progress-label { font-size: 12px; color: #666; margin-top: 4px; }
.currency-select {
  padding: 5px 8px;
  margin-bottom: 8px;
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
}
.item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.item-row img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
}
.item-title {
  flex: 1;
  font-size: 14px;
}
.item-title a {
  color: inherit;
  text-decoration: none;
}
.item-price {
  font-weight: 600;
  font-size: 14px;
}
.logout {
  float: right;
  width: auto;
  padding: 6px 12px;
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
}
.empty-state {
  text-align: center;
  color: #888;
  padding: 40px 0;
}
