/* Local software overlay — GriGsi Find homepage card */
body.gf-soft-open { overflow: hidden; }
.gf-soft-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 100000;
  background: rgba(20, 28, 24, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.gf-soft-overlay.hidden { display: none; pointer-events: none; visibility: hidden; }
.gf-soft-panel {
  width: 100%;
  max-width: 420px;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  position: relative;
}
.gf-soft-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 4px 8px;
  min-width: 44px;
  min-height: 44px;
  pointer-events: auto;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}
.gf-soft-close:hover { color: #333; }
.gf-soft-heading {
  margin: 0 0 14px;
  font-size: 1.1rem;
  color: #1a3d34;
  font-weight: 800;
  padding-right: 28px;
}
.gf-soft-platforms { display: flex; flex-direction: column; gap: 10px; }
.gf-soft-plat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 2px solid #d4ebe4;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 700;
  color: #1a3d34;
  background: #f7fcfa;
  cursor: pointer;
  text-align: left;
}
.gf-soft-plat:hover:not(:disabled) { border-color: #2ea082; background: #eef8f4; }
a.gf-soft-plat,
a.gf-soft-plat:visited {
  text-decoration: none;
  color: #1a3d34;
  -webkit-tap-highlight-color: rgba(46, 160, 130, 0.2);
}
a.gf-soft-plat--android {
  border-color: rgba(46, 160, 130, 0.65);
  background: #e8f7f1;
}
.gf-soft-plat i { color: #2ea082; font-size: 0.85rem; }
.gf-soft-lead {
  margin: -6px 0 14px;
  font-size: 0.86rem;
  color: #555;
  line-height: 1.45;
}
.gf-soft-plat:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  color: #888;
}
.gf-soft-plat-soon {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b07820;
  background: #fff3e0;
  padding: 4px 8px;
  border-radius: 999px;
}
.gf-soft-download-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 16px;
  padding: 20px 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a5c4a 0%, #2ea082 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 8px 24px rgba(46, 160, 130, 0.35);
  cursor: pointer;
  line-height: 1.35;
}
.gf-soft-download-hero:hover,
.gf-soft-download-hero:focus,
.gf-soft-download-hero:visited {
  filter: brightness(1.08);
  color: #fff;
}
.gf-soft-download-hero i { font-size: 1.35rem; }
body.ios-theme .gf-soft-overlay a.gf-soft-download-hero,
body.ios-theme a.gf-soft-download-hero {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.gf-soft-download-meta {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 14px;
}
.gf-soft-download-meta p { margin: 0 0 8px; }
.gf-soft-file { color: #1a3d34; font-weight: 600; }
.gf-soft-back {
  border: 1px solid #ccc;
  background: #fff;
  color: #555;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.gf-soft-back:hover { background: #f5f5f5; }
.gf-soft-step.hidden { display: none; }

/* Homepage GriGsi Find card */
.home-quick-card--find.home-quick-card--with-soft {
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  gap: 4px !important;
  padding-bottom: 8px !important;
}
.home-quick-card--find .home-quick-soft-btn {
  grid-row: 4;
  width: calc(100% - 4px);
  margin: 4px auto 0;
  padding: 7px 8px;
  border: 1px solid rgba(46, 160, 130, 0.35);
  border-radius: 8px;
  background: linear-gradient(180deg, #f0faf7 0%, #e4f5ef 100%);
  color: #1a3d34;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  line-height: 1.2;
}
.home-quick-card--find .home-quick-soft-btn:hover {
  background: #d9f0e8;
  border-color: #2ea082;
}
