:root {
  color-scheme: dark;
  --canvas: #141719;
  --surface: #1b1f21;
  --surface-hover: #202527;
  --line: #2d3336;
  --text: #ecf0ee;
  --muted: #a1adaa;
  --quiet: #87938f;
  --accent: #a0d7c0;
  --accent-soft: #233a31;
  --amber: #e5bf84;
  --red: #eca3a0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, select { color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
a { color: inherit; }
h1, h2, p { margin: 0; }
button, input, select { border-radius: 7px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { color: var(--text); background: #355347; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 10; transform: translateY(-150%); padding: 10px 16px; background: var(--accent); color: var(--canvas); border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }
.page { width: min(100%, 1184px); margin: 0 auto; padding: 0 48px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; border-bottom: 1px solid var(--line); }
.context { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; letter-spacing: .015em; }
.home-mark { display: grid; place-items: center; width: 30px; height: 30px; margin-right: 4px; background: var(--accent-soft); border: 1px solid #344b40; border-radius: 8px; color: var(--accent); font-size: 18px; font-weight: 650; line-height: 1; letter-spacing: -.07em; padding-right: 2px; }
.context-divider { color: #55625c; }
.discovery-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 62px 0 48px; }
.eyebrow { margin-bottom: 12px; color: var(--quiet); font-size: 10px; font-weight: 600; letter-spacing: .15em; }
h1 { font-size: 64px; line-height: 1.06; font-weight: 580; letter-spacing: -.055em; }
h1 span { color: var(--accent); }
.intro-copy { margin-top: 18px; color: var(--muted); font-size: 14px; }
.counts { display: flex; gap: 38px; padding-bottom: 3px; }
.counts > div { display: flex; flex-direction: column; gap: 5px; }
.counts strong { font-size: 28px; line-height: 1.15; letter-spacing: -.04em; font-weight: 500; font-variant-numeric: tabular-nums; }
.counts > div:first-child strong { color: var(--accent); }
.counts span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.toolbar { display: flex; align-items: center; gap: 16px; }
.search-box { display: flex; align-items: center; flex: 1; min-width: 0; height: 48px; gap: 12px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.search-box:focus-within { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.search-icon { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: var(--quiet); stroke-width: 1.6; stroke-linecap: round; }
.search-box input { display: block; width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent; color: var(--text); font-size: 13px; }
.search-box input::placeholder { color: var(--quiet); opacity: 1; }
.search-box input:focus-visible { outline: none; }
kbd { display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 23px; border: 1px solid #3a4245; border-radius: 4px; color: var(--quiet); font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.source-control { display: flex; align-items: center; gap: 10px; }
.source-control label { color: var(--muted); font-size: 12px; }
.source-control select { height: 48px; max-width: 100%; padding: 0 32px 0 13px; border: 1px solid var(--line); background-color: var(--surface); font-size: 12px; cursor: pointer; }
.directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 27px 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.filters { display: flex; align-items: center; gap: 6px; }
.filters button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 7px 11px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 12px; }
.filters button:hover { background: var(--surface); color: var(--text); }
.filters button[aria-pressed="true"] { border-color: #3a5146; background: var(--accent-soft); color: var(--accent); }
.filters span { font-size: 10px; font-variant-numeric: tabular-nums; opacity: .85; }
.result-count { color: var(--quiet); font-size: 12px; white-space: nowrap; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card { display: flex; flex-direction: column; min-width: 0; padding: 22px 22px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: background-color 150ms ease, border-color 150ms ease; }
.service-card:hover { background: var(--surface-hover); border-color: #45534b; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.service-mark { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid #3b4842; border-radius: 10px; background: #26312b; color: #b1cabc; font-size: 12px; font-weight: 550; letter-spacing: .025em; }
.source-badge { padding: 3px 7px; border: 1px solid #343c3f; border-radius: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; letter-spacing: .015em; }
.service-name { margin-bottom: 9px; font-size: 16px; font-weight: 570; letter-spacing: -.018em; line-height: 1.4; overflow-wrap: anywhere; }
.primary-link { text-decoration: none; }
.primary-link:hover { color: var(--accent); }
.service-links { list-style: none; padding: 0; margin: 0 0 22px; }
.service-links li + li { margin-top: 7px; }
.hostname-link { display: flex; align-items: flex-start; gap: 8px; width: fit-content; max-width: 100%; color: var(--muted); font-size: 12px; text-decoration: none; }
.hostname { min-width: 0; overflow-wrap: anywhere; }
.link-arrow { flex: 0 0 auto; color: var(--quiet); font-size: 14px; line-height: 1.3; }
.hostname-link:hover, .hostname-link:hover .link-arrow { color: var(--accent); }
.hostname-link:hover .hostname { text-decoration: underline; text-underline-offset: 3px; }
.internal-label { margin-bottom: 22px; color: var(--quiet); font-size: 12px; overflow-wrap: anywhere; }
.card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; margin-top: auto; min-height: 45px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 10px; }
.container-state { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.container-state .dot { width: 5px; height: 5px; background: var(--quiet); }
.container-state[data-state="healthy"] .dot { background: var(--accent); }
.container-state[data-state="unhealthy"] { color: var(--red); }
.container-state[data-state="unhealthy"] .dot { background: var(--red); }
.container-state[data-state="starting"] { color: var(--amber); }
.container-state[data-state="starting"] .dot { background: var(--amber); }
.container-count { color: var(--quiet); font-variant-numeric: tabular-nums; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 20px; padding: 17px 20px; border: 1px solid #524632; border-radius: 8px; background: #25231e; color: #d7c4a7; font-size: 12px; overflow-wrap: anywhere; }
.notice strong { display: block; margin-bottom: 4px; font-weight: 550; }
.notice p { color: #c0b49f; }
.notice button, .empty-state button { flex: 0 0 auto; min-height: 36px; padding: 7px 13px; border: 1px solid #4a564f; border-radius: 6px; background: transparent; color: var(--text); font-size: 12px; }
.notice button:hover, .empty-state button:hover { border-color: var(--accent); color: var(--accent); }
.warnings { margin-bottom: 20px; padding: 12px 16px; border: 1px solid #453c2c; border-radius: 7px; color: #d2bd99; font-size: 12px; }
.warnings summary { cursor: pointer; width: fit-content; }
.warnings ul { padding-left: 18px; margin: 12px 0 0; overflow-wrap: anywhere; }
.warnings li + li { margin-top: 7px; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 270px; padding: 54px 22px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; }
.empty-state h2 { color: #d8dfdc; font-size: 16px; font-weight: 500; letter-spacing: -.02em; }
.empty-state p { max-width: 430px; color: var(--muted); font-size: 13px; }
.empty-state button { margin-top: 8px; }
.empty-mark { color: #61766a; font-size: 24px; line-height: 1; margin: 2px 0 12px; }
.loading-dot { display: block; width: 8px; height: 8px; margin: 8px 0 16px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
.page-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-top: 40px; padding: 23px 0 36px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 11px; line-height: 1.7; }
#freshness { display: flex; align-items: center; gap: 7px; }
#freshness::before { content: ""; width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--quiet); }
#freshness[data-state="fresh"]::before { background: var(--accent); }
#freshness[data-state="stale"], #freshness[data-state="offline"] { color: var(--amber); }
#freshness[data-state="stale"]::before, #freshness[data-state="offline"]::before { background: var(--amber); }
#last-updated { margin: 3px 0 0 12px; font-variant-numeric: tabular-nums; }
.health-note { text-align: right; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (max-width: 1000px) {
  .page { padding: 0 32px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counts { gap: 28px; }
}
@media (max-width: 700px) {
  .page { padding: 0 24px; }
  .page-header { min-height: 84px; }
  .intro { align-items: flex-start; flex-direction: column; gap: 30px; padding: 44px 0 34px; }
  h1 { font-size: 58px; }
  .intro-copy { margin-top: 14px; }
  .counts { gap: 36px; }
  .counts strong { font-size: 25px; }
  .toolbar { align-items: stretch; flex-wrap: wrap; gap: 12px; }
  .search-box { flex-basis: 100%; }
  .source-control { margin-left: auto; }
  .source-control select { height: 36px; }
  .directory-heading { margin-top: 18px; }
  .service-card { padding: 20px 18px 0; }
  .page-footer { margin-top: 32px; }
}
@media (max-width: 580px) {
  .page { padding: 0 20px; }
  .discovery-label { display: none; }
  .context { gap: 12px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .service-card { padding: 22px 22px 0; }
  .card-header { margin-bottom: 17px; }
  .directory-heading { gap: 12px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 14px; }
  .filters { gap: 3px; }
  .filters button { padding: 7px 10px; }
  .result-count { margin-left: auto; }
  .notice { align-items: flex-start; flex-direction: column; gap: 13px; padding: 16px; }
  .page-footer { flex-direction: column; gap: 15px; padding-bottom: 26px; }
  .health-note { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
