:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #6b6862;
  --line: #e7e4df;
  --accent: #2563eb;
  --accent-hover: #1d4fd8;
  --ok: #15803d;
  --error: #b91c1c;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, .mark { font-family: 'Outfit', system-ui, sans-serif; }

.top {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 32px;
}

.mark { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }

.tag {
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 500 12px/1.4 'DM Sans', sans-serif;
  color: var(--muted);
  vertical-align: 2px;
}

.layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 32px 96px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 72px;
  align-items: start;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lede { margin: 0 0 40px; max-width: 46ch; color: var(--muted); font-size: 18px; }

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

label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }

input, textarea {
  width: 100%;
  margin-bottom: 20px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: inherit;
  font: inherit;
  resize: vertical;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.15);
  background: var(--surface);
}

.row { display: flex; align-items: center; gap: 16px; }

button {
  padding: 10px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: 500 15px/1.4 'DM Sans', sans-serif;
  cursor: pointer;
}
button:hover { background: var(--accent-hover); }
button:disabled { opacity: 0.6; cursor: default; }

.status { margin: 0; font-size: 14px; color: var(--muted); }
.status.ok { color: var(--ok); }
.status.error { color: var(--error); }

.entries { padding-top: 12px; }

h2 {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.count {
  margin-left: 4px;
  font-family: 'DM Sans', sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

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

.list li { padding: 16px 0; border-top: 1px solid var(--line); }
.list li:last-child { border-bottom: 1px solid var(--line); }

.entry-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.entry-head strong { font-weight: 500; }
.entry-head time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.list p { margin: 0; overflow-wrap: anywhere; }

.empty { color: var(--muted); font-size: 15px; }

@media (max-width: 800px) {
  .top { padding: 20px; }
  .layout { grid-template-columns: 1fr; gap: 48px; padding: 16px 20px 64px; }
}
