/*
 * Shared App identity cell (Apple + Android): icon, short name, release line, info panel.
 * Linked from dashboard HTML templates that render mobile-app-identity / ratings-app-cell.
 */

.ratings-app-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ratings-app-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}

.ratings-app-icon--placeholder {
  display: inline-block;
  background: var(--border, #334155);
}

.ratings-app-name {
  font-weight: 600;
}

.ratings-app-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.ratings-app-release {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mobile-app-identity-cell {
  align-items: flex-start;
}

.mobile-app-identity-title-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.mobile-app-identity-name-link {
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.mobile-app-identity-name-link:hover .mobile-app-identity-name {
  color: var(--accent, #38bdf8);
  text-decoration: underline;
}

.mobile-app-identity-info {
  position: relative;
  flex-shrink: 0;
}

.mobile-app-identity-info-btn {
  list-style: none;
  cursor: pointer;
}

.mobile-app-identity-info-btn::-webkit-details-marker {
  display: none;
}

.mobile-app-identity-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 220px;
  max-width: min(320px, 70vw);
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border, #334155);
  background: var(--panel, #0f172a);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 0.45rem;
}

.mobile-app-identity-panel-row {
  display: grid;
  gap: 0.1rem;
  font-size: 0.82rem;
}

.mobile-app-identity-panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border, #334155);
}

.mobile-app-identity-panel-links a {
  color: var(--accent, #38bdf8);
  text-decoration: none;
  font-size: 0.82rem;
}

.mobile-app-identity-panel-links a:hover {
  text-decoration: underline;
}

a.android-app-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  border-radius: 8px;
}

a.android-app-link:hover .ratings-app-name {
  color: var(--accent, #38bdf8);
  text-decoration: underline;
}

a.android-app-link:hover .ratings-app-icon {
  box-shadow: 0 0 0 2px var(--accent, #38bdf8);
}

a.android-app-link .ratings-app-cell {
  align-items: center;
}
