* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #f3f4f6;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.app {
  background: #ffffff;
  padding: 20px;
  width: 100%;
  max-width: 360px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

h1 {
  margin-bottom: 16px;
  text-align: center;
}

.input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.input-row input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  outline: none;
  font-size: 16px;
}

.input-row input:focus {
  border-color: #2563eb;
}

button {
  border: none;
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  opacity: 0.95;
}

button:active {
  transform: scale(0.98);
}

.primary {
  width: 100%;
  margin-top: 12px;
  background: #2563eb;
  color: white;
}

#itemList {
  list-style: none;
  margin-top: 10px;
}

#itemList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  background: #f9fafb;
  margin-bottom: 6px;
  font-size: 14px;
}

#itemList li span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.remove-btn {
  margin-left: 8px;
  background: #ef4444;
  color: white;
  min-width: 44px;
  padding: 8px;
  font-size: 14px;
}

.status {
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
  min-height: 16px;
}

.logo-container {
    width: 100%;
    justify-content: center;
    display: flex;
}

.logo {
    width: 6rem;
}

@media (max-width: 340px) {
  .input-row {
    flex-direction: column;
  }

  .input-row button {
    width: 100%;
  }
}
