* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f7f5f2;
  color: #2c2c2c;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px;
}

.container.narrow {
  max-width: 480px;
}

header h1,
h1 {
  margin-top: 0;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cfcfcf;
  margin-top: 6px;
  font-size: 1rem;
}

button,
.button {
  display: inline-block;
  background: #5a4b81;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}

button.secondary,
.secondary {
  background: #b9b1c6;
  color: #2c2c2c;
}

.notice {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.notice.error {
  background: #ffe1e1;
  color: #8a1f1f;
}

.notice.success {
  background: #e3f6e8;
  color: #21663a;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-list li {
  padding: 12px 0;
  border-bottom: 1px solid #ececec;
}

.comment-list li:last-child {
  border-bottom: none;
}

.timestamp {
  display: block;
  font-size: 0.85rem;
  color: #666;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.photo-card {
  background: #fafafa;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.photo-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.file-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.admin-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  margin-top: 6px;
}
