:root {
  --bg: #f4f6fa; --card: #fff; --text: #1a2233; --muted: #5d6b82; --line: #dde3ec;
  --accent: #1f5fbf; --accent-text: #fff; --err: #b3261e; --tag: #eef1f6; --test: #fff3cd;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11151c; --card: #1a2029; --text: #e6ebf2; --muted: #9aa7ba; --line: #2b3440;
    --accent: #5b9bff; --accent-text: #0b1220; --err: #ff8a80; --tag: #26303d; --test: #4a3d12; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top)); background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
main { max-width: 760px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
h1 { font-size: 1.25rem; margin: 0 0 12px; }
h2 { font-size: 1.1rem; margin: 0 0 8px; }
label { display: block; margin-bottom: 12px; font-size: .9rem; color: var(--muted); }
input { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
button { font: inherit; padding: 10px 16px; border: 0; border-radius: 8px; background: var(--accent);
  color: var(--accent-text); cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
button.link { background: none; color: var(--accent); padding: 4px 0; }
button.small { padding: 6px 10px; font-size: .85rem; white-space: nowrap; }
.muted { color: var(--muted); }
.err { color: var(--err); min-height: 1.2em; margin: 8px 0 0; }
.switch { margin: 12px 0 0; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
.tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: var(--tag);
  font-size: .75rem; color: var(--muted); }
.tag.test { background: var(--test); }
.pwbox { padding: 12px; margin-bottom: 12px; border-radius: 8px; background: var(--test); }
.pwbox code { font-size: 1.3rem; letter-spacing: .12em; font-weight: 700; }
@media (max-width: 600px) {
  #empTable thead { display: none; }
  #empTable tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  #empTable td { border: 0; padding: 0; }
  #empTable td:nth-child(1) { grid-column: 1; font-weight: 600; }
  #empTable td:nth-child(2), #empTable td:nth-child(3), #empTable td:nth-child(4) { grid-column: 1; color: var(--muted); font-size: .85rem; }
  #empTable td:nth-child(5) { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
}
