body {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  background: #f4f6f8;
  color: #1f2937;
}

.app {
  min-height: 100vh;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
  margin: 0 auto;
}

h1 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  line-height: 1.25;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
}

h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

#parking-form {
  display: grid;
  gap: 8px;
}

.place-combobox {
  position: relative;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
}

select,
input {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.95rem;
}

#parking-place-manual {
  padding-right: 36px;
}

#clear-place-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #6b7280;
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 16px;
  line-height: 24px;
  border-radius: 999px;
}

#clear-place-button:active {
  background: #f3f4f6;
}

#save-parking-button {
  border: none;
  border-radius: 12px;
  background: #0f766e;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  min-height: 48px;
  width: 100%;
  cursor: pointer;
}

#save-parking-button:active {
  opacity: 0.9;
}

.place-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 8px 16px rgba(17, 24, 39, 0.12);
}

.dropdown-option,
.dropdown-empty {
  padding: 10px 12px;
  font-size: 0.92rem;
  line-height: 1.3;
}

.dropdown-option {
  cursor: pointer;
}

.dropdown-option:active {
  background: #f3f4f6;
}

.dropdown-empty {
  color: #6b7280;
}

#record-empty-text {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.record-scroll {
  margin-top: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#parking-record-list {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.record-item {
  display: grid;
  grid-template-columns: minmax(6ch, max-content) minmax(8ch, max-content) minmax(5ch, max-content) minmax(10ch, max-content);
  gap: 4px;
  align-items: center;
  padding: 4px 0;
  width: max-content;
  min-width: 100%;
}

.record-col {
  font-size: 0.86rem;
  line-height: 1.35;
  white-space: nowrap;
}

.record-col.level,
.record-col.zone {
  text-align: center;
}

.record-col.time {
  text-align: right;
  color: #4b5563;
}

@media (min-width: 768px) {
  .app {
    padding-top: 40px;
  }
}
