:root {
  --bg: #f3f5fb;
  --card: #ffffff;
  --line: #e5e9f3;
  --text: #101321;
  --muted: #5a6378;
  --accent: #0a66ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 500px at 10% -10%, #eaf1ff 0%, transparent 55%), var(--bg);
}

.shell {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 14px 30px;
}

h1 {
  margin: 2px 0 6px;
  letter-spacing: -0.02em;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #dbe3f3;
  background: #fff;
}

.sub {
  color: var(--muted);
  margin: 0 0 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-top: 12px;
  box-shadow: 0 10px 24px rgba(16, 19, 33, 0.05);
}

label {
  display: block;
  margin: 10px 0 6px;
  font-size: 14px;
  color: var(--muted);
}

.big-upload {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  border: 2px dashed #b9c6e6;
  border-radius: 14px;
  background: #f8fbff;
  color: #24416f;
  font-size: 18px;
  font-weight: 600;
}

#photo {
  position: absolute;
  left: -9999px;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.thumb-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #d9e1f2;
}

.public-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.filters-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}

.filters-row select,
.filters-row input,
.filters-row button {
  margin: 0;
}

.public-item {
  position: relative;
  cursor: pointer;
}

.public-item img {
  aspect-ratio: 1 / 1;
}

.public-item .chip {
  position: absolute;
  left: 4px;
  bottom: 4px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 999px;
}

input, select, textarea, button {
  width: 100%;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid #d8dfed;
  padding: 11px;
  box-sizing: border-box;
  background: #fff;
}

.phone-label {
  margin-top: 14px;
  font-weight: 600;
  color: #24334f;
}

.phone-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #c7d6f7;
  border-radius: 12px;
  background: #f8fbff;
  overflow: hidden;
}

.phone-prefix {
  padding: 11px 10px;
  border-right: 1px solid #d6e1fa;
  color: #1f3f76;
  font-weight: 600;
  white-space: nowrap;
}

.phone-wrap input {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding-left: 10px;
}

textarea { resize: vertical; }

button {
  margin-top: 12px;
  background: var(--accent);
  color: #fff;
  border: 0;
  font-weight: 600;
}

button:disabled { opacity: 0.7; }

.hidden, [hidden] { display: none !important; }

.issue, .officer {
  border: 1px solid #e9edf7;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 9px;
  background: #fbfcff;
}

.muted { color: var(--muted); font-size: 13px; }

.pulse {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8ebf5, #d5dcf5, #e8ebf5);
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.45; }
  50% { opacity: 1; }
  100% { opacity: 0.45; }
}

a { display: inline-block; margin-top: 10px; color: #0a66ff; text-decoration: none; font-weight: 600; }

@media (max-width: 640px) {
  .shell { padding: 12px 10px 24px; }
  .card { border-radius: 12px; padding: 12px; }
  #map { height: 300px !important; }
  .big-upload { height: 96px; font-size: 16px; }
  .thumb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .public-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filters-row { grid-template-columns: 1fr; }
  .brand img { width: 60px; height: 60px; }
}
