:root {
  color-scheme: dark;
  background: #101a16;
  color: #f3f6f2;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 100%;
  line-height: 1.5;
  --surface: #192721;
  --line: #3a4d42;
  --muted: #becdc3;
  --accent: #a6e4c5;
  --warning: #f9cf86;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body { margin: 0; min-width: 0; }

.shell {
  width: min(100%, 43rem);
  margin: 0 auto;
  padding: max(1.1rem, env(safe-area-inset-top)) 1rem max(2rem, env(safe-area-inset-bottom));
}

.topbar, .toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}

.topbar { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.toolbar { padding: 1rem 0 .8rem; }

h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.35rem, 5vw, 1.85rem); font-weight: 670; line-height: 1.2; }
h2 { font-size: 1.15rem; line-height: 1.3; }
.muted, .entry-meta { color: var(--muted); font-size: .875rem; }

button, input { font: inherit; }
button {
  border: 1px solid var(--line);
  border-radius: .6rem;
  min-height: 44px;
  padding: .5rem .85rem;
  cursor: pointer;
}
button:disabled { opacity: .6; cursor: default; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.quiet { color: var(--accent); background: var(--surface); }
.primary {
  color: #12221a;
  background: var(--accent);
  border-color: transparent;
  font-weight: 670;
}

.surface, .entry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .8rem;
}

.access { max-width: 25rem; margin: 1.25rem auto 0; padding: 1.15rem; }
.access h2 { margin-bottom: .95rem; }
.access a { color: var(--accent); display: inline-block; margin-top: .95rem; }
.access form { display: grid; gap: .6rem; }
input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: .55rem;
  padding: .5rem .65rem;
  background: #101a16;
  color: inherit;
}

.views { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; margin-top: .9rem; }
.views button { color: var(--muted); background: transparent; }
.views button[aria-pressed="true"] {
  background: #284336;
  border-color: #609578;
  color: #dbf7e9;
  font-weight: 650;
}

.feedback {
  margin-top: .8rem;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  color: var(--muted);
}
.feedback[data-error="true"] { color: var(--warning); }
.entry-list { list-style: none; display: grid; gap: .65rem; padding: 0; margin: .75rem 0 0; }
.entry { padding: .85rem 1rem; }
.entry-header { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .65rem; row-gap: .15rem; }
.entry-label { color: var(--accent); font-weight: 650; }
.entry-label[data-urgent="true"] { color: var(--warning); }
.entry-text { margin-top: .3rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.entry-meta { overflow-wrap: anywhere; }
.later { margin-top: 1.2rem; }
.more { width: 100%; margin-top: .8rem; }
