* { box-sizing: border-box; }
body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: #f4f6fb;
  color: #1c2230;
  padding-bottom: 72px;
}
.container { max-width: 480px; margin: 0 auto; padding: 1rem; }
.login-container { max-width: 320px; margin: 3rem auto; text-align: center; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2f5fb3;
  color: white;
  padding: 0.75rem 1rem;
}
.topbar .brand { font-weight: bold; font-size: 1.1rem; }
.topbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.topbar a, .topbar button, .lang-switch {
  color: white;
  text-decoration: none;
  background: none;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
}

h1 { font-size: 1.3rem; }
h2 { font-size: 1.05rem; margin-top: 1.5rem; }

.card {
  background: white;
  border: 1px solid #dde3f0;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.card label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; }
.card input, .card select, input, select, button {
  font-size: 1rem;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #c7cede;
  min-height: 2.5rem;
}
.big-btn, button[type="submit"] {
  background: #2f5fb3;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
.inline { display: inline; }
.error { color: #b3261e; font-weight: bold; }
.badge { background: #e3ecff; color: #2f5fb3; padding: 0.1rem 0.5rem; border-radius: 6px; font-size: 0.8rem; margin-inline-start: 0.4rem; }
.badge-low { background: #fde3e3; color: #b3261e; }

.draft-photo { max-width: 100%; border-radius: 8px; }

.location-list, .item-list, .result-list { list-style: none; padding: 0; margin: 0; }
.location-list li, .result-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.item-list li {
  background: white;
  border: 1px solid #dde3f0;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.5rem;
}
.inline-weigh { display: flex; gap: 0.5rem; margin-top: 0.4rem; }

.bottom-nav {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  display: flex;
  background: white;
  border-top: 1px solid #dde3f0;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.6rem 0;
  color: #1c2230;
  text-decoration: none;
  font-size: 0.8rem;
  min-height: 56px;
}
.nav-item.active { color: #2f5fb3; font-weight: bold; }
.nav-icon { font-size: 1.4rem; }

@media (min-width: 900px) {
  .container { max-width: 900px; }
  .card { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
  .card label { flex: 1 1 160px; }
}
