:root {
  --paper: #F5F3EC;
  --ink: #16211B;
  --accent: #2F5D46;
  --stone: #5C6259;
  --line: #D8DCCF;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem;
}

h1 {
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
}

p { color: var(--stone); }

label {
  display: block;
  font-weight: 600;
  margin: 1.1rem 0 0.35rem;
}

input[type="text"],
input[type="password"],
input[type="file"],
textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}

textarea { resize: vertical; min-height: 5rem; }

.hint {
  font-size: 0.85rem;
  color: var(--stone);
  margin-top: 0.25rem;
}

button, .btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.65rem 1.3rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

button:hover, .btn:hover { opacity: 0.9; }

button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

button.danger {
  background: #a13a3a;
}

.link-btn {
  background: none;
  border: none;
  color: var(--stone);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  margin: 0;
  padding: 0;
}

.error-msg {
  background: #fbeaea;
  border: 1px solid #e3b3b3;
  color: #7a2b2b;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.notice-msg {
  background: #eaf3ee;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.submission {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  display: flex;
  gap: 1rem;
}

.submission img, .submission video {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--line);
}

.submission-meta { flex: 1; min-width: 0; }
.submission-meta .contributor { font-weight: 600; }
.submission-meta .meta-line { color: var(--stone); font-size: 0.85rem; }
.submission-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.submission-actions form { margin: 0; }
.submission-actions button { margin-top: 0.75rem; }

.empty-state {
  text-align: center;
  color: var(--stone);
  padding: 3rem 1rem;
}

.inline-form { margin: 0; }

.lang-switch {
  font-size: 0.85rem;
  color: var(--stone);
  margin-bottom: 1.25rem;
}
.lang-switch a { color: var(--accent); text-decoration: none; }
.lang-switch a:hover { text-decoration: underline; }
.lang-switch strong { color: var(--ink); }
