.auth-screen{min-height:100vh;display:grid;place-items:center;background:var(--paper);color:var(--ink);padding:clamp(16px,5vw,72px)}
.auth-frame{width:min(100%,1040px);display:grid;grid-template-columns:1.05fr 1fr;overflow:hidden;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 20px 60px #172d4221}
.auth-art{background:linear-gradient(0deg,#142e3ee8 0%,#213c4e38 55%,#1a3447b3 100%),#203d4c url('/static/quality-workbench.webp') 92% center/cover;min-height:440px;padding:clamp(24px,4vw,52px);color:#fff;display:flex;flex-direction:column;justify-content:space-between}
.auth-brand{display:flex;align-items:center;gap:12px;font:700 27px/1 "Inter",sans-serif;letter-spacing:-1px}.auth-art h1{font-size:clamp(28px,3vw,40px);color:white}
.auth-content{padding:clamp(24px,4vw,52px);display:flex;flex-direction:column;justify-content:center}.auth-content h2{font-size:clamp(22px,3vw,30px);line-height:1.4}.auth-cap{display:grid;place-items:center;width:42px;height:42px;margin-bottom:18px;border-radius:12px;background:var(--accent-soft);color:var(--green)}
.auth-copy,.auth-setup p,.auth-content>.muted{font-size:14px;line-height:1.7;color:var(--muted);margin:8px 0 0}.auth-setup,.auth-alert{margin:20px 0 0;padding:14px;border-radius:8px;background:var(--paper)}.auth-alert{color:#943c2c;background:#fff0e9}.auth-setup h3{font-size:15px}.auth-setup p{overflow-wrap:anywhere}.auth-action{margin-top:20px;align-self:flex-start}.auth-demo{margin-top:18px;font-size:14px;text-decoration:underline;color:var(--green)}
.directory-table td small{overflow-wrap:anywhere}.directory-table td:nth-child(1){max-width:260px}
@media(max-width:700px){.auth-screen{padding:16px}.auth-frame{grid-template-columns:1fr}.auth-art{min-height:180px;padding:22px;gap:28px}.auth-brand img{width:32px;height:32px}.auth-brand{font-size:22px}.auth-art h1{font-size:27px}.auth-content{padding:25px 22px}.auth-action{align-self:stretch}}

.directory-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 20px}
.directory-stats a {display:grid;gap:8px;padding:15px 18px;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
.directory-stats a:hover,.directory-stats a:focus-visible {border-color:#95acbb;background:#f4f8fb}
.directory-stats span {display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}
.directory-stats strong {font:650 26px/1.2 Inter,sans-serif;font-variant-numeric:tabular-nums}
.directory-link {color:var(--green);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.directory-empty {border-top:1px solid var(--line)}
.directory-member-layout {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:0 0 16px}
.directory-facts {display:grid;grid-template-columns:auto 1fr;align-content:start;gap:12px 16px;margin:0;padding:4px 22px 22px;font-size:14px}
.directory-facts dt,.directory-role-form p,.directory-note,.directory-history span {color:var(--muted)}
.directory-facts dd {margin:0;overflow-wrap:anywhere}
.directory-role-form {display:grid;gap:8px;padding:4px 22px 22px}.directory-role-form label {font-weight:600}
.directory-admin {display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
.directory-market {display:grid;gap:8px}
.directory-create {max-width:40rem}
.directory-binding {margin-bottom:16px}
.directory-binding .directory-role-form {max-width:42rem}
.directory-role-form p,.directory-note,.directory-history span {font-size:13px;line-height:1.6}
.directory-role-form button {justify-self:start}.directory-note {padding:0 22px 20px}
.directory-history {list-style:none;margin:0;padding:0 22px}
.directory-history li {display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:13px 0;border-top:1px solid var(--line)}
@media (max-width:720px) {
  .directory-member-layout {grid-template-columns:1fr}
  .directory-stats {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .directory-stats a {padding:12px 14px}
  .directory-filters .searchbox {flex-basis:100%}
  .data-table.directory-table {display:block;min-width:0}
  .directory-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .directory-table tbody,.directory-table tr {display:block}
  .directory-table tr {padding:9px 15px;border-top:1px solid var(--line)}
  .data-table.directory-table td {display:block;max-width:none;border:0;padding:4px 0 4px 78px;position:relative;min-height:26px;overflow-wrap:anywhere}
  .directory-table td::before {content:attr(data-label);position:absolute;left:0;color:var(--muted);font-size:12px}
}
