@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/instrument-sans-latin.woff2) format("woff2-variations");
}

/* ShadeSec brand: ink, slate, mint (from shadesec.com). */
:root {
  color-scheme: dark;
  --ink: #161e27;
  --slate: #404c5c;
  --mint: #93d2cc;
  --fg: #e4e4e7;
  --heading: #ffffff;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, 0.14);
  --field: #1c2631;
  --error: #f0a59c;
}
* { box-sizing: border-box; }
html { background: var(--ink); }
html, body { margin: 0; }
body {
  font: 16px/1.55 "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background: var(--ink);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 14vh 20px 40px;
}
::selection { background: var(--mint); color: var(--slate); }
main.card { width: 100%; max-width: 380px; }
main.wide { width: 100%; max-width: 1080px; }
body:has(main.wide) { padding-top: 40px; }
.logo { display: block; height: 34px; width: auto; margin: 0 0 40px; }
h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  font-weight: 600;
  color: var(--heading);
}
h1 em { font-style: normal; color: var(--mint); }
h2 { font-size: 20px; letter-spacing: -0.01em; font-weight: 600; color: var(--heading); margin: 40px 0 14px; }
p { margin: 0 0 14px; }
a { color: var(--mint); text-underline-offset: 3px; }
strong { color: var(--heading); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

button {
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
button:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.04); }
button:disabled { opacity: 0.55; cursor: default; }
button.primary {
  background: var(--mint);
  color: var(--ink);
  border-color: var(--mint);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
}
button.primary:hover:not(:disabled) { background: #a8ddd8; border-color: #a8ddd8; }
main.card button { width: 100%; }
main.card button.primary { padding: 14px 28px; }
button.link { border: 0; background: none; padding: 0; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
button.link:hover:not(:disabled) { background: none; color: var(--fg); }
button.danger { color: var(--error); border-color: rgba(240, 165, 156, 0.45); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

.picker { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 22px; }
.picker h2 { margin: 0 0 6px; font-size: 18px; }
.picker p { margin-bottom: 14px; }
.names { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
main.card .names button { padding: 11px 12px; font-size: 15px; }
.picker + details { margin-top: 22px; }
.status { min-height: 1.5em; margin: 16px 0; font-size: 15px; color: var(--muted); }
.status.ok { color: var(--mint); }
.status.error { color: var(--error); }

details { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
summary { cursor: pointer; color: var(--muted); }
summary:hover { color: var(--fg); }
details[open] summary { margin-bottom: 14px; }
form { display: grid; gap: 10px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
label.check { display: flex; gap: 8px; align-items: center; color: var(--fg); }
input[type="checkbox"] { accent-color: var(--mint); width: 16px; height: 16px; }
input[type="email"], input:not([type]), input[type="text"] {
  font: inherit;
  color: #fff;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
}
input:focus { border-color: var(--mint); outline: none; }

.bar { display: flex; justify-content: space-between; align-items: baseline; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { vertical-align: top; padding: 16px 10px; border-bottom: 1px solid var(--line); }
tr.off td { opacity: 0.55; }
.keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.keys .muted { font-size: 13px; }
.tag { font-size: 12px; color: var(--error); }
td.actions { display: grid; gap: 8px; justify-items: start; min-width: 190px; }
td.actions details { margin: 0; border: 0; padding: 0; }
td.actions form { min-width: 220px; }
form.add { grid-template-columns: 2fr 1fr 1fr auto auto; align-items: end; }
@media (max-width: 760px) {
  table, thead, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  td { border: 0; padding: 6px 0; }
  form.add { grid-template-columns: 1fr; }
}
