body { background: #090a0b; color: #f3f4f1; font-family: Inter, Arial, sans-serif; }
.users-page { width: min(1210px, calc(100% - 64px)); min-height: 100vh; margin: 0 auto; padding: 142px 0 24px; }
.users-intro { max-width: 760px; margin: 0 0 49px; }
.users-intro .eyebrow { color: #b8bcb7; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.users-intro h1 { margin: 17px 0 0; font-family: Inter, sans-serif; font-size: clamp(64px, 8vw, 100px); font-weight: 800; letter-spacing: -.085em; line-height: 1.02; }
.users-intro h1 span { color: #f3f5f2; }
.users-intro > p { max-width: 700px; margin: 0; color: #c2cac4; font-size: 16px; line-height: 1.85; }
.directory-heading { min-height: 42px; }
.directory-title { display: flex; align-items: center; gap: 10px; }
.user-search { display: flex; width: min(100%, 300px); height: 40px; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid rgb(255 255 255 / 11%); border-radius: 10px; background: rgb(255 255 255 / 3%); color: #858981; }
.user-search:focus-within { border-color: rgb(255 255 255 / 32%); }
.user-search svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; }
.user-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #f2f3ef; font-size: 11px; }
.user-search input::placeholder { color: #777b74; }
.user-search kbd { display: grid; width: 19px; height: 20px; flex: 0 0 auto; place-items: center; border: 1px solid rgb(255 255 255 / 12%); border-radius: 5px; color: #82867e; font: 10px "DM Sans", sans-serif; }
.directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.directory-heading h2 { margin: 0; font-family: Inter, sans-serif; font-size: 16px; font-weight: 600; letter-spacing: -.03em; }
.user-count { color: #858981; font-size: 10px; }
.user-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.user-card { display: flex; min-height: 232px; flex-direction: column; align-items: center; justify-content: center; padding: 22px; border: 1px solid rgb(255 255 255 / 13%); border-radius: 20px; background: linear-gradient(145deg, rgb(35 35 35 / 82%), rgb(15 15 15 / 90%)); text-align: center; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.user-card:hover { transform: translateY(-4px); border-color: rgb(255 255 255 / 28%); background: linear-gradient(145deg, rgb(48 48 48 / 90%), rgb(20 20 20 / 94%)); }
.user-card[hidden] { display: none; }
.user-card-top { position: relative; display: flex; align-items: flex-start; justify-content: center; }
.user-avatar-wrap { position: relative; width: 92px; height: 92px; }
.user-avatar, .user-avatar-fallback { display: grid; width: 92px; height: 92px; place-items: center; border: 1px solid rgb(255 255 255 / 17%); border-radius: 50%; background: linear-gradient(145deg, #282828, #111111); color: #f0f1ed; font-family: Inter, sans-serif; font-size: 32px; font-weight: 600; object-fit: cover; }
.user-avatar[hidden] { display: none; }
.user-avatar-wrap:has(.user-avatar:not([hidden])) .user-avatar-fallback { display: none; }
.user-status-dot { position: absolute; right: 0; bottom: 1px; width: 15px; height: 15px; border: 3px solid #151615; border-radius: 50%; background: #737770; }
.user-status-dot.online { background: #f2f2f2; }
.user-status-dot.idle { background: #a5a5a5; }
.user-status-dot.dnd { background: #555; }
.user-card-arrow { position: absolute; top: 0; right: 0; color: #a4b3a8; font-size: 17px; transition: color .2s ease, transform .2s ease; }
.user-card:hover .user-card-arrow { color: #fff; transform: translate(2px, -2px); }
.user-card-info { margin-top: 16px; }
.user-card-info h3 { margin: 0; font-family: Inter, sans-serif; font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.user-handle { margin: 0; color: #a8aba7; font-size: 10px; }
.user-card-bottom { display: flex; flex-direction: column; align-items: center; gap: 7px; padding-top: 5px; color: #bccbc0; font-size: 12px; }
.user-card-bottom > span:last-child { color: #b4b7b2; font-size: 10px; font-weight: 500; letter-spacing: .01em; }
.user-presence-label { display: inline-flex; align-items: center; gap: 7px; }
.user-presence-label::before { width: 6px; height: 6px; border-radius: 50%; background: #777b74; content: ""; }
.user-presence-label.online::before { background: #f2f2f2; }
.user-presence-label.idle::before { background: #a5a5a5; }
.user-presence-label.dnd::before { background: #555; }
.no-users { margin: 25px 0; color: #a0a39d; font-size: 13px; }
.no-users[hidden] { display: none; }
.users-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 80px; padding: 20px 0; border-top: 1px solid rgb(255 255 255 / 8%); color: #7c8078; font-size: 9px; }
.users-footer > a:first-child { color: #e7e9e3; font-family: Inter, sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.users-footer > a:last-child { color: #c1c4bd; }
@media (max-width: 800px) {
  .users-page { width: calc(100% - 40px); padding-top: 132px; }
  .user-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
}
@media (max-width: 580px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header .brand { grid-column: 1; grid-row: 1; }
  .site-header .main-nav { grid-column: 1 / -1; grid-row: 2; }
  .site-header .language-menu { grid-column: 2; grid-row: 1; }
  .users-page { width: calc(100% - 32px); padding-top: 128px; }
  .users-intro { margin-bottom: 30px; }
  .users-intro h1 { font-size: clamp(56px, 14vw, 76px); }
  .directory-heading { align-items: flex-start; flex-direction: column; }
  .user-search { width: 100%; }
  .user-grid { grid-template-columns: 1fr; gap: 9px; }
  .user-card { min-height: 195px; padding: 17px; border-radius: 15px; }
  .user-avatar-wrap, .user-avatar, .user-avatar-fallback { width: 76px; height: 76px; }
  .user-card-info h3 { font-size: 18px; }
  .users-footer { flex-wrap: wrap; margin-top: 54px; }
  .users-footer > span { order: 3; width: 100%; }
}

/* Final mobile header overrides: keep the brand, menu button, and language control separate. */
@media (max-width: 700px) {
  header.site-header { position: fixed !important; z-index: 1000 !important; display: grid !important; grid-template-columns: minmax(0, 1fr) auto 42px !important; grid-template-rows: 1fr !important; align-items: center !important; overflow: visible !important; }
  header.site-header .brand { grid-column: 1 !important; grid-row: 1 !important; display: inline-flex !important; visibility: visible !important; opacity: 1 !important; }
  header.site-header .brand-mark { display: grid !important; visibility: visible !important; opacity: 1 !important; }
  header.site-header .brand-mark img { display: block !important; visibility: visible !important; opacity: 1 !important; object-fit: contain !important; }
  header.site-header .nav-toggle { display: inline-grid !important; grid-column: 3 !important; grid-row: 1 !important; place-self: center !important; visibility: visible !important; opacity: 1 !important; }
  header.site-header .language-menu { grid-column: 2 !important; grid-row: 1 !important; justify-self: end !important; }
  header.site-header .main-nav { position: absolute !important; top: calc(100% + 9px) !important; right: 0 !important; left: auto !important; z-index: 1001 !important; display: none !important; grid-column: auto !important; grid-row: auto !important; width: min(290px, calc(100vw - 24px)) !important; flex-direction: column !important; align-items: stretch !important; }
  header.site-header .main-nav.is-open { display: flex !important; }
  header.site-header .main-nav a { display: flex !important; }
}
