:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #1a1a18;
  --muted: #6f6f68;
  --line: #e4e4de;
  --accent: #2f6f4f;
  --danger: #b4453a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 15, .04), 0 8px 24px rgba(20, 20, 15, .05);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 56px 20px 80px;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 620px; margin: 0 auto; }

.hero { margin-bottom: 28px; }

.hero h1 {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.sub { margin: 0 0 10px; color: var(--muted); font-size: 14px; }

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

.dot { margin: 0 7px; opacity: .45; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.compose { padding: 18px; margin-bottom: 26px; }

input, textarea, button {
  font: inherit;
  color: inherit;
}

input, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fdfdfb;
  transition: border-color .15s, box-shadow .15s;
}

textarea { margin-top: 10px; resize: vertical; min-height: 76px; }

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 79, .1);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.hint { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

button {
  padding: 8px 20px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-weight: 550;
  cursor: pointer;
  transition: filter .15s, opacity .15s;
}

button:hover { filter: brightness(1.06); }
button:active { filter: brightness(.94); }
button:disabled { opacity: .5; cursor: default; }

.msg { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.msg.err { color: var(--danger); }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.item {
  padding: 15px 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: in .22s ease-out;
}

@keyframes in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.item .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.item .who { font-weight: 600; font-size: 14px; }
.item .when { color: var(--muted); font-size: 12px; white-space: nowrap; }
.item .text { margin: 0; white-space: pre-wrap; word-break: break-word; }

.empty { color: var(--muted); text-align: center; padding: 30px 0; font-size: 14px; }

.foot {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.foot a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--line); }
.foot a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 480px) {
  body { padding: 32px 14px 60px; }
  .hero h1 { font-size: 25px; }
}
