*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.5;
  color: #1a1a1a;
  background: #f5f7fa;
}

.sw-update-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 0.625rem max(1rem, env(safe-area-inset-right, 0px)) 0.625rem
    max(1rem, env(safe-area-inset-left, 0px));
  padding-top: max(0.625rem, env(safe-area-inset-top, 0px));
  box-sizing: border-box;
  background: rgba(26, 26, 26, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: clamp(0.875rem, 2.8vw + 0.45rem, 1rem);
  line-height: 1.35;
}

.sw-update-banner[hidden] {
  display: none !important;
}

.sw-update-banner-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem 1rem;
  text-align: left;
}

.sw-update-banner-text {
  flex: 1 1 auto;
  min-width: 0;
}

.sw-update-banner-reload {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  margin: 0;
  cursor: pointer;
  padding: 0.45rem 1.1rem;
  min-height: 44px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  background: #0f4c81;
  border: 2px solid #fff;
  border-radius: 8px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  touch-action: manipulation;
}

.sw-update-banner-reload:focus,
.sw-update-banner-reload:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.shell {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem max(1.25rem, env(safe-area-inset-right, 0px))
    max(2rem, env(safe-area-inset-bottom, 0px))
    max(1.25rem, env(safe-area-inset-left, 0px));
  padding-top: max(2rem, env(safe-area-inset-top, 0px));
}

.install-hint {
  margin: 0 0 1rem;
  font-size: 0.875rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.lead {
  margin: 0 0 1.5rem;
  color: #4a5568;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

nav a {
  display: block;
  padding: 0.875rem 1rem;
  background: #fff;
  border: 1px solid #d8dee9;
  border-radius: 0.5rem;
  color: #0f4c81;
  text-decoration: none;
  font-weight: 600;
}

nav a:hover {
  border-color: #0f4c81;
}

.badge {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  background: #e8edf3;
  border-radius: 999px;
}

.display-placeholder,
.staff-placeholder,
.doctor-placeholder,
.admin-placeholder {
  margin-top: 2rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 0.5rem;
  color: #64748b;
}
