:root { color-scheme: dark; font-family: system-ui, sans-serif; color: #f2efff; background: #080b15; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: #7fe8d6; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #89f0e2; outline-offset: 3px; }
.rlDirectory { width: min(1100px, calc(100% - 32px)); margin: 30px auto 42px; }
.rlDirectoryHero {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px;
  padding: clamp(22px, 5vw, 44px); border: 1px solid #50406e; border-radius: 22px;
  background: radial-gradient(ellipse at top right, #342652, transparent 65%), #111020;
}
.rlDirectoryHero p { margin: 8px 0 0; color: #c6bdd8; line-height: 1.5; }
.rlDirectoryHero .rlDirectoryKicker { margin: 0; color: #a9efdf; font-size: .73rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.rlDirectoryHero h1 { margin: 5px 0 0; font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.1; }
.rlDirectoryManage, .rlDirectoryView, .rlDirectoryPager a {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px;
  padding: 9px 13px; border: 1px solid #446761; border-radius: 10px; color: #a8f1e3;
  background: #111e24; text-decoration: none; font-size: .88rem; font-weight: 750;
}
.rlDirectoryManage:hover, .rlDirectoryView:hover, .rlDirectoryPager a:hover { background: #183139; }
.rlDirectorySearch { margin: 24px 0 12px; }
.rlDirectorySearch label { display: block; margin-bottom: 8px; font-weight: 750; }
.rlDirectorySearch > div { display: flex; gap: 8px; }
.rlDirectorySearch input[type="search"] {
  min-width: 0; flex: 1; padding: 11px 12px; color: #f6f3fe;
  border: 1px solid #57496f; border-radius: 10px; background: #121120;
}
.rlDirectorySearch input::placeholder { color: #a7a0b6; }
.rlDirectorySearch button { border: 0; border-radius: 10px; padding: 0 16px; background: #85e9d6; color: #111b1f; font-weight: 800; cursor: pointer; }
.rlDirectoryTools, .rlDirectoryTools nav, .rlDirectoryPager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rlDirectoryTools { justify-content: space-between; }
.rlDirectoryTools nav a { border: 1px solid #403952; padding: 8px 10px; border-radius: 9px; color: #d2c7e4; text-decoration: none; font-size: .83rem; }
.rlDirectoryTools nav a[aria-current="page"] { background: #182c2d; color: #a8f1e3; border-color: #42746b; }
.rlDirectoryHeading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin: 24px 0 12px; }
.rlDirectoryHeading h2, .rlDirectoryHeading p { margin: 0; }
.rlDirectoryHeading p { font-size: .81rem; color: #b8afcb; }
.rlDirectoryGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.rlDirectoryTile {
  min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px;
  border: 1px solid #433955; border-radius: 17px; background: #11101e;
}
.rlDirectoryIdentity h3 { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.rlDirectoryIdentity h3 a { color: #f2efff; text-decoration: none; }
.rlDirectoryIdentity h3 a:hover { text-decoration: underline; }
.rlDirectoryIdentity p { margin: 4px 0 0; color: #bcb2cf; font-size: .78rem; overflow-wrap: anywhere; }
.rlDirectoryActive { display: inline-block; margin-top: 7px; border-radius: 999px; padding: 3px 7px; background: #1a302d; color: #a8f1df; font-size: .72rem; font-weight: 750; }
.rlDirectoryPreviewLabel { margin: 0; color: #d7c1ee; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.rlDirectoryPreview { flex: 1; }
.rlDirectoryPreview > strong, .rlDirectoryPreview > span { display: block; padding: 4px; overflow-wrap: anywhere; }
.rlDirectoryView { width: 100%; }
.rlDirectoryEmpty { margin: 0; border: 1px dashed #4d435f; border-radius: 12px; background: #111020; padding: 24px; color: #c7bed8; line-height: 1.5; }
.rlDirectoryPager { margin-top: 18px; }
@media (max-width: 480px) {
  .rlDirectory { width: calc(100% - 24px); margin-top: 18px; }
  .rlDirectorySearch button { padding: 0 11px; }
}
