@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root { color-scheme: light; --paper: #f5f3ec; --card: #fffdf6; --ink: #19352d; --muted: #526b61; --rust: #b74d32; --line: #19352d26; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background-color: var(--paper); background-image: linear-gradient(#183e340a 1px, transparent 1px), linear-gradient(90deg, #183e340a 1px, transparent 1px); background-size: 32px 32px; font: 14px/1.6 'Manrope', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, summary, select { cursor: pointer; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .brand { font-family: 'Fraunces', Georgia, serif; }
h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.12; letter-spacing: -.035em; font-weight: 600; }
h2 { font-size: 27px; line-height: 1.2; font-weight: 600; }
.mono, .eyebrow { font-family: 'DM Mono', monospace; }
.eyebrow { color: var(--rust); text-transform: uppercase; font-size: 11px; letter-spacing: .15em; margin-bottom: 16px; }
.muted { color: var(--muted); }
.site-shell { max-width: 1320px; margin: auto; padding: 0 40px; min-height: 100dvh; display: flex; flex-direction: column; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); min-height: 86px; }
.brand { display: inline-flex; gap: 12px; align-items: center; font-size: 25px; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; font: 700 20px 'Manrope', sans-serif; background: var(--ink); color: var(--paper); }
.site-nav { display: flex; align-items: center; gap: 24px; font-weight: 700; font-size: 13px; }
.site-nav > a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 10px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .reset-link:hover, .site-footer a:hover { color: var(--rust); }
.site-nav [aria-current] { border-color: var(--rust); }
main { flex: 1; padding: 48px 0 64px; min-width: 0; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 24px 0; font-size: 11px; color: var(--muted); }
.site-footer > div { display: flex; gap: 24px; }
.site-footer .mono { text-transform: uppercase; font-size: 10px; letter-spacing: .06em; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; padding: 11px 18px; border: 1px solid transparent; font-weight: 700; font-size: 13px; line-height: 1.4; transition: background .16s, border-color .16s; }
.button-primary { color: white; background: var(--rust); }
.button-primary:hover { background: #963b25; }
.button-secondary { background: transparent; border-color: #19352d55; }
.button-secondary:hover { background: #e8e5da; border-color: var(--ink); }
.button-disabled { background: #e9e7de; color: #637269; cursor: default; }
.avatar { width: 36px; height: 36px; flex-shrink: 0; display: inline-grid; place-items: center; background: #e6ebe1; border: 1px solid var(--line); font: 500 14px 'DM Mono', monospace; }
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; gap: 8px; list-style: none; min-height: 44px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary::after { content: '⌄'; margin-left: 3px; }
.account-panel { position: absolute; z-index: 5; right: 0; top: calc(100% + 12px); background: var(--card); border: 1px solid var(--line); box-shadow: 5px 5px 0 #19352d16; width: min(300px, 85vw); padding: 20px; font-weight: 400; overflow-wrap: anywhere; }
.account-panel strong, .account-panel > span { display: block; }
.account-panel > span { font-size: 12px; margin: 4px 0 18px; }
.account-panel button { width: 100%; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 32px; }
.page-heading h1 { max-width: 650px; }
.page-heading .muted { margin-top: 14px; }
.export-action { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; gap: 9px; }
.export-action .muted { font-size: 11px; margin: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); padding: 24px; transition: border-color .16s; }
.stat-card:hover { border-color: var(--rust); }
.stat-card > .mono { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.stat-card > strong { font: 600 42px/1.3 'Fraunces', Georgia, serif; margin: 10px 0 14px; font-variant-numeric: tabular-nums; }
.stat-card > span:last-child { font-size: 12px; display: flex; align-items: center; gap: 7px; color: var(--muted); }
.stat-card > span:last-child > span { margin-left: auto; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: #3c8064; }
.pending-dot { background: #a46920; }
.directory { background: var(--card); border: 1px solid var(--line); }
.directory-heading { padding: 26px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.directory-heading p { font-size: 12px; margin-top: 6px; }
.directory-note { font-size: 10px; color: var(--muted); }
.filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; padding: 22px 28px; background: #eeece380; border-block: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 12px; font-weight: 700; }
.field input, .field select { background: var(--card); border: 1px solid #19352d55; border-radius: 0; min-height: 46px; padding: 11px 13px; width: 100%; color: var(--ink); font-size: 14px; }
.field input::placeholder { color: #64776c; opacity: 1; }
.field input[aria-invalid] { border-color: var(--rust); }
.field select { padding-right: 28px; }
.search-field { flex: 1; min-width: 240px; }
.reset-link { display: inline-flex; align-items: center; min-height: 46px; text-decoration: underline; text-underline-offset: 4px; font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { font: 400 10px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 18px 28px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 20px 28px; border-bottom: 1px solid #19352d12; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #19352d03; }
.person { display: flex; align-items: flex-start; gap: 12px; }
.person > div { min-width: 0; }
.person strong { display: block; font-weight: 700; overflow-wrap: anywhere; }
.email-link { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.email-link:hover { color: var(--rust); text-decoration: underline; }
.user-id { font-size: 10px; color: var(--muted); }
.cell-secondary { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.badge-verified { color: #285b45; background: #e5ecdf; }
.badge-pending { color: #80500e; background: #f5ebd8; }
.badge-pending .status-dot { background: #a46920; }
.timezone { display: block; margin-top: 5px; font-size: 9px; text-transform: none; letter-spacing: 0; }
.directory-footer { border-top: 1px solid var(--line); padding: 20px 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.directory-footer p { font-size: 12px; }
.pagination { display: flex; align-items: center; gap: 16px; }
.pagination > .mono { font-size: 10px; }
.pagination .button { min-height: 40px; padding: 9px 13px; font-size: 11px; }
.empty-state { text-align: center; padding: 56px 24px; }
.empty-mark { display: inline-grid; place-items: center; background: var(--paper); width: 52px; height: 52px; font: 24px 'DM Mono', monospace; margin-bottom: 18px; }
.empty-state h3 { font-size: 25px; }
.empty-state p { margin: 12px auto 24px; color: var(--muted); max-width: 420px; }
.login-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(40px, 7vw, 100px); min-height: calc(100dvh - 260px); padding: 32px 0; }
.login-intro h1 { font-size: clamp(40px, 5.3vw, 66px); line-height: 1.06; }
.intro-copy { max-width: 480px; font-size: 16px; line-height: 1.9; color: var(--muted); margin-top: 26px; }
.intro-details { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 40px; }
.intro-details .mono { display: block; color: var(--rust); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.intro-details strong { display: block; margin: 10px 0 6px; font-size: 13px; }
.intro-details p { color: var(--muted); font-size: 12px; }
.login-card { background: var(--card); border: 1px solid #19352d55; padding: 32px; box-shadow: 10px 10px 0 #19352d1f; }
.card-topline { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.card-topline .mono { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.login-card h2 { font-size: 34px; }
.login-card > .muted { font-size: 13px; margin-top: 10px; }
.login-card form { margin-top: 28px; }
.login-card .field { margin-bottom: 20px; }
.password-field { position: relative; }
.password-field input { padding-right: 70px; }
.password-toggle { position: absolute; right: 1px; top: 1px; height: calc(100% - 2px); min-width: 60px; background: transparent; border: 0; color: var(--muted); font-weight: 700; font-size: 11px; }
.signin-button { width: 100%; margin-top: 5px; justify-content: space-between; }
.signin-button:disabled { opacity: .65; cursor: wait; }
.access-note { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 26px; color: var(--muted); font-size: 11px; }
.notice { padding: 14px 16px; font-size: 12px; margin: 20px 0; border-left: 3px solid var(--rust); }
.notice-error { background: #f5e7df; color: #7b3121; }
.notice p { margin-top: 4px; }
.directory > .notice { margin-inline: 28px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 10; background: var(--ink); color: white; padding: 12px; }
@media (max-width: 1000px) {
    .site-shell { padding-inline: 24px; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 22px; }
    .export-action { align-items: flex-start; }
    th, td { padding-inline: 18px; }
    .login-grid { gap: 36px; }
    .login-card { padding: 26px; }
}
@media (max-width: 760px) {
    .site-shell { padding-inline: 20px; }
    .site-header { min-height: 76px; }
    .brand { font-size: 21px; gap: 8px; }
    .brand-mark { width: 32px; height: 32px; }
    .site-nav { gap: 14px; font-size: 12px; }
    .account-label { display: none; }
    main { padding-top: 32px; }
    .stats-grid { gap: 10px; }
    .stat-card { padding: 16px; }
    .stat-card > .mono { font-size: 9px; }
    .stat-card > strong { font-size: 32px; }
    .stat-card > span:last-child { font-size: 10px; flex-wrap: wrap; }
    .directory-heading, .filters, .directory-footer { padding: 20px; }
    .directory-note { display: none; }
    .search-field { flex-basis: 100%; min-width: 0; }
    .filters > .field:not(.search-field) { flex: 1; }
    .field input, .field select { font-size: 16px; }
    .filters > .reset-link { flex-basis: 100%; min-height: 32px; }
    .login-grid { grid-template-columns: 1fr; padding-top: 0; max-width: 560px; margin: auto; }
    .login-intro h1 { font-size: 42px; }
    .intro-copy { font-size: 14px; margin-top: 18px; }
    .intro-details { display: none; }
    .login-card { margin-right: 10px; }
    .site-footer { flex-direction: column; align-items: flex-start; }
    table, tbody { display: block; }
    thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    tbody tr { display: block; padding: 20px; border-bottom: 1px solid var(--line); }
    tbody tr:last-child { border: 0; }
    td { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 8px 0; border: 0; text-align: right; }
    td::before { content: attr(data-label); font-size: 11px; color: var(--muted); text-align: left; flex-shrink: 0; }
    .person-cell { display: block; padding-top: 0; padding-bottom: 16px; text-align: left; }
    .person-cell::before { display: none; }
    td[data-label="Contact & LSK"] { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2px 16px; }
    td[data-label="Contact & LSK"]::before { grid-row: span 2; }
    .cell-secondary { margin-top: 0; }
    .directory-footer { align-items: stretch; }
    .pagination { width: 100%; justify-content: space-between; gap: 8px; }
}
@media (max-width: 420px) {
    .site-shell { padding-inline: 16px; }
    .site-nav { gap: 10px; }
    .brand { font-size: 19px; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 16px; }
    .stat-card > strong { grid-column: 2; grid-row: 1 / 3; margin: 0; }
    .stat-card > span:last-child { grid-row: 2; }
    .stat-card > span:last-child > span { display: none; }
    .login-card { padding: 24px; }
    .login-intro h1 { font-size: 36px; }
    .filters > .field:not(.search-field) { flex-basis: 100%; }
    .filters > .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
