:root {
  color-scheme: light;
  --navy: #133652;
  --text: #20374c;
  --muted: #71839a;
  --border: #e3eaf1;
  --canvas: #f3f6fa;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--text); font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; -webkit-font-smoothing: antialiased; }
body::before { position: fixed; z-index: -1; inset: 0 0 auto; height: 320px; content: ""; background: linear-gradient(150deg, #e4eef6 0%, #f3f6fa 76%); pointer-events: none; }
.page-shell { width: min(100% - 36px, 820px); margin: clamp(30px,6vw,68px) auto 30px; }
.masthead { position: relative; overflow: hidden; background: linear-gradient(115deg, #123651 0%, #174e6e 100%); border-radius: 17px 17px 0 0; padding: clamp(28px,5vw,43px); color: white; }
.masthead::after { position: absolute; right: -100px; bottom: -154px; width: 350px; height: 350px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; content: ""; }
.header-decoration { position: absolute; top: -90px; right: -14px; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.brand { display: flex; gap: 19px; position: relative; z-index: 1; align-items: flex-start; }
.brand-symbol { display: grid; flex: 0 0 58px; height: 58px; place-items: center; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; }
.brand-symbol span { font-size: 35px; font-weight: 300; line-height: 1; }
.brand-kicker { margin: 0 0 9px; color: #b7d9e8; font-size: 10px; font-weight: 750; letter-spacing: .13em; }
.separator { color: #6ea3ba; padding: 0 6px; }
h1 { margin: 0; font-size: clamp(23px,4.8vw,34px); letter-spacing: -.035em; line-height: 1.2; font-weight: 740; }
.brand-text p { margin: 8px 0 0; color: #d0e2eb; font-size: 14px; }
.main-content { background: white; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 17px 17px; padding: clamp(24px,4vw,39px); box-shadow: 0 17px 50px rgba(20,58,93,.065); }
.section-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: .14em; color: #387b98; margin-bottom: 6px; }
h2 { font-size: 20px; margin: 0; letter-spacing: -.035em; color: #183b54; }
.section-subtitle { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.refresh-button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; border-radius: 9px; padding: 10px 13px; border: 1px solid #dce6ee; background: #fff; color: #365c76; cursor: pointer; font: inherit; font-size: 12px; font-weight: 650; transition: background .18s, border-color .18s; white-space: nowrap; }
.refresh-button svg { width: 16px; height: 16px; }
.refresh-button:hover { background: #f2f7fb; border-color: #b6cadb; }
.refresh-button:focus-visible { outline: 3px solid #75b5d3; outline-offset: 2px; }
.refresh-button:disabled { opacity: .6; cursor: wait; }
.refresh-button:disabled svg { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.apps { display: grid; gap: 11px; }
.app-card { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: 12px; color: inherit; text-decoration: none; transition: border-color .16s, box-shadow .16s, background .16s, transform .16s; }
.app-card:hover { border-color: #bbd3e3; background: #fbfdff; box-shadow: 0 6px 18px rgba(18,54,81,.055); transform: translateY(-1px); }
.app-card:focus-visible { outline: 3px solid #75b5d3; outline-offset: 2px; }
.app-icon { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 11px; font-size: 21px; font-weight: 750; }
.icon-aditi { background: #e9f0fc; color: #406bb0; }
.icon-aushadhi { background: #e7f5ef; color: #247d5f; font-size: 16px; }
.icon-iecs { background: #e7f3f9; color: #236e94; font-size: 25px; }
.icon-scape { background: #f0ebfa; color: #7051aa; }
.icon-sepsis { background: #fbecec; color: #b3535a; font-weight: 450; font-size: 30px; }
.app-info { display: block; flex: 1; min-width: 0; }
.app-name { display: block; color: #243c54; font-size: 15px; font-weight: 680; line-height: 1.4; }
.sub-name { font-weight: 580; }
.app-domain { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.status { display: inline-flex; gap: 7px; align-items: center; justify-content: center; border-radius: 99px; padding: 6px 10px; background: #f3f5f8; color: #6c7888; font-size: 11px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.status-dot { background: #97a3b2; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status.online { background: #e7f6ee; color: #1b8557; }
.status.online .status-dot { background: #23a269; }
.status.offline { background: #fceaea; color: #b43c45; }
.status.offline .status-dot { background: #d9515a; }
.status.restricted { background: #eaf0fa; color: #416a9f; }
.status.restricted .status-dot { background: #5d82bb; }
.status.error { background: #fff3e2; color: #9e691a; }
.status.error .status-dot { background: #d69a35; }
.status.unavailable { background: #f1f3f6; color: #6a7786; }
.external-icon { flex: 0 0 18px; width: 18px; height: 18px; color: #8b9eb0; margin-left: 3px; }
.status-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--border); }
.status-info, .interval-info { font-size: 12px; color: #72849a; }
.interval-info { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.small-pulse { width: 7px; height: 7px; border-radius: 50%; background: #3ea988; }
.check-note { margin: 13px 0 0; color: #95a1af; font-size: 11px; }
.footer { text-align: center; padding: 25px 10px 0; color: #697f93; line-height: 1.85; font-size: 12px; }
.disclaimer { color: #96a3b1; font-size: 11px; }
@media (max-width: 600px) {
  .page-shell { width: min(100% - 24px, 820px); margin-top: 16px; }
  .masthead { border-radius: 13px 13px 0 0; }
  .main-content { border-radius: 0 0 13px 13px; }
  .brand { gap: 13px; }
  .brand-symbol { flex-basis: 44px; height: 44px; border-radius: 11px; }
  .brand-symbol span { font-size: 29px; }
  .brand-kicker { line-height: 1.7; font-size: 9px; }
  .app-card { padding: 14px 13px; gap: 11px; }
  .app-icon { flex-basis: 38px; height: 38px; font-size: 19px; }
  .icon-aushadhi { font-size: 14px; }
  .icon-iecs { font-size: 21px; }
  .app-name { font-size: 14px; }
  .app-domain { font-size: 11px; }
  .status { font-size: 10px; gap: 5px; padding: 5px 7px; }
  .external-icon { display: none; }
  .status-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 370px) {
  .brand-kicker { letter-spacing: .06em; }
  .app-card { flex-wrap: wrap; }
  .status { margin-left: 49px; }
  .section-top { align-items: flex-start; }
  .refresh-button span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
