*{box-sizing:border-box}
:root{font-family:system-ui,sans-serif;color:#182239;background:#f3f5fa;font-size:15px;line-height:1.45;--accent:#214bcd;--muted:#58657a;--line:#dfe5ee}
body{margin:0}
.shell{width:min(1180px,calc(100% - 48px));margin:auto}
.top{background:#141f39;color:white}
.top .shell,.heading,.pager,.dialog-head,.dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:16px}
.top .shell{height:64px}
.brand{display:flex;align-items:center;gap:10px;font-weight:700}
.mark{display:grid;place-items:center;width:31px;height:31px;border-radius:8px;background:#315be0;font-size:20px}
.top a{color:#e0e7ff;font-size:.9rem;text-decoration:none}
.heading{padding:42px 0 24px}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(1.8rem,4vw,2.5rem);letter-spacing:-.045em}
.heading p{color:var(--muted);margin-top:5px}
button,input,select,textarea{font:inherit}
button{cursor:pointer;background:white;border:1px solid var(--line);border-radius:7px;padding:8px 13px;color:inherit;font-weight:650}
button:hover:not(:disabled){background:#eff3ff}
button:disabled{cursor:default;opacity:.48}
button.primary{background:var(--accent);border-color:var(--accent);color:white;white-space:nowrap}
button.primary:hover:not(:disabled){background:#193caa}
:focus-visible{outline:3px solid #6e8dff;outline-offset:2px}
.directory{background:white;border:1px solid var(--line);border-radius:14px;box-shadow:0 3px 12px #162a4a09;margin-bottom:36px;overflow:hidden}
.categories{display:flex;gap:6px;padding:0 20px;border-bottom:1px solid var(--line)}
.categories button{border:0;border-radius:0;padding:16px 12px 13px;border-bottom:3px solid transparent;color:var(--muted)}
.categories button[aria-pressed=true]{border-bottom-color:var(--accent);color:var(--accent)}
.categories span{font-size:.77rem;background:#ebf0fa;padding:2px 7px;border-radius:12px;margin-left:4px}
.categories span:empty{display:none}
.filters{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,.36fr) minmax(150px,.32fr);gap:14px;padding:18px 20px}
label{display:grid;gap:5px;font-size:.84rem;font-weight:650;min-width:0}
label span,.help{color:var(--muted);font-weight:400}
input,select,textarea{width:100%;min-width:0;padding:9px 10px;min-height:40px;border:1px solid #ccd5e2;border-radius:7px;background:#fff;color:#182239}
textarea{resize:vertical}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;text-align:left;min-width:570px}
th{background:#f4f6fb;color:#4d5a70;font-size:.8rem}
td,th{padding:12px 16px;border-bottom:1px solid #e9edf3}
td:first-child,th:first-child{padding-left:20px;width:55%}
td:last-child{text-align:right;padding-right:20px}
td small{display:block;color:var(--muted);margin-top:3px}
tbody tr:hover{background:#fbfcff}
.view{padding:5px 10px;color:#2144a0}
.badge{display:inline-block;border-radius:20px;padding:3px 9px;background:#edf0f5;color:#3b4b64;font-size:.78rem;font-weight:650}
.badge.contacted{background:#e7efff;color:#2044a5}.badge.qualified{background:#fbefcf;color:#74530b}.badge.converted{background:#e2f5e9;color:#205e3e}.badge.closed{background:#f5e9ef;color:#793855}
.pager{padding:14px 20px;color:var(--muted);font-size:.88rem}
.pager div{display:flex;gap:8px}
.notice{padding:10px 20px;color:#194e39;background:#e9f8ef}
.notice.error,.error{color:#92243a}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
dialog{width:min(650px,calc(100% - 28px));padding:0;color:inherit;border:1px solid var(--line);border-radius:14px;max-height:calc(100% - 32px);box-shadow:0 18px 72px #101c4355}
dialog::backdrop{background:#121b38a0}
dialog form{display:flex;flex-direction:column;max-height:calc(100dvh - 34px)}
.dialog-head,.dialog-footer{padding:16px 22px}
.dialog-head{align-items:start;border-bottom:1px solid var(--line)}
.dialog-head h2{font-size:1.2rem}
.close{padding:0 9px;font-size:1.25rem}
.dialog-footer{border-top:1px solid var(--line)}
.dialog-body{overflow:auto;padding:20px 22px}
.outreach,.import-body{display:grid;gap:14px}
.outreach select{max-width:220px}
.dialog-body h3{font-size:1rem;margin-top:22px}
dl{display:grid;grid-template-columns:minmax(105px,1fr) 2fr;margin-bottom:0;font-size:.9rem}
dt,dd{margin:0;padding:7px 0;border-bottom:1px solid #e9edf3;overflow-wrap:anywhere}
dt{padding-right:12px;color:var(--muted)}
dd a{color:var(--accent)}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field-row label{display:block}
.field-row input{margin-top:5px}
.help,.error{font-size:.85rem}
@media(max-width:660px){.shell{width:calc(100% - 24px)}.heading{padding-top:26px}.filters{grid-template-columns:1fr 1fr;gap:10px}.search{grid-column:1/-1}.heading p{font-size:.86rem}.pager{padding-inline:12px}.heading button{padding-inline:8px}}

.categories{flex-wrap:wrap}.dialog-body dd details summary{cursor:pointer}.dialog-body dd details dl{margin:8px 0 16px}
