:root {
  color-scheme: light dark;
  --bg: #fff;
  --fg: #16181d;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2b6cb0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --fg: #e8eaed;
    --muted: #9aa1ac;
    --line: #2a2e35;
    --accent: #7aa7d9;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2rem clamp(1rem, 5vw, 3rem);
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

h1 { font-size: 1.15rem; font-weight: 600; margin: 0; letter-spacing: -0.01em; }

.muted { color: var(--muted); }

pre {
  background: color-mix(in srgb, var(--fg) 4%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 13px;
}

button {
  font: inherit;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
button:hover { opacity: 0.9; }

/* ---- feedback inbox ---------------------------------------------------- */
.head-right { display: flex; align-items: center; gap: 16px; }
.tabs { display: flex; gap: 4px; }
.tabs button {
  border: 1px solid #d1d5db; background: #fff; color: #374151;
  padding: 5px 12px; border-radius: 999px; font-size: 13px; cursor: pointer;
}
.tabs button.on { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.chip {
  border: 1px solid #e5e7eb; background: #fff; color: #4b5563;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; cursor: pointer;
}
.chip.on { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }

.list { display: flex; flex-direction: column; gap: 14px; }
.card {
  border: 1px solid #e5e7eb; border-radius: 12px; background: #fff;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
}
.card.flash { box-shadow: 0 0 0 3px #93c5fd; }
.card-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: #6b7280; }
.kind {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 8px; border-radius: 999px; background: #f3f4f6; color: #374151;
}
.kind-bug { background: #fef2f2; color: #b91c1c; }
.kind-idea { background: #eff6ff; color: #1d4ed8; }
.kind-question { background: #f5f3ff; color: #6d28d9; }
.card-hd .app { font-weight: 600; color: #111827; }
.card-hd .when { margin-left: auto; }
.warn { font-size: 11px; font-weight: 600; color: #92400e; background: #fef3c7; padding: 2px 6px; border-radius: 999px; }
.card .msg { font-size: 15px; line-height: 1.55; white-space: pre-wrap; color: #111827; }
.card .meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #6b7280; }
.card .meta a { color: #2563eb; }
.linkish { border: 0; background: none; padding: 0; color: #2563eb; font-size: 12px; cursor: pointer; text-decoration: underline; }
.card .shot { max-width: 100%; border: 1px solid #e5e7eb; border-radius: 8px; }
.card .errors {
  background: #fef2f2; color: #991b1b; font-size: 11px; padding: 10px;
  border-radius: 8px; overflow-x: auto; white-space: pre-wrap; margin: 0;
}
.actions { display: flex; gap: 8px; }
.actions button {
  border: 0; border-radius: 8px; background: #2563eb; color: #fff;
  padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.actions button.ghost { background: #f3f4f6; color: #374151; }
.actions button:disabled { opacity: .5; }

/* The UA stylesheet's `[hidden] { display: none }` loses to any rule that sets display —
   `.tabs { display: flex }` was enough to make the signed-out gate render its nav. Anything
   toggled with the hidden attribute needs this, so it is stated once, globally. */
[hidden] { display: none !important; }
