:root {
  --accent: #2E7D32; --accent-2: #7CB342; --deep: #12351a;
  --grad: linear-gradient(135deg, #7CB342, #2E7D32);
  --bg: #f6f8f7; --card: #fff; --line: #e6ebe7; --ink: #152018; --muted: #6b7a70;
  --radius: 16px; --shadow: 0 10px 30px rgba(20,54,26,.08);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.nav { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; display: block; }
.tag { font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #fff; background: var(--deep); border-radius: 999px; padding: 3px 9px; }
.spacer { margin-left: auto; }
.link { color: var(--muted); font-weight: 600; font-size: 14px; background: none; border: 0; cursor: pointer; font-family: inherit; }
.link:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 11px; padding: 10px 16px; font-weight: 700; font-size: 14px; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(46,125,50,.28); }
.btn-primary:hover { filter: brightness(1.04); }
.btn-ghost { background: #fff; color: var(--accent); border-color: var(--line); }
.btn-ghost:hover { background: #E8F5E9; }
.btn-danger { background: #fdecea; color: #c62828; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

.gate { padding: 80px 0; }
.center { text-align: center; max-width: 420px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h1 { margin: 0 0 6px; font-size: 22px; }
.muted { color: var(--muted); }

.toolbar { display: flex; align-items: center; gap: 14px; padding: 26px 0 16px; }
.toolbar h1 { margin: 0; font-size: 24px; letter-spacing: -.5px; }
.toolbar input { width: 300px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; font-size: 14px; font-family: inherit; background: #fff; }
.toolbar input:focus { outline: none; border-color: var(--accent); }

.layout { display: grid; grid-template-columns: 1fr; gap: 18px; padding-bottom: 60px; }
.layout.with-detail { grid-template-columns: minmax(0, 1fr) 420px; }
.list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(20,54,26,.03); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); background: #fafcfb; }
td.c, th.c { text-align: center; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #f4faf5; }
tbody tr.active { background: #e8f5e9; }
.email { font-weight: 600; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.pill-yes { background: #e8f5e9; color: #2E7D32; }
.pill-no { background: #eef1ef; color: #8a968f; }
.pill-warn { background: #fff4e5; color: #b26a00; }

.detail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); align-self: start; position: sticky; top: 80px; }
.detail h2 { margin: 0 0 2px; font-size: 18px; }
.detail .sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.detail label { display: block; font-size: 12px; font-weight: 700; color: #33443a; margin: 12px 0 5px; text-transform: uppercase; letter-spacing: .4px; }
.detail input, .detail select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit; background: #fbfcfb; }
.detail input:focus, .detail select:focus { outline: none; border-color: var(--accent); background: #fff; }
.row { display: flex; gap: 14px; align-items: center; margin: 12px 0; }
.row input[type=checkbox] { width: auto; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; margin: 12px 0; color: #33443a; }
.kv b { color: var(--muted); font-weight: 600; }
.passkeys { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.passkeys .pk { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 0; }
.passkeys .pk .spacer { margin-left: auto; }

.modal { position: fixed; inset: 0; background: rgba(12,30,16,.45); display: grid; place-items: center; z-index: 60; padding: 20px; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 18px; padding: 26px; width: 100%; max-width: 440px; box-shadow: 0 30px 60px rgba(12,30,16,.3); }
.modal-box h2 { margin: 0 0 16px; font-size: 20px; }
.modal-box label { display: block; font-size: 12px; font-weight: 700; color: #33443a; margin: 12px 0 5px; }
.modal-box input, .modal-box select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit; }
.msg { font-size: 13px; margin-top: 12px; }
.msg.err { color: #c62828; }
.msg.ok { color: #2E7D32; }

@media (max-width: 960px) {
  .layout.with-detail { grid-template-columns: 1fr; }
  .detail { position: static; }
  .toolbar input { width: 100%; }
}
