:root {
  --ink: #1c2b26;
  --muted: #5c6f68;
  --line: #d9e2dc;
  --accent: #15493a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fbfdf9;
}
main {
  width: min(720px, 100% - 32px);
  margin: 0 auto;
  padding: 24px 0 64px;
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h1 { font-size: 1.4rem; margin: 0; }
.actions { display: flex; gap: 8px; }
button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--accent);
  font-weight: 650;
  cursor: pointer;
}
button:hover { border-color: var(--accent); }
.notice { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f2f7ef; }
.meta { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 2px;
  border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; }
.row strong { font-size: 1.1rem; }
.empty { padding: 32px 0; }
.add-form { display: flex; gap: 8px; margin: 14px 0 0; }
.add-form input {
  flex: 1;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
.word-name {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--ink);
  text-align: left;
}
.word-name:hover { color: var(--accent); text-decoration: underline; }
.rename-input { font-size: 1.05rem; padding: 4px 8px; border: 1px solid var(--accent); border-radius: 8px; font: inherit; }
.row-delete {
  min-height: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  border-radius: 8px;
}
.row-delete:hover { color: #b3372f; background: #f6eeec; }
@media (max-width: 760px) {
  .row { flex-direction: column; gap: 2px; }
  .row-delete { position: absolute; right: 0; top: 8px; }
  .row { position: relative; padding-right: 36px; }
}
