/* ══════════════════════════════════════════════════════════
   APP SHEET  — shared between deenly-site & portfolio-site
   Edit here, then run: sh sync.sh
══════════════════════════════════════════════════════════ */

#app-sheet-backdrop {
  position: fixed; inset: 0;
  background: color-mix(in srgb, var(--bg) 50%, transparent);
  z-index: 900;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#app-sheet-backdrop.visible { opacity: 1; }

#app-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 901;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.32,0.72,0,1);
}
#app-sheet.visible { transform: translateY(0); }

#app-sheet-handle {
  width: 36px; height: 4px;
  background: var(--surface-border);
  border-radius: var(--r-pill);
  margin: 0 auto 16px;
}

#app-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
#app-sheet-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--on-bg);
}
#app-sheet-close {
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  background: rgba(229,57,53,0.1);
  border: none;
  color: #e53935;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
#app-sheet-close:hover { background: rgba(229,57,53,0.18); }

#app-sheet-glass {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--on-bg) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--on-bg) 9%, transparent);
  margin-bottom: 14px;
}
#app-sheet-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  flex-shrink: 0;
}
#app-sheet-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
#app-sheet-meta strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--on-bg);
}
#app-sheet-meta span {
  font-size: 13px;
  color: var(--muted);
}

#app-sheet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px;
  border-radius: var(--r-lg);
  background: var(--green-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s;
}
#app-sheet-btn:active { opacity: 0.85; }
