.glrd-public {
  max-width: 760px;
  margin: 0 auto;
}

.glrd-standalone-body {
  margin: 0;
  min-height: 100vh;
  background: #f5f7fb;
  color: #111827;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.glrd-standalone-body * {
  box-sizing: border-box;
}

.glrd-standalone-body .glrd-public {
  width: min(720px, 100%);
  max-width: none;
}

.glrd-result-form {
  display: grid;
  gap: 14px;
}

.glrd-result-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.glrd-result-form input,
.glrd-result-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c9ced6;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
}

.glrd-result-form button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.glrd-form-note {
  margin: -4px 0 0;
  color: #4b5563;
  font-size: 0.95rem;
}

.glrd-message {
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.glrd-message.is-success {
  background: #e7f7ed;
  color: #185c31;
}

.glrd-message.is-error {
  background: #fff1f1;
  color: #8a1f1f;
}

.glrd-results {
  width: 100%;
  border-collapse: collapse;
}

.glrd-results th,
.glrd-results td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px;
  text-align: left;
}

.glrd-course-map svg {
  width: 100%;
  height: auto;
  color: #111827;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.glrd-course-map p {
  margin: 8px 0 0;
  font-weight: 700;
}

.glrd-account-hub,
.glrd-mobile-app {
  max-width: 1120px;
}

.glrd-pwa-shell {
  min-height: 100vh;
  padding: 10px;
  background: #f5f7fb;
}

.glrd-pwa-main {
  display: block;
}

.glrd-pwa-view {
  display: none;
}

.glrd-pwa-view.is-active {
  display: block;
}

.glrd-account-hero,
.glrd-mobile-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid #d9dde5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.glrd-mobile-hero {
  display: flex;
  color: #ffffff;
  background: #111827;
  border-color: #111827;
  position: sticky;
  top: 0;
  z-index: 10;
}

.glrd-simple-hero {
  align-items: center;
  padding: 14px;
  margin-bottom: 10px;
}

.glrd-simple-hero h2 {
  margin: 0 0 2px;
  font-size: 1.35rem;
}

.glrd-simple-hero p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.glrd-eyebrow {
  margin: 0 0 6px;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.glrd-mobile-hero .glrd-eyebrow {
  color: #93c5fd;
}

.glrd-account-hero h2,
.glrd-mobile-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.glrd-account-hero p,
.glrd-mobile-hero p {
  margin: 0;
}

.glrd-mobile-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.glrd-mobile-hero-actions a,
.glrd-mobile-shortcuts a,
.glrd-mobile-contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.glrd-mobile-hero-actions a {
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #ffffff;
}

.glrd-mobile-tabs {
  position: sticky;
  top: 82px;
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px;
  border: 1px solid #d9dde5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.glrd-mobile-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 6px;
  color: #111827;
  font-weight: 900;
  text-decoration: none;
}

.glrd-mobile-tabs a.is-active {
  background: #111827;
  color: #ffffff;
}

.glrd-mobile-hero-actions button {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-weight: 900;
}

.glrd-primary-link,
.glrd-secondary-link,
.glrd-doc-button,
.glrd-inline-result-form button,
.glrd-mobile-filter button,
.glrd-mobile-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #111827;
  border-radius: 6px;
  background: #111827;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.glrd-secondary-link,
.glrd-doc-button.is-ghost {
  background: #ffffff;
  color: #111827;
}

.glrd-empty-state,
.glrd-mobile-panel,
.glrd-account-card {
  padding: 18px;
  border: 1px solid #d9dde5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.glrd-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.glrd-card-head,
.glrd-status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.glrd-card-head h3 {
  margin: 0;
  font-size: 1.55rem;
}

.glrd-bib-badge,
.glrd-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.glrd-status-row {
  margin: 14px 0;
}

.glrd-status.is-complete {
  background: #dcfce7;
  color: #166534;
}

.glrd-status.is-pending {
  background: #fef3c7;
  color: #92400e;
}

.glrd-inline-result-form,
.glrd-mobile-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.glrd-inline-result-form label,
.glrd-mobile-filter label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.glrd-inline-result-form input,
.glrd-inline-result-form select,
.glrd-mobile-filter input,
.glrd-mobile-filter select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c9ced6;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
}

.glrd-inline-result-form button,
.glrd-mobile-filter button {
  grid-column: 1 / -1;
}

.glrd-document-actions,
.glrd-mobile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.glrd-document-actions form,
.glrd-mobile-actions form {
  margin: 0;
}

.glrd-mobile-filter {
  grid-template-columns: minmax(120px, 0.6fr) minmax(160px, 0.9fr) minmax(220px, 1.3fr) minmax(130px, 0.7fr) minmax(150px, 0.8fr) auto;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #d9dde5;
  border-radius: 8px;
  background: #ffffff;
}

.glrd-simple-filter {
  gap: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.glrd-simple-filter label {
  font-size: 0.9rem;
}

.glrd-simple-filter input,
.glrd-simple-filter select {
  min-height: 40px;
}

.glrd-mobile-filter button {
  grid-column: auto;
}

.glrd-mobile-login {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 12px;
  padding: 18px;
  border: 1px solid #d9dde5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.glrd-mobile-login h3 {
  margin: 0;
  font-size: 1.05rem;
}

.glrd-mobile-login label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.glrd-mobile-login input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c9ced6;
  border-radius: 6px;
  padding: 9px 11px;
  font: inherit;
}

.glrd-mobile-login .login-username,
.glrd-mobile-login .login-password,
.glrd-mobile-login .login-remember,
.glrd-mobile-login .login-submit {
  margin: 0 0 10px;
}

.glrd-mobile-login .login-remember label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
}

.glrd-mobile-login .login-remember input {
  width: auto;
  min-height: 0;
}

.glrd-mobile-login #wp-submit {
  width: 100%;
  min-height: 46px;
  border: 1px solid #111827;
  border-radius: 6px;
  background: #111827;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
}

.glrd-mobile-code-login {
  background: #f8fafc;
}


.glrd-mobile-login button {
  min-height: 46px;
  border: 1px solid #111827;
  border-radius: 6px;
  background: #111827;
  color: #ffffff;
  font-weight: 800;
}

.glrd-mobile-login p {
  margin: 0;
  color: #4b5563;
}

.glrd-mobile-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.glrd-mobile-shortcuts a {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
}

.glrd-mobile-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.glrd-mobile-kpis div {
  padding: 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #d9dde5;
}

.glrd-mobile-kpis span,
.glrd-mobile-kpis strong {
  display: block;
}

.glrd-mobile-kpis span {
  color: #4b5563;
  font-size: 0.82rem;
  font-weight: 800;
}

.glrd-mobile-kpis strong {
  margin-top: 4px;
  font-size: 1.8rem;
  line-height: 1;
}

.glrd-mobile-search-empty {
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
}

.glrd-mobile-search-empty strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
}

.glrd-mobile-search-empty p {
  margin: 0;
}

.glrd-mobile-panel {
  margin-bottom: 14px;
}

.glrd-simple-panel {
  padding: 12px;
}

.glrd-simple-panel h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-family: inherit;
}

.glrd-mobile-panel h3 {
  margin: 0 0 12px;
}

.glrd-mobile-bars {
  display: grid;
  gap: 10px;
}

.glrd-mobile-bar {
  display: grid;
  grid-template-columns: 86px 1fr 44px;
  gap: 10px;
  align-items: center;
}

.glrd-mobile-bar i {
  display: block;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.glrd-mobile-bar b {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: #2563eb;
}

.glrd-mobile-stats {
  display: grid;
  gap: 12px;
}

.glrd-mobile-stat-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border: 1px solid #d9dde5;
  border-radius: 8px;
  background: #ffffff;
}

.glrd-mobile-stat-filter label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 900;
}

.glrd-mobile-stat-filter select,
.glrd-mobile-stat-filter button {
  width: 100%;
  min-height: 42px;
  border-radius: 6px;
  font: inherit;
}

.glrd-mobile-stat-filter select {
  border: 1px solid #c9ced6;
  padding: 8px 10px;
  background: #ffffff;
}

.glrd-mobile-stat-filter button {
  border: 1px solid #111827;
  background: #111827;
  color: #ffffff;
  font-weight: 900;
}

.glrd-mobile-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.glrd-mobile-stat-grid article,
.glrd-mobile-stat-panel {
  border: 1px solid #d9dde5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.glrd-mobile-stat-grid article {
  padding: 14px;
}

.glrd-mobile-stat-grid span {
  display: block;
  color: #4b5563;
  font-size: 0.82rem;
  font-weight: 900;
}

.glrd-mobile-stat-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 2rem;
  line-height: 1;
}

.glrd-mobile-stat-panel {
  padding: 14px;
}

.glrd-mobile-stat-panel h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.glrd-mobile-stack {
  display: flex;
  width: 100%;
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.glrd-mobile-stack i {
  display: block;
  min-width: 0;
}

.glrd-mobile-stack .is-adult,
.glrd-mobile-stat-legend .is-adult {
  background: #2563eb;
}

.glrd-mobile-stack .is-child,
.glrd-mobile-stat-legend .is-child {
  background: #16a34a;
}

.glrd-mobile-stack .is-other,
.glrd-mobile-stat-legend .is-other {
  background: #94a3b8;
}

.glrd-mobile-stat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 800;
}

.glrd-mobile-stat-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.glrd-mobile-stat-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.glrd-mobile-stat-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 900;
}

.glrd-mobile-stat-line:last-child {
  border-bottom: 0;
}

.glrd-mobile-results {
  display: grid;
  gap: 10px;
}

.glrd-mobile-result-card {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.glrd-mobile-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.glrd-mobile-card-head > div {
  display: grid;
  gap: 2px;
}

.glrd-mobile-card-head span {
  color: #4b5563;
  overflow-wrap: anywhere;
}

.glrd-mobile-bib {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff !important;
  font-weight: 900;
}

.glrd-mobile-statuses,
.glrd-mobile-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.glrd-mobile-statuses span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.glrd-mobile-statuses .is-ok {
  background: #dcfce7;
  color: #166534;
}

.glrd-mobile-statuses .is-warn {
  background: #fef3c7;
  color: #92400e;
}

.glrd-mobile-result-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.glrd-mobile-result-card dt {
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 800;
}

.glrd-mobile-result-card dd {
  margin: 2px 0 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.glrd-mobile-contact-actions a {
  border: 1px solid #d9dde5;
  background: #ffffff;
  color: #111827;
}

.glrd-mobile-edit {
  margin: 10px 0 0;
  border: 1px solid #d9dde5;
  border-radius: 8px;
  background: #ffffff;
}

.glrd-mobile-edit summary {
  min-height: 42px;
  padding: 11px 12px;
  font-weight: 900;
  cursor: pointer;
}

.glrd-mobile-edit form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

.glrd-mobile-edit label {
  display: grid;
  gap: 5px;
  color: #374151;
  font-size: 0.84rem;
  font-weight: 800;
}

.glrd-mobile-edit input,
.glrd-mobile-edit select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c9ced6;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  background: #ffffff;
}

.glrd-mobile-edit button {
  grid-column: 1 / -1;
  min-height: 44px;
  border: 1px solid #111827;
  border-radius: 6px;
  background: #111827;
  color: #ffffff;
  font-weight: 900;
}

@media (max-width: 760px) {
  .glrd-account-hero,
  .glrd-mobile-filter {
    display: block;
  }

  .glrd-pwa-shell {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: env(safe-area-inset-top, 0) 10px calc(18px + env(safe-area-inset-bottom, 0));
  }

  .glrd-mobile-hero {
    margin: 0 -10px 12px;
    border-radius: 0 0 14px 14px;
  }

  .glrd-mobile-tabs {
    top: 74px;
  }

  .glrd-secondary-link {
    width: 100%;
    margin-top: 14px;
  }

  .glrd-account-grid,
  .glrd-inline-result-form,
  .glrd-mobile-filter,
  .glrd-mobile-kpis,
  .glrd-mobile-shortcuts,
  .glrd-mobile-stat-filter {
    grid-template-columns: 1fr;
  }

  .glrd-mobile-filter label,
  .glrd-mobile-filter button {
    margin-top: 10px;
  }

  .glrd-mobile-result-card dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .glrd-mobile-edit form {
    grid-template-columns: 1fr;
  }

  .glrd-document-actions > *,
  .glrd-doc-button,
  .glrd-mobile-hero-actions a,
  .glrd-mobile-contact-actions a,
  .glrd-mobile-actions form,
  .glrd-mobile-actions button {
    width: 100%;
  }
}
