:root {
  color-scheme: light dark;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #192333;
  --muted: #627085;
  --border: #e4e9f0;
  --accent: #2563eb;
  --accent-faint: #eff5ff;
  --shadow: 0 2px 12px rgba(20, 39, 64, 0.035);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--text); margin: 0; }
.shell { max-width: 1080px; padding: clamp(24px, 5vw, 64px) 24px 32px; margin: 0 auto; }
.header { padding-bottom: 38px; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 16px; }
.brand-mark { width: 53px; height: 53px; display: grid; place-items: center; flex-shrink: 0; border-radius: 14px; color: var(--accent); background: var(--accent-faint); font-size: 24px; font-weight: 700; letter-spacing: -3px; padding-right: 3px; }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-weight: 650; font-size: .71rem; text-transform: uppercase; letter-spacing: .12em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.35rem); line-height: 1.12; margin: 0; letter-spacing: -.055em; font-weight: 750; }
.heading-dot { color: var(--accent); }
.intro { color: var(--muted); margin: 20px 0 0; font-size: .98rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 28px 0 31px; }
.search-wrap { min-width: 0; width: min(100%, 620px); position: relative; }
.search-wrap svg { width: 19px; height: 19px; color: var(--muted); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }
input[type="search"] { font: inherit; width: 100%; height: 50px; padding: 0 50px 0 48px; background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 11px; outline: none; box-shadow: var(--shadow); }
input::placeholder { color: #8792a1; }
input[type="search"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.key-hint { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); }
kbd { display: inline-block; padding: 2px 7px; border-radius: 5px; border: 1px solid var(--border); background: var(--bg); color: var(--muted); font: 600 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.count { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.directory { display: grid; gap: 37px; }
.group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.group-title { margin: 0; font-size: 1.04rem; font-weight: 740; letter-spacing: -.02em; }
.group-count { color: var(--muted); font-size: .78rem; }
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.service { color: inherit; text-decoration: none; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); min-height: 122px; display: flex; flex-direction: column; transition: border-color .12s ease, box-shadow .12s ease; }
.service:hover, .service:focus-visible { border-color: #a6bcea; box-shadow: 0 5px 18px rgba(20, 39, 64, .07); outline: none; }
.service-heading { display: flex; align-items: center; gap: 11px; }
.service-icon { display: grid; place-items: center; border-radius: 9px; width: 35px; height: 35px; flex: 0 0 35px; background: var(--accent-faint); color: var(--accent); font-weight: 800; font-size: .8rem; letter-spacing: -.035em; }
.service-name { font-weight: 720; letter-spacing: -.02em; font-size: .95rem; min-width: 0; overflow-wrap: anywhere; }
.service-arrow { margin-left: auto; color: #8291a7; font-size: 1rem; flex: 0 0 auto; }
.service-description { color: var(--muted); margin: 13px 0 0; font-size: .82rem; line-height: 1.5; }
.empty { text-align: center; border: 1px dashed var(--border); border-radius: 12px; padding: 50px 20px; color: var(--muted); }
.empty-title { margin: 0 0 4px; color: var(--text); font-size: 1.1rem; font-weight: 700; }
.empty p { margin-top: 8px; }
button { color: var(--accent); font: inherit; font-weight: 600; background: transparent; border: 1px solid var(--border); border-radius: 8px; padding: 10px 15px; cursor: pointer; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; border-top: 1px solid var(--border); margin-top: 55px; padding-top: 19px; font-size: .75rem; color: var(--muted); }
.sr-only { position: absolute; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; width: 1px; height: 1px; }
@media (max-width: 850px) { .link-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 570px) { .shell { padding: 25px 16px; } .header { padding-bottom: 25px; } .brand-mark { width: 46px; height: 46px; } .toolbar { align-items: stretch; flex-direction: column; gap: 7px; margin: 23px 0 25px; } .count { text-align: right; } .link-grid { grid-template-columns: 1fr; } .service { min-height: 105px; } .directory { gap: 29px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media (prefers-color-scheme: dark) {
  :root { --bg: #101621; --surface: #1b2532; --text: #ecf2fa; --muted: #a3b2c5; --border: #2f3b4b; --accent: #80aeff; --accent-faint: #263a5a; --shadow: none; }
  input::placeholder { color: #8c9eb4; }
  .service:hover, .service:focus-visible { border-color: #6485ae; box-shadow: none; }
  .service-arrow { color: #96a8bc; }
  input[type="search"]:focus { box-shadow: 0 0 0 3px rgba(128,174,255,.17); }
}
