/**
 * GriGsi unified Space entry — same structure on web join/quick/create strip.
 * Order: 1 New · 2 Join · 3 Invite · 4 Open/embed · tools without Space
 */
.gsi-entry-brandbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 16px;
  margin: 0 0 20px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gsi-entry-brandbar .gsi-brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.gsi-entry-status {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.gsi-entry-status.gsi-st-ok { background: rgba(52, 199, 89, 0.25); color: #0d3d16; }
.gsi-entry-status.gsi-st-warn { background: rgba(255, 198, 75, 0.35); color: #4a3b00; }
.gsi-entry-status.gsi-st-err { background: rgba(240, 139, 131, 0.35); color: #6b1f1a; }

.gsi-entry-section {
  margin-bottom: 22px;
  padding: 16px 16px 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
}
.gsi-entry-section.gsi-entry-muted {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}
.gsi-entry-h {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--neutral);
  margin: 0 0 6px;
}
.gsi-entry-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
}
.gsi-entry-hint {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.45;
  margin: 0 0 12px;
}
.gsi-entry-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 520px) {
  .gsi-entry-actions.gsi-entry-actions-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
.gsi-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid var(--primary);
  background: rgba(255, 255, 255, 0.85);
  color: #4a3d7a;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.gsi-btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(166, 147, 239, 0.35);
}
.gsi-btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  border: none;
  background: linear-gradient(180deg, var(--primary) 0%, #8B7BD4 100%);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(139, 123, 212, 0.4);
}
.gsi-btn-solid:hover {
  filter: brightness(1.05);
}
.gsi-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .gsi-type-grid { grid-template-columns: 1fr; }
}
.gsi-type-card {
  padding: 14px;
  border-radius: 12px;
  border: 2px solid rgba(166, 147, 239, 0.35);
  background: rgba(255, 255, 255, 0.75);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gsi-type-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(166, 147, 239, 0.25);
}
.gsi-type-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}
.gsi-type-card span {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.35;
}
.gsi-tools-inline {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #555;
}
.gsi-tools-inline a {
  font-weight: 700;
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Sticky site bar: same height as other pages when entry UI / “More” opens (space.css body line-height). */
body.ios-theme .grigsi-top-bar {
  line-height: 1.2;
  align-items: center;
}
body.ios-theme .grigsi-top-bar .nav-buttons {
  line-height: 1.2;
  align-items: center;
}
body.ios-theme .grigsi-top-bar .btn-nav,
body.ios-theme .grigsi-top-bar summary.btn-nav.nav-more-summary {
  line-height: 1.15;
}

