/* Keys for online services in Settings (js/keys.js, local-keys.md LK8). Only a reader
   running on this computer, with its ask service, shows them. */
.keys-where { margin: 0 0 0.9rem; }
.key-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.key-card {
  padding: 0.9rem 1rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--card);
}
.key-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.key-name { font-weight: 600; font-size: 1rem; }
.key-state {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 55%, transparent);
  color: var(--muted);
}
.key-state::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.key-state.set { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.key-state.elsewhere { background: var(--reading); color: var(--ink); }
.key-uses, .key-note { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.85rem; line-height: 1.4; }
#settings .key-label { display: block; margin: 0.8rem 0 0.35rem; font-weight: 600; font-size: 0.9rem; }
.key-row { display: flex; gap: 0.5rem; }
.key-row input {
  flex: 1; min-width: 0; min-height: 44px;
  padding: 0.5rem 0.75rem;
  font: inherit; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.95rem; letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}
.key-row input::placeholder { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; color: var(--muted); }
.key-row button { flex: none; }
.key-error { margin: 0.4rem 0 0; color: color-mix(in srgb, #d0453a 75%, var(--ink)); font-size: 0.85rem; }
.key-error:empty { display: none; }
.key-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.45rem; font-size: 0.88rem; }
.key-foot a { color: var(--accent); }
.key-foot button.link {
  min-height: 36px; padding: 0.25rem 0;
  border: 0; background: none;
  font-size: 0.88rem; color: var(--muted); text-decoration: underline;
}
.key-foot button.link:hover { color: var(--ink); }
.key-sure { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.key-sure button { min-height: 36px; padding: 0.25rem 0.85rem; font-size: 0.88rem; }
.keys-said { margin: 0.7rem 0 0; color: var(--accent); font-size: 0.88rem; font-weight: 600; }
.keys-said:empty { display: none; }
.keys-said::before { content: "✓ "; }
@media (max-width: 30rem) {
  .key-row { flex-direction: column; }
}
