:root {
  color-scheme: dark;
  --bg: #171717;
  --surface: #232323;
  --surface-2: #2a2a2a;
  --border: #3a3a3a;
  --text: #e7e2d8;
  --muted: #aaa39a;
  --blue: #5b97bd;
  --green: #6dc08d;
  --yellow: #d3b462;
  --red: #d48a8a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 18px;
}

.login-shell {
  padding-top: 18vh;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 680;
}

.topbar p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.sync-dot {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--green);
  font-size: 12px;
  line-height: 1;
}

.capture {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

label {
  color: var(--muted);
  font-size: 13px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #1b1b1b;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(91, 151, 189, 0.55);
  outline-offset: 1px;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #101417;
  font: inherit;
  font-weight: 680;
  font-size: 15px;
  line-height: 1;
  padding: 13px 14px;
  cursor: pointer;
}

.message {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
}

.login-error {
  color: var(--red);
}

.recent {
  margin-top: 22px;
}

.recent h2 {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 650;
  color: var(--muted);
}

#items {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.item {
  display: grid;
  gap: 4px;
  position: relative;
  padding: 11px 12px 11px 15px;
  min-height: 58px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
}

.item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--yellow);
}

.item:nth-child(2n)::before {
  background: var(--green);
}

.item:nth-child(3n)::before {
  background: var(--blue);
}

.item strong {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 620;
}

.item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.item small {
  color: var(--muted);
  font-size: 12px;
}

@media (min-width: 760px) {
  .shell {
    padding-top: 42px;
  }
}
