/* Suggestion Box — system fonts only, so the page makes no third-party requests. */
:root {
  --bg: #eef1ef;
  --surface: #ffffff;
  --fg: #18201d;
  --muted: #5c6862;
  --line: #d5dcd8;
  --accent: #1f5f73;
  --accent-ink: #ffffff;
  --danger: #a3332b;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121715; --surface: #1a211e; --fg: #e5ebe8; --muted: #93a19a;
    --line: #2c3632; --accent: #6fb6cc; --accent-ink: #0d1a1f; --danger: #ec8a80;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  padding: 40px 16px 64px;
}
.wrap { max-width: 680px; margin: 0 auto; display: grid; gap: 28px; }

header { display: grid; gap: 8px; }
.eyebrow { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
h1 { font-weight: 700; font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
header p { margin: 0; color: var(--muted); max-width: 52ch; }

.slip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  display: grid;
  gap: 12px;
}
.slip.narrow { max-width: 420px; }
.label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
textarea, input[type="password"] {
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
}
textarea { min-height: 160px; resize: vertical; }
textarea:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.count { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.count.over { color: var(--danger); }

button {
  font: inherit; font-weight: 600;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 6px; padding: 10px 22px; cursor: pointer;
}
button:hover { filter: brightness(1.08); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 6px 14px; font-weight: 500; }
button.ghost:hover { color: var(--fg); filter: none; }
button.small { font-size: .8rem; padding: 4px 10px; }
li button.small:hover { color: var(--danger); border-color: var(--danger); }

.status { margin: 0; font-size: .9rem; }
.status.ok { color: var(--accent); }
.status.err { color: var(--danger); }

.anon { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--muted); margin: 0; }
.anon svg { flex: none; margin-top: 3px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

a.switch { color: var(--accent); font-weight: 500; font-size: .9rem; text-decoration: none; }
a.switch:hover { text-decoration: underline; }

.log-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.actions { display: flex; align-items: center; gap: 16px; }
.actions form { margin: 0; }
.tally { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.log { display: grid; gap: 0; }
.log > .status { padding-top: 12px; }
ol.entries { list-style: none; margin: 0; padding: 0; }
ol.entries li {
  display: grid;
  grid-template-columns: 9.5rem 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
ol.entries li form { margin: 0; }
.stamp { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); line-height: 1.5; font-variant-numeric: tabular-nums; }
.stamp .d { color: var(--fg); font-weight: 500; display: block; }
.text { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.note { padding: 12px 0; color: var(--muted); }
.note strong { color: var(--fg); display: block; margin-bottom: 4px; font-weight: 600; }

@media (max-width: 560px) {
  ol.entries li { grid-template-columns: 1fr auto; gap: 6px 12px; }
  ol.entries li .stamp { grid-column: 1; }
  ol.entries li .text { grid-column: 1 / -1; grid-row: 2; }
  ol.entries li form { grid-column: 2; grid-row: 1; }
  .stamp .d { display: inline; margin-right: 8px; }
}
