:root {
  color-scheme: light;
  --ink: #101a35;
  --muted: #697185;
  --purple: #6726a5;
  --red: #ef1035;
  --border: #e7e8ef;
  --success: #20734f;
  --danger: #b62c49;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--ink);
  background: #f6f7fb;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  background: radial-gradient(ellipse at 4% 12%, #ede7f7 0, transparent 44%), radial-gradient(ellipse at 98% 84%, #fbe9ed 0, transparent 40%), #f6f7fb;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ''; display: block; height: 3px; background: linear-gradient(90deg, #5a29a3, #a12394 53%, #f21034); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
[hidden] { display: none !important; }
:is(button, a, input):focus-visible { outline: 3px solid #7c46b2; outline-offset: 4px; }
.sr-only, .icon-definitions { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; z-index: 10; top: -80px; left: 24px; background: #fff; padding: 14px 20px; border-radius: 8px; }
.skip-link:focus { top: 10px; }
.page-shell { width: min(100% - 80px, 1344px); margin-inline: auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; border-bottom: 1px solid #dfdeea; }
.brand { display: flex; align-items: center; gap: 20px; min-width: 0; border-radius: 12px; }
.brand img { width: 94px; height: 94px; border-radius: 14px; object-fit: contain; }
.brand-copy { display: grid; gap: 5px; }
.brand-copy strong { font-size: 18px; font-weight: 700; letter-spacing: .02em; }
.brand-copy strong span { margin-inline: 5px; color: #a0a2b2; font-weight: 400; }
.brand-copy > span { font-size: 14px; color: var(--muted); }
.masthead-note { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #626b80; }
.suite-mark { width: 9px; height: 9px; border-radius: 3px; background: linear-gradient(135deg, var(--purple), var(--red)); }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 64px; padding-block: 52px 42px; }
.eyebrow { margin: 0 0 15px; color: #754595; font-size: 12px; letter-spacing: .15em; font-weight: 650; }
h1 { margin: 0; font-size: clamp(36px, 3.5vw, 49px); font-weight: 650; line-height: 1.12; letter-spacing: -1.8px; }
h1 > span { color: #73528f; }
.intro-description { margin: 20px 0 0; font-size: 16px; line-height: 1.75; color: #626b80; }
.overview { width: 320px; flex-shrink: 0; background: #ffffffc9; padding: 24px 26px; border: 1px solid #e6e2ed; border-radius: 20px; box-shadow: 0 12px 38px -30px #29345438; }
.overview-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.overview-label { font-size: 11px; letter-spacing: .12em; color: #697185; font-weight: 650; }
.live-label { color: #754595; font-size: 12px; background: #f4eef9; padding: 5px 8px; border-radius: 6px; }
.overview-count { display: flex; gap: 10px; align-items: baseline; margin: 16px 0 15px; }
.overview-count strong { font-size: 42px; line-height: 1; letter-spacing: -2px; font-weight: 650; }
.overview-count > span { font-size: 14px; color: var(--muted); }
.overview-meter { display: flex; height: 5px; background: #e9e8ef; border-radius: 4px; overflow: hidden; }
.overview-meter > span { width: 0; transition: width .25s; }
#meter-ok { background: #4b9674; }
#meter-bad { background: #d8798b; }
.overview-detail { margin: 12px 0 0; font-size: 13px; color: var(--muted); min-height: 18px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-bottom: 28px; }
.environment-switch { display: flex; gap: 4px; padding: 4px; background: #eae8f0; border: 1px solid #e5e2ed; border-radius: 11px; }
.environment-button { min-height: 38px; padding: 8px 18px; border: 0; border-radius: 8px; background: transparent; color: #697185; font-size: 14px; font-weight: 600; transition: background .14s, color .14s; }
.environment-button:hover { color: var(--purple); }
.environment-button.is-active { background: #fff; color: var(--purple); box-shadow: 0 2px 6px #2520400c; }
.toolbar-actions { display: flex; align-items: center; gap: 12px; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #ffffffc2; border: 1px solid #dfdfeb; border-radius: 10px; color: #9095a6; }
.search-field svg { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.search-field input { width: 206px; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 14px; padding: 10px 0; }
.search-field input::placeholder { color: #81889b; }
.search-field:focus-within { border-color: #9769bc; box-shadow: 0 0 0 3px #7434ad12; }
.search-field input:focus-visible { outline: none; }
.refresh-button { display: flex; justify-content: center; align-items: center; gap: 8px; min-width: 124px; min-height: 46px; padding: 10px 14px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(105deg, #63269f, #8e258d 56%, #bf205e); box-shadow: 0 5px 14px -8px #6c269c88; font-size: 14px; font-weight: 600; }
.refresh-button:hover:not(:disabled) { filter: brightness(.95); }
.refresh-button:disabled { opacity: .75; }
.refresh-indicator { display: none; width: 14px; height: 14px; border: 2px solid #ffffff60; border-top-color: #fff; border-radius: 50%; }
.refresh-button:disabled .refresh-indicator { display: block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.catalogue-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.catalogue-heading h2 { display: flex; gap: 9px; align-items: center; margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.3px; }
#service-count { display: inline-grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; background: #eae7f1; color: #7a6590; font-size: 12px; font-weight: 600; letter-spacing: normal; }
.catalogue-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service-card { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 19px; background: #fff; box-shadow: 0 8px 28px -22px #29345440; }
.service-card-header { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.service-icon { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border: 1px solid #eae2f4; border-radius: 12px; color: #7442a0; background: #f7f2fc; }
.service-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-icon--agora, .service-icon--mail { color: #aa3d79; background: #fcf2f8; border-color: #f1e3ed; }
.service-icon--openobserve, .service-icon--portainer { color: #5b5c9f; background: #f3f3fb; border-color: #e6e6f3; }
.service-heading { min-width: 0; }
.service-heading h3 { margin: 0 0 5px; font-size: 17px; font-weight: 650; letter-spacing: -.3px; }
.service-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.service-link { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 13px 12px 12px; border: 1px solid #ebeaf1; border-radius: 10px; background: #fdfdff; transition: border-color .14s, background .14s; }
.service-link + .service-link { margin-top: 10px; }
.service-link:hover { border-color: #bfa6d6; background: #faf7fe; }
.service-link-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px; }
.environment-label { font-size: 11px; font-weight: 650; letter-spacing: .08em; color: #7c688f; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; color: #6b7285; background: #f0f0f5; padding: 3px 7px; border-radius: 5px; font-size: 14px; line-height: 1.35; white-space: nowrap; }
.status-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-badge[data-state=ok] { color: var(--success); background: #eaf6ef; }
.status-badge[data-state=bad] { color: var(--danger); background: #fcedf0; }
.status-badge[data-state=configuration] { color: #856221; background: #faf3e4; }
.service-host { font-size: 14px; font-weight: 500; color: #303b53; line-height: 1.5; overflow-wrap: anywhere; }
.service-detail { font-size: 14px; line-height: 1.4; color: #788196; }
.notice { margin: 0 0 20px; padding: 16px 20px; background: #fbf4e6; border: 1px solid #efdfbc; border-radius: 12px; color: #745b2e; font-size: 14px; line-height: 1.7; }
.empty-state { padding: 48px 24px; margin: 0; text-align: center; border: 1px dashed #d7cedf; border-radius: 16px; color: var(--muted); font-size: 16px; }
.page-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid #dfdeea; padding-top: 24px; margin-top: 38px; }
.page-footer p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.page-footer strong { color: #505b71; font-size: 12px; font-weight: 650; letter-spacing: .03em; }
.page-footer strong span { color: #9a96a8; margin-inline: 2px; }
.footer-separator { margin-inline: 10px; }
.status-explanation { margin: 13px 0 25px; color: #788196; font-size: 12px; line-height: 1.7; }
@media (max-width: 1190px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-shell { width: calc(100% - 56px); }
  .intro { gap: 32px; }
}
@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masthead-note { display: none; }
  .overview { width: 275px; padding: 22px; }
  .intro { gap: 24px; }
  .toolbar-actions { flex: 1; }
  .search-field { flex: 1; }
  .search-field input { width: 100%; }
}
@media (max-width: 650px) {
  .page-shell { width: calc(100% - 32px); }
  .masthead { padding-block: 16px; }
  .brand { gap: 13px; }
  .brand img { width: 72px; height: 72px; border-radius: 10px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy > span { font-size: 13px; }
  .brand-copy strong span { margin-inline: 1px; }
  .intro { flex-direction: column; align-items: stretch; padding-block: 34px 28px; gap: 26px; }
  h1 { font-size: 38px; letter-spacing: -1.4px; }
  .intro-description { font-size: 16px; margin-top: 16px; }
  .desktop-break { display: none; }
  .overview { width: 100%; padding: 20px; }
  .overview-count { margin-top: 11px; margin-bottom: 12px; }
  .overview-count strong { font-size: 34px; }
  .toolbar { gap: 14px; padding-bottom: 26px; }
  .environment-switch { width: 100%; }
  .environment-button { flex: 1; padding-inline: 8px; min-height: 40px; }
  .toolbar-actions { width: 100%; gap: 8px; }
  .search-field { min-width: 0; padding-inline: 10px; gap: 7px; }
  .search-field input { font-size: 16px; }
  .refresh-button { min-width: 0; padding-inline: 12px; }
  .refresh-indicator { display: none !important; }
  .catalogue-heading p { display: none; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .service-card { padding: 20px; }
  .service-heading p { font-size: 13px; }
  .service-link { padding: 14px; }
  .environment-label { font-size: 12px; }
  .page-footer { margin-top: 28px; padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
